github.com/okex/exchain@v1.8.0/libs/ibc-go/proto/ibc/applications/transfer/v1/query.proto (about) 1 syntax = "proto3"; 2 3 package ibc.applications.transfer.v1; 4 5 import "gogoproto/gogo.proto"; 6 import "cosmos/base/query/v1beta1/pagination.proto"; 7 import "ibc/applications/transfer/v1/transfer.proto"; 8 import "google/api/annotations.proto"; 9 10 option go_package = "github.com/cosmos/ibc-go/v2/modules/apps/transfer/types"; 11 12 // Query provides defines the gRPC querier service. 13 service Query { 14 // DenomTrace queries a denomination trace information. 15 rpc DenomTrace(QueryDenomTraceRequest) returns (QueryDenomTraceResponse) { 16 option (google.api.http).get = "/ibc/apps/transfer/v1/denom_traces/{hash}"; 17 } 18 19 // DenomTraces queries all denomination traces. 20 rpc DenomTraces(QueryDenomTracesRequest) returns (QueryDenomTracesResponse) { 21 option (google.api.http).get = "/ibc/apps/transfer/v1/denom_traces"; 22 } 23 24 // Params queries all parameters of the ibc-transfer module. 25 rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { 26 option (google.api.http).get = "/ibc/apps/transfer/v1/params"; 27 } 28 } 29 30 // QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC 31 // method 32 message QueryDenomTraceRequest { 33 // hash (in hex format) of the denomination trace information. 34 string hash = 1; 35 } 36 37 // QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC 38 // method. 39 message QueryDenomTraceResponse { 40 // denom_trace returns the requested denomination trace information. 41 DenomTrace denom_trace = 1; 42 } 43 44 // QueryConnectionsRequest is the request type for the Query/DenomTraces RPC 45 // method 46 message QueryDenomTracesRequest { 47 // pagination defines an optional pagination for the request. 48 cosmos.base.query.v1beta1.PageRequest pagination = 1; 49 } 50 51 // QueryConnectionsResponse is the response type for the Query/DenomTraces RPC 52 // method. 53 message QueryDenomTracesResponse { 54 // denom_traces returns all denominations trace information. 55 repeated DenomTrace denom_traces = 1 [(gogoproto.castrepeated) = "Traces", (gogoproto.nullable) = false]; 56 // pagination defines the pagination in the response. 57 cosmos.base.query.v1beta1.PageResponse pagination = 2; 58 } 59 60 // QueryParamsRequest is the request type for the Query/Params RPC method. 61 message QueryParamsRequest {} 62 63 // QueryParamsResponse is the response type for the Query/Params RPC method. 64 message QueryParamsResponse { 65 // params defines the parameters of the module. 66 Params params = 1; 67 }