From fb46ea89ead42ced80aff3a089809392e44b2080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Colin=20Axn=C3=A9r?= <25233464+colin-axner@users.noreply.github.com> Date: Mon, 12 Jul 2021 16:57:52 +0200 Subject: [PATCH 1/2] generate proto files --- docs/ibc/proto-docs.md | 45 ++ modules/apps/transfer/types/query.pb.go | 178 ++++- modules/apps/transfer/types/query.pb.gw.go | 36 + modules/core/02-client/types/query.pb.go | 415 +++++++++-- modules/core/02-client/types/query.pb.gw.go | 90 +++ modules/core/03-connection/types/query.pb.go | 295 ++++++-- .../core/03-connection/types/query.pb.gw.go | 72 ++ modules/core/04-channel/types/query.pb.go | 658 +++++++++++++++--- modules/core/04-channel/types/query.pb.gw.go | 162 +++++ .../ibc/applications/transfer/v1/query.proto | 6 +- proto/ibc/core/channel/v1/query.proto | 27 + proto/ibc/core/client/v1/query.proto | 25 +- proto/ibc/core/connection/v1/query.proto | 10 + 13 files changed, 1765 insertions(+), 254 deletions(-) diff --git a/docs/ibc/proto-docs.md b/docs/ibc/proto-docs.md index cae068cf68c..134f0353001 100644 --- a/docs/ibc/proto-docs.md +++ b/docs/ibc/proto-docs.md @@ -368,6 +368,7 @@ method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `hash` | [string](#string) | | hash (in hex format) of the denomination trace information. | +| `height` | [uint64](#uint64) | | | @@ -400,6 +401,7 @@ method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. | +| `height` | [uint64](#uint64) | | | @@ -429,6 +431,11 @@ method. QueryParamsRequest is the request type for the Query/Params RPC method. +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `height` | [uint64](#uint64) | | | + + @@ -918,6 +925,7 @@ RPC method | ----- | ---- | ----- | ----------- | | `port_id` | [string](#string) | | port unique identifier | | `channel_id` | [string](#string) | | channel unique identifier | +| `height` | [uint64](#uint64) | | query height | @@ -955,6 +963,7 @@ Query/ConsensusState RPC method | `channel_id` | [string](#string) | | channel unique identifier | | `revision_number` | [uint64](#uint64) | | revision number of the consensus state | | `revision_height` | [uint64](#uint64) | | revision height of the consensus state | +| `height` | [uint64](#uint64) | | query height | @@ -990,6 +999,7 @@ QueryChannelRequest is the request type for the Query/Channel RPC method | ----- | ---- | ----- | ----------- | | `port_id` | [string](#string) | | port unique identifier | | `channel_id` | [string](#string) | | channel unique identifier | +| `height` | [uint64](#uint64) | | query height | @@ -1024,6 +1034,7 @@ QueryChannelsRequest is the request type for the Query/Channels RPC method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination request | +| `height` | [uint64](#uint64) | | query height | @@ -1058,6 +1069,7 @@ Query/QueryConnectionChannels RPC method | ----- | ---- | ----- | ----------- | | `connection` | [string](#string) | | connection unique identifier | | `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination request | +| `height` | [uint64](#uint64) | | query height | @@ -1093,6 +1105,7 @@ Query/QueryNextSequenceReceiveRequest RPC method | ----- | ---- | ----- | ----------- | | `port_id` | [string](#string) | | port unique identifier | | `channel_id` | [string](#string) | | channel unique identifier | +| `height` | [uint64](#uint64) | | query height | @@ -1129,6 +1142,7 @@ Query/PacketAcknowledgement RPC method | `port_id` | [string](#string) | | port unique identifier | | `channel_id` | [string](#string) | | channel unique identifier | | `sequence` | [uint64](#uint64) | | packet sequence | +| `height` | [uint64](#uint64) | | query height | @@ -1166,6 +1180,7 @@ Query/QueryPacketCommitments RPC method | `port_id` | [string](#string) | | port unique identifier | | `channel_id` | [string](#string) | | channel unique identifier | | `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination request | +| `height` | [uint64](#uint64) | | query height | @@ -1202,6 +1217,7 @@ Query/PacketCommitment RPC method | `port_id` | [string](#string) | | port unique identifier | | `channel_id` | [string](#string) | | channel unique identifier | | `sequence` | [uint64](#uint64) | | packet sequence | +| `height` | [uint64](#uint64) | | query height | @@ -1239,6 +1255,7 @@ Query/QueryPacketCommitments RPC method | `port_id` | [string](#string) | | port unique identifier | | `channel_id` | [string](#string) | | channel unique identifier | | `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination request | +| `height` | [uint64](#uint64) | | query height | @@ -1275,6 +1292,7 @@ Query/PacketReceipt RPC method | `port_id` | [string](#string) | | port unique identifier | | `channel_id` | [string](#string) | | channel unique identifier | | `sequence` | [uint64](#uint64) | | packet sequence | +| `height` | [uint64](#uint64) | | query height | @@ -1312,6 +1330,7 @@ Query/UnreceivedAcks RPC method | `port_id` | [string](#string) | | port unique identifier | | `channel_id` | [string](#string) | | channel unique identifier | | `packet_ack_sequences` | [uint64](#uint64) | repeated | list of acknowledgement sequences | +| `height` | [uint64](#uint64) | | query height | @@ -1347,6 +1366,7 @@ Query/UnreceivedPackets RPC method | `port_id` | [string](#string) | | port unique identifier | | `channel_id` | [string](#string) | | channel unique identifier | | `packet_commitment_sequences` | [uint64](#uint64) | repeated | list of packet sequences | +| `height` | [uint64](#uint64) | | query height | @@ -1818,6 +1838,11 @@ QueryClientParamsRequest is the request type for the Query/ClientParams RPC method. +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `height` | [uint64](#uint64) | | query height | + + @@ -1848,6 +1873,7 @@ method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `client_id` | [string](#string) | | client state unique identifier | +| `height` | [uint64](#uint64) | | query height | @@ -1883,6 +1909,7 @@ method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination request | +| `height` | [uint64](#uint64) | | query height | @@ -1916,6 +1943,7 @@ method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `client_id` | [string](#string) | | client unique identifier | +| `height` | [uint64](#uint64) | | query height | @@ -1952,6 +1980,7 @@ from which the proof was retrieved. | `revision_number` | [uint64](#uint64) | | consensus state revision number | | `revision_height` | [uint64](#uint64) | | consensus state revision height | | `latest_height` | [bool](#bool) | | latest_height overrrides the height field and queries the latest stored ConsensusState | +| `height` | [uint64](#uint64) | | query height | @@ -1987,6 +2016,7 @@ RPC method. | ----- | ---- | ----- | ----------- | | `client_id` | [string](#string) | | client identifier | | `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination request | +| `height` | [uint64](#uint64) | | query height | @@ -2017,6 +2047,11 @@ QueryUpgradedClientStateRequest is the request type for the Query/UpgradedClientState RPC method +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `height` | [uint64](#uint64) | | query height | + + @@ -2044,6 +2079,11 @@ QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState RPC method +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `height` | [uint64](#uint64) | | query height | + + @@ -2524,6 +2564,7 @@ Query/ClientConnections RPC method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `client_id` | [string](#string) | | client identifier associated with a connection | +| `height` | [uint64](#uint64) | | query height | @@ -2558,6 +2599,7 @@ Query/ConnectionClientState RPC method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `connection_id` | [string](#string) | | connection identifier | +| `height` | [uint64](#uint64) | | query height | @@ -2594,6 +2636,7 @@ Query/ConnectionConsensusState RPC method | `connection_id` | [string](#string) | | connection identifier | | `revision_number` | [uint64](#uint64) | | | | `revision_height` | [uint64](#uint64) | | | +| `height` | [uint64](#uint64) | | query height | @@ -2629,6 +2672,7 @@ method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `connection_id` | [string](#string) | | connection unique identifier | +| `height` | [uint64](#uint64) | | query height | @@ -2664,6 +2708,7 @@ method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | | +| `height` | [uint64](#uint64) | | query height | diff --git a/modules/apps/transfer/types/query.pb.go b/modules/apps/transfer/types/query.pb.go index 082172d2c1e..c06b6b71e6b 100644 --- a/modules/apps/transfer/types/query.pb.go +++ b/modules/apps/transfer/types/query.pb.go @@ -34,7 +34,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // method type QueryDenomTraceRequest struct { // hash (in hex format) of the denomination trace information. - Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryDenomTraceRequest) Reset() { *m = QueryDenomTraceRequest{} } @@ -77,6 +78,13 @@ func (m *QueryDenomTraceRequest) GetHash() string { return "" } +func (m *QueryDenomTraceRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC // method. type QueryDenomTraceResponse struct { @@ -129,6 +137,7 @@ func (m *QueryDenomTraceResponse) GetDenomTrace() *DenomTrace { type QueryDenomTracesRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryDenomTracesRequest) Reset() { *m = QueryDenomTracesRequest{} } @@ -171,6 +180,13 @@ func (m *QueryDenomTracesRequest) GetPagination() *query.PageRequest { return nil } +func (m *QueryDenomTracesRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryConnectionsResponse is the response type for the Query/DenomTraces RPC // method. type QueryDenomTracesResponse struct { @@ -229,6 +245,7 @@ func (m *QueryDenomTracesResponse) GetPagination() *query.PageResponse { // QueryParamsRequest is the request type for the Query/Params RPC method. type QueryParamsRequest struct { + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } @@ -264,6 +281,13 @@ func (m *QueryParamsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo +func (m *QueryParamsRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryParamsResponse is the response type for the Query/Params RPC method. type QueryParamsResponse struct { // params defines the parameters of the module. @@ -324,41 +348,42 @@ func init() { } var fileDescriptor_a638e2800a01538c = []byte{ - // 529 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4f, 0x8b, 0xd3, 0x40, - 0x14, 0xef, 0xec, 0x6a, 0xc1, 0x57, 0xf1, 0x30, 0x2e, 0x5a, 0x42, 0xc9, 0x2e, 0xa1, 0x68, 0xdd, - 0xd5, 0x19, 0xb3, 0xae, 0x9e, 0x3c, 0x2d, 0xa2, 0x78, 0x91, 0xb5, 0x7a, 0xd2, 0x83, 0x4c, 0xd2, - 0x31, 0x0d, 0x34, 0x99, 0x6c, 0x26, 0x2d, 0x2c, 0xe2, 0xc5, 0x4f, 0x20, 0xec, 0x97, 0x10, 0xf1, - 0x43, 0x78, 0xdc, 0xe3, 0x82, 0x17, 0x4f, 0x2a, 0xad, 0xdf, 0xc1, 0xab, 0x64, 0x66, 0xb2, 0x4d, - 0xec, 0xd2, 0x9a, 0xdb, 0xf0, 0xf2, 0x7e, 0xef, 0xf7, 0xe7, 0x3d, 0x02, 0xbd, 0xd0, 0xf3, 0x29, - 0x4b, 0x92, 0x51, 0xe8, 0xb3, 0x2c, 0x14, 0xb1, 0xa4, 0x59, 0xca, 0x62, 0xf9, 0x96, 0xa7, 0x74, - 0xe2, 0xd2, 0xc3, 0x31, 0x4f, 0x8f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0b, 0xc2, 0x6c, 0x38, 0xf6, 0x88, 0x2f, 0x22, 0x6a, 0x7e, 0x5d, 0xa1, 0xe7, 0xdf, - 0x09, 0x04, 0x8d, 0xc4, 0x60, 0x3c, 0xe2, 0xf2, 0x9f, 0x99, 0xd9, 0x51, 0xc2, 0xa5, 0xd7, 0x54, - 0x7f, 0x9d, 0x7b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x6f, 0xd8, 0x1c, 0x4c, 0x05, 0x00, - 0x00, + // 554 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xc1, 0x6e, 0xd3, 0x30, + 0x18, 0xc7, 0xeb, 0x6e, 0x44, 0xc2, 0x45, 0x1c, 0x0c, 0x1a, 0x55, 0x54, 0x65, 0x55, 0x54, 0x41, + 0xd9, 0xc0, 0x26, 0x63, 0x70, 0xe2, 0x34, 0x4d, 0x20, 0x2e, 0x68, 0x14, 0x4e, 0x70, 0x40, 0x4e, + 0x6a, 0x92, 0x48, 0x4d, 0x9c, 0xc5, 0x6e, 0xa5, 0x0a, 0x71, 0xe1, 0x09, 0x90, 0xf6, 0x12, 0x08, + 0xf1, 0x10, 0x1c, 0x77, 0x9c, 0xc4, 0x85, 0x13, 0xa0, 0x96, 0x77, 0xe0, 0x8a, 0xe2, 0xb8, 0x6d, + 0x42, 0x47, 0xbb, 0xdc, 0x5c, 0xf7, 0xfb, 0xfe, 0xdf, 0xff, 0xf7, 0xb7, 0x63, 0xd8, 0x0d, 0x5d, + 0x8f, 0xd0, 0x24, 0x19, 0x84, 0x1e, 0x95, 0x21, 0x8f, 0x05, 0x91, 0x29, 0x8d, 0xc5, 0x5b, 0x96, + 0x92, 0x91, 0x43, 0x8e, 0x87, 0x2c, 0x1d, 0xe3, 0x24, 0xe5, 0x92, 0xa3, 0x56, 0xe8, 0x7a, 0xb8, + 0x58, 0x89, 0x67, 0x95, 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, 0xad, 0xda, 0xd9, 0xd4, 0xaa, 0x7d, 0x9f, 0x5a, 0xb5, 0x57, 0xfb, 0x7e, 0x28, 0x83, 0xa1, + 0x8b, 0x3d, 0x1e, 0x11, 0xfd, 0x04, 0x86, 0xae, 0x77, 0xd7, 0xe7, 0x24, 0xe2, 0xfd, 0xe1, 0x80, + 0x89, 0x7f, 0x34, 0xe5, 0x38, 0x61, 0xc2, 0x35, 0xd4, 0xeb, 0x75, 0xff, 0x6f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xcb, 0x96, 0xab, 0x9c, 0x94, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -539,6 +564,11 @@ func (m *QueryDenomTraceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } if len(m.Hash) > 0 { i -= len(m.Hash) copy(dAtA[i:], m.Hash) @@ -604,6 +634,11 @@ func (m *QueryDenomTracesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) @@ -688,6 +723,11 @@ func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -747,6 +787,9 @@ func (m *QueryDenomTraceRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -773,6 +816,9 @@ func (m *QueryDenomTracesRequest) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -801,6 +847,9 @@ func (m *QueryParamsRequest) Size() (n int) { } var l int _ = l + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -884,6 +933,25 @@ func (m *QueryDenomTraceRequest) Unmarshal(dAtA []byte) error { } m.Hash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -1056,6 +1124,25 @@ func (m *QueryDenomTracesRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -1226,6 +1313,25 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/modules/apps/transfer/types/query.pb.gw.go b/modules/apps/transfer/types/query.pb.gw.go index 0cd48139ccc..1c2f532f34c 100644 --- a/modules/apps/transfer/types/query.pb.gw.go +++ b/modules/apps/transfer/types/query.pb.gw.go @@ -31,6 +31,10 @@ var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var ( + filter_Query_DenomTrace_0 = &utilities.DoubleArray{Encoding: map[string]int{"hash": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + func request_Query_DenomTrace_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryDenomTraceRequest var metadata runtime.ServerMetadata @@ -53,6 +57,13 @@ func request_Query_DenomTrace_0(ctx context.Context, marshaler runtime.Marshaler return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "hash", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_DenomTrace_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.DenomTrace(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -80,6 +91,13 @@ func local_request_Query_DenomTrace_0(ctx context.Context, marshaler runtime.Mar return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "hash", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_DenomTrace_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.DenomTrace(ctx, &protoReq) return msg, metadata, err @@ -121,10 +139,21 @@ func local_request_Query_DenomTraces_0(ctx context.Context, marshaler runtime.Ma } +var ( + filter_Query_Params_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryParamsRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Params_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -134,6 +163,13 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal var protoReq QueryParamsRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Params_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.Params(ctx, &protoReq) return msg, metadata, err diff --git a/modules/core/02-client/types/query.pb.go b/modules/core/02-client/types/query.pb.go index 0e62431265a..4126e9f45fe 100644 --- a/modules/core/02-client/types/query.pb.go +++ b/modules/core/02-client/types/query.pb.go @@ -36,6 +36,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type QueryClientStateRequest struct { // client state unique identifier ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + // query height + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryClientStateRequest) Reset() { *m = QueryClientStateRequest{} } @@ -78,6 +80,13 @@ func (m *QueryClientStateRequest) GetClientId() string { return "" } +func (m *QueryClientStateRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryClientStateResponse is the response type for the Query/ClientState RPC // method. Besides the client state, it includes a proof and the height from // which the proof was retrieved. @@ -149,6 +158,8 @@ func (m *QueryClientStateResponse) GetProofHeight() Height { type QueryClientStatesRequest struct { // pagination request Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + // query height + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryClientStatesRequest) Reset() { *m = QueryClientStatesRequest{} } @@ -191,6 +202,13 @@ func (m *QueryClientStatesRequest) GetPagination() *query.PageRequest { return nil } +func (m *QueryClientStatesRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryClientStatesResponse is the response type for the Query/ClientStates RPC // method. type QueryClientStatesResponse struct { @@ -260,6 +278,8 @@ type QueryConsensusStateRequest struct { // latest_height overrrides the height field and queries the latest stored // ConsensusState LatestHeight bool `protobuf:"varint,4,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` + // query height + Height uint64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryConsensusStateRequest) Reset() { *m = QueryConsensusStateRequest{} } @@ -323,6 +343,13 @@ func (m *QueryConsensusStateRequest) GetLatestHeight() bool { return false } +func (m *QueryConsensusStateRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryConsensusStateResponse is the response type for the Query/ConsensusState // RPC method type QueryConsensusStateResponse struct { @@ -395,6 +422,8 @@ type QueryConsensusStatesRequest struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // pagination request Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + // query height + Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryConsensusStatesRequest) Reset() { *m = QueryConsensusStatesRequest{} } @@ -444,6 +473,13 @@ func (m *QueryConsensusStatesRequest) GetPagination() *query.PageRequest { return nil } +func (m *QueryConsensusStatesRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryConsensusStatesResponse is the response type for the // Query/ConsensusStates RPC method type QueryConsensusStatesResponse struct { @@ -505,6 +541,8 @@ func (m *QueryConsensusStatesResponse) GetPagination() *query.PageResponse { type QueryClientStatusRequest struct { // client unique identifier ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + // query height + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryClientStatusRequest) Reset() { *m = QueryClientStatusRequest{} } @@ -547,6 +585,13 @@ func (m *QueryClientStatusRequest) GetClientId() string { return "" } +func (m *QueryClientStatusRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryClientStatusResponse is the response type for the Query/ClientStatus RPC // method. It returns the current status of the IBC client. type QueryClientStatusResponse struct { @@ -596,6 +641,8 @@ func (m *QueryClientStatusResponse) GetStatus() string { // QueryClientParamsRequest is the request type for the Query/ClientParams RPC // method. type QueryClientParamsRequest struct { + // query height + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryClientParamsRequest) Reset() { *m = QueryClientParamsRequest{} } @@ -631,6 +678,13 @@ func (m *QueryClientParamsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryClientParamsRequest proto.InternalMessageInfo +func (m *QueryClientParamsRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryClientParamsResponse is the response type for the Query/ClientParams RPC // method. type QueryClientParamsResponse struct { @@ -681,6 +735,8 @@ func (m *QueryClientParamsResponse) GetParams() *Params { // QueryUpgradedClientStateRequest is the request type for the // Query/UpgradedClientState RPC method type QueryUpgradedClientStateRequest struct { + // query height + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryUpgradedClientStateRequest) Reset() { *m = QueryUpgradedClientStateRequest{} } @@ -716,6 +772,13 @@ func (m *QueryUpgradedClientStateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryUpgradedClientStateRequest proto.InternalMessageInfo +func (m *QueryUpgradedClientStateRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryUpgradedClientStateResponse is the response type for the // Query/UpgradedClientState RPC method. type QueryUpgradedClientStateResponse struct { @@ -766,6 +829,8 @@ func (m *QueryUpgradedClientStateResponse) GetUpgradedClientState() *types.Any { // QueryUpgradedConsensusStateRequest is the request type for the // Query/UpgradedConsensusState RPC method type QueryUpgradedConsensusStateRequest struct { + // query height + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryUpgradedConsensusStateRequest) Reset() { *m = QueryUpgradedConsensusStateRequest{} } @@ -801,6 +866,13 @@ func (m *QueryUpgradedConsensusStateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryUpgradedConsensusStateRequest proto.InternalMessageInfo +func (m *QueryUpgradedConsensusStateRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryUpgradedConsensusStateResponse is the response type for the // Query/UpgradedConsensusState RPC method. type QueryUpgradedConsensusStateResponse struct { @@ -870,69 +942,70 @@ func init() { func init() { proto.RegisterFile("ibc/core/client/v1/query.proto", fileDescriptor_dc42cdfd1d52d76e) } var fileDescriptor_dc42cdfd1d52d76e = []byte{ - // 981 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xa4, 0x69, 0xd4, 0x3e, 0xbb, 0x09, 0x9a, 0xa6, 0xa9, 0xbb, 0x2d, 0x8e, 0xbb, 0x41, - 0x34, 0x2d, 0xc9, 0x4e, 0xe2, 0xd0, 0x86, 0x0b, 0x07, 0x52, 0xa9, 0xb4, 0x97, 0xb6, 0x2c, 0x42, - 0x48, 0x48, 0x28, 0xda, 0x5d, 0x4f, 0x36, 0x2b, 0xd9, 0x3b, 0xae, 0x67, 0x27, 0x52, 0x54, 0xe5, - 0x40, 0x8f, 0x9c, 0x90, 0x90, 0xb8, 0x22, 0x71, 0xe4, 0x50, 0x71, 0x40, 0xe2, 0xca, 0x09, 0xf5, - 0x58, 0x09, 0x0e, 0x9c, 0x08, 0x4a, 0xf8, 0x43, 0x90, 0x67, 0x66, 0xe3, 0x9d, 0x78, 0x8c, 0xd7, - 0x08, 0x6e, 0x3b, 0xef, 0xf3, 0xf7, 0x3e, 0xe6, 0x37, 0x5a, 0xa8, 0x27, 0x61, 0x44, 0x22, 0xd6, - 0xa3, 0x24, 0x6a, 0x27, 0x34, 0xcd, 0xc8, 0xfe, 0x06, 0x79, 0x26, 0x68, 0xef, 0xc0, 0xeb, 0xf6, - 0x58, 0xc6, 0x30, 0x4e, 0xc2, 0xc8, 0xeb, 0xeb, 0x3d, 0xa5, 0xf7, 0xf6, 0x37, 0x9c, 0x3b, 0x11, - 0xe3, 0x1d, 0xc6, 0x49, 0x18, 0x70, 0xaa, 0x8c, 0xc9, 0xfe, 0x46, 0x48, 0xb3, 0x60, 0x83, 0x74, - 0x83, 0x38, 0x49, 0x83, 0x2c, 0x61, 0xa9, 0xf2, 0x77, 0x96, 0x2c, 0xf1, 0x75, 0x24, 0x65, 0x70, - 0x2d, 0x66, 0x2c, 0x6e, 0x53, 0x22, 0x4f, 0xa1, 0xd8, 0x25, 0x41, 0xaa, 0x73, 0x3b, 0x37, 0xb4, - 0x2a, 0xe8, 0x26, 0x24, 0x48, 0x53, 0x96, 0xc9, 0xc0, 0x5c, 0x6b, 0x17, 0x62, 0x16, 0x33, 0xf9, - 0x49, 0xfa, 0x5f, 0x4a, 0xea, 0xde, 0x83, 0xab, 0x1f, 0xf5, 0x11, 0xdd, 0x97, 0x39, 0x3e, 0xce, - 0x82, 0x8c, 0xfa, 0xf4, 0x99, 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 0x5c, 0xd3, 0x79, 0xb2, 0x83, - 0x2e, 0xe5, 0xe1, 0xac, 0xa4, 0xfe, 0xcd, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x50, 0xa9, 0x40, - 0x56, 0x95, 0x0d, 0x00, 0x00, + // 1008 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xce, 0xe4, 0x97, 0xda, 0x67, 0x37, 0x41, 0xd3, 0xd4, 0x75, 0xdd, 0xe2, 0x98, 0x8d, 0x44, + 0xd3, 0x92, 0xec, 0x24, 0x0e, 0xa5, 0x20, 0xc1, 0x81, 0x54, 0x2a, 0xed, 0x25, 0x29, 0x8b, 0x10, + 0x12, 0x12, 0x8a, 0x76, 0xd7, 0x93, 0xcd, 0x4a, 0xf6, 0x8e, 0xeb, 0xd9, 0x8d, 0x14, 0xaa, 0x1c, + 0xe0, 0xc8, 0x09, 0x09, 0x89, 0x03, 0x17, 0x24, 0x8e, 0x1c, 0x7a, 0x42, 0xe2, 0xca, 0x09, 0xe5, + 0x58, 0x09, 0x0e, 0x9c, 0x28, 0x4a, 0xf8, 0x43, 0x90, 0x67, 0x66, 0xed, 0x9d, 0x78, 0x16, 0xaf, + 0x15, 0xb8, 0xed, 0xbe, 0x9f, 0xdf, 0x7b, 0xef, 0xf3, 0xb7, 0x09, 0xd4, 0x43, 0xcf, 0x27, 0x3e, + 0xeb, 0x51, 0xe2, 0xb7, 0x43, 0x1a, 0xc5, 0xe4, 0x70, 0x93, 0x3c, 0x4d, 0x68, 0xef, 0xc8, 0xee, + 0xf6, 0x58, 0xcc, 0x30, 0x0e, 0x3d, 0xdf, 0xee, 0xfb, 0x6d, 0xe9, 0xb7, 0x0f, 0x37, 0x6b, 0x77, + 0x7d, 0xc6, 0x3b, 0x8c, 0x13, 0xcf, 0xe5, 0x54, 0x06, 0x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b7, 0x72, 0xbb, 0xe4, 0x2b, 0x72, 0xed, 0xcd, 0xc9, 0x92, 0x14, + 0xc2, 0xa6, 0x40, 0xb8, 0x86, 0xef, 0x9a, 0xd6, 0x68, 0x54, 0x69, 0x8e, 0x7f, 0x41, 0x50, 0x31, + 0x6b, 0x26, 0x7e, 0x6b, 0x3c, 0x08, 0xe3, 0x6f, 0xf1, 0xfe, 0xc4, 0x79, 0x45, 0x68, 0x90, 0x27, + 0xdb, 0x7c, 0x7b, 0xf7, 0xe4, 0xb4, 0x8e, 0x5e, 0x9c, 0xd6, 0xd1, 0x5f, 0xa7, 0x75, 0xf4, 0xf5, + 0x59, 0x7d, 0xea, 0xc5, 0x59, 0x7d, 0xea, 0x8f, 0xb3, 0xfa, 0xd4, 0xa7, 0xf7, 0x82, 0x30, 0x3e, + 0x48, 0x3c, 0xdb, 0x67, 0x1d, 0xa2, 0xfe, 0xd9, 0x0b, 0x3d, 0x7f, 0x3d, 0x60, 0xa4, 0xc3, 0x5a, + 0x49, 0x9b, 0x72, 0xd9, 0x64, 0xa3, 0xb9, 0xae, 0xfa, 0xc4, 0x47, 0x5d, 0xca, 0xbd, 0x79, 0x21, + 0xfd, 0x5b, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x1a, 0x97, 0x08, 0x55, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1307,6 +1380,11 @@ func (m *QueryClientStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } if len(m.ClientId) > 0 { i -= len(m.ClientId) copy(dAtA[i:], m.ClientId) @@ -1389,6 +1467,11 @@ func (m *QueryClientStatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) @@ -1473,6 +1556,11 @@ func (m *QueryConsensusStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, err _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x28 + } if m.LatestHeight { i-- if m.LatestHeight { @@ -1575,6 +1663,11 @@ func (m *QueryConsensusStatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, er _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x18 + } if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) @@ -1666,6 +1759,11 @@ func (m *QueryClientStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } if len(m.ClientId) > 0 { i -= len(m.ClientId) copy(dAtA[i:], m.ClientId) @@ -1726,6 +1824,11 @@ func (m *QueryClientParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -1784,6 +1887,11 @@ func (m *QueryUpgradedClientStateRequest) MarshalToSizedBuffer(dAtA []byte) (int _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -1842,6 +1950,11 @@ func (m *QueryUpgradedConsensusStateRequest) MarshalToSizedBuffer(dAtA []byte) ( _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -1901,6 +2014,9 @@ func (m *QueryClientStateRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -1933,6 +2049,9 @@ func (m *QueryClientStatesRequest) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -1974,6 +2093,9 @@ func (m *QueryConsensusStateRequest) Size() (n int) { if m.LatestHeight { n += 2 } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -2010,6 +2132,9 @@ func (m *QueryConsensusStatesRequest) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -2042,6 +2167,9 @@ func (m *QueryClientStatusRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -2064,6 +2192,9 @@ func (m *QueryClientParamsRequest) Size() (n int) { } var l int _ = l + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -2086,6 +2217,9 @@ func (m *QueryUpgradedClientStateRequest) Size() (n int) { } var l int _ = l + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -2108,6 +2242,9 @@ func (m *QueryUpgradedConsensusStateRequest) Size() (n int) { } var l int _ = l + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -2191,6 +2328,25 @@ func (m *QueryClientStateRequest) Unmarshal(dAtA []byte) error { } m.ClientId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2430,6 +2586,25 @@ func (m *QueryClientStatesRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2690,6 +2865,25 @@ func (m *QueryConsensusStateRequest) Unmarshal(dAtA []byte) error { } } m.LatestHeight = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2961,6 +3155,25 @@ func (m *QueryConsensusStatesRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3163,6 +3376,25 @@ func (m *QueryClientStatusRequest) Unmarshal(dAtA []byte) error { } m.ClientId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3295,6 +3527,25 @@ func (m *QueryClientParamsRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: QueryClientParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3431,6 +3682,25 @@ func (m *QueryUpgradedClientStateRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: QueryUpgradedClientStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3567,6 +3837,25 @@ func (m *QueryUpgradedConsensusStateRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: QueryUpgradedConsensusStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/modules/core/02-client/types/query.pb.gw.go b/modules/core/02-client/types/query.pb.gw.go index 3704fb07895..28709094a02 100644 --- a/modules/core/02-client/types/query.pb.gw.go +++ b/modules/core/02-client/types/query.pb.gw.go @@ -31,6 +31,10 @@ var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var ( + filter_Query_ClientState_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + func request_Query_ClientState_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryClientStateRequest var metadata runtime.ServerMetadata @@ -53,6 +57,13 @@ func request_Query_ClientState_0(ctx context.Context, marshaler runtime.Marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "client_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ClientState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.ClientState(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -80,6 +91,13 @@ func local_request_Query_ClientState_0(ctx context.Context, marshaler runtime.Ma return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "client_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ClientState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.ClientState(ctx, &protoReq) return msg, metadata, err @@ -309,6 +327,10 @@ func local_request_Query_ConsensusStates_0(ctx context.Context, marshaler runtim } +var ( + filter_Query_ClientStatus_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + func request_Query_ClientStatus_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryClientStatusRequest var metadata runtime.ServerMetadata @@ -331,6 +353,13 @@ func request_Query_ClientStatus_0(ctx context.Context, marshaler runtime.Marshal return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "client_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ClientStatus_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.ClientStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -358,15 +387,33 @@ func local_request_Query_ClientStatus_0(ctx context.Context, marshaler runtime.M return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "client_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ClientStatus_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.ClientStatus(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_ClientParams_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_ClientParams_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryClientParamsRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ClientParams_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.ClientParams(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -376,15 +423,33 @@ func local_request_Query_ClientParams_0(ctx context.Context, marshaler runtime.M var protoReq QueryClientParamsRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ClientParams_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.ClientParams(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_UpgradedClientState_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_UpgradedClientState_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryUpgradedClientStateRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UpgradedClientState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.UpgradedClientState(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -394,15 +459,33 @@ func local_request_Query_UpgradedClientState_0(ctx context.Context, marshaler ru var protoReq QueryUpgradedClientStateRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UpgradedClientState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.UpgradedClientState(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_UpgradedConsensusState_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_UpgradedConsensusState_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryUpgradedConsensusStateRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UpgradedConsensusState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.UpgradedConsensusState(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -412,6 +495,13 @@ func local_request_Query_UpgradedConsensusState_0(ctx context.Context, marshaler var protoReq QueryUpgradedConsensusStateRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UpgradedConsensusState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.UpgradedConsensusState(ctx, &protoReq) return msg, metadata, err diff --git a/modules/core/03-connection/types/query.pb.go b/modules/core/03-connection/types/query.pb.go index 32ad340b80f..0bbffaee892 100644 --- a/modules/core/03-connection/types/query.pb.go +++ b/modules/core/03-connection/types/query.pb.go @@ -37,6 +37,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type QueryConnectionRequest struct { // connection unique identifier ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + // query height + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryConnectionRequest) Reset() { *m = QueryConnectionRequest{} } @@ -79,6 +81,13 @@ func (m *QueryConnectionRequest) GetConnectionId() string { return "" } +func (m *QueryConnectionRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryConnectionResponse is the response type for the Query/Connection RPC // method. Besides the connection end, it includes a proof and the height from // which the proof was retrieved. @@ -149,6 +158,8 @@ func (m *QueryConnectionResponse) GetProofHeight() types.Height { // method type QueryConnectionsRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + // query height + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryConnectionsRequest) Reset() { *m = QueryConnectionsRequest{} } @@ -191,6 +202,13 @@ func (m *QueryConnectionsRequest) GetPagination() *query.PageRequest { return nil } +func (m *QueryConnectionsRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryConnectionsResponse is the response type for the Query/Connections RPC // method. type QueryConnectionsResponse struct { @@ -261,6 +279,8 @@ func (m *QueryConnectionsResponse) GetHeight() types.Height { type QueryClientConnectionsRequest struct { // client identifier associated with a connection ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + // query height + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryClientConnectionsRequest) Reset() { *m = QueryClientConnectionsRequest{} } @@ -303,6 +323,13 @@ func (m *QueryClientConnectionsRequest) GetClientId() string { return "" } +func (m *QueryClientConnectionsRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryClientConnectionsResponse is the response type for the // Query/ClientConnections RPC method type QueryClientConnectionsResponse struct { @@ -373,6 +400,8 @@ func (m *QueryClientConnectionsResponse) GetProofHeight() types.Height { type QueryConnectionClientStateRequest struct { // connection identifier ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"` + // query height + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryConnectionClientStateRequest) Reset() { *m = QueryConnectionClientStateRequest{} } @@ -415,6 +444,13 @@ func (m *QueryConnectionClientStateRequest) GetConnectionId() string { return "" } +func (m *QueryConnectionClientStateRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryConnectionClientStateResponse is the response type for the // Query/ConnectionClientState RPC method type QueryConnectionClientStateResponse struct { @@ -487,6 +523,8 @@ type QueryConnectionConsensusStateRequest struct { ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"` RevisionNumber uint64 `protobuf:"varint,2,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"` RevisionHeight uint64 `protobuf:"varint,3,opt,name=revision_height,json=revisionHeight,proto3" json:"revision_height,omitempty"` + // query height + Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryConnectionConsensusStateRequest) Reset() { *m = QueryConnectionConsensusStateRequest{} } @@ -543,6 +581,13 @@ func (m *QueryConnectionConsensusStateRequest) GetRevisionHeight() uint64 { return 0 } +func (m *QueryConnectionConsensusStateRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryConnectionConsensusStateResponse is the response type for the // Query/ConnectionConsensusState RPC method type QueryConnectionConsensusStateResponse struct { @@ -635,63 +680,64 @@ func init() { } var fileDescriptor_cd8d529f8c7cd06b = []byte{ - // 892 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x41, 0x6f, 0x1b, 0x45, - 0x14, 0xf6, 0x38, 0x69, 0xd5, 0x8c, 0x43, 0x0b, 0x23, 0xb7, 0x35, 0x0b, 0x38, 0x61, 0x4b, 0x48, - 0x0a, 0x74, 0xa6, 0x4e, 0xd4, 0xaa, 0x2d, 0x31, 0x02, 0x47, 0x81, 0xe4, 0x12, 0x85, 0xcd, 0x8d, - 0x4b, 0xb4, 0xbb, 0x9e, 0xac, 0x57, 0xb2, 0x77, 0x1c, 0xcf, 0xda, 0xc8, 0x8a, 0x2c, 0x24, 0xfe, - 0x00, 0x48, 0x5c, 0xb8, 0x70, 0xe5, 0xc0, 0x1f, 0xe0, 0xc0, 0x8d, 0x53, 0x8e, 0x91, 0xb8, 0xe4, - 0x14, 0x21, 0x87, 0x2b, 0x17, 0x7e, 0x01, 0xda, 0x99, 0x71, 0x76, 0xd6, 0x5e, 0x27, 0x8e, 0xd5, - 0xdc, 0x36, 0x6f, 0xde, 0x9b, 0xf7, 0x7d, 0xdf, 0x7b, 0xf3, 0x39, 0xd0, 0xf4, 0x1d, 0x97, 0xb8, - 0xac, 0x45, 0x89, 0xcb, 0x82, 0x80, 0xba, 0xa1, 0xcf, 0x02, 0xd2, 0x29, 0x91, 0xc3, 0x36, 0x6d, - 0x75, 0x71, 0xb3, 0xc5, 0x42, 0x86, 0x1e, 0xf8, 0x8e, 0x8b, 0xa3, 0x1c, 0x1c, 0xe7, 0xe0, 0x4e, - 0xc9, 0xc8, 0x7b, 0xcc, 0x63, 0x22, 0x85, 0x44, 0x5f, 0x32, 0xdb, 0xf8, 0xc8, 0x65, 0xbc, 0xc1, - 0x38, 0x71, 0x6c, 0x4e, 0xe5, 0x35, 0xa4, 0x53, 0x72, 0x68, 0x68, 0x97, 0x48, 0xd3, 0xf6, 0xfc, - 0xc0, 0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0x33, 0x81, 0xf8, 0x05, 0x7a, 0x3e, 0x16, 0xb1, 0xdc, 0xb8, 0xa4, 0xd0, - 0x83, 0x2d, 0xec, 0xa1, 0x53, 0x00, 0xef, 0xa7, 0xda, 0x12, 0x7a, 0x39, 0xa1, 0x7a, 0xa3, 0x7e, - 0x69, 0xbc, 0x9a, 0xa6, 0x54, 0x11, 0xda, 0x12, 0x84, 0x2a, 0xe8, 0xf3, 0x29, 0x56, 0x86, 0xe8, - 0xa6, 0x89, 0x7e, 0xce, 0xc2, 0xc2, 0xb8, 0x27, 0x8d, 0xd6, 0x27, 0x85, 0x98, 0xe6, 0x61, 0x46, - 0x79, 0xca, 0x6a, 0xc5, 0xf1, 0x3b, 0xc1, 0xb1, 0x8b, 0xbe, 0x9d, 0x8a, 0x63, 0xd2, 0x81, 0xc8, - 0xc0, 0xcd, 0xc8, 0xd1, 0x90, 0x2f, 0xf6, 0x88, 0x34, 0x0d, 0xed, 0x40, 0x06, 0x7a, 0x95, 0xbd, - 0xe3, 0x7e, 0x11, 0x9c, 0xf4, 0x8b, 0xe0, 0xef, 0x7e, 0x11, 0xfc, 0x78, 0x5e, 0xcc, 0x9c, 0x9c, - 0x17, 0x33, 0xa7, 0xe7, 0xc5, 0xcc, 0x37, 0x2f, 0x3d, 0x3f, 0xac, 0xb5, 0x1d, 0xec, 0xb2, 0x06, - 0x51, 0xff, 0x00, 0xfb, 0x8e, 0xfb, 0xc4, 0x63, 0xa4, 0xc1, 0xaa, 0xed, 0x3a, 0xe5, 0x12, 0xee, - 0xd3, 0xb5, 0x27, 0x1a, 0xe2, 0xb0, 0xdb, 0xa4, 0xdc, 0xb9, 0x2d, 0xcc, 0x6f, 0xed, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xc7, 0x37, 0x60, 0x53, 0x8b, 0x0b, 0x00, 0x00, + // 908 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 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0x86, + 0x29, 0xc4, 0x1f, 0x0a, 0xc4, 0x37, 0xd1, 0x8d, 0x5c, 0xc4, 0x72, 0xe2, 0xd2, 0x42, 0xc7, 0x53, + 0x38, 0x46, 0xcf, 0x01, 0xbc, 0x98, 0xb9, 0xae, 0xd0, 0xad, 0x82, 0xea, 0xcd, 0xef, 0x57, 0xe3, + 0xf6, 0x32, 0xa1, 0x8a, 0xd0, 0x3d, 0x41, 0xa8, 0x89, 0x3e, 0x5a, 0x62, 0x64, 0x88, 0xbe, 0x4c, + 0xd1, 0x8f, 0x25, 0x58, 0xcb, 0xbb, 0xd2, 0xe8, 0x83, 0xa2, 0x10, 0xb3, 0x76, 0x9b, 0x71, 0xb0, + 0x64, 0xb4, 0xe2, 0xf8, 0x8d, 0xe0, 0x38, 0x42, 0x5f, 0x2d, 0xc5, 0x31, 0xbd, 0x81, 0x48, 0xbc, + 0xe5, 0xc8, 0x93, 0x99, 0x7d, 0x39, 0x26, 0x72, 0x69, 0x68, 0x07, 0xd2, 0x30, 0x6e, 0x3e, 0x7a, + 0x3a, 0xa9, 0x83, 0x67, 0x93, 0x3a, 0xf8, 0x73, 0x52, 0x07, 0xdf, 0x9f, 0xd4, 0x57, 0x9e, 0x9d, + 0xd4, 0x57, 0x9e, 0x9f, 0xd4, 0x57, 0xbe, 0xbc, 0xe5, 0xf9, 0x61, 0x7b, 0xe0, 0x60, 0x97, 0x75, + 0x89, 0xfa, 0xe3, 0xed, 0x3b, 0xee, 0x55, 0x8f, 0x91, 0x2e, 0x6b, 0x0d, 0x3a, 0x94, 0x4b, 0xb8, + 0xd7, 0xf6, 0xaf, 0x6a, 0x88, 0xc3, 0x51, 0x8f, 0x72, 0xe7, 0xac, 0x58, 0x7e, 0xfb, 0xff, 0x06, + 0x00, 0x00, 0xff, 0xff, 0x39, 0x40, 0x2a, 0x49, 0x03, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -954,6 +1000,11 @@ func (m *QueryConnectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } if len(m.ConnectionId) > 0 { i -= len(m.ConnectionId) copy(dAtA[i:], m.ConnectionId) @@ -1036,6 +1087,11 @@ func (m *QueryConnectionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) @@ -1130,6 +1186,11 @@ func (m *QueryClientConnectionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } if len(m.ClientId) > 0 { i -= len(m.ClientId) copy(dAtA[i:], m.ClientId) @@ -1209,6 +1270,11 @@ func (m *QueryConnectionClientStateRequest) MarshalToSizedBuffer(dAtA []byte) (i _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } if len(m.ConnectionId) > 0 { i -= len(m.ConnectionId) copy(dAtA[i:], m.ConnectionId) @@ -1291,6 +1357,11 @@ func (m *QueryConnectionConsensusStateRequest) MarshalToSizedBuffer(dAtA []byte) _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } if m.RevisionHeight != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.RevisionHeight)) i-- @@ -1391,6 +1462,9 @@ func (m *QueryConnectionRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -1423,6 +1497,9 @@ func (m *QueryConnectionsRequest) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -1457,6 +1534,9 @@ func (m *QueryClientConnectionsRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -1491,6 +1571,9 @@ func (m *QueryConnectionClientStateRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -1529,6 +1612,9 @@ func (m *QueryConnectionConsensusStateRequest) Size() (n int) { if m.RevisionHeight != 0 { n += 1 + sovQuery(uint64(m.RevisionHeight)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -1622,6 +1708,25 @@ func (m *QueryConnectionRequest) Unmarshal(dAtA []byte) error { } m.ConnectionId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -1861,6 +1966,25 @@ func (m *QueryConnectionsRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2096,6 +2220,25 @@ func (m *QueryClientConnectionsRequest) Unmarshal(dAtA []byte) error { } m.ClientId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2327,6 +2470,25 @@ func (m *QueryConnectionClientStateRequest) Unmarshal(dAtA []byte) error { } m.ConnectionId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2600,6 +2762,25 @@ func (m *QueryConnectionConsensusStateRequest) Unmarshal(dAtA []byte) error { break } } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/modules/core/03-connection/types/query.pb.gw.go b/modules/core/03-connection/types/query.pb.gw.go index 2de52353c78..53cdfdc3a9f 100644 --- a/modules/core/03-connection/types/query.pb.gw.go +++ b/modules/core/03-connection/types/query.pb.gw.go @@ -31,6 +31,10 @@ var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var ( + filter_Query_Connection_0 = &utilities.DoubleArray{Encoding: map[string]int{"connection_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + func request_Query_Connection_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryConnectionRequest var metadata runtime.ServerMetadata @@ -53,6 +57,13 @@ func request_Query_Connection_0(ctx context.Context, marshaler runtime.Marshaler return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "connection_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Connection_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.Connection(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -80,6 +91,13 @@ func local_request_Query_Connection_0(ctx context.Context, marshaler runtime.Mar return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "connection_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Connection_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.Connection(ctx, &protoReq) return msg, metadata, err @@ -121,6 +139,10 @@ func local_request_Query_Connections_0(ctx context.Context, marshaler runtime.Ma } +var ( + filter_Query_ClientConnections_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + func request_Query_ClientConnections_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryClientConnectionsRequest var metadata runtime.ServerMetadata @@ -143,6 +165,13 @@ func request_Query_ClientConnections_0(ctx context.Context, marshaler runtime.Ma return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "client_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ClientConnections_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.ClientConnections(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -170,11 +199,22 @@ func local_request_Query_ClientConnections_0(ctx context.Context, marshaler runt return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "client_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ClientConnections_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.ClientConnections(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_ConnectionClientState_0 = &utilities.DoubleArray{Encoding: map[string]int{"connection_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + func request_Query_ConnectionClientState_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryConnectionClientStateRequest var metadata runtime.ServerMetadata @@ -197,6 +237,13 @@ func request_Query_ConnectionClientState_0(ctx context.Context, marshaler runtim return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "connection_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ConnectionClientState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.ConnectionClientState(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -224,11 +271,22 @@ func local_request_Query_ConnectionClientState_0(ctx context.Context, marshaler return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "connection_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ConnectionClientState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.ConnectionClientState(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_ConnectionConsensusState_0 = &utilities.DoubleArray{Encoding: map[string]int{"connection_id": 0, "revision_number": 1, "revision_height": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} +) + func request_Query_ConnectionConsensusState_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryConnectionConsensusStateRequest var metadata runtime.ServerMetadata @@ -273,6 +331,13 @@ func request_Query_ConnectionConsensusState_0(ctx context.Context, marshaler run return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "revision_height", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ConnectionConsensusState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.ConnectionConsensusState(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -322,6 +387,13 @@ func local_request_Query_ConnectionConsensusState_0(ctx context.Context, marshal return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "revision_height", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ConnectionConsensusState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.ConnectionConsensusState(ctx, &protoReq) return msg, metadata, err diff --git a/modules/core/04-channel/types/query.pb.go b/modules/core/04-channel/types/query.pb.go index a5e23569526..fc80fcc8dce 100644 --- a/modules/core/04-channel/types/query.pb.go +++ b/modules/core/04-channel/types/query.pb.go @@ -38,6 +38,8 @@ type QueryChannelRequest struct { PortId string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` // channel unique identifier ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + // query height + Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryChannelRequest) Reset() { *m = QueryChannelRequest{} } @@ -87,6 +89,13 @@ func (m *QueryChannelRequest) GetChannelId() string { return "" } +func (m *QueryChannelRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryChannelResponse is the response type for the Query/Channel RPC method. // Besides the Channel end, it includes a proof and the height from which the // proof was retrieved. @@ -157,6 +166,8 @@ func (m *QueryChannelResponse) GetProofHeight() types.Height { type QueryChannelsRequest struct { // pagination request Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + // query height + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryChannelsRequest) Reset() { *m = QueryChannelsRequest{} } @@ -199,6 +210,13 @@ func (m *QueryChannelsRequest) GetPagination() *query.PageRequest { return nil } +func (m *QueryChannelsRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryChannelsResponse is the response type for the Query/Channels RPC method. type QueryChannelsResponse struct { // list of stored channels of the chain. @@ -270,6 +288,8 @@ type QueryConnectionChannelsRequest struct { Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"` // pagination request Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + // query height + Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryConnectionChannelsRequest) Reset() { *m = QueryConnectionChannelsRequest{} } @@ -319,6 +339,13 @@ func (m *QueryConnectionChannelsRequest) GetPagination() *query.PageRequest { return nil } +func (m *QueryConnectionChannelsRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryConnectionChannelsResponse is the Response type for the // Query/QueryConnectionChannels RPC method type QueryConnectionChannelsResponse struct { @@ -391,6 +418,8 @@ type QueryChannelClientStateRequest struct { PortId string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` // channel unique identifier ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + // query height + Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryChannelClientStateRequest) Reset() { *m = QueryChannelClientStateRequest{} } @@ -440,6 +469,13 @@ func (m *QueryChannelClientStateRequest) GetChannelId() string { return "" } +func (m *QueryChannelClientStateRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryChannelClientStateResponse is the Response type for the // Query/QueryChannelClientState RPC method type QueryChannelClientStateResponse struct { @@ -516,6 +552,8 @@ type QueryChannelConsensusStateRequest struct { RevisionNumber uint64 `protobuf:"varint,3,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"` // revision height of the consensus state RevisionHeight uint64 `protobuf:"varint,4,opt,name=revision_height,json=revisionHeight,proto3" json:"revision_height,omitempty"` + // query height + Height uint64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryChannelConsensusStateRequest) Reset() { *m = QueryChannelConsensusStateRequest{} } @@ -579,6 +617,13 @@ func (m *QueryChannelConsensusStateRequest) GetRevisionHeight() uint64 { return 0 } +func (m *QueryChannelConsensusStateRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryChannelClientStateResponse is the Response type for the // Query/QueryChannelClientState RPC method type QueryChannelConsensusStateResponse struct { @@ -662,6 +707,8 @@ type QueryPacketCommitmentRequest struct { ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // packet sequence Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` + // query height + Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryPacketCommitmentRequest) Reset() { *m = QueryPacketCommitmentRequest{} } @@ -718,6 +765,13 @@ func (m *QueryPacketCommitmentRequest) GetSequence() uint64 { return 0 } +func (m *QueryPacketCommitmentRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryPacketCommitmentResponse defines the client query response for a packet // which also includes a proof and the height from which the proof was // retrieved @@ -793,6 +847,8 @@ type QueryPacketCommitmentsRequest struct { ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // pagination request Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` + // query height + Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryPacketCommitmentsRequest) Reset() { *m = QueryPacketCommitmentsRequest{} } @@ -849,6 +905,13 @@ func (m *QueryPacketCommitmentsRequest) GetPagination() *query.PageRequest { return nil } +func (m *QueryPacketCommitmentsRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryPacketCommitmentsResponse is the request type for the // Query/QueryPacketCommitments RPC method type QueryPacketCommitmentsResponse struct { @@ -922,6 +985,8 @@ type QueryPacketReceiptRequest struct { ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // packet sequence Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` + // query height + Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryPacketReceiptRequest) Reset() { *m = QueryPacketReceiptRequest{} } @@ -978,6 +1043,13 @@ func (m *QueryPacketReceiptRequest) GetSequence() uint64 { return 0 } +func (m *QueryPacketReceiptRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryPacketReceiptResponse defines the client query response for a packet // receipt which also includes a proof, and the height from which the proof was // retrieved @@ -1053,6 +1125,8 @@ type QueryPacketAcknowledgementRequest struct { ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // packet sequence Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` + // query height + Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryPacketAcknowledgementRequest) Reset() { *m = QueryPacketAcknowledgementRequest{} } @@ -1109,6 +1183,13 @@ func (m *QueryPacketAcknowledgementRequest) GetSequence() uint64 { return 0 } +func (m *QueryPacketAcknowledgementRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryPacketAcknowledgementResponse defines the client query response for a // packet which also includes a proof and the height from which the // proof was retrieved @@ -1184,6 +1265,8 @@ type QueryPacketAcknowledgementsRequest struct { ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // pagination request Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` + // query height + Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryPacketAcknowledgementsRequest) Reset() { *m = QueryPacketAcknowledgementsRequest{} } @@ -1240,6 +1323,13 @@ func (m *QueryPacketAcknowledgementsRequest) GetPagination() *query.PageRequest return nil } +func (m *QueryPacketAcknowledgementsRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryPacketAcknowledgemetsResponse is the request type for the // Query/QueryPacketAcknowledgements RPC method type QueryPacketAcknowledgementsResponse struct { @@ -1313,6 +1403,8 @@ type QueryUnreceivedPacketsRequest struct { ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // list of packet sequences PacketCommitmentSequences []uint64 `protobuf:"varint,3,rep,packed,name=packet_commitment_sequences,json=packetCommitmentSequences,proto3" json:"packet_commitment_sequences,omitempty"` + // query height + Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryUnreceivedPacketsRequest) Reset() { *m = QueryUnreceivedPacketsRequest{} } @@ -1369,6 +1461,13 @@ func (m *QueryUnreceivedPacketsRequest) GetPacketCommitmentSequences() []uint64 return nil } +func (m *QueryUnreceivedPacketsRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryUnreceivedPacketsResponse is the response type for the // Query/UnreceivedPacketCommitments RPC method type QueryUnreceivedPacketsResponse struct { @@ -1434,6 +1533,8 @@ type QueryUnreceivedAcksRequest struct { ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // list of acknowledgement sequences PacketAckSequences []uint64 `protobuf:"varint,3,rep,packed,name=packet_ack_sequences,json=packetAckSequences,proto3" json:"packet_ack_sequences,omitempty"` + // query height + Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryUnreceivedAcksRequest) Reset() { *m = QueryUnreceivedAcksRequest{} } @@ -1490,6 +1591,13 @@ func (m *QueryUnreceivedAcksRequest) GetPacketAckSequences() []uint64 { return nil } +func (m *QueryUnreceivedAcksRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QueryUnreceivedAcksResponse is the response type for the // Query/UnreceivedAcks RPC method type QueryUnreceivedAcksResponse struct { @@ -1553,6 +1661,8 @@ type QueryNextSequenceReceiveRequest struct { PortId string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` // channel unique identifier ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + // query height + Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryNextSequenceReceiveRequest) Reset() { *m = QueryNextSequenceReceiveRequest{} } @@ -1602,6 +1712,13 @@ func (m *QueryNextSequenceReceiveRequest) GetChannelId() string { return "" } +func (m *QueryNextSequenceReceiveRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + // QuerySequenceResponse is the request type for the // Query/QueryNextSequenceReceiveResponse RPC method type QueryNextSequenceReceiveResponse struct { @@ -1699,100 +1816,102 @@ func init() { func init() { proto.RegisterFile("ibc/core/channel/v1/query.proto", fileDescriptor_1034a1e9abc4cca1) } var fileDescriptor_1034a1e9abc4cca1 = []byte{ - // 1481 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0xdf, 0x6f, 0x14, 0x55, - 0x14, 0xee, 0xdd, 0x16, 0x68, 0x0f, 0xc8, 0x8f, 0xdb, 0x16, 0xca, 0x50, 0xb6, 0x65, 0x8d, 0x52, - 0x48, 0x98, 0x4b, 0x0b, 0x56, 0x62, 0x94, 0x84, 0x36, 0x11, 0x6a, 0x04, 0xca, 0x20, 0x11, 0x48, - 0x74, 0x9d, 0x9d, 0xbd, 0x6c, 0x27, 0xed, 0xce, 0x0c, 0x3b, 0xb3, 0x0b, 0xa4, 0xae, 0x31, 0x3e, - 0x20, 0x89, 0x2f, 0x46, 0x1e, 0x4c, 0x7c, 0x31, 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0x01, 0xab, 0x41, - 0xbe, 0xb0, 0x50, 0x6c, 0x44, 0xa3, 0x3f, 0x2d, 0x1a, 0x03, 0x1b, 0x89, 0x46, 0x05, 0xc6, 0x19, - 0xb9, 0x45, 0xdd, 0x58, 0xa6, 0xde, 0xbc, 0x5d, 0x2e, 0x9b, 0x5e, 0x99, 0x5a, 0x5e, 0xb7, 0x71, - 0x50, 0x60, 0xd0, 0xf5, 0x5d, 0x58, 0x06, 0x15, 0x01, 0x08, 0xde, 0x73, 0xdf, 0x21, 0x38, 0x9c, - 0x70, 0xa8, 0x10, 0x93, 0x95, 0x2c, 0xb9, 0xca, 0x0e, 0xde, 0xa5, 0x85, 0x56, 0x7a, 0x79, 0x3d, - 0xbf, 0x4f, 0x02, 0xe7, 0x76, 0x2b, 0x49, 0xb4, 0xce, 0xf6, 0x6f, 0xb8, 0xce, 0xbe, 0x94, 0x25, - 0x3f, 0x06, 0x61, 0x50, 0x66, 0x77, 0x36, 0xd4, 0x92, 0x95, 0x76, 0x32, 0xb6, 0xd2, 0x72, 0x27, - 0xfc, 0x2e, 0x87, 0x8d, 0xb6, 0x42, 0x99, 0xb5, 0xe1, 0x60, 0x88, 0xa8, 0x46, 0x0d, 0x6a, 0x3a, - 0x3d, 0xbd, 0x99, 0x0f, 0x11, 0x28, 0x71, 0x27, 0x0a, 0x59, 0x15, 0x18, 0xac, 0xf8, 0x4b, 0x35, - 0xca, 0xfd, 0x0e, 0x6a, 0xc1, 0x7b, 0x2f, 0x73, 0xf4, 0x8e, 0x28, 0x98, 0x1c, 0xd4, 0x39, 0x63, - 0xd9, 0xb2, 0xef, 0xac, 0xd0, 0x62, 0x89, 0xf6, 0x3a, 0x51, 0x1f, 0xc9, 0xd2, 0x97, 0x70, 0xb2, - 0x90, 0x65, 0x0a, 0xf6, 0xe8, 0xd1, 0x4f, 0x22, 0x65, 0x9b, 0x97, 0x7b, 0x99, 0xb7, 0x3f, 0xa6, - 0x62, 0xdd, 0x32, 0xc9, 0xfb,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03, 0xc1, 0xff, 0x53, 0x46, 0xbf, 0x86, 0xbd, 0xde, - 0xb0, 0x8f, 0x74, 0xf1, 0x11, 0xda, 0xfe, 0x8d, 0xc7, 0xbf, 0x21, 0x18, 0x8e, 0xe9, 0x72, 0x71, - 0x4a, 0x1b, 0x90, 0xdc, 0x70, 0x2b, 0x6f, 0x74, 0x68, 0x25, 0x24, 0x58, 0x64, 0x12, 0xbc, 0x87, - 0x2f, 0x74, 0x21, 0x41, 0xa4, 0x17, 0x9f, 0x5b, 0x7c, 0xfc, 0x22, 0x8b, 0x9e, 0xbc, 0xc8, 0xa2, - 0x3f, 0x5f, 0x64, 0xd1, 0xd7, 0x6b, 0xd9, 0xbe, 0x27, 0x6b, 0xd9, 0xbe, 0xdf, 0xd7, 0xb2, 0x7d, - 0x37, 0x67, 0x4b, 0xa6, 0xb7, 0x54, 0x2d, 0xa8, 0x86, 0x5d, 0x26, 0xe2, 0x1f, 0x7b, 0x66, 0xc1, - 0x38, 0x51, 0xb2, 0x49, 0xd9, 0x2e, 0x56, 0x57, 0xa8, 0xcb, 0xcf, 0x3f, 0x79, 0xfa, 0x84, 0x84, - 0xe0, 0xdd, 0x73, 0xa8, 0x5b, 0xd8, 0xce, 0x7e, 0x81, 0x3d, 0xf5, 0x5f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x90, 0x44, 0xdb, 0xbc, 0x65, 0x1c, 0x00, 0x00, + // 1517 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0x4f, 0x6c, 0x1b, 0x45, + 0x17, 0xcf, 0x38, 0x6e, 0x9b, 0xbc, 0xf4, 0xeb, 0x9f, 0x49, 0xd2, 0xa6, 0xdb, 0xd4, 0x49, 0xfd, + 0xe9, 0xfb, 0x9a, 0x56, 0xea, 0x6e, 0x93, 0x96, 0x50, 0x21, 0xa8, 0xd4, 0x44, 0xa2, 0x0d, 0x82, + 0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0x9f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xbe, 0xc2, 0x95, 0xa0, 0x1d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2369,6 +2488,11 @@ func (m *QueryChannelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x18 + } if len(m.ChannelId) > 0 { i -= len(m.ChannelId) copy(dAtA[i:], m.ChannelId) @@ -2458,6 +2582,11 @@ func (m *QueryChannelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) @@ -2552,6 +2681,11 @@ func (m *QueryConnectionChannelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x18 + } if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) @@ -2653,6 +2787,11 @@ func (m *QueryChannelClientStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x18 + } if len(m.ChannelId) > 0 { i -= len(m.ChannelId) copy(dAtA[i:], m.ChannelId) @@ -2742,6 +2881,11 @@ func (m *QueryChannelConsensusStateRequest) MarshalToSizedBuffer(dAtA []byte) (i _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x28 + } if m.RevisionHeight != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.RevisionHeight)) i-- @@ -2848,6 +2992,11 @@ func (m *QueryPacketCommitmentRequest) MarshalToSizedBuffer(dAtA []byte) (int, e _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } if m.Sequence != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) i-- @@ -2937,6 +3086,11 @@ func (m *QueryPacketCommitmentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) @@ -3045,6 +3199,11 @@ func (m *QueryPacketReceiptRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } if m.Sequence != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) i-- @@ -3137,6 +3296,11 @@ func (m *QueryPacketAcknowledgementRequest) MarshalToSizedBuffer(dAtA []byte) (i _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } if m.Sequence != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) i-- @@ -3226,6 +3390,11 @@ func (m *QueryPacketAcknowledgementsRequest) MarshalToSizedBuffer(dAtA []byte) ( _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) @@ -3334,6 +3503,11 @@ func (m *QueryUnreceivedPacketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } if len(m.PacketCommitmentSequences) > 0 { dAtA23 := make([]byte, len(m.PacketCommitmentSequences)*10) var j22 int @@ -3440,6 +3614,11 @@ func (m *QueryUnreceivedAcksRequest) MarshalToSizedBuffer(dAtA []byte) (int, err _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } if len(m.PacketAckSequences) > 0 { dAtA28 := make([]byte, len(m.PacketAckSequences)*10) var j27 int @@ -3546,6 +3725,11 @@ func (m *QueryNextSequenceReceiveRequest) MarshalToSizedBuffer(dAtA []byte) (int _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x18 + } if len(m.ChannelId) > 0 { i -= len(m.ChannelId) copy(dAtA[i:], m.ChannelId) @@ -3633,6 +3817,9 @@ func (m *QueryChannelRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -3665,6 +3852,9 @@ func (m *QueryChannelsRequest) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -3703,6 +3893,9 @@ func (m *QueryConnectionChannelsRequest) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -3741,6 +3934,9 @@ func (m *QueryChannelClientStateRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -3783,6 +3979,9 @@ func (m *QueryChannelConsensusStateRequest) Size() (n int) { if m.RevisionHeight != 0 { n += 1 + sovQuery(uint64(m.RevisionHeight)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -3826,6 +4025,9 @@ func (m *QueryPacketCommitmentRequest) Size() (n int) { if m.Sequence != 0 { n += 1 + sovQuery(uint64(m.Sequence)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -3866,6 +4068,9 @@ func (m *QueryPacketCommitmentsRequest) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -3907,6 +4112,9 @@ func (m *QueryPacketReceiptRequest) Size() (n int) { if m.Sequence != 0 { n += 1 + sovQuery(uint64(m.Sequence)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -3945,6 +4153,9 @@ func (m *QueryPacketAcknowledgementRequest) Size() (n int) { if m.Sequence != 0 { n += 1 + sovQuery(uint64(m.Sequence)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -3985,6 +4196,9 @@ func (m *QueryPacketAcknowledgementsRequest) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -4030,6 +4244,9 @@ func (m *QueryUnreceivedPacketsRequest) Size() (n int) { } n += 1 + sovQuery(uint64(l)) + l } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -4072,6 +4289,9 @@ func (m *QueryUnreceivedAcksRequest) Size() (n int) { } n += 1 + sovQuery(uint64(l)) + l } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -4107,6 +4327,9 @@ func (m *QueryNextSequenceReceiveRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } return n } @@ -4227,6 +4450,25 @@ func (m *QueryChannelRequest) Unmarshal(dAtA []byte) error { } m.ChannelId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4466,6 +4708,25 @@ func (m *QueryChannelsRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4737,6 +4998,25 @@ func (m *QueryConnectionChannelsRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5004,6 +5284,25 @@ func (m *QueryChannelClientStateRequest) Unmarshal(dAtA []byte) error { } m.ChannelId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5309,6 +5608,25 @@ func (m *QueryChannelConsensusStateRequest) Unmarshal(dAtA []byte) error { break } } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5627,6 +5945,25 @@ func (m *QueryPacketCommitmentRequest) Unmarshal(dAtA []byte) error { break } } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5928,6 +6265,25 @@ func (m *QueryPacketCommitmentsRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -6214,6 +6570,25 @@ func (m *QueryPacketReceiptRequest) Unmarshal(dAtA []byte) error { break } } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -6484,6 +6859,25 @@ func (m *QueryPacketAcknowledgementRequest) Unmarshal(dAtA []byte) error { break } } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -6785,6 +7179,25 @@ func (m *QueryPacketAcknowledgementsRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7128,6 +7541,25 @@ func (m *QueryUnreceivedPacketsRequest) Unmarshal(dAtA []byte) error { } else { return fmt.Errorf("proto: wrong wireType = %d for field PacketCommitmentSequences", wireType) } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7477,6 +7909,25 @@ func (m *QueryUnreceivedAcksRequest) Unmarshal(dAtA []byte) error { } else { return fmt.Errorf("proto: wrong wireType = %d for field PacketAckSequences", wireType) } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7750,6 +8201,25 @@ func (m *QueryNextSequenceReceiveRequest) Unmarshal(dAtA []byte) error { } m.ChannelId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/modules/core/04-channel/types/query.pb.gw.go b/modules/core/04-channel/types/query.pb.gw.go index 9e59c03b536..94991805a67 100644 --- a/modules/core/04-channel/types/query.pb.gw.go +++ b/modules/core/04-channel/types/query.pb.gw.go @@ -31,6 +31,10 @@ var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var ( + filter_Query_Channel_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_id": 0, "port_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + func request_Query_Channel_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryChannelRequest var metadata runtime.ServerMetadata @@ -64,6 +68,13 @@ func request_Query_Channel_0(ctx context.Context, marshaler runtime.Marshaler, c return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "port_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Channel_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.Channel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -102,6 +113,13 @@ func local_request_Query_Channel_0(ctx context.Context, marshaler runtime.Marsha return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "port_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Channel_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.Channel(ctx, &protoReq) return msg, metadata, err @@ -215,6 +233,10 @@ func local_request_Query_ConnectionChannels_0(ctx context.Context, marshaler run } +var ( + filter_Query_ChannelClientState_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_id": 0, "port_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + func request_Query_ChannelClientState_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryChannelClientStateRequest var metadata runtime.ServerMetadata @@ -248,6 +270,13 @@ func request_Query_ChannelClientState_0(ctx context.Context, marshaler runtime.M return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "port_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ChannelClientState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.ChannelClientState(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -286,11 +315,22 @@ func local_request_Query_ChannelClientState_0(ctx context.Context, marshaler run return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "port_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ChannelClientState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.ChannelClientState(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_ChannelConsensusState_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_id": 0, "port_id": 1, "revision_number": 2, "revision_height": 3}, Base: []int{1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 3, 4, 5}} +) + func request_Query_ChannelConsensusState_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryChannelConsensusStateRequest var metadata runtime.ServerMetadata @@ -346,6 +386,13 @@ func request_Query_ChannelConsensusState_0(ctx context.Context, marshaler runtim return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "revision_height", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ChannelConsensusState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.ChannelConsensusState(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -406,11 +453,22 @@ func local_request_Query_ChannelConsensusState_0(ctx context.Context, marshaler return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "revision_height", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ChannelConsensusState_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.ChannelConsensusState(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_PacketCommitment_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_id": 0, "port_id": 1, "sequence": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} +) + func request_Query_PacketCommitment_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryPacketCommitmentRequest var metadata runtime.ServerMetadata @@ -455,6 +513,13 @@ func request_Query_PacketCommitment_0(ctx context.Context, marshaler runtime.Mar return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sequence", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PacketCommitment_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.PacketCommitment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -504,6 +569,13 @@ func local_request_Query_PacketCommitment_0(ctx context.Context, marshaler runti return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sequence", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PacketCommitment_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.PacketCommitment(ctx, &protoReq) return msg, metadata, err @@ -603,6 +675,10 @@ func local_request_Query_PacketCommitments_0(ctx context.Context, marshaler runt } +var ( + filter_Query_PacketReceipt_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_id": 0, "port_id": 1, "sequence": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} +) + func request_Query_PacketReceipt_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryPacketReceiptRequest var metadata runtime.ServerMetadata @@ -647,6 +723,13 @@ func request_Query_PacketReceipt_0(ctx context.Context, marshaler runtime.Marsha return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sequence", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PacketReceipt_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.PacketReceipt(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -696,11 +779,22 @@ func local_request_Query_PacketReceipt_0(ctx context.Context, marshaler runtime. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sequence", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PacketReceipt_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.PacketReceipt(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_PacketAcknowledgement_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_id": 0, "port_id": 1, "sequence": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} +) + func request_Query_PacketAcknowledgement_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryPacketAcknowledgementRequest var metadata runtime.ServerMetadata @@ -745,6 +839,13 @@ func request_Query_PacketAcknowledgement_0(ctx context.Context, marshaler runtim return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sequence", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PacketAcknowledgement_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.PacketAcknowledgement(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -794,6 +895,13 @@ func local_request_Query_PacketAcknowledgement_0(ctx context.Context, marshaler return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sequence", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PacketAcknowledgement_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.PacketAcknowledgement(ctx, &protoReq) return msg, metadata, err @@ -893,6 +1001,10 @@ func local_request_Query_PacketAcknowledgements_0(ctx context.Context, marshaler } +var ( + filter_Query_UnreceivedPackets_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_id": 0, "port_id": 1, "packet_commitment_sequences": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} +) + func request_Query_UnreceivedPackets_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryUnreceivedPacketsRequest var metadata runtime.ServerMetadata @@ -937,6 +1049,13 @@ func request_Query_UnreceivedPackets_0(ctx context.Context, marshaler runtime.Ma return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "packet_commitment_sequences", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UnreceivedPackets_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.UnreceivedPackets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -986,11 +1105,22 @@ func local_request_Query_UnreceivedPackets_0(ctx context.Context, marshaler runt return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "packet_commitment_sequences", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UnreceivedPackets_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.UnreceivedPackets(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_UnreceivedAcks_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_id": 0, "port_id": 1, "packet_ack_sequences": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} +) + func request_Query_UnreceivedAcks_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryUnreceivedAcksRequest var metadata runtime.ServerMetadata @@ -1035,6 +1165,13 @@ func request_Query_UnreceivedAcks_0(ctx context.Context, marshaler runtime.Marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "packet_ack_sequences", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UnreceivedAcks_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.UnreceivedAcks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1084,11 +1221,22 @@ func local_request_Query_UnreceivedAcks_0(ctx context.Context, marshaler runtime return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "packet_ack_sequences", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UnreceivedAcks_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.UnreceivedAcks(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_NextSequenceReceive_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_id": 0, "port_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + func request_Query_NextSequenceReceive_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryNextSequenceReceiveRequest var metadata runtime.ServerMetadata @@ -1122,6 +1270,13 @@ func request_Query_NextSequenceReceive_0(ctx context.Context, marshaler runtime. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "port_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_NextSequenceReceive_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.NextSequenceReceive(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1160,6 +1315,13 @@ func local_request_Query_NextSequenceReceive_0(ctx context.Context, marshaler ru return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "port_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_NextSequenceReceive_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.NextSequenceReceive(ctx, &protoReq) return msg, metadata, err diff --git a/proto/ibc/applications/transfer/v1/query.proto b/proto/ibc/applications/transfer/v1/query.proto index cd428413ebf..643e2cc8932 100644 --- a/proto/ibc/applications/transfer/v1/query.proto +++ b/proto/ibc/applications/transfer/v1/query.proto @@ -32,6 +32,7 @@ service Query { message QueryDenomTraceRequest { // hash (in hex format) of the denomination trace information. string hash = 1; + uint64 height = 2; } // QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC @@ -46,6 +47,7 @@ message QueryDenomTraceResponse { message QueryDenomTracesRequest { // pagination defines an optional pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 1; + uint64 height = 2; } // QueryConnectionsResponse is the response type for the Query/DenomTraces RPC @@ -58,7 +60,9 @@ message QueryDenomTracesResponse { } // QueryParamsRequest is the request type for the Query/Params RPC method. -message QueryParamsRequest {} +message QueryParamsRequest { + uint64 height = 1; +} // QueryParamsResponse is the response type for the Query/Params RPC method. message QueryParamsResponse { diff --git a/proto/ibc/core/channel/v1/query.proto b/proto/ibc/core/channel/v1/query.proto index 194fe86777f..1c6255d1a09 100644 --- a/proto/ibc/core/channel/v1/query.proto +++ b/proto/ibc/core/channel/v1/query.proto @@ -106,6 +106,8 @@ message QueryChannelRequest { string port_id = 1; // channel unique identifier string channel_id = 2; + // query height + uint64 height = 3; } // QueryChannelResponse is the response type for the Query/Channel RPC method. @@ -124,6 +126,9 @@ message QueryChannelResponse { message QueryChannelsRequest { // pagination request cosmos.base.query.v1beta1.PageRequest pagination = 1; + // query height + uint64 height = 2; + } // QueryChannelsResponse is the response type for the Query/Channels RPC method. @@ -143,6 +148,8 @@ message QueryConnectionChannelsRequest { string connection = 1; // pagination request cosmos.base.query.v1beta1.PageRequest pagination = 2; + // query height + uint64 height = 3; } // QueryConnectionChannelsResponse is the Response type for the @@ -163,6 +170,8 @@ message QueryChannelClientStateRequest { string port_id = 1; // channel unique identifier string channel_id = 2; + // query height + uint64 height = 3; } // QueryChannelClientStateResponse is the Response type for the @@ -187,6 +196,8 @@ message QueryChannelConsensusStateRequest { uint64 revision_number = 3; // revision height of the consensus state uint64 revision_height = 4; + // query height + uint64 height = 5; } // QueryChannelClientStateResponse is the Response type for the @@ -211,6 +222,8 @@ message QueryPacketCommitmentRequest { string channel_id = 2; // packet sequence uint64 sequence = 3; + // query height + uint64 height = 4; } // QueryPacketCommitmentResponse defines the client query response for a packet @@ -234,6 +247,8 @@ message QueryPacketCommitmentsRequest { string channel_id = 2; // pagination request cosmos.base.query.v1beta1.PageRequest pagination = 3; + // query height + uint64 height = 4; } // QueryPacketCommitmentsResponse is the request type for the @@ -255,6 +270,8 @@ message QueryPacketReceiptRequest { string channel_id = 2; // packet sequence uint64 sequence = 3; + // query height + uint64 height = 4; } // QueryPacketReceiptResponse defines the client query response for a packet @@ -278,6 +295,8 @@ message QueryPacketAcknowledgementRequest { string channel_id = 2; // packet sequence uint64 sequence = 3; + // query height + uint64 height = 4; } // QueryPacketAcknowledgementResponse defines the client query response for a @@ -301,6 +320,8 @@ message QueryPacketAcknowledgementsRequest { string channel_id = 2; // pagination request cosmos.base.query.v1beta1.PageRequest pagination = 3; + // query height + uint64 height = 4; } // QueryPacketAcknowledgemetsResponse is the request type for the @@ -322,6 +343,8 @@ message QueryUnreceivedPacketsRequest { string channel_id = 2; // list of packet sequences repeated uint64 packet_commitment_sequences = 3; + // query height + uint64 height = 4; } // QueryUnreceivedPacketsResponse is the response type for the @@ -342,6 +365,8 @@ message QueryUnreceivedAcksRequest { string channel_id = 2; // list of acknowledgement sequences repeated uint64 packet_ack_sequences = 3; + // query height + uint64 height = 4; } // QueryUnreceivedAcksResponse is the response type for the @@ -360,6 +385,8 @@ message QueryNextSequenceReceiveRequest { string port_id = 1; // channel unique identifier string channel_id = 2; + // query height + uint64 height = 3; } // QuerySequenceResponse is the request type for the diff --git a/proto/ibc/core/client/v1/query.proto b/proto/ibc/core/client/v1/query.proto index 36a5135702d..08b970f7d9c 100644 --- a/proto/ibc/core/client/v1/query.proto +++ b/proto/ibc/core/client/v1/query.proto @@ -62,6 +62,8 @@ service Query { message QueryClientStateRequest { // client state unique identifier string client_id = 1; + // query height + uint64 height = 2; } // QueryClientStateResponse is the response type for the Query/ClientState RPC @@ -81,6 +83,8 @@ message QueryClientStateResponse { message QueryClientStatesRequest { // pagination request cosmos.base.query.v1beta1.PageRequest pagination = 1; + // query height + uint64 height = 2; } // QueryClientStatesResponse is the response type for the Query/ClientStates RPC @@ -106,6 +110,8 @@ message QueryConsensusStateRequest { // latest_height overrrides the height field and queries the latest stored // ConsensusState bool latest_height = 4; + // query height + uint64 height = 5; } // QueryConsensusStateResponse is the response type for the Query/ConsensusState @@ -126,6 +132,8 @@ message QueryConsensusStatesRequest { string client_id = 1; // pagination request cosmos.base.query.v1beta1.PageRequest pagination = 2; + // query height + uint64 height = 3; } // QueryConsensusStatesResponse is the response type for the @@ -142,6 +150,8 @@ message QueryConsensusStatesResponse { message QueryClientStatusRequest { // client unique identifier string client_id = 1; + // query height + uint64 height = 2; } // QueryClientStatusResponse is the response type for the Query/ClientStatus RPC @@ -152,7 +162,10 @@ message QueryClientStatusResponse { // QueryClientParamsRequest is the request type for the Query/ClientParams RPC // method. -message QueryClientParamsRequest {} +message QueryClientParamsRequest { + // query height + uint64 height = 1; +} // QueryClientParamsResponse is the response type for the Query/ClientParams RPC // method. @@ -163,7 +176,10 @@ message QueryClientParamsResponse { // QueryUpgradedClientStateRequest is the request type for the // Query/UpgradedClientState RPC method -message QueryUpgradedClientStateRequest {} +message QueryUpgradedClientStateRequest { + // query height + uint64 height = 1; +} // QueryUpgradedClientStateResponse is the response type for the // Query/UpgradedClientState RPC method. @@ -174,7 +190,10 @@ message QueryUpgradedClientStateResponse { // QueryUpgradedConsensusStateRequest is the request type for the // Query/UpgradedConsensusState RPC method -message QueryUpgradedConsensusStateRequest {} +message QueryUpgradedConsensusStateRequest { + // query height + uint64 height = 1; +} // QueryUpgradedConsensusStateResponse is the response type for the // Query/UpgradedConsensusState RPC method. diff --git a/proto/ibc/core/connection/v1/query.proto b/proto/ibc/core/connection/v1/query.proto index ca90e0eeb4f..bdaa45540ab 100644 --- a/proto/ibc/core/connection/v1/query.proto +++ b/proto/ibc/core/connection/v1/query.proto @@ -48,6 +48,8 @@ service Query { message QueryConnectionRequest { // connection unique identifier string connection_id = 1; + // query height + uint64 height = 2; } // QueryConnectionResponse is the response type for the Query/Connection RPC @@ -66,6 +68,8 @@ message QueryConnectionResponse { // method message QueryConnectionsRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; + // query height + uint64 height = 2; } // QueryConnectionsResponse is the response type for the Query/Connections RPC @@ -84,6 +88,8 @@ message QueryConnectionsResponse { message QueryClientConnectionsRequest { // client identifier associated with a connection string client_id = 1; + // query height + uint64 height = 2; } // QueryClientConnectionsResponse is the response type for the @@ -102,6 +108,8 @@ message QueryClientConnectionsResponse { message QueryConnectionClientStateRequest { // connection identifier string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""]; + // query height + uint64 height = 2; } // QueryConnectionClientStateResponse is the response type for the @@ -122,6 +130,8 @@ message QueryConnectionConsensusStateRequest { string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""]; uint64 revision_number = 2; uint64 revision_height = 3; + // query height + uint64 height = 4; } // QueryConnectionConsensusStateResponse is the response type for the From 48a4723cef419854f698c93526a085aa51e79ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Colin=20Axn=C3=A9r?= <25233464+colin-axner@users.noreply.github.com> Date: Mon, 12 Jul 2021 17:00:25 +0200 Subject: [PATCH 2/2] make initial changes --- modules/apps/transfer/keeper/grpc_query.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/apps/transfer/keeper/grpc_query.go b/modules/apps/transfer/keeper/grpc_query.go index 10015f727f2..a120c9e5f46 100644 --- a/modules/apps/transfer/keeper/grpc_query.go +++ b/modules/apps/transfer/keeper/grpc_query.go @@ -28,6 +28,8 @@ func (q Keeper) DenomTrace(c context.Context, req *types.QueryDenomTraceRequest) } ctx := sdk.UnwrapSDKContext(c) + ctx = ctx.WithBlockHeight(int64(req.Height)) + denomTrace, found := q.GetDenomTrace(ctx, hash) if !found { return nil, status.Error( @@ -48,6 +50,7 @@ func (q Keeper) DenomTraces(c context.Context, req *types.QueryDenomTracesReques } ctx := sdk.UnwrapSDKContext(c) + ctx = ctx.WithBlockHeight(int64(req.Height)) traces := types.Traces{} store := prefix.NewStore(ctx.KVStore(q.storeKey), types.DenomTraceKey) @@ -73,8 +76,10 @@ func (q Keeper) DenomTraces(c context.Context, req *types.QueryDenomTracesReques } // Params implements the Query/Params gRPC method -func (q Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { +func (q Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { ctx := sdk.UnwrapSDKContext(c) + ctx = ctx.WithBlockHeight(int64(req.Height)) + params := q.GetParams(ctx) return &types.QueryParamsResponse{