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

Cleanup client config #1962

Merged
merged 6 commits into from
May 7, 2024
Merged

Cleanup client config #1962

merged 6 commits into from
May 7, 2024

Conversation

Taztingo
Copy link
Contributor

@Taztingo Taztingo commented May 1, 2024

Description

Remove the unneeded ReadFromClientConfig since we already do that and add textual signing.

Related to: #1760


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

Summary by CodeRabbit

  • Refactor
    • Streamlined client configuration and transaction signing setup.
  • New Features
    • Enhanced transaction signing configuration based on client's online status.

@Taztingo Taztingo requested a review from a team as a code owner May 1, 2024 14:07
Copy link
Contributor

coderabbitai bot commented May 1, 2024

Warning

Rate Limit Exceeded

@Taztingo has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 22 minutes and 12 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.
Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.
Please see our FAQ for further information.

Commits Files that changed from the base of the PR and between 351fe91 and 8c5ac35.

Walkthrough

The recent update streamlines transaction signing and client configuration management in the Provenance blockchain's codebase. It involves removing outdated dependencies and obsolete client setup logic while enhancing transaction signing configurations based on the client's online status for improved efficiency and context-aware operations.

Changes

File Path Change Summary
cmd/provenanced/cmd/root.go Removed unnecessary imports and related configuration logic for client and transaction signing.
cmd/provenanced/config/client.go Enhanced transaction signing configurations by adding new imports and adjusting ApplyClientConfigToContext based on client online status.

🐇✨
In the code garden, amidst the bytes and bits,
A rabbit hopped, fixing the kits.
With a twitch of the nose, and a flick of the ear,
Cleaner code appeared, oh so clear!
Cheers to changes, both big and small,
In the digital burrow, progress for all! 🌟
🐇


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.

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 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.

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.

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

Out of diff range and nitpick comments (24)
CHANGELOG.md (24)

Line range hint 781-781: Remove extra blank line.

-

Please remove the extra blank line to maintain a clean and consistent format in the document.


Line range hint 1182-1182: Remove extra blank line.

-

Please remove the extra blank line to maintain a clean and consistent format in the document.


Line range hint 1199-1199: Remove extra blank line.

-

Please remove the extra blank line to maintain a clean and consistent format in the document.


Line range hint 1251-1251: Remove extra blank line.

-

Please remove the extra blank line to maintain a clean and consistent format in the document.


Line range hint 1355-1355: Remove extra blank line.

-

Please remove the extra blank line to maintain a clean and consistent format in the document.


Line range hint 192-192: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 223-223: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 322-322: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 372-372: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 384-384: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 400-400: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 471-471: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 482-482: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 490-490: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 526-526: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 551-551: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 563-563: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 609-613: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 660-660: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 701-701: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 754-754: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 867-867: Avoid using bare URLs.

Consider using Markdown link syntax to make URLs clickable and improve the readability of the document.


Line range hint 909-909: Remove spaces inside emphasis markers.

- * message PR<pull-request-number>
+ * message PR<pull-request-number>

Please ensure that there are no spaces inside the emphasis markers to maintain proper Markdown formatting.


Line range hint 305-305: Remove spaces inside code span elements.

- ` message #<issue-number> `
+ `message #<issue-number>`

Please ensure that there are no spaces inside the code span elements to maintain proper Markdown formatting.

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

Out of diff range and nitpick comments (3)
CHANGELOG.md (3)

Line range hint 77-321: Consistent list formatting is recommended.

- * message #<issue-number>
+ * Message #<issue-number>

Ensure all list items begin with a capital letter for consistency.


Line range hint 195-616: Convert bare URLs to clickable links.

- https://github.com/provenance-io/provenance/issues/105
+ [Issue #105](https://github.com/provenance-io/provenance/issues/105)

This change should be applied to all bare URLs throughout the document to improve readability and accessibility.


Line range hint 784-1358: Reduce multiple consecutive blank lines to a single blank line.

-

This change should be applied wherever multiple blank lines are found to improve the cleanliness of the document.

@Taztingo Taztingo self-assigned this May 1, 2024
@Taztingo Taztingo enabled auto-merge (squash) May 2, 2024 18:14
@Taztingo Taztingo added this to the v1.19.0 milestone May 2, 2024
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: 0

Out of diff range and nitpick comments (8)
CHANGELOG.md (8)

Line range hint 77-321: Convert list markers from dashes to asterisks for consistency.

- -
+ *

Line range hint 785-785: Remove consecutive blank lines.

-

Line range hint 1186-1186: Remove consecutive blank lines.

-

Line range hint 1203-1203: Remove consecutive blank lines.

-

Line range hint 1255-1255: Remove consecutive blank lines.

-

Line range hint 1359-1359: Remove consecutive blank lines.

-

Line range hint 913-913: Remove spaces inside emphasis markers.

- * message * 
+ *message*

Line range hint 309-309: Remove spaces inside code span elements.

- ` message `
+ `message`
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 7ee7b92 and a284b2d.
Files selected for processing (1)
  • CHANGELOG.md (1 hunks)

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

Out of diff range and nitpick comments (1)
CHANGELOG.md (1)

Line range hint 77-321: Consistent list marker style is recommended.

- - Bump cosmos-SDK to `v0.50.2` (from `v0.46.13-pio-2`) [#1772](https://github.com/provenance-io/provenance/issues/1772).
+ * Bump cosmos-SDK to `v0.50.2` (from `v0.46.13-pio-2`) [#1772](https://github.com/provenance-io/provenance/issues/1772).
- - Add store for crisis module for sdk v0.50 [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Add store for crisis module for sdk v0.50 [#1760](https://github.com/provenance-io/provenance/issues/1760).
- - Add PreBlocker support for sdk v0.50 [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Add PreBlocker support for sdk v0.50 [#1760](https://github.com/provenance-io/provenance/issues/1760).
- - Add the Sanction module back in [#1922](https://github.com/provenance-io/provenance/pull/1922).
+ * Add the Sanction module back in [#1922](https://github.com/provenance-io/provenance/pull/1922).
- - Add the Quarantine module back in [#1926](https://github.com/provenance-io/provenance/pull/1926).
+ * Add the Quarantine module back in [#1926](https://github.com/provenance-io/provenance/pull/1926).
- - Bump wasmd to `v0.50.0` [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Bump wasmd to `v0.50.0` [#1760](https://github.com/provenance-io/provenance/issues/1760).
- - Remove unsupported database types [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Remove unsupported database types [#1760](https://github.com/provenance-io/provenance/issues/1760).
- - Update ibc and migrate params [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Update ibc and migrate params [#1760](https://github.com/provenance-io/provenance/issues/1760).
- - Replace ModuleBasics with BasicModuleManager [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Replace ModuleBasics with BasicModuleManager [#1760](https://github.com/provenance-io/provenance/issues/1760).
- - Remove handlers from provenance modules [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Remove handlers from provenance modules [#1760](https://github.com/provenance-io/provenance/issues/1760).
- - Updated app.go to use RegisterStreamingServices on BaseApp [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Updated app.go to use RegisterStreamingServices on BaseApp [#1760](https://github.com/provenance-io/provenance/issues/1760).
- - Bump the SDK to `v0.50.5-pio-1` (from an earlier ephemeral version) [#1897](https://github.com/provenance-io/provenance/pull/1897).
+ * Bump the SDK to `v0.50.5-pio-1` (from an earlier ephemeral version) [#1897](https://github.com/provenance-io/provenance/pull/1897).
- - Removed `rewards` module [#1905](https://github.com/provenance-io/provenance/pull/1905).
+ * Removed `rewards` module [#1905](https://github.com/provenance-io/provenance/pull/1905).
- - Remove unused navs [#1920](https://github.com/provenance-io/provenance/issues/1920).
+ * Remove unused navs [#1920](https://github.com/provenance-io/provenance/issues/1920).
- - Remove emitting of EventTypeMessage [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Remove emitting of EventTypeMessage [#1760](https://github.com/provenance-io/provenance/issues/1760).
- - Update genutil for sdk 50 [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Update genutil for sdk 50 [#1760](https://github.com/provenance-io/provenance/issues/1760).
- - Migrate module params from param space to module store.[#1760](https://github.com/provenance-io/provenance/issues/1935)
+ * Migrate module params from param space to module store.[#1760](https://github.com/provenance-io/provenance/issues/1935)
- - Restore the hold module [#1930](https://github.com/provenance-io/provenance/pull/1930).
+ * Restore the hold module [#1930](https://github.com/provenance-io/provenance/pull/1930).
- - Restore gov-prop cli commands and fix next key decoding [#1930](https://github.com/provenance-io/provenance/pull/1930).
+ * Restore gov-prop cli commands and fix next key decoding [#1930](https://github.com/provenance-io/provenance/pull/1930).
- - Switch to InputOutputCoinsProv for exchange transfers [#1930](https://github.com/provenance-io/provenance/pull/1930).
+ * Switch to InputOutputCoinsProv for exchange transfers [#1930](https://github.com/provenance-io/provenance/pull/1930).
- - Use fields of the SimulationState for the encoders needed for simulations [#1931](https://github.com/provenance-io/provenance/pull/1931).
+ * Use fields of the SimulationState for the encoders needed for simulations [#1931](https://github.com/provenance-io/provenance/pull/1931).
- - Fix most of the failing unit tests [#1943](https://github.com/provenance-io/provenance/pull/1943)
+ * Fix most of the failing unit tests [#1943](https://github.com/provenance-io/provenance/pull/1943)
- - Clean up ReadFromClient [#1760](https://github.com/provenance-io/provenance/issues/1760).
+ * Clean up ReadFromClient [#1760](https://github.com/provenance-io/provenance/issues/1760).
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between a284b2d and 351fe91.
Files selected for processing (1)
  • CHANGELOG.md (1 hunks)

@Taztingo Taztingo merged commit 6b3638a into main May 7, 2024
25 of 36 checks passed
@Taztingo Taztingo deleted the taztingo/client-config branch May 7, 2024 17:38
nullpointer0x00 pushed a commit that referenced this pull request May 15, 2024
* Remove ReadFromClientConfig since we already do this, and move the sign mode textual after this logic.

* Update changelog.
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