InjectiveLabs / sdk-python

Injective Exchange API for Python clients
Apache License 2.0
41 stars 27 forks source link

Feat/tendermint module queries #313

Closed aarmoa closed 7 months ago

aarmoa commented 7 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 7 months ago

Walkthrough

The update enhances the 'tendermint' module in version 1.5.0, expanding the async client's capabilities for interacting with the Tendermint blockchain. It introduces features for querying node information, syncing status, latest blocks, blocks by height, and validator sets. These enhancements are distributed across Python scripts, the core library, and test suites, bolstering support for Tendermint queries within the Injective Protocol ecosystem.

Changes

Files Change Summary
CHANGELOG.md
pyproject.toml
Updated version to 1.5.0, adding support for all 'tendermint' module queries.
examples/chain_client/tendermint/query/... Introduced new files for querying various Tendermint data using an async client.
pyinjective/async_client.py
.../core/tx/grpc/tendermint_grpc_api.py
Enhanced Tendermint module with new methods and TendermintGrpcApi class functionalities.
tests/.../configurable_tendermint_query_servicer.py
tests/.../test_tendermint_grpc_api.py
tests/test_async_client_deprecation_warnings.py
Added test suites for Tendermint features and a deprecation warning test.

🐇✨
In the digital fields where data blocks play,
A new update hops, making quite the display.
With queries so swift, through networks it bounds,
Fetching, printing, syncing, all in leaps and rounds.
"To version 1.5.0!" the rabbit declares,
A hop forward in tech, as the blockchain it fares.
🌟🐾


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 .` - `Generate unit-tests 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 tests 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 tests.` - `@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. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - 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` ### CodeRabbit Discord Community Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback.
codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 83.33333% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 76.40%. Comparing base (54e4622) to head (cdd4bb9).

Files Patch % Lines
pyinjective/async_client.py 64.00% 9 Missing :warning:
pyinjective/core/tx/grpc/tendermint_grpc_api.py 95.12% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #313 +/- ## ========================================== + Coverage 76.16% 76.40% +0.24% ========================================== Files 50 51 +1 Lines 4111 4170 +59 Branches 351 353 +2 ========================================== + Hits 3131 3186 +55 - Misses 875 878 +3 - Partials 105 106 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.