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

chore: fix a number of typos #18680

Closed
wants to merge 20 commits into from
Closed

chore: fix a number of typos #18680

wants to merge 20 commits into from

Conversation

pandabadger
Copy link
Contributor

@pandabadger pandabadger commented Dec 11, 2023

Description

Fix a number of typos in docs


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

Summary by CodeRabbit

  • Documentation
    • Corrected typographical errors across various architecture decision records (ADRs) and documentation pages for improved clarity and readability.
    • Updated descriptions and clarified language in ADRs to better explain system functions and procedures.
    • Enhanced documentation on event handling, account rekeying, store migrations, consensus fees, and sign modes.
    • Provided additional context and recommendations for module development and transaction handling in Cosmos SDK.
    • Fixed spelling and formatting errors to maintain professional quality of documentation.
    • Improved explanations of encoding methods and middleware handling within the SDK.

@pandabadger pandabadger requested a review from a team as a code owner December 11, 2023 02:30
Copy link
Contributor

coderabbitai bot commented Dec 11, 2023

Walkthrough

Walkthrough

The changes across various documentation files primarily consist of typo corrections, language clarifications, and minor updates to descriptions and comments. These alterations improve the readability and accuracy of the documentation but do not affect the logic, control flow, or declarations of exported or public entities within the Cosmos SDK.

Changes

File Path Change Summary
docs/architecture/adr-018-...-voting-period.md Typo corrected: "guage" to "gauge".
docs/architecture/adr-032-typed-events.md Update to use typed events for easier event handling.
docs/architecture/adr-034-account-rekeying.md Typos corrected and clarity improved.
docs/architecture/adr-041-in-place-store-migrations.md Updated description of upgrade process behavior.
docs/architecture/adr-048-consensus-fees.md Correction in tier enforcement description for transactions.
docs/architecture/adr-050-sign-mode-textual-annex1.md Explanation of number 35 and typo "Best Pratices" to "Best Practices" corrected.
docs/architecture/adr-050-sign-mode-textual.md Typos fixed, language clarified, and encoding method updated.
docs/architecture/adr-062-collections-state-layer.md Typo corrected: "privimite" to "primitive".
docs/architecture/adr-063-core-module-api.md Typo corrected: "On" to "One".
docs/build/.../01-module-manager.md Function signature updated in module.go.
docs/build/.../02-messages-and-queries.md Typo corrected: "adhereing" to "adhering".
docs/learn/advanced/01-transactions.md Updated SIGN_MODE_DIRECT_AUX sign mode description.
docs/learn/advanced/02-context.md Typo corrected in comment.
docs/learn/advanced/05-encoding.md Typo corrected: "annote" to "annotate".
docs/learn/advanced/11-runtx_middleware.md BaseApp.runTx() now handles Go panics with recovery middleware.
docs/rfc/PROCESS.md Typographical errors corrected and readability improved.
docs/rfc/rfc-template.md Spelling corrected: "Descision" to "Decision".

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 X ?


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

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.

Review Status

Actionable comments generated: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 978fffc and 20527c4.
Files selected for processing (17)
  • docs/architecture/adr-018-extendable-voting-period.md (1 hunks)
  • docs/architecture/adr-032-typed-events.md (1 hunks)
  • docs/architecture/adr-034-account-rekeying.md (3 hunks)
  • docs/architecture/adr-041-in-place-store-migrations.md (1 hunks)
  • docs/architecture/adr-048-consensus-fees.md (1 hunks)
  • docs/architecture/adr-050-sign-mode-textual-annex1.md (2 hunks)
  • docs/architecture/adr-050-sign-mode-textual.md (5 hunks)
  • docs/architecture/adr-062-collections-state-layer.md (1 hunks)
  • docs/architecture/adr-063-core-module-api.md (1 hunks)
  • docs/build/building-modules/01-module-manager.md (1 hunks)
  • docs/build/building-modules/02-messages-and-queries.md (1 hunks)
  • docs/learn/advanced/01-transactions.md (1 hunks)
  • docs/learn/advanced/02-context.md (1 hunks)
  • docs/learn/advanced/05-encoding.md (1 hunks)
  • docs/learn/advanced/11-runtx_middleware.md (1 hunks)
  • docs/rfc/PROCESS.md (2 hunks)
  • docs/rfc/rfc-template.md (1 hunks)
Files skipped from review due to trivial changes (11)
  • docs/architecture/adr-018-extendable-voting-period.md
  • docs/architecture/adr-034-account-rekeying.md
  • docs/architecture/adr-048-consensus-fees.md
  • docs/architecture/adr-050-sign-mode-textual.md
  • docs/architecture/adr-062-collections-state-layer.md
  • docs/architecture/adr-063-core-module-api.md
  • docs/build/building-modules/02-messages-and-queries.md
  • docs/learn/advanced/02-context.md
  • docs/learn/advanced/05-encoding.md
  • docs/rfc/PROCESS.md
  • docs/rfc/rfc-template.md
Additional comments: 7
docs/architecture/adr-032-typed-events.md (1)
  • 23-27: The added context provides valuable insight into the practical application of typed events by the Akash Network team. It's well-integrated into the existing document and enhances the reader's understanding of the motivation behind the proposal.
docs/architecture/adr-041-in-place-store-migrations.md (1)
  • 134-137: The changes made to the documentation clarify the upgrade process, specifically detailing the actions of the old and new binaries at block N and the migration of module stores. This aligns with the PR's objective to fix typographical errors and improve clarity in documentation.
docs/architecture/adr-050-sign-mode-textual-annex1.md (2)
  • 272-278: The clarification on the handling of byte arrays and the reasoning behind the chosen number 35 enhances the understanding of the document. This change aligns with the PR's objective of correcting typographical errors and improving documentation clarity.

  • 346-352: The typo correction and the added recommendation for the use of msg_title option are appropriate. They contribute to the document's accuracy and provide valuable guidance for future message naming conventions.

docs/build/building-modules/01-module-manager.md (1)
  • 276-276: The added description for the NewBasicManagerFromManager function is clear and enhances the documentation by explaining the purpose of the function and how it relates to the Manager and AppModuleBasic. The use of markdown formatting with backticks for function names and types is correct and improves readability.
docs/learn/advanced/01-transactions.md (1)
  • 82-87: The description of SIGN_MODE_DIRECT_AUX is clear and provides a good explanation of its purpose and functionality. However, ensure that the version number (v0.46) mentioned is accurate and consistent with the actual release of this feature in the Cosmos SDK.

The verification confirms the accuracy of the version number (v0.46) mentioned in the documentation for SIGN_MODE_DIRECT_AUX. No issues found.

docs/learn/advanced/11-runtx_middleware.md (1)
  • 7-9: The added explanation about BaseApp.runTx() handling Go panics is clear and informative. It correctly describes the functionality and the use of recovery middleware.

@@ -81,7 +81,7 @@ The Cosmos SDK also provides a couple of other sign modes for particular use cas

#### `SIGN_MODE_DIRECT_AUX`

`SIGN_MODE_DIRECT_AUX` is a sign mode released in the Cosmos SDK v0.46 which targets transactions with multiple signers. Whereas `SIGN_MODE_DIRECT` expects each signer to sign over both `TxBody` and `AuthInfo` (which includes all other signers' signer infos, i.e. their account sequence, public key and mode info), `SIGN_MODE_DIRECT_AUX` allows N-1 signers to only sign over `TxBody` and _their own_ signer info. Morever, each auxiliary signer (i.e. a signer using `SIGN_MODE_DIRECT_AUX`) doesn't
`SIGN_MODE_DIRECT_AUX` is a sign mode released in the Cosmos SDK v0.46 which targets transactions with multiple signers. Whereas `SIGN_MODE_DIRECT` expects each signer to sign over both `TxBody` and `AuthInfo` (which includes all other signers' signer infos, i.e. their account sequence, public key and mode info), `SIGN_MODE_DIRECT_AUX` allows N-1 signers to only sign over `TxBody` and _their own_ signer info. Moreover, each auxiliary signer (i.e. a signer using `SIGN_MODE_DIRECT_AUX`) doesn't
need to sign over the fees:
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a typographical error with an extra space in the word "need" which should be corrected for consistency and readability.

- need to sign over the fees:
+ need to sign over the fees:

Committable suggestion

IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
need to sign over the fees:
need to sign over the fees:

@@ -81,7 +81,7 @@

#### `SIGN_MODE_DIRECT_AUX`

`SIGN_MODE_DIRECT_AUX` is a sign mode released in the Cosmos SDK v0.46 which targets transactions with multiple signers. Whereas `SIGN_MODE_DIRECT` expects each signer to sign over both `TxBody` and `AuthInfo` (which includes all other signers' signer infos, i.e. their account sequence, public key and mode info), `SIGN_MODE_DIRECT_AUX` allows N-1 signers to only sign over `TxBody` and _their own_ signer info. Morever, each auxiliary signer (i.e. a signer using `SIGN_MODE_DIRECT_AUX`) doesn't
`SIGN_MODE_DIRECT_AUX` is a sign mode released in the Cosmos SDK v0.46 which targets transactions with multiple signers. Whereas `SIGN_MODE_DIRECT` expects each signer to sign over both `TxBody` and `AuthInfo` (which includes all other signers' signer infos, i.e. their account sequence, public key and mode info), `SIGN_MODE_DIRECT_AUX` allows N-1 signers to only sign over `TxBody` and _their own_ signer info. Moreover, each auxiliary signer (i.e. a signer using `SIGN_MODE_DIRECT_AUX`) doesn't
need to sign over the fees:

```protobuf reference
Copy link
Contributor

Choose a reason for hiding this comment

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

The hunk mentions SIGN_MODE_TEXTUAL but does not provide a description of it. It would be beneficial for readers if a brief explanation of SIGN_MODE_TEXTUAL and its advantages or use cases were included.

@julienrbrt
Copy link
Member

Hi, thank you!
However your account seem to fire small PRs with typo fixes in many many repos.
We are in the process of automating typo fixing: #18671

@julienrbrt julienrbrt closed this Dec 11, 2023
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