diff --git a/modules/core/02-client/types/query.pb.go b/modules/core/02-client/types/query.pb.go index 2585a9a8988..dcc852cdbfd 100644 --- a/modules/core/02-client/types/query.pb.go +++ b/modules/core/02-client/types/query.pb.go @@ -37,6 +37,11 @@ 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"` + // the height at which to query + Height *Height `protobuf:"bytes,2,opt,name=height,proto3" json:"height,omitempty"` + // latest_height overrides the height field and queries the latest stored + // ClientState + LatestHeight bool `protobuf:"varint,3,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` } func (m *QueryClientStateRequest) Reset() { *m = QueryClientStateRequest{} } @@ -79,6 +84,20 @@ func (m *QueryClientStateRequest) GetClientId() string { return "" } +func (m *QueryClientStateRequest) GetHeight() *Height { + if m != nil { + return m.Height + } + return nil +} + +func (m *QueryClientStateRequest) GetLatestHeight() bool { + if m != nil { + return m.LatestHeight + } + return false +} + // 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. @@ -249,8 +268,7 @@ func (m *QueryClientStatesResponse) GetPagination() *query.PageResponse { } // QueryConsensusStateRequest is the request type for the Query/ConsensusState -// RPC method. Besides the consensus state, it includes a proof and the height -// from which the proof was retrieved. +// RPC method. type QueryConsensusStateRequest struct { // client identifier ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` @@ -325,7 +343,8 @@ func (m *QueryConsensusStateRequest) GetLatestHeight() bool { } // QueryConsensusStateResponse is the response type for the Query/ConsensusState -// RPC method +// RPC method. Besides the consensus state, it includes a proof and the height +// from which the proof was retrieved. type QueryConsensusStateResponse struct { // consensus state associated with the client identifier at the given height ConsensusState *types.Any `protobuf:"bytes,1,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"` @@ -794,6 +813,11 @@ func (m *QueryClientParamsResponse) GetParams() *Params { // QueryUpgradedClientStateRequest is the request type for the // Query/UpgradedClientState RPC method type QueryUpgradedClientStateRequest struct { + // the height at which to query + Height *Height `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` + // latest_height overrides the height field and queries the latest stored + // UpgradedClientState + LatestHeight bool `protobuf:"varint,2,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` } func (m *QueryUpgradedClientStateRequest) Reset() { *m = QueryUpgradedClientStateRequest{} } @@ -829,6 +853,20 @@ func (m *QueryUpgradedClientStateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryUpgradedClientStateRequest proto.InternalMessageInfo +func (m *QueryUpgradedClientStateRequest) GetHeight() *Height { + if m != nil { + return m.Height + } + return nil +} + +func (m *QueryUpgradedClientStateRequest) GetLatestHeight() bool { + if m != nil { + return m.LatestHeight + } + return false +} + // QueryUpgradedClientStateResponse is the response type for the // Query/UpgradedClientState RPC method. type QueryUpgradedClientStateResponse struct { @@ -879,6 +917,11 @@ func (m *QueryUpgradedClientStateResponse) GetUpgradedClientState() *types.Any { // QueryUpgradedConsensusStateRequest is the request type for the // Query/UpgradedConsensusState RPC method type QueryUpgradedConsensusStateRequest struct { + // the height at which to query + Height *Height `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` + // latest_height overrides the height field and queries the latest stored + // UpgradedClientState + LatestHeight bool `protobuf:"varint,2,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` } func (m *QueryUpgradedConsensusStateRequest) Reset() { *m = QueryUpgradedConsensusStateRequest{} } @@ -914,6 +957,20 @@ func (m *QueryUpgradedConsensusStateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryUpgradedConsensusStateRequest proto.InternalMessageInfo +func (m *QueryUpgradedConsensusStateRequest) GetHeight() *Height { + if m != nil { + return m.Height + } + return nil +} + +func (m *QueryUpgradedConsensusStateRequest) GetLatestHeight() bool { + if m != nil { + return m.LatestHeight + } + return false +} + // QueryUpgradedConsensusStateResponse is the response type for the // Query/UpgradedConsensusState RPC method. type QueryUpgradedConsensusStateResponse struct { @@ -1133,85 +1190,87 @@ func init() { func init() { proto.RegisterFile("ibc/core/client/v1/query.proto", fileDescriptor_dc42cdfd1d52d76e) } var fileDescriptor_dc42cdfd1d52d76e = []byte{ - // 1250 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x4f, 0x1b, 0x47, - 0x1b, 0x67, 0x08, 0x10, 0x78, 0xec, 0x00, 0x9a, 0x00, 0x71, 0x16, 0x62, 0x60, 0x79, 0xdf, 0x42, - 0x28, 0xec, 0x82, 0x69, 0x80, 0x44, 0xaa, 0xd4, 0x92, 0x2a, 0x0d, 0x95, 0x92, 0x52, 0x57, 0xfd, - 0x50, 0xa5, 0xca, 0x5a, 0xaf, 0x07, 0x7b, 0x15, 0xef, 0xae, 0xe3, 0xd9, 0xb5, 0x84, 0x22, 0x2e, - 0x9c, 0x72, 0x6b, 0xa5, 0x4a, 0xbd, 0x56, 0xea, 0xb1, 0x87, 0x28, 0x87, 0x4a, 0x3d, 0x55, 0xea, - 0xa9, 0xe5, 0x18, 0xa9, 0x3d, 0xf4, 0xd4, 0x54, 0x50, 0xa9, 0xff, 0x46, 0xb5, 0x33, 0xb3, 0xf6, - 0xae, 0x3d, 0x8e, 0xd7, 0x55, 0xd2, 0x9b, 0xf7, 0xf9, 0xfc, 0x3d, 0x1f, 0x33, 0xbf, 0x91, 0x21, - 0x6b, 0x15, 0x4d, 0xdd, 0x74, 0xeb, 0x44, 0x37, 0xab, 0x16, 0x71, 0x3c, 0xbd, 0xb1, 0xa9, 0x3f, - 0xf4, 0x49, 0xfd, 0x48, 0xab, 0xd5, 0x5d, 0xcf, 0xc5, 0xd8, 0x2a, 0x9a, 0x5a, 0xa0, 0xd7, 0xb8, - 0x5e, 0x6b, 0x6c, 0x2a, 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x12, + // 1282 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcf, 0x4f, 0x1b, 0xc7, + 0x17, 0x67, 0x08, 0x10, 0xf2, 0xec, 0x40, 0x34, 0x01, 0xe2, 0x2c, 0xc4, 0x90, 0x45, 0xdf, 0x2f, + 0x84, 0xc2, 0x2e, 0x98, 0x26, 0x90, 0x48, 0x95, 0x5a, 0x52, 0xa5, 0x50, 0x29, 0x29, 0xdd, 0xaa, + 0x3f, 0x54, 0xa9, 0xb2, 0xd6, 0xeb, 0xc1, 0x5e, 0xc5, 0xde, 0x75, 0x3c, 0xbb, 0x96, 0x68, 0xc4, + 0x85, 0x53, 0x6e, 0xa9, 0x54, 0xa9, 0xd7, 0x4a, 0x3d, 0xf6, 0x10, 0xe5, 0x50, 0xa9, 0xa7, 0x4a, + 0x3d, 0xb5, 0x1c, 0x23, 0xb5, 0x87, 0x9e, 0x9a, 0x0a, 0x2a, 0xf5, 0xdf, 0xa8, 0x76, 0x66, 0xd6, + 0xde, 0xb5, 0xc7, 0x78, 0x1d, 0x85, 0xde, 0xbc, 0x6f, 0xde, 0x8f, 0xcf, 0xfb, 0xcc, 0x9b, 0xf7, + 0x9e, 0x0c, 0x59, 0xbb, 0x60, 0xe9, 0x96, 0x5b, 0x27, 0xba, 0x55, 0xb1, 0x89, 0xe3, 0xe9, 0x8d, + 0x35, 0xfd, 0x91, 0x4f, 0xea, 0xfb, 0x5a, 0xad, 0xee, 0x7a, 0x2e, 0xc6, 0x76, 0xc1, 0xd2, 0x82, + 0x73, 0x8d, 0x9f, 0x6b, 0x8d, 0x35, 0x65, 0xc9, 0x72, 0x69, 0xd5, 0xa5, 0x7a, 0xc1, 0xa4, 0x84, + 0x2b, 0xeb, 0x8d, 0xb5, 0x02, 0xf1, 0xcc, 0x35, 0xbd, 0x66, 0x96, 0x6c, 0xc7, 0xf4, 0x6c, 0xd7, + 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0x00, 0xff, 0xff, 0x99, 0x59, 0x32, 0x06, 0x3b, 0x13, 0x00, 0x00, } @@ -1663,6 +1722,28 @@ func (m *QueryClientStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if m.LatestHeight { + i-- + if m.LatestHeight { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.Height != nil { + { + size, err := m.Height.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } if len(m.ClientId) > 0 { i -= len(m.ClientId) copy(dAtA[i:], m.ClientId) @@ -2231,6 +2312,28 @@ func (m *QueryUpgradedClientStateRequest) MarshalToSizedBuffer(dAtA []byte) (int _ = i var l int _ = l + if m.LatestHeight { + i-- + if m.LatestHeight { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.Height != nil { + { + size, err := m.Height.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -2289,6 +2392,28 @@ func (m *QueryUpgradedConsensusStateRequest) MarshalToSizedBuffer(dAtA []byte) ( _ = i var l int _ = l + if m.LatestHeight { + i-- + if m.LatestHeight { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.Height != nil { + { + size, err := m.Height.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -2455,6 +2580,13 @@ func (m *QueryClientStateRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != nil { + l = m.Height.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.LatestHeight { + n += 2 + } return n } @@ -2676,6 +2808,13 @@ func (m *QueryUpgradedClientStateRequest) Size() (n int) { } var l int _ = l + if m.Height != nil { + l = m.Height.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.LatestHeight { + n += 2 + } return n } @@ -2698,6 +2837,13 @@ func (m *QueryUpgradedConsensusStateRequest) Size() (n int) { } var l int _ = l + if m.Height != nil { + l = m.Height.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.LatestHeight { + n += 2 + } return n } @@ -2824,6 +2970,62 @@ func (m *QueryClientStateRequest) Unmarshal(dAtA []byte) error { } m.ClientId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Height == nil { + m.Height = &Height{} + } + if err := m.Height.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestHeight", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LatestHeight = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4302,6 +4504,62 @@ 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Height == nil { + m.Height = &Height{} + } + if err := m.Height.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestHeight", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LatestHeight = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4438,6 +4696,62 @@ 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Height == nil { + m.Height = &Height{} + } + if err := m.Height.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestHeight", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LatestHeight = bool(v != 0) 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 70d1ac22c2f..a13a1b8e5aa 100644 --- a/modules/core/02-client/types/query.pb.gw.go +++ b/modules/core/02-client/types/query.pb.gw.go @@ -33,6 +33,10 @@ var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage var _ = metadata.Join +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 @@ -55,6 +59,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 @@ -82,6 +93,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 @@ -455,10 +473,21 @@ func local_request_Query_ClientParams_0(ctx context.Context, marshaler runtime.M } +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 @@ -468,15 +497,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 @@ -486,6 +533,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 2915d37eac8..ba0d789f03f 100644 --- a/modules/core/03-connection/types/query.pb.go +++ b/modules/core/03-connection/types/query.pb.go @@ -37,6 +37,10 @@ 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"` + // the height at which to query + Height *types.Height `protobuf:"bytes,2,opt,name=height,proto3" json:"height,omitempty"` + // latest_height overrides the height field and queries the latest height + LatestHeight bool `protobuf:"varint,3,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` } func (m *QueryConnectionRequest) Reset() { *m = QueryConnectionRequest{} } @@ -79,6 +83,20 @@ func (m *QueryConnectionRequest) GetConnectionId() string { return "" } +func (m *QueryConnectionRequest) GetHeight() *types.Height { + if m != nil { + return m.Height + } + return nil +} + +func (m *QueryConnectionRequest) GetLatestHeight() bool { + if m != nil { + return m.LatestHeight + } + return false +} + // 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. @@ -720,66 +738,68 @@ func init() { } var fileDescriptor_cd8d529f8c7cd06b = []byte{ - // 935 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x41, 0x6f, 0xdc, 0x44, - 0x14, 0xce, 0x6c, 0xd2, 0x88, 0xbc, 0x0d, 0x6d, 0x19, 0xa5, 0xed, 0x62, 0x8a, 0x1b, 0x5c, 0xd2, - 0xa4, 0x40, 0x67, 0xba, 0x09, 0x89, 0x5a, 0x48, 0x10, 0xa4, 0x2a, 0x24, 0x97, 0x2a, 0x18, 0x09, - 0x24, 0x2e, 0x91, 0xed, 0x9d, 0x38, 0x96, 0xb2, 0x9e, 0xed, 0x8e, 0x77, 0x51, 0x54, 0x45, 0x48, - 0xfc, 0x02, 0x24, 0x2e, 0x5c, 0x7a, 0x05, 0x89, 0x7f, 0x80, 0xb8, 0x71, 0xea, 0xb1, 0x12, 0x97, - 0x9e, 0x2a, 0x94, 0x70, 0xe5, 0x3f, 0x54, 0x9e, 0x19, 0xd7, 0xe3, 0xdd, 0x75, 0xb2, 0xbb, 0x52, - 0x6e, 0xde, 0x37, 0xef, 0xbd, 0xf9, 0xbe, 0xef, 0x3d, 0x7f, 0x5e, 0x70, 0x22, 0x3f, 0xa0, 0x01, - 0x6f, 0x33, 0x1a, 0xf0, 0x38, 0x66, 0x41, 0x12, 0xf1, 0x98, 0x76, 0xeb, 0xf4, 0x71, 0x87, 0xb5, - 0x0f, 0x49,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x7d, 0x76, 0x6c, 0xa3, 0xe7, 0xc7, 0x36, 0xfa, 0xf7, - 0xd8, 0x46, 0x3f, 0x9f, 0xd8, 0x13, 0xcf, 0x4f, 0xec, 0x89, 0x17, 0x27, 0xf6, 0xc4, 0xf7, 0xeb, - 0x61, 0x94, 0xec, 0x77, 0x7c, 0x12, 0xf0, 0x26, 0xd5, 0xff, 0xf7, 0x23, 0x3f, 0xb8, 0x13, 0x72, - 0xda, 0xbd, 0x4f, 0x9b, 0xbc, 0xd1, 0x39, 0x60, 0x42, 0x35, 0xbe, 0xbb, 0x72, 0xc7, 0xe8, 0x9d, - 0x1c, 0xb6, 0x98, 0xf0, 0xa7, 0xe5, 0x27, 0x62, 0xe5, 0x55, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa8, - 0x17, 0xb1, 0x6f, 0x7d, 0x0c, 0x00, 0x00, + // 966 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x41, 0x6f, 0xdc, 0x44, + 0x18, 0xcd, 0x24, 0x69, 0xd4, 0x7c, 0x1b, 0xda, 0x32, 0x4a, 0xdb, 0xc5, 0x14, 0x77, 0x71, 0x49, + 0x93, 0x02, 0x9d, 0xe9, 0x6e, 0x48, 0xd4, 0x42, 0x8a, 0x20, 0x55, 0x21, 0xb9, 0x54, 0xc1, 0x48, + 0x20, 0x71, 0x89, 0x6c, 0xef, 0xc4, 0xb1, 0x94, 0xf5, 0x6c, 0x77, 0xbc, 0x8b, 0xa2, 0x2a, 0x42, + 0xe2, 0x17, 0x20, 0x21, 0x21, 0x2e, 0xbd, 0x82, 0xc4, 0x3f, 0x40, 0xdc, 0x38, 0xf5, 0x58, 0x89, + 0x4b, 0x4f, 0x15, 0x4a, 0xb8, 0xf2, 0x1f, 0x2a, 0xcf, 0xcc, 0xc6, 0xe3, 0xdd, 0x75, 0xe2, 0xac, + 0xd4, 0x9b, 0x77, 0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x7f, 0xcc, 0x6e, 0xcd, 0xf1, 0x07, 0xc9, + 0x71, 0x1f, 0x7f, 0x3f, 0x16, 0xc7, 0x7c, 0xf4, 0xd1, 0x7e, 0x8c, 0xd2, 0x27, 0x03, 0x81, 0x7c, + 0x40, 0x55, 0x5a, 0x19, 0x1b, 0x6a, 0xe1, 0x00, 0xff, 0x8e, 0xe0, 0xd2, 0x60, 0xcc, 0xe0, 0x8f, + 0x4a, 0x92, 0xca, 0xa5, 0x96, 0xb5, 0x72, 0xc6, 0x2e, 0x2d, 0xc1, 0x4d, 0x29, 0x41, 0x0d, 0xdb, + 0x45, 0x12, 0xa8, 0xec, 0x5a, 0xff, 0xe6, 0xd9, 0xa1, 0x8d, 0x9e, 0x1f, 0xda, 0xe8, 0xdf, 0x43, + 0x1b, 0xfd, 0x74, 0x64, 0x4f, 0x3c, 0x3f, 0xb2, 0x27, 0x5e, 0x1c, 0xd9, 0x13, 0xdf, 0xad, 0x85, + 0x51, 0xb2, 0xdb, 0xf5, 0x49, 0xc0, 0x5b, 0x54, 0xff, 0x93, 0x88, 0xfc, 0xe0, 0x76, 0xc8, 0x69, + 0xef, 0x1e, 0x6d, 0xf1, 0x66, 0x77, 0x8f, 0x09, 0x35, 0xf8, 0xce, 0xf2, 0x6d, 0x63, 0x76, 0xb2, + 0xdf, 0x66, 0xc2, 0x9f, 0x91, 0x9f, 0x88, 0xe5, 0x57, 0x01, 0x00, 0x00, 0xff, 0xff, 0x01, 0x49, + 0xbc, 0x5b, 0xd7, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1080,6 +1100,28 @@ func (m *QueryConnectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if m.LatestHeight { + i-- + if m.LatestHeight { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.Height != nil { + { + size, err := m.Height.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } if len(m.ConnectionId) > 0 { i -= len(m.ConnectionId) copy(dAtA[i:], m.ConnectionId) @@ -1575,6 +1617,13 @@ func (m *QueryConnectionRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != nil { + l = m.Height.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.LatestHeight { + n += 2 + } return n } @@ -1828,6 +1877,62 @@ func (m *QueryConnectionRequest) Unmarshal(dAtA []byte) error { } m.ConnectionId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Height == nil { + m.Height = &types.Height{} + } + if err := m.Height.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestHeight", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LatestHeight = bool(v != 0) 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 71acc0e9997..89383136cc0 100644 --- a/modules/core/03-connection/types/query.pb.gw.go +++ b/modules/core/03-connection/types/query.pb.gw.go @@ -33,6 +33,10 @@ var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage var _ = metadata.Join +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 @@ -55,6 +59,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 @@ -82,6 +93,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 diff --git a/modules/core/04-channel/types/query.pb.go b/modules/core/04-channel/types/query.pb.go index aae2ab333d0..f639c99c1c5 100644 --- a/modules/core/04-channel/types/query.pb.go +++ b/modules/core/04-channel/types/query.pb.go @@ -38,6 +38,10 @@ 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"` + // the height at which to query + Height *types.Height `protobuf:"bytes,3,opt,name=height,proto3" json:"height,omitempty"` + // latest_height overrides the height field and queries the latest height + LatestHeight bool `protobuf:"varint,4,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` } func (m *QueryChannelRequest) Reset() { *m = QueryChannelRequest{} } @@ -87,6 +91,20 @@ func (m *QueryChannelRequest) GetChannelId() string { return "" } +func (m *QueryChannelRequest) GetHeight() *types.Height { + if m != nil { + return m.Height + } + return nil +} + +func (m *QueryChannelRequest) GetLatestHeight() bool { + if m != nil { + return m.LatestHeight + } + return false +} + // 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. @@ -662,6 +680,10 @@ 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"` + // the height at which to query + Height *types.Height `protobuf:"bytes,4,opt,name=height,proto3" json:"height,omitempty"` + // latest_height overrides the height field and queries the latest height + LatestHeight bool `protobuf:"varint,5,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` } func (m *QueryPacketCommitmentRequest) Reset() { *m = QueryPacketCommitmentRequest{} } @@ -718,6 +740,20 @@ func (m *QueryPacketCommitmentRequest) GetSequence() uint64 { return 0 } +func (m *QueryPacketCommitmentRequest) GetHeight() *types.Height { + if m != nil { + return m.Height + } + return nil +} + +func (m *QueryPacketCommitmentRequest) GetLatestHeight() bool { + if m != nil { + return m.LatestHeight + } + return false +} + // QueryPacketCommitmentResponse defines the client query response for a packet // which also includes a proof and the height from which the proof was // retrieved @@ -922,6 +958,10 @@ 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"` + // the height at which to query + Height *types.Height `protobuf:"bytes,4,opt,name=height,proto3" json:"height,omitempty"` + // latest_height overrides the height field and queries the latest height + LatestHeight bool `protobuf:"varint,5,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` } func (m *QueryPacketReceiptRequest) Reset() { *m = QueryPacketReceiptRequest{} } @@ -978,6 +1018,20 @@ func (m *QueryPacketReceiptRequest) GetSequence() uint64 { return 0 } +func (m *QueryPacketReceiptRequest) GetHeight() *types.Height { + if m != nil { + return m.Height + } + return nil +} + +func (m *QueryPacketReceiptRequest) GetLatestHeight() bool { + if m != nil { + return m.LatestHeight + } + return false +} + // 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 +1107,10 @@ 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"` + // the height at which to query + Height *types.Height `protobuf:"bytes,4,opt,name=height,proto3" json:"height,omitempty"` + // latest_height overrides the height field and queries the latest height + LatestHeight bool `protobuf:"varint,5,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` } func (m *QueryPacketAcknowledgementRequest) Reset() { *m = QueryPacketAcknowledgementRequest{} } @@ -1109,6 +1167,20 @@ func (m *QueryPacketAcknowledgementRequest) GetSequence() uint64 { return 0 } +func (m *QueryPacketAcknowledgementRequest) GetHeight() *types.Height { + if m != nil { + return m.Height + } + return nil +} + +func (m *QueryPacketAcknowledgementRequest) GetLatestHeight() bool { + if m != nil { + return m.LatestHeight + } + return false +} + // QueryPacketAcknowledgementResponse defines the client query response for a // packet which also includes a proof and the height from which the // proof was retrieved @@ -1562,6 +1634,10 @@ 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"` + // the height at which to query + Height *types.Height `protobuf:"bytes,3,opt,name=height,proto3" json:"height,omitempty"` + // latest_height overrides the height field and queries the latest height + LatestHeight bool `protobuf:"varint,4,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` } func (m *QueryNextSequenceReceiveRequest) Reset() { *m = QueryNextSequenceReceiveRequest{} } @@ -1611,6 +1687,20 @@ func (m *QueryNextSequenceReceiveRequest) GetChannelId() string { return "" } +func (m *QueryNextSequenceReceiveRequest) GetHeight() *types.Height { + if m != nil { + return m.Height + } + return nil +} + +func (m *QueryNextSequenceReceiveRequest) GetLatestHeight() bool { + if m != nil { + return m.LatestHeight + } + return false +} + // QuerySequenceResponse is the response type for the // Query/QueryNextSequenceReceiveResponse RPC method type QueryNextSequenceReceiveResponse struct { @@ -2152,117 +2242,121 @@ func init() { func init() { proto.RegisterFile("ibc/core/channel/v1/query.proto", fileDescriptor_1034a1e9abc4cca1) } var fileDescriptor_1034a1e9abc4cca1 = []byte{ - // 1756 bytes of a gzipped FileDescriptorProto + // 1809 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5a, 0xcf, 0x6f, 0x14, 0x47, - 0x16, 0x76, 0xd9, 0xc6, 0x3f, 0x0a, 0x03, 0xa6, 0x6c, 0x2f, 0xa6, 0x6d, 0x8f, 0xcd, 0xa0, 0x5d, - 0x0c, 0x5a, 0xba, 0xb1, 0xcd, 0xb2, 0xb0, 0x62, 0x91, 0xb0, 0x77, 0x17, 0x8c, 0x16, 0x30, 0xed, - 0x90, 0x00, 0x52, 0x32, 0xe9, 0xe9, 0x29, 0xc6, 0x2d, 0x7b, 0xba, 0x9b, 0xe9, 0x9e, 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ce, 0x30, 0x9a, 0xe8, 0x60, 0xfe, - 0xa3, 0xd4, 0x98, 0x2f, 0x50, 0xd3, 0x35, 0x6e, 0x1a, 0xb4, 0x20, 0x74, 0xf1, 0xed, 0xc8, 0xb9, - 0x10, 0xca, 0x76, 0x86, 0xf2, 0xd0, 0x86, 0x28, 0x39, 0x80, 0x20, 0x4c, 0x72, 0x12, 0x77, 0x35, - 0xa9, 0x22, 0xcc, 0xcf, 0xde, 0x47, 0x38, 0xc3, 0x09, 0x5a, 0xa6, 0x49, 0x75, 0xcf, 0x5b, 0xbd, - 0x96, 0x19, 0x8c, 0x75, 0xff, 0x25, 0x6c, 0xa5, 0xc0, 0x48, 0x9d, 0xd6, 0xed, 0x5b, 0xd6, 0xfa, - 0x57, 0x84, 0xc7, 0x63, 0xa1, 0xfc, 0xb9, 0x54, 0xbf, 0x26, 0x44, 0xe7, 0x98, 0xe6, 0xd8, 0xec, - 0x45, 0x57, 0x73, 0x69, 0xda, 0xc3, 0xfb, 0x93, 0x2f, 0x62, 0x84, 0x6b, 0x10, 0x51, 0xc3, 0xfb, - 0x0c, 0x5f, 0x9f, 0x1c, 0x87, 0x9a, 0x73, 0xbc, 0x29, 0x70, 0x52, 0x0e, 0x47, 0x11, 0x09, 0x48, - 0x1a, 0xf0, 0x39, 0x64, 0x44, 0x0d, 0xb7, 0xf2, 0xc8, 0x7f, 0x85, 0xf0, 0x81, 0x10, 0x43, 0x8f, - 0x93, 0xe9, 0x54, 0x9c, 0xed, 0xd0, 0x8f, 0x1c, 0xc2, 0x7b, 0xca, 0xb4, 0x6a, 0x38, 0x86, 0x65, - 0xe6, 0xcc, 0x4a, 0x29, 0x4f, 0xcb, 0x0c, 0x65, 0xa7, 0xba, 0x5b, 0x0c, 0x5f, 0x62, 0xa3, 0xa1, - 0x89, 0x40, 0xa7, 0x33, 0x3c, 0x11, 0xf0, 0x3e, 0x45, 0x38, 0x9b, 0x84, 0x17, 0x82, 0xf2, 0x6f, - 0xbc, 0x47, 0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, 0x55, 0x52, 0xe0, 0x9f, 0x54, 0x8c, - 0xbc, 0x7e, 0xb4, 0x68, 0x29, 0xd5, 0x53, 0x4a, 0xc9, 0x2a, 0x54, 0x56, 0xa8, 0xc3, 0xbd, 0x1e, - 0x3b, 0x7e, 0x54, 0x38, 0x76, 0xef, 0xda, 0xd4, 0xc9, 0x77, 0xb1, 0xbf, 0x16, 0xce, 0xfc, 0x11, - 0x00, 0x00, 0xff, 0xff, 0x49, 0x5b, 0x44, 0x98, 0x34, 0x23, 0x00, 0x00, + 0x16, 0x76, 0xd9, 0x83, 0x7f, 0x94, 0x6d, 0x30, 0x65, 0x7b, 0x31, 0x6d, 0x7b, 0x6c, 0x06, 0xed, + 0x62, 0xd0, 0xd2, 0x8d, 0x6d, 0x96, 0x85, 0x15, 0x8b, 0x84, 0xbd, 0xbb, 0x60, 0xb4, 0x80, 0x69, + 0x2f, 0xbb, 0x2c, 0xd2, 0xee, 0xa4, 0xa7, 0xa7, 0x18, 0xb7, 0xec, 0xe9, 0x1e, 0xa6, 0x7b, 0x26, + 0x20, 0xc7, 0x51, 0x94, 0x03, 0xe1, 0x18, 0x05, 0x45, 0x91, 0x72, 0x89, 0x94, 0x43, 0x14, 0x22, + 0x45, 0x51, 0xf2, 0x0f, 0xe4, 0x92, 0x03, 0x52, 0x0e, 0xb1, 0x44, 0x0e, 0x91, 0x90, 0x48, 0x84, + 0x89, 0xc8, 0x35, 0x97, 0x9c, 0xa3, 0xae, 0x7a, 0xd5, 0xd3, 0x3d, 0xd3, 0xdd, 0x9e, 0xf1, 0x78, + 0x24, 0x93, 0xdb, 0x74, 0xd5, 0x7b, 0xd5, 0xdf, 0xf7, 0xbd, 0xaa, 0x57, 0xfd, 0x9e, 0x8d, 0x27, + 0x8c, 0x8c, 0xae, 0xe8, 0x56, 0x91, 0x2a, 0xfa, 0xb2, 0x66, 0x9a, 0x74, 0x55, 0x29, 0x4f, 0x2b, + 0xb7, 0x4b, 0xb4, 0x78, 0x57, 0x2e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x0b, 0x15, 0x2c, + 0xc9, 0x61, 0xdc, 0xbf, 0xaa, 0x39, 0xd4, 0x76, 0xd2, 0xe0, 0x9a, 0x98, 0x44, 0x53, 0xdd, 0x6a, + 0x1f, 0x1f, 0xe4, 0xc6, 0xa9, 0x87, 0x08, 0x0f, 0x05, 0x81, 0xda, 0x05, 0xcb, 0xb4, 0x29, 0x39, + 0x85, 0xbb, 0xe0, 0xf5, 0x0c, 0x69, 0xef, 0xcc, 0x98, 0x1c, 0x12, 0x4a, 0x59, 0xb8, 0x09, 0x63, + 0x32, 0x84, 0xf7, 0x14, 0x8a, 0x96, 0x75, 0x8b, 0x71, 0xe8, 0x53, 0xf9, 0x03, 0x99, 0xc7, 0x7d, + 0xec, 0x47, 0xba, 0x5e, 0x16, 0x73, 0x89, 0x47, 0x4f, 0x27, 0xda, 0xd4, 0x5e, 0xe6, 0x05, 0x58, + 0xff, 0x1f, 0x84, 0x6a, 0x0b, 0x51, 0xff, 0x81, 0x71, 0x65, 0x57, 0x00, 0xda, 0x3f, 0xc8, 0x7c, + 0x0b, 0xc9, 0xee, 0x16, 0x92, 0xf9, 0x8e, 0x84, 0x2d, 0x24, 0x2f, 0x6a, 0x39, 0x0a, 0xbe, 0xaa, + 0xcf, 0x33, 0xf5, 0x14, 0xe1, 0xe1, 0xaa, 0x17, 0x80, 0x18, 0x73, 0xb8, 0x1b, 0xf8, 0xd9, 0x23, + 0x68, 0xb2, 0x83, 0xad, 0x1f, 0xa6, 0xc6, 0x42, 0x96, 0x9a, 0x8e, 0x71, 0xcb, 0xa0, 0x59, 0xa1, + 0x8b, 0xe7, 0x47, 0x2e, 0x04, 0x50, 0xb6, 0x33, 0x94, 0x47, 0xb6, 0x44, 0xc9, 0x01, 0xf8, 0x61, + 0x92, 0xd3, 0xf5, 0xef, 0x05, 0x50, 0x11, 0xec, 0x53, 0xf7, 0x11, 0x4e, 0x72, 0x82, 0x96, 0x69, + 0x52, 0xdd, 0x5d, 0xad, 0x5a, 0xcb,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, 0x48, 0x62, 0xb2, 0x63, 0x2a, 0xa1, 0x1e, 0x2c, 0x54, 0x65, 0xa3, 0x25, 0x61, 0x90, + 0xfa, 0x05, 0xe1, 0xc3, 0xb1, 0x34, 0x21, 0x26, 0xff, 0xc4, 0x03, 0x55, 0xe2, 0xd7, 0x9f, 0xba, + 0x6a, 0x3c, 0x77, 0x43, 0xfe, 0x7a, 0x4f, 0xdc, 0x25, 0xd7, 0x4d, 0x71, 0x9a, 0x39, 0xe6, 0xa6, + 0x43, 0xbb, 0x45, 0x48, 0x3a, 0xb6, 0x0a, 0xc9, 0x1d, 0xb8, 0x42, 0x42, 0x80, 0x41, 0x30, 0xc6, + 0x70, 0x4f, 0x65, 0x3d, 0xc4, 0xd6, 0xab, 0x0c, 0xf8, 0x34, 0x69, 0x6f, 0x50, 0x93, 0x7b, 0x22, + 0x11, 0x56, 0x5e, 0x7d, 0x5e, 0x5f, 0x69, 0x5a, 0x90, 0x13, 0x78, 0x08, 0x04, 0xd1, 0xf4, 0x95, + 0x1a, 0x25, 0x48, 0x41, 0xec, 0xbc, 0x8a, 0x04, 0x25, 0x3c, 0x1a, 0x8a, 0xa3, 0xc5, 0xfc, 0xbf, + 0x10, 0xa5, 0xc3, 0x15, 0x7a, 0xc7, 0x0b, 0x88, 0xca, 0x11, 0xec, 0xda, 0x66, 0xc5, 0xe7, 0x08, + 0x4f, 0x46, 0x83, 0x06, 0xc5, 0x66, 0xf0, 0xb0, 0x49, 0xef, 0x54, 0xb6, 0x61, 0x1a, 0x74, 0x65, + 0x1c, 0x12, 0xea, 0xa0, 0x59, 0xeb, 0xdb, 0xca, 0xe4, 0xfa, 0x6f, 0xf8, 0x64, 0xf6, 0x43, 0x5e, + 0xa2, 0x66, 0xb6, 0xd9, 0xda, 0xef, 0x63, 0x71, 0xa8, 0x6b, 0x17, 0x06, 0x21, 0xfe, 0x88, 0x49, + 0x50, 0x08, 0x9b, 0x9a, 0x59, 0x50, 0x61, 0xc0, 0xac, 0xf2, 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x9d, 0xfd, 0x35, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xa4, 0x84, 0xfe, 0xf6, 0x24, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2991,6 +3085,28 @@ func (m *QueryChannelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.LatestHeight { + i-- + if m.LatestHeight { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Height != nil { + { + size, err := m.Height.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } if len(m.ChannelId) > 0 { i -= len(m.ChannelId) copy(dAtA[i:], m.ChannelId) @@ -3470,6 +3586,28 @@ func (m *QueryPacketCommitmentRequest) MarshalToSizedBuffer(dAtA []byte) (int, e _ = i var l int _ = l + if m.LatestHeight { + i-- + if m.LatestHeight { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Height != nil { + { + size, err := m.Height.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } if m.Sequence != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) i-- @@ -3667,6 +3805,28 @@ func (m *QueryPacketReceiptRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro _ = i var l int _ = l + if m.LatestHeight { + i-- + if m.LatestHeight { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Height != nil { + { + size, err := m.Height.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } if m.Sequence != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) i-- @@ -3759,6 +3919,28 @@ func (m *QueryPacketAcknowledgementRequest) MarshalToSizedBuffer(dAtA []byte) (i _ = i var l int _ = l + if m.LatestHeight { + i-- + if m.LatestHeight { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Height != nil { + { + size, err := m.Height.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } if m.Sequence != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) i-- @@ -3849,20 +4031,20 @@ func (m *QueryPacketAcknowledgementsRequest) MarshalToSizedBuffer(dAtA []byte) ( var l int _ = l if len(m.PacketCommitmentSequences) > 0 { - dAtA20 := make([]byte, len(m.PacketCommitmentSequences)*10) - var j19 int + dAtA24 := make([]byte, len(m.PacketCommitmentSequences)*10) + var j23 int for _, num := range m.PacketCommitmentSequences { for num >= 1<<7 { - dAtA20[j19] = uint8(uint64(num)&0x7f | 0x80) + dAtA24[j23] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j19++ + j23++ } - dAtA20[j19] = uint8(num) - j19++ + dAtA24[j23] = uint8(num) + j23++ } - i -= j19 - copy(dAtA[i:], dAtA20[:j19]) - i = encodeVarintQuery(dAtA, i, uint64(j19)) + i -= j23 + copy(dAtA[i:], dAtA24[:j23]) + i = encodeVarintQuery(dAtA, i, uint64(j23)) i-- dAtA[i] = 0x22 } @@ -3975,20 +4157,20 @@ func (m *QueryUnreceivedPacketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, var l int _ = l if len(m.PacketCommitmentSequences) > 0 { - dAtA25 := make([]byte, len(m.PacketCommitmentSequences)*10) - var j24 int + dAtA29 := make([]byte, len(m.PacketCommitmentSequences)*10) + var j28 int for _, num := range m.PacketCommitmentSequences { for num >= 1<<7 { - dAtA25[j24] = uint8(uint64(num)&0x7f | 0x80) + dAtA29[j28] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j24++ + j28++ } - dAtA25[j24] = uint8(num) - j24++ + dAtA29[j28] = uint8(num) + j28++ } - i -= j24 - copy(dAtA[i:], dAtA25[:j24]) - i = encodeVarintQuery(dAtA, i, uint64(j24)) + i -= j28 + copy(dAtA[i:], dAtA29[:j28]) + i = encodeVarintQuery(dAtA, i, uint64(j28)) i-- dAtA[i] = 0x1a } @@ -4040,20 +4222,20 @@ func (m *QueryUnreceivedPacketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, i-- dAtA[i] = 0x12 if len(m.Sequences) > 0 { - dAtA28 := make([]byte, len(m.Sequences)*10) - var j27 int + dAtA32 := make([]byte, len(m.Sequences)*10) + var j31 int for _, num := range m.Sequences { for num >= 1<<7 { - dAtA28[j27] = uint8(uint64(num)&0x7f | 0x80) + dAtA32[j31] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j27++ + j31++ } - dAtA28[j27] = uint8(num) - j27++ + dAtA32[j31] = uint8(num) + j31++ } - i -= j27 - copy(dAtA[i:], dAtA28[:j27]) - i = encodeVarintQuery(dAtA, i, uint64(j27)) + i -= j31 + copy(dAtA[i:], dAtA32[:j31]) + i = encodeVarintQuery(dAtA, i, uint64(j31)) i-- dAtA[i] = 0xa } @@ -4081,20 +4263,20 @@ func (m *QueryUnreceivedAcksRequest) MarshalToSizedBuffer(dAtA []byte) (int, err var l int _ = l if len(m.PacketAckSequences) > 0 { - dAtA30 := make([]byte, len(m.PacketAckSequences)*10) - var j29 int + dAtA34 := make([]byte, len(m.PacketAckSequences)*10) + var j33 int for _, num := range m.PacketAckSequences { for num >= 1<<7 { - dAtA30[j29] = uint8(uint64(num)&0x7f | 0x80) + dAtA34[j33] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j29++ + j33++ } - dAtA30[j29] = uint8(num) - j29++ + dAtA34[j33] = uint8(num) + j33++ } - i -= j29 - copy(dAtA[i:], dAtA30[:j29]) - i = encodeVarintQuery(dAtA, i, uint64(j29)) + i -= j33 + copy(dAtA[i:], dAtA34[:j33]) + i = encodeVarintQuery(dAtA, i, uint64(j33)) i-- dAtA[i] = 0x1a } @@ -4146,20 +4328,20 @@ func (m *QueryUnreceivedAcksResponse) MarshalToSizedBuffer(dAtA []byte) (int, er i-- dAtA[i] = 0x12 if len(m.Sequences) > 0 { - dAtA33 := make([]byte, len(m.Sequences)*10) - var j32 int + dAtA37 := make([]byte, len(m.Sequences)*10) + var j36 int for _, num := range m.Sequences { for num >= 1<<7 { - dAtA33[j32] = uint8(uint64(num)&0x7f | 0x80) + dAtA37[j36] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j32++ + j36++ } - dAtA33[j32] = uint8(num) - j32++ + dAtA37[j36] = uint8(num) + j36++ } - i -= j32 - copy(dAtA[i:], dAtA33[:j32]) - i = encodeVarintQuery(dAtA, i, uint64(j32)) + i -= j36 + copy(dAtA[i:], dAtA37[:j36]) + i = encodeVarintQuery(dAtA, i, uint64(j36)) i-- dAtA[i] = 0xa } @@ -4186,6 +4368,28 @@ func (m *QueryNextSequenceReceiveRequest) MarshalToSizedBuffer(dAtA []byte) (int _ = i var l int _ = l + if m.LatestHeight { + i-- + if m.LatestHeight { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Height != nil { + { + size, err := m.Height.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } if len(m.ChannelId) > 0 { i -= len(m.ChannelId) copy(dAtA[i:], m.ChannelId) @@ -4587,6 +4791,13 @@ func (m *QueryChannelRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != nil { + l = m.Height.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.LatestHeight { + n += 2 + } return n } @@ -4780,6 +4991,13 @@ func (m *QueryPacketCommitmentRequest) Size() (n int) { if m.Sequence != 0 { n += 1 + sovQuery(uint64(m.Sequence)) } + if m.Height != nil { + l = m.Height.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.LatestHeight { + n += 2 + } return n } @@ -4861,6 +5079,13 @@ func (m *QueryPacketReceiptRequest) Size() (n int) { if m.Sequence != 0 { n += 1 + sovQuery(uint64(m.Sequence)) } + if m.Height != nil { + l = m.Height.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.LatestHeight { + n += 2 + } return n } @@ -4899,6 +5124,13 @@ func (m *QueryPacketAcknowledgementRequest) Size() (n int) { if m.Sequence != 0 { n += 1 + sovQuery(uint64(m.Sequence)) } + if m.Height != nil { + l = m.Height.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.LatestHeight { + n += 2 + } return n } @@ -5068,6 +5300,13 @@ func (m *QueryNextSequenceReceiveRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Height != nil { + l = m.Height.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.LatestHeight { + n += 2 + } return n } @@ -5313,6 +5552,62 @@ func (m *QueryChannelRequest) Unmarshal(dAtA []byte) error { } m.ChannelId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Height == nil { + m.Height = &types.Height{} + } + if err := m.Height.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestHeight", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LatestHeight = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -6713,6 +7008,62 @@ func (m *QueryPacketCommitmentRequest) Unmarshal(dAtA []byte) error { break } } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Height == nil { + m.Height = &types.Height{} + } + if err := m.Height.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestHeight", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LatestHeight = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7300,6 +7651,62 @@ func (m *QueryPacketReceiptRequest) Unmarshal(dAtA []byte) error { break } } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Height == nil { + m.Height = &types.Height{} + } + if err := m.Height.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestHeight", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LatestHeight = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7570,6 +7977,62 @@ func (m *QueryPacketAcknowledgementRequest) Unmarshal(dAtA []byte) error { break } } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Height == nil { + m.Height = &types.Height{} + } + if err := m.Height.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestHeight", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LatestHeight = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -8912,6 +9375,62 @@ func (m *QueryNextSequenceReceiveRequest) Unmarshal(dAtA []byte) error { } m.ChannelId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Height == nil { + m.Height = &types.Height{} + } + if err := m.Height.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestHeight", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LatestHeight = bool(v != 0) 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 bce31252f8b..5263a44c112 100644 --- a/modules/core/04-channel/types/query.pb.gw.go +++ b/modules/core/04-channel/types/query.pb.gw.go @@ -33,6 +33,10 @@ var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage var _ = metadata.Join +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 @@ -66,6 +70,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 @@ -104,6 +115,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 @@ -413,6 +431,10 @@ func local_request_Query_ChannelConsensusState_0(ctx context.Context, marshaler } +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 @@ -457,6 +479,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 @@ -506,6 +535,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 @@ -605,6 +641,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 @@ -649,6 +689,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 @@ -698,11 +745,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 @@ -747,6 +805,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 @@ -796,6 +861,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 @@ -1091,6 +1163,10 @@ func local_request_Query_UnreceivedAcks_0(ctx context.Context, marshaler runtime } +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 @@ -1124,6 +1200,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 @@ -1162,6 +1245,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/core/channel/v1/query.proto b/proto/ibc/core/channel/v1/query.proto index f44a3e5aa62..c5e3626243b 100644 --- a/proto/ibc/core/channel/v1/query.proto +++ b/proto/ibc/core/channel/v1/query.proto @@ -130,6 +130,10 @@ message QueryChannelRequest { string port_id = 1; // channel unique identifier string channel_id = 2; + // the height at which to query + ibc.core.client.v1.Height height = 3; + // latest_height overrides the height field and queries the latest height + bool latest_height = 4; } // QueryChannelResponse is the response type for the Query/Channel RPC method. @@ -235,6 +239,10 @@ message QueryPacketCommitmentRequest { string channel_id = 2; // packet sequence uint64 sequence = 3; + // the height at which to query + ibc.core.client.v1.Height height = 4; + // latest_height overrides the height field and queries the latest height + bool latest_height = 5; } // QueryPacketCommitmentResponse defines the client query response for a packet @@ -279,6 +287,10 @@ message QueryPacketReceiptRequest { string channel_id = 2; // packet sequence uint64 sequence = 3; + // the height at which to query + ibc.core.client.v1.Height height = 4; + // latest_height overrides the height field and queries the latest height + bool latest_height = 5; } // QueryPacketReceiptResponse defines the client query response for a packet @@ -302,6 +314,10 @@ message QueryPacketAcknowledgementRequest { string channel_id = 2; // packet sequence uint64 sequence = 3; + // the height at which to query + ibc.core.client.v1.Height height = 4; + // latest_height overrides the height field and queries the latest height + bool latest_height = 5; } // QueryPacketAcknowledgementResponse defines the client query response for a @@ -386,6 +402,10 @@ message QueryNextSequenceReceiveRequest { string port_id = 1; // channel unique identifier string channel_id = 2; + // the height at which to query + ibc.core.client.v1.Height height = 3; + // latest_height overrides the height field and queries the latest height + bool latest_height = 4; } // QuerySequenceResponse is the response type for the @@ -456,4 +476,4 @@ message QueryChannelParamsRequest {} message QueryChannelParamsResponse { // params defines the parameters of the module. Params params = 1; -} \ No newline at end of file +} diff --git a/proto/ibc/core/client/v1/query.proto b/proto/ibc/core/client/v1/query.proto index 1cc773e5990..d404150fb7b 100644 --- a/proto/ibc/core/client/v1/query.proto +++ b/proto/ibc/core/client/v1/query.proto @@ -78,6 +78,11 @@ service Query { message QueryClientStateRequest { // client state unique identifier string client_id = 1; + // the height at which to query + ibc.core.client.v1.Height height = 2; + // latest_height overrides the height field and queries the latest stored + // ClientState + bool latest_height = 3; } // QueryClientStateResponse is the response type for the Query/ClientState RPC @@ -110,8 +115,7 @@ message QueryClientStatesResponse { } // QueryConsensusStateRequest is the request type for the Query/ConsensusState -// RPC method. Besides the consensus state, it includes a proof and the height -// from which the proof was retrieved. +// RPC method. message QueryConsensusStateRequest { // client identifier string client_id = 1; @@ -125,7 +129,8 @@ message QueryConsensusStateRequest { } // QueryConsensusStateResponse is the response type for the Query/ConsensusState -// RPC method +// RPC method. Besides the consensus state, it includes a proof and the height +// from which the proof was retrieved. message QueryConsensusStateResponse { // consensus state associated with the client identifier at the given height google.protobuf.Any consensus_state = 1; @@ -197,7 +202,13 @@ message QueryClientParamsResponse { // QueryUpgradedClientStateRequest is the request type for the // Query/UpgradedClientState RPC method -message QueryUpgradedClientStateRequest {} +message QueryUpgradedClientStateRequest { + // the height at which to query + ibc.core.client.v1.Height height = 1; + // latest_height overrides the height field and queries the latest stored + // UpgradedClientState + bool latest_height = 2; +} // QueryUpgradedClientStateResponse is the response type for the // Query/UpgradedClientState RPC method. @@ -208,7 +219,13 @@ message QueryUpgradedClientStateResponse { // QueryUpgradedConsensusStateRequest is the request type for the // Query/UpgradedConsensusState RPC method -message QueryUpgradedConsensusStateRequest {} +message QueryUpgradedConsensusStateRequest { + // the height at which to query + ibc.core.client.v1.Height height = 1; + // latest_height overrides the height field and queries the latest stored + // UpgradedClientState + bool latest_height = 2; +} // 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 5b6547282f3..d3f4d64d90b 100644 --- a/proto/ibc/core/connection/v1/query.proto +++ b/proto/ibc/core/connection/v1/query.proto @@ -53,6 +53,10 @@ service Query { message QueryConnectionRequest { // connection unique identifier string connection_id = 1; + // the height at which to query + ibc.core.client.v1.Height height = 2; + // latest_height overrides the height field and queries the latest height + bool latest_height = 3; } // QueryConnectionResponse is the response type for the Query/Connection RPC @@ -149,4 +153,4 @@ message QueryConnectionParamsRequest {} message QueryConnectionParamsResponse { // params defines the parameters of the module. Params params = 1; -} \ No newline at end of file +}