@@ -10,65 +10,87 @@ import "neutron/interchainqueries/tx.proto";
1010
1111option go_package = "github.com/neutron-org/neutron/v5/x/interchainqueries/types" ;
1212
13- // Query defines the gRPC querier service .
13+ // Defines the Query interface of the module .
1414service Query {
15- // Parameters queries the parameters of the module.
15+ // Fetches the current parameters of the interchainqueries module.
1616 rpc Params (QueryParamsRequest ) returns (QueryParamsResponse ) {
1717 option (google.api.http ).get = "/neutron/interchainqueries/params" ;
1818 }
19-
19+ // Retrieves all registered Interchain Queries in the module, with optional filtering by owner
20+ // and/or connection ID.
2021 rpc RegisteredQueries (QueryRegisteredQueriesRequest ) returns (QueryRegisteredQueriesResponse ) {
2122 option (google.api.http ).get = "/neutron/interchainqueries/registered_queries" ;
2223 }
23-
24+ // Fetches details of a registered Interchain Query using its ID.
2425 rpc RegisteredQuery (QueryRegisteredQueryRequest ) returns (QueryRegisteredQueryResponse ) {
2526 option (google.api.http ).get = "/neutron/interchainqueries/registered_query" ;
2627 }
27-
28+ // Retrieves the most recent successfully submitted result of an Interchain Query. This is only
29+ // applicable for KV Interchain Queries.
2830 rpc QueryResult (QueryRegisteredQueryResultRequest ) returns (QueryRegisteredQueryResultResponse ) {
2931 option (google.api.http ).get = "/neutron/interchainqueries/query_result" ;
3032 }
31-
33+ // Retrieves the most recent height of a remote chain as known by the IBC client associated with
34+ // a given connection ID.
3235 rpc LastRemoteHeight (QueryLastRemoteHeight ) returns (QueryLastRemoteHeightResponse ) {
3336 option (google.api.http ).get = "/neutron/interchainqueries/remote_height" ;
3437 }
3538}
3639
37- // QueryParamsRequest is request type for the Query/Params RPC method.
40+ // Request type for the Query/Params RPC method.
3841message QueryParamsRequest {}
3942
40- // QueryParamsResponse is response type for the Query/Params RPC method.
43+ // Response type for the Query/Params RPC method.
4144message QueryParamsResponse {
42- // params holds all the parameters of this module.
45+ // Contains all parameters of the module.
4346 Params params = 1 [(gogoproto.nullable ) = false ];
4447}
4548
49+ // Request type for the Query/RegisteredQueries RPC method.
4650message QueryRegisteredQueriesRequest {
51+ // A list of owners of Interchain Queries. Query response will contain only Interchain Queries
52+ // that are owned by one of the owners in the list. If none, Interchain Queries are not filtered
53+ // out by the owner field.
4754 repeated string owners = 1 ;
55+ // IBC connection ID. Query response will contain only Interchain Queries that have the same IBC
56+ // connection ID parameter. If none, Interchain Queries are not filtered out by the connection ID
57+ // field.
4858 string connection_id = 2 ;
59+ // Pagination parameters for the request. Use values from previous response in the next request
60+ // in consecutive requests with paginated responses.
4961 cosmos.base.query.v1beta1.PageRequest pagination = 3 ;
5062}
5163
64+ // Response type for the Query/RegisteredQueries RPC method.
5265message QueryRegisteredQueriesResponse {
66+ // A list of registered Interchain Queries.
5367 repeated RegisteredQuery registered_queries = 1 [(gogoproto.nullable ) = false ];
54-
55- // pagination defines the pagination in the response .
68+ // Current page information. Use values from previous response in the next request in consecutive
69+ // requests with paginated responses .
5670 cosmos.base.query.v1beta1.PageResponse pagination = 2 ;
5771}
5872
73+ // Request type for the Query/RegisteredQuery RPC method.
5974message QueryRegisteredQueryRequest {
75+ // ID of an Interchain Query.
6076 uint64 query_id = 1 ;
6177}
6278
79+ // Response type for the Query/RegisteredQuery RPC method.
6380message QueryRegisteredQueryResponse {
81+ // A registered Interchain Query.
6482 RegisteredQuery registered_query = 1 ;
6583}
6684
85+ // Request type for the Query/QueryResult RPC method.
6786message QueryRegisteredQueryResultRequest {
87+ // ID of an Interchain Query.
6888 uint64 query_id = 1 ;
6989}
7090
91+ // Response type for the Query/QueryResult RPC method.
7192message QueryRegisteredQueryResultResponse {
93+ // The last successfully submitted result of an Interchain Query.
7294 QueryResult result = 1 ;
7395}
7496
@@ -78,10 +100,17 @@ message Transaction {
78100 bytes data = 3 ;
79101}
80102
103+ // Request type for the Query/LastRemoteHeight RPC method.
81104message QueryLastRemoteHeight {
105+ // Connection ID of an IBC connection to a remote chain. Determines the IBC client used in query
106+ // handling.
82107 string connection_id = 1 ;
83108}
84109
110+ // Response type for the Query/LastRemoteHeight RPC method.
85111message QueryLastRemoteHeightResponse {
112+ // The height of the chain that the IBC client is currently on.
86113 uint64 height = 1 ;
114+ // The revision of the chain that the IBC client is currently on.
115+ uint64 revision = 2 ;
87116}
0 commit comments