#grpc #ibc #cosmos #blockchain #rpc #client-connection

no-std ibc-query

Maintained by ibc-rs, contains essential IBC query types, utility functions and gRPC service implementations for the IBC core

14 releases (breaking)

0.56.0 Nov 15, 2024
0.55.0 Sep 27, 2024
0.53.0 May 14, 2024
0.51.0 Mar 26, 2024
0.48.1 Nov 27, 2023

#41 in #client-connection

Download history 16/week @ 2024-08-25 6/week @ 2024-09-01 16/week @ 2024-09-15 220/week @ 2024-09-22 38/week @ 2024-09-29 6/week @ 2024-10-06 163/week @ 2024-10-13 27/week @ 2024-10-20 3/week @ 2024-10-27 7/week @ 2024-11-03 120/week @ 2024-11-10 45/week @ 2024-11-17 36/week @ 2024-11-24 8/week @ 2024-12-01 55/week @ 2024-12-08

175 downloads per month
Used in 2 crates (via ibc-testkit)

Apache-2.0

160KB
3.5K SLoC

IBC Query

Overview

This crate offers a comprehensive set of utility types, traits, and functions designed for integrating either a gRPC query server or implementing RPC methods in hosts. It specifically facilitates querying the state of the IBC core client, connection, and channel layers of a chain enabled with ibc-rs.

Features

  • Provides essential utility request/response domain types and their conversions to the proto types for efficient integration.
  • Provides convenient query objects with pre-implemented gRPC query services.
  • Offers convenient objects on which query service has been implemented and
  • Includes convenient QueryContext and ProvableContext traits that extend the capabilities of an implemented IBC module, enabling the retrieval of state from the chain.
  • Derives serde and schema for all the domain types enabling easy (de)serialization. This feature is particularly beneficial for JSON RPC implementations.

Remarks

  • At present, the Protobuf representation of request types does not include support for querying at a specific height. Consequently, the current state of ibc-query allows conversion from protos as a compatible direction but does not support conversion into protos due to the absence of the query_height fields.

  • Currently ibc-query does not support pagination. If pagination is a requirement for your project, please open an issue and provide details about your usage.

Dependencies

~23–31MB
~529K SLoC