InjectiveLabs / sdk-python

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

feat/ibc_connection_module_queries #322

Closed aarmoa closed 6 months ago

aarmoa commented 6 months ago

Solves CHAIN-83

Summary by CodeRabbit

coderabbitai[bot] commented 6 months ago

Walkthrough

The recent update enhances the IBC Connection module with support for various queries using asynchronous gRPC calls. It also improves cookie management logic and updates import paths in the pyinjective library.

Changes

Files Change Summary
CHANGELOG.md Added support for all queries in the "IBC Connection" module and refactored cookies management logic.
examples/chain_client/ibc/connection/query/1_Connection.py
examples/chain_client/ibc/connection/query/2_Connections.py
examples/chain_client/ibc/connection/query/3_ClientConnections.py
examples/chain_client/ibc/connection/query/4_ConnectionClientState.py
examples/chain_client/ibc/connection/query/5_ConnectionConsensusState.py
examples/chain_client/ibc/connection/query/6_ConnectionParams.py
Introduced new Python scripts for fetching IBC connection details using async clients in the Injective Protocol network.
pyinjective/async_client.py
pyinjective/core/ibc/connection/grpc/ibc_connection_grpc_api.py
Updated IBC client functionality, changed import paths, and added methods for IBC connection handling.
tests/core/ibc/client/grpc/test_ibc_client_grpc_api.py
tests/core/ibc/connection/grpc/configurable_ibc_connection_query_servicer.py
tests/core/ibc/connection/grpc/test_ibc_connection_grpc_api.py
Updated test cases for IBC client and introduced new test cases for IBC connection handling using gRPC calls.
.github/workflows/pre-commit.yml
.github/workflows/release.yml
.github/workflows/run-tests.yml
Updated GitHub Actions versions in workflow files for various tasks.

๐Ÿฐ๐ŸŽ‰ A hop, a skip, a code deploy, In the fields of gRPC, we enjoy. New paths we trace, with async grace, Connections link, in cyberspace. Celebrate, for the code rabbits play! ๐ŸŒŸ ๐Ÿฐ๐ŸŽ‰


Recent Review Details **Configuration used: .coderabbit.yaml** **Review profile: CHILL**
Commits Files that changed from the base of the PR and between 58f62c24a777f4487a3893211647d6191873385d and 0631678304b8cb7e557900a05f3c2f6dee23508f.
Files selected for processing (1) * .github/workflows/run-tests.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1) * .github/workflows/run-tests.yml
---
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `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](https://docs.coderabbit.ai/guides/configure-coderabbit) 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](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
socket-security[bot] commented 6 months ago

New and removed dependencies detected. Learn more about Socket for GitHub โ†—๏ธŽ

Package New capabilities Transitives Size Publisher
pypi/ckzg@1.4.2 None 0 243 kB jtraglia

๐Ÿšฎ Removed packages: pypi/pyyaml@6.0.1

View full reportโ†—๏ธŽ