Skip to content

fix: tuts discrepancies #403

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

Merged
merged 1 commit into from
Jun 25, 2024
Merged

fix: tuts discrepancies #403

merged 1 commit into from
Jun 25, 2024

Conversation

yarikbratashchuk
Copy link
Contributor

@yarikbratashchuk yarikbratashchuk commented Jun 25, 2024

Summary by CodeRabbit

  • Documentation
    • Updated transaction details and key addresses in the GM World tutorial.
    • Consolidated and clarified the initialization command for the Rollkit chain configuration in the Wordle tutorial.

@yarikbratashchuk yarikbratashchuk requested a review from jcstein June 25, 2024 10:11
@yarikbratashchuk yarikbratashchuk self-assigned this Jun 25, 2024
Copy link
Contributor

coderabbitai bot commented Jun 25, 2024

Walkthrough

The recent updates encompass changes to the gm-world.md tutorial primarily involving key addresses, transaction details, and balance queries, reflecting modifications in entities involved. Additionally, in the wordle.md tutorial, the initialization command for the Rollkit chain configuration has been streamlined and relocated for clarity.

Changes

Files Change Summaries
tutorials/gm-world.md Updated key addresses, transaction details (sender and receiver), and balance queries, reflecting changes in entities and process adjustments.
tutorials/wordle.md Consolidated Rollkit chain initialization command, moving it to a specific step under "Building and running wordle chain" for better workflow clarity.

Poem

🌟 In code's grand symphony, a tune does sway,
Keys and chains now dance a clearer way.
Balances shift, addresses anew,
A streamlined world for me and you.
With Rollkit's charm, Wordle's light,
We'll code and share through day and night. 💻✨


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.

@RollkitBot RollkitBot requested review from tuxcanfly and tzdybal June 25, 2024 10:11
Copy link
Contributor

PR Preview Action v1.4.7
🚀 Deployed preview to https://rollkit.github.io/docs-preview/./pr-403/
on branch main at 2024-06-25 10:11 UTC

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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 0b18c93 and d2a1832.

Files selected for processing (2)
  • tutorials/gm-world.md (4 hunks)
  • tutorials/wordle.md (2 hunks)
Additional context used
LanguageTool
tutorials/gm-world.md

[uncategorized] ~147-~147: A comma is probably missing here. (MISSING_COMMA_AFTER_INTRODUCTORY_PHRASE)
Context: ...e1LJWzTMDjwdt"}' type: local ``` For convenience we export two of our keys like this: `...


[uncategorized] ~154-~154: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ... flags, for now, we just want to submit transaction from a high-level perspective): ```bas...

tutorials/wordle.md

[style] ~35-~35: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ...ld) You do not have to do those guides in order to follow this Wordle tutorial, but doing ...


[uncategorized] ~52-~52: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...ght means it’s a correct letter for the Wordle included in the wrong position. A grey ...


[style] ~77-~77: Consider using a more formal and expressive alternative to ‘amazing’. (AWESOME)
Context: ...--> ### 🔥 Ignite {#ignite} Ignite is an amazing CLI tool to help us get started buildin...


[uncategorized] ~91-~91: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE)
Context: ...ocal machine. This tutorial uses a macOS but it should work for Windows. For Windows...


[uncategorized] ~104-~104: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...p ``` You should see an output of help commands meaning Ignite was installed successful...


[uncategorized] ~119-~119: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...Cosmos-SDK version of Foundry or Hardhat but specifically designed to build blockcha...


[uncategorized] ~147-~147: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ...mportant file is app.go that contains type definition of the blockchain and functi...


[style] ~269-~269: Consider using “who” when you are referring to a person instead of an object. (THAT_WHO)
Context: ...submitter` is the address of the person that submitted the Wordle. The second type ...


[uncategorized] ~504-~504: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...the hash string of the current day. * Next we create a hash string of current day ...


[uncategorized] ~504-~504: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ... day. * Next we create a hash string of current day and the Submitter. This allows us...


[uncategorized] ~509-~509: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... continue guessing a new wordle every day up to the max of 6 tries per day. * We ...


[style] ~534-~534: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ...oins method to the BankKeeper interface in order to allow sending the reward to the right g...


[uncategorized] ~645-~645: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... then get a response with a transaction hash as shown here: ```bash code: 0 codespa...


[grammar] ~716-~716: When ‘five-letter’ is used as a modifier, it is usually spelled with a hyphen. (WORD_ESSAY_HYPHEN)
Context: ... for the day. Now let’s try to guess a five letter word: <!-- markdownlint-disable MD013 ...


[style] ~746-~746: ‘prior to’ might be wordy. Consider a shorter alternative. (EN_WORDINESS_PREMIUM_PRIOR_TO)
Context: ... correct word. 2. You can hash the word prior to submitting it to the chain, ensuring ...


[uncategorized] ~752-~752: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ...mblebun/wordle-cli). 4. You can improve current date to stick to a specific timezone. 5...


[style] ~754-~754: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...wordle every day at a specific time. 6. You can create a vue.js front-end with Igni...

Markdownlint
tutorials/gm-world.md

69-69: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


69-69: null (MD040, fenced-code-language)
Fenced code blocks should have a language specified

tutorials/wordle.md

759-759: Expected: 80; Actual: 138 (MD013, line-length)
Line length


155-155: Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe (MD055, table-pipe-style)
Table pipe style

Gitleaks
tutorials/gm-world.md

150-151: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


151-152: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)

Additional comments not posted (6)
tutorials/gm-world.md (3)

Line range hint 157-180: Correct the transaction command to align with the new key order

The transaction command has been updated to reflect the new key order, ensuring that the transaction is initiated from the correct sender to the intended recipient.


147-147: Grammar Improvement: Add a comma after introductory phrase

Consider adding a comma after "For convenience" for better readability and grammatical correctness.

- For convenience we export two of our keys like this:
+ For convenience, we export two of our keys like this:
Tools
LanguageTool

[uncategorized] ~147-~147: A comma is probably missing here. (MISSING_COMMA_AFTER_INTRODUCTORY_PHRASE)
Context: ...e1LJWzTMDjwdt"}' type: local ``` For convenience we export two of our keys like this: `...


Line range hint 200-224: Validate updated balance queries and amounts

The changes to the balance queries and the amounts displayed after transactions need to be verified to ensure they reflect the updated transaction logic correctly.

Verification successful

Validate updated balance queries and amounts

The balance amounts for $KEY1 and $KEY2 have been successfully extracted and match the expected values in the tutorial.

  • Receiver’s balance shows an increase to 42069 stake.
  • Sender’s balance shows 99957931 stake.
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the updated balance queries and amounts.

# Test: Search for balance queries and amounts. Expect: Only updated queries and amounts should be present.
rg --type markdown $'rollkit query bank balances'

Length of output: 162



Script:

#!/bin/bash
# Description: Extract lines containing balance amounts for $KEY1 and $KEY2

# Extract lines containing balance amounts for $KEY1
rg --type markdown -A 3 'rollkit query bank balances \$KEY1' tutorials/gm-world.md

# Extract lines containing balance amounts for $KEY2
rg --type markdown -A 3 'rollkit query bank balances \$KEY2' tutorials/gm-world.md

Length of output: 303



Script:

#!/bin/bash
# Description: Extract lines containing balance amounts for $KEY1 and $KEY2 with extended range

# Extract lines containing balance amounts for $KEY1
rg --type markdown -A 10 'rollkit query bank balances \$KEY1' tutorials/gm-world.md

# Extract lines containing balance amounts for $KEY2
rg --type markdown -A 10 'rollkit query bank balances \$KEY2' tutorials/gm-world.md

Length of output: 538

tutorials/wordle.md (3)

566-567: Streamline command for initializing and building Rollkit chain configuration

The consolidation of the initialization command with the build command simplifies the setup process, making it more efficient.


Line range hint 759-759: Consider shortening line length for better readability

The line length in some parts of the document exceeds the recommended limit, which could affect readability and maintainability of the markdown file.

- This installs Ignite CLI in your local machine. This tutorial uses a macOS but it should work for Windows. For Windows users, check out the Ignite docs on installation for Windows machines.
+ This installs Ignite CLI in your local machine. This tutorial uses a macOS but it should work for Windows. For details, refer to the Ignite installation guide for Windows.

Line range hint 155-155: Fix table formatting in Markdown

The markdown table formatting is incorrect and might cause rendering issues. Ensure that each row in the table ends with a pipe (|) for consistent formatting.

- | File/directory | Purpose                                                                                                                                                               |
- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
- | app/           | Files that wire together the blockchain. The most important file is `app.go` that contains type definition of the blockchain and functions to create and initialize it. |
+ | File/directory | Purpose                                                                                                                                                               |
+ | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+ | app/           | Files that wire together the blockchain. The most important file is `app.go` that contains type definition of the blockchain and functions to create and initialize it. |
+ | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

@Manav-Aggarwal Manav-Aggarwal merged commit ffc8644 into main Jun 25, 2024
8 checks passed
@Manav-Aggarwal Manav-Aggarwal deleted the yarik/tx-command-fixes branch June 25, 2024 17:59
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.

3 participants