From 7b02a944ef76800ee35d924a3e8da46722b03633 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 28 Oct 2022 13:12:16 +0100 Subject: [PATCH] Build query and tx proto go types --- x/ccv/provider/types/query.pb.go | 472 ++++++++++++++++++++-- x/ccv/provider/types/query.pb.gw.go | 83 ++++ x/ccv/provider/types/tx.pb.go | 589 ++++++++++++++++++++++++++++ 3 files changed, 1104 insertions(+), 40 deletions(-) create mode 100644 x/ccv/provider/types/tx.pb.go diff --git a/x/ccv/provider/types/query.pb.go b/x/ccv/provider/types/query.pb.go index 93a054de8c..cffda1be6c 100644 --- a/x/ccv/provider/types/query.pb.go +++ b/x/ccv/provider/types/query.pb.go @@ -418,6 +418,102 @@ func (m *Chain) GetClientId() string { return "" } +type QueryConsumerChainValidatorKeyMappingRequest struct { + Placeholder string `protobuf:"bytes,1,opt,name=placeholder,proto3" json:"placeholder,omitempty"` +} + +func (m *QueryConsumerChainValidatorKeyMappingRequest) Reset() { + *m = QueryConsumerChainValidatorKeyMappingRequest{} +} +func (m *QueryConsumerChainValidatorKeyMappingRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryConsumerChainValidatorKeyMappingRequest) ProtoMessage() {} +func (*QueryConsumerChainValidatorKeyMappingRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_422512d7b7586cd7, []int{9} +} +func (m *QueryConsumerChainValidatorKeyMappingRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryConsumerChainValidatorKeyMappingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryConsumerChainValidatorKeyMappingRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryConsumerChainValidatorKeyMappingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryConsumerChainValidatorKeyMappingRequest.Merge(m, src) +} +func (m *QueryConsumerChainValidatorKeyMappingRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryConsumerChainValidatorKeyMappingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryConsumerChainValidatorKeyMappingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryConsumerChainValidatorKeyMappingRequest proto.InternalMessageInfo + +func (m *QueryConsumerChainValidatorKeyMappingRequest) GetPlaceholder() string { + if m != nil { + return m.Placeholder + } + return "" +} + +type QueryConsumerChainValidatorKeyMappingResponse struct { + Placeholder string `protobuf:"bytes,1,opt,name=placeholder,proto3" json:"placeholder,omitempty"` +} + +func (m *QueryConsumerChainValidatorKeyMappingResponse) Reset() { + *m = QueryConsumerChainValidatorKeyMappingResponse{} +} +func (m *QueryConsumerChainValidatorKeyMappingResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryConsumerChainValidatorKeyMappingResponse) ProtoMessage() {} +func (*QueryConsumerChainValidatorKeyMappingResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_422512d7b7586cd7, []int{10} +} +func (m *QueryConsumerChainValidatorKeyMappingResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryConsumerChainValidatorKeyMappingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryConsumerChainValidatorKeyMappingResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryConsumerChainValidatorKeyMappingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryConsumerChainValidatorKeyMappingResponse.Merge(m, src) +} +func (m *QueryConsumerChainValidatorKeyMappingResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryConsumerChainValidatorKeyMappingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryConsumerChainValidatorKeyMappingResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryConsumerChainValidatorKeyMappingResponse proto.InternalMessageInfo + +func (m *QueryConsumerChainValidatorKeyMappingResponse) GetPlaceholder() string { + if m != nil { + return m.Placeholder + } + return "" +} + func init() { proto.RegisterType((*QueryConsumerGenesisRequest)(nil), "interchain_security.ccv.provider.v1.QueryConsumerGenesisRequest") proto.RegisterType((*QueryConsumerGenesisResponse)(nil), "interchain_security.ccv.provider.v1.QueryConsumerGenesisResponse") @@ -428,6 +524,8 @@ func init() { proto.RegisterType((*QueryConsumerChainStopProposalsRequest)(nil), "interchain_security.ccv.provider.v1.QueryConsumerChainStopProposalsRequest") proto.RegisterType((*QueryConsumerChainStopProposalsResponse)(nil), "interchain_security.ccv.provider.v1.QueryConsumerChainStopProposalsResponse") proto.RegisterType((*Chain)(nil), "interchain_security.ccv.provider.v1.Chain") + proto.RegisterType((*QueryConsumerChainValidatorKeyMappingRequest)(nil), "interchain_security.ccv.provider.v1.QueryConsumerChainValidatorKeyMappingRequest") + proto.RegisterType((*QueryConsumerChainValidatorKeyMappingResponse)(nil), "interchain_security.ccv.provider.v1.QueryConsumerChainValidatorKeyMappingResponse") } func init() { @@ -435,46 +533,52 @@ func init() { } var fileDescriptor_422512d7b7586cd7 = []byte{ - // 620 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xcf, 0x6f, 0xd3, 0x3e, - 0x18, 0xc6, 0xeb, 0x7e, 0xbf, 0xfb, 0x51, 0x0f, 0x2e, 0x66, 0x12, 0x25, 0xab, 0xc2, 0x14, 0x24, - 0x28, 0x48, 0x24, 0x4a, 0x77, 0x01, 0xa4, 0xd1, 0x1f, 0x13, 0x1a, 0x13, 0x43, 0x82, 0x8e, 0x13, - 0x20, 0x55, 0x59, 0x62, 0x65, 0x96, 0xda, 0x38, 0x8b, 0xdd, 0x88, 0x0a, 0x38, 0xc0, 0x01, 0x71, - 0x44, 0xe2, 0x7f, 0x42, 0x3b, 0x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68, 0x22, 0xa9, 0xfb, 0x07, 0x00, 0x00, + // 709 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0x51, 0x4f, 0xd3, 0x5e, + 0x18, 0xc6, 0xd7, 0xfd, 0xff, 0x20, 0x3b, 0xe8, 0xcd, 0x91, 0x44, 0x2c, 0x64, 0x92, 0x1a, 0x75, + 0x1a, 0x69, 0xb3, 0x71, 0xa3, 0x26, 0x38, 0x18, 0x51, 0x20, 0x80, 0x81, 0x61, 0xbc, 0x50, 0x93, + 0xe5, 0xd0, 0x9e, 0x94, 0x13, 0xbb, 0x9e, 0xd2, 0x73, 0xd6, 0xb8, 0xa8, 0x17, 0x7a, 0x61, 0xbc, + 0x34, 0xf1, 0xde, 0xcf, 0xc3, 0x25, 0x09, 0x37, 0x5e, 0x19, 0x33, 0x4c, 0xfc, 0x14, 0x26, 0xa6, + 0xa7, 0xa7, 0x63, 0x73, 0x1d, 0x74, 0x73, 0x77, 0xdd, 0x69, 0xdf, 0xdf, 0xfb, 0x3c, 0x4f, 0xfb, + 0xbe, 0x19, 0x30, 0x88, 0xcb, 0xb1, 0x6f, 0xee, 0x23, 0xe2, 0xd6, 0x18, 0x36, 0x1b, 0x3e, 0xe1, + 0x4d, 0xc3, 0x34, 0x03, 0xc3, 0xf3, 0x69, 0x40, 0x2c, 0xec, 0x1b, 0x41, 0xd1, 0x38, 0x68, 0x60, + 0xbf, 0xa9, 0x7b, 0x3e, 0xe5, 0x14, 0x5e, 0x4f, 0x28, 0xd0, 0x4d, 0x33, 0xd0, 0xe3, 0x02, 0x3d, + 0x28, 0xaa, 0xb3, 0x36, 0xa5, 0xb6, 0x83, 0x0d, 0xe4, 0x11, 0x03, 0xb9, 0x2e, 0xe5, 0x88, 0x13, + 0xea, 0xb2, 0x08, 0xa1, 0x4e, 0xd9, 0xd4, 0xa6, 0xe2, 0xd2, 0x08, 0xaf, 0xe4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, 0x5e, 0xa7, 0xe8, 0x53, 0xa0, 0x56, 0x00, 0x37, 0x93, 0x94, 0x50, 0xaf, 0x47, 0xf4, + 0x47, 0x25, 0xd9, 0x60, 0xd7, 0xa3, 0x52, 0xf3, 0x8b, 0x5e, 0xcd, 0x8b, 0x03, 0x69, 0xae, 0xe2, + 0x3a, 0x0d, 0x90, 0x93, 0x28, 0xb9, 0x0c, 0xc6, 0x44, 0xeb, 0x33, 0xbe, 0x45, 0x38, 0x03, 0x72, + 0xa6, 0x43, 0xb0, 0xcb, 0xc3, 0x7b, 0x59, 0x71, 0x6f, 0x22, 0x3a, 0x58, 0xb7, 0xb4, 0x6d, 0x70, + 0xb7, 0xd7, 0xc8, 0x33, 0xe4, 0x10, 0x0b, 0x71, 0xea, 0x6f, 0xe0, 0xe6, 0x16, 0xf2, 0x3c, 0xe2, + 0xda, 0xf1, 0x37, 0x3f, 0x07, 0x26, 0x3d, 0x07, 0x99, 0x78, 0x9f, 0x3a, 0x16, 0xf6, 0x65, 0xab, + 0xce, 0x23, 0x6d, 0x07, 0xcc, 0xa7, 0x24, 0xca, 0x80, 0xce, 0x45, 0x96, 0x7e, 0xe5, 0xc0, 0x98, + 0x60, 0xc2, 0x96, 0x02, 0xa6, 0x92, 0x06, 0x0b, 0x2e, 0xa5, 0x8a, 0xf4, 0x8c, 0x69, 0x56, 0x97, + 0xff, 0x81, 0x10, 0x39, 0xd1, 0x1e, 0x7d, 0x38, 0xfe, 0xf9, 0x25, 0x5b, 0x86, 0x8b, 0xe7, 0x6f, + 0xca, 0x78, 0x9e, 0x6b, 0x72, 0x70, 0x8d, 0x37, 0xf1, 0xeb, 0x7b, 0x07, 0x8f, 0x15, 0x70, 0x39, + 0x61, 0x42, 0x61, 0x79, 0x70, 0x85, 0x5d, 0x93, 0xaf, 0x2e, 0x0d, 0x0f, 0x90, 0x0e, 0xef, 0x0b, + 0x87, 0x0b, 0xb0, 0x38, 0x80, 0xc3, 0x68, 0x27, 0xc0, 0xf7, 0x59, 0x30, 0xdd, 0x67, 0xd0, 0x19, + 0xdc, 0x1c, 0x52, 0x59, 0xe2, 0x4e, 0x51, 0xb7, 0x46, 0x44, 0x93, 0xa6, 0xd7, 0x84, 0xe9, 0x0a, + 0x5c, 0x1a, 0xd4, 0x74, 0xb8, 0xdb, 0x7d, 0x5e, 0x6b, 0x8f, 0x2b, 0xfc, 0xad, 0x80, 0x2b, 0xc9, + 0x7b, 0x83, 0xc1, 0x8d, 0xa1, 0x45, 0xf7, 0x2e, 0x28, 0x75, 0x73, 0x34, 0x30, 0x19, 0xc0, 0xaa, + 0x08, 0x60, 0x19, 0x96, 0x87, 0x08, 0x80, 0x7a, 0x1d, 0xfe, 0xbf, 0x66, 0xc1, 0x8d, 0x54, 0xcb, + 0x01, 0xee, 0x0c, 0x69, 0xa0, 0xff, 0xea, 0x52, 0xab, 0xa3, 0x44, 0xca, 0x64, 0x9e, 0x88, 0x64, + 0xd6, 0xe0, 0xe3, 0x81, 0x93, 0x09, 0x62, 0x6a, 0xed, 0x15, 0x6e, 0xd6, 0xea, 0x11, 0xb7, 0xf2, + 0xf4, 0xb0, 0x95, 0x57, 0x8e, 0x5a, 0x79, 0xe5, 0x47, 0x2b, 0xaf, 0x7c, 0x3e, 0xc9, 0x67, 0x8e, + 0x4e, 0xf2, 0x99, 0x6f, 0x27, 0xf9, 0xcc, 0xf3, 0x07, 0x36, 0xe1, 0xfb, 0x8d, 0x3d, 0xdd, 0xa4, + 0x75, 0xc3, 0xa4, 0xac, 0x4e, 0x59, 0x47, 0xcb, 0xf9, 0x76, 0xcb, 0xd7, 0xdd, 0x4d, 0x79, 0xd3, + 0xc3, 0x6c, 0x6f, 0x5c, 0xfc, 0x9d, 0x59, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff, 0x37, 0xac, 0xc0, + 0x24, 0xc1, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -499,6 +603,8 @@ type QueryClient interface { QueryConsumerChainStarts(ctx context.Context, in *QueryConsumerChainStartProposalsRequest, opts ...grpc.CallOption) (*QueryConsumerChainStartProposalsResponse, error) // QueryConsumerChainStops queries consumer chain stop proposals. QueryConsumerChainStops(ctx context.Context, in *QueryConsumerChainStopProposalsRequest, opts ...grpc.CallOption) (*QueryConsumerChainStopProposalsResponse, error) + // TODO: + QueryConsumerChainValidatorKeyMapping(ctx context.Context, in *QueryConsumerChainValidatorKeyMappingRequest, opts ...grpc.CallOption) (*QueryConsumerChainValidatorKeyMappingResponse, error) } type queryClient struct { @@ -545,6 +651,15 @@ func (c *queryClient) QueryConsumerChainStops(ctx context.Context, in *QueryCons return out, nil } +func (c *queryClient) QueryConsumerChainValidatorKeyMapping(ctx context.Context, in *QueryConsumerChainValidatorKeyMappingRequest, opts ...grpc.CallOption) (*QueryConsumerChainValidatorKeyMappingResponse, error) { + out := new(QueryConsumerChainValidatorKeyMappingResponse) + err := c.cc.Invoke(ctx, "/interchain_security.ccv.provider.v1.Query/QueryConsumerChainValidatorKeyMapping", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // ConsumerGenesis queries the genesis state needed to start a consumer chain @@ -557,6 +672,8 @@ type QueryServer interface { QueryConsumerChainStarts(context.Context, *QueryConsumerChainStartProposalsRequest) (*QueryConsumerChainStartProposalsResponse, error) // QueryConsumerChainStops queries consumer chain stop proposals. QueryConsumerChainStops(context.Context, *QueryConsumerChainStopProposalsRequest) (*QueryConsumerChainStopProposalsResponse, error) + // TODO: + QueryConsumerChainValidatorKeyMapping(context.Context, *QueryConsumerChainValidatorKeyMappingRequest) (*QueryConsumerChainValidatorKeyMappingResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -575,6 +692,9 @@ func (*UnimplementedQueryServer) QueryConsumerChainStarts(ctx context.Context, r func (*UnimplementedQueryServer) QueryConsumerChainStops(ctx context.Context, req *QueryConsumerChainStopProposalsRequest) (*QueryConsumerChainStopProposalsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryConsumerChainStops not implemented") } +func (*UnimplementedQueryServer) QueryConsumerChainValidatorKeyMapping(ctx context.Context, req *QueryConsumerChainValidatorKeyMappingRequest) (*QueryConsumerChainValidatorKeyMappingResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryConsumerChainValidatorKeyMapping not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -652,6 +772,24 @@ func _Query_QueryConsumerChainStops_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } +func _Query_QueryConsumerChainValidatorKeyMapping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryConsumerChainValidatorKeyMappingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).QueryConsumerChainValidatorKeyMapping(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/interchain_security.ccv.provider.v1.Query/QueryConsumerChainValidatorKeyMapping", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryConsumerChainValidatorKeyMapping(ctx, req.(*QueryConsumerChainValidatorKeyMappingRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "interchain_security.ccv.provider.v1.Query", HandlerType: (*QueryServer)(nil), @@ -672,6 +810,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "QueryConsumerChainStops", Handler: _Query_QueryConsumerChainStops_Handler, }, + { + MethodName: "QueryConsumerChainValidatorKeyMapping", + Handler: _Query_QueryConsumerChainValidatorKeyMapping_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "interchain_security/ccv/provider/v1/query.proto", @@ -953,6 +1095,66 @@ func (m *Chain) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *QueryConsumerChainValidatorKeyMappingRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryConsumerChainValidatorKeyMappingRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryConsumerChainValidatorKeyMappingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Placeholder) > 0 { + i -= len(m.Placeholder) + copy(dAtA[i:], m.Placeholder) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Placeholder))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryConsumerChainValidatorKeyMappingResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryConsumerChainValidatorKeyMappingResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryConsumerChainValidatorKeyMappingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Placeholder) > 0 { + i -= len(m.Placeholder) + copy(dAtA[i:], m.Placeholder) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Placeholder))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -1073,6 +1275,32 @@ func (m *Chain) Size() (n int) { return n } +func (m *QueryConsumerChainValidatorKeyMappingRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Placeholder) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryConsumerChainValidatorKeyMappingResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Placeholder) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1764,6 +1992,170 @@ func (m *Chain) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryConsumerChainValidatorKeyMappingRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryConsumerChainValidatorKeyMappingRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryConsumerChainValidatorKeyMappingRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Placeholder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Placeholder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryConsumerChainValidatorKeyMappingResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryConsumerChainValidatorKeyMappingResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryConsumerChainValidatorKeyMappingResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Placeholder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Placeholder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/ccv/provider/types/query.pb.gw.go b/x/ccv/provider/types/query.pb.gw.go index 2d660f5508..a83a9de18a 100644 --- a/x/ccv/provider/types/query.pb.gw.go +++ b/x/ccv/provider/types/query.pb.gw.go @@ -141,6 +141,42 @@ func local_request_Query_QueryConsumerChainStops_0(ctx context.Context, marshale } +var ( + filter_Query_QueryConsumerChainValidatorKeyMapping_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QueryConsumerChainValidatorKeyMapping_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryConsumerChainValidatorKeyMappingRequest + 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_QueryConsumerChainValidatorKeyMapping_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryConsumerChainValidatorKeyMapping(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryConsumerChainValidatorKeyMapping_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryConsumerChainValidatorKeyMappingRequest + 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_QueryConsumerChainValidatorKeyMapping_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryConsumerChainValidatorKeyMapping(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -239,6 +275,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_QueryConsumerChainValidatorKeyMapping_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_QueryConsumerChainValidatorKeyMapping_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_QueryConsumerChainValidatorKeyMapping_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -360,6 +419,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_QueryConsumerChainValidatorKeyMapping_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_QueryConsumerChainValidatorKeyMapping_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_QueryConsumerChainValidatorKeyMapping_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -371,6 +450,8 @@ var ( pattern_Query_QueryConsumerChainStarts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"interchain_security", "ccv", "provider", "consumer_chain_start_proposals"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryConsumerChainStops_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"interchain_security", "ccv", "provider", "consumer_chain_stop_proposals"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_QueryConsumerChainValidatorKeyMapping_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"interchain_security", "ccv", "provider", "consumer_chain_validator_key_mapping"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -381,4 +462,6 @@ var ( forward_Query_QueryConsumerChainStarts_0 = runtime.ForwardResponseMessage forward_Query_QueryConsumerChainStops_0 = runtime.ForwardResponseMessage + + forward_Query_QueryConsumerChainValidatorKeyMapping_0 = runtime.ForwardResponseMessage ) diff --git a/x/ccv/provider/types/tx.pb.go b/x/ccv/provider/types/tx.pb.go new file mode 100644 index 0000000000..d458b130f3 --- /dev/null +++ b/x/ccv/provider/types/tx.pb.go @@ -0,0 +1,589 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: interchain_security/ccv/provider/v1/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/interchain-security/x/ccv/types" + _ "github.com/gogo/protobuf/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type MsgDesignateConsensusKeyForConsumerChain struct { + Placeholder string `protobuf:"bytes,1,opt,name=placeholder,proto3" json:"placeholder,omitempty"` +} + +func (m *MsgDesignateConsensusKeyForConsumerChain) Reset() { + *m = MsgDesignateConsensusKeyForConsumerChain{} +} +func (m *MsgDesignateConsensusKeyForConsumerChain) String() string { return proto.CompactTextString(m) } +func (*MsgDesignateConsensusKeyForConsumerChain) ProtoMessage() {} +func (*MsgDesignateConsensusKeyForConsumerChain) Descriptor() ([]byte, []int) { + return fileDescriptor_43221a4391e9fbf4, []int{0} +} +func (m *MsgDesignateConsensusKeyForConsumerChain) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDesignateConsensusKeyForConsumerChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDesignateConsensusKeyForConsumerChain.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDesignateConsensusKeyForConsumerChain) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDesignateConsensusKeyForConsumerChain.Merge(m, src) +} +func (m *MsgDesignateConsensusKeyForConsumerChain) XXX_Size() int { + return m.Size() +} +func (m *MsgDesignateConsensusKeyForConsumerChain) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDesignateConsensusKeyForConsumerChain.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDesignateConsensusKeyForConsumerChain proto.InternalMessageInfo + +func (m *MsgDesignateConsensusKeyForConsumerChain) GetPlaceholder() string { + if m != nil { + return m.Placeholder + } + return "" +} + +type MsgDesignateConsensusKeyForConsumerChainResponse struct { + Placeholder string `protobuf:"bytes,1,opt,name=placeholder,proto3" json:"placeholder,omitempty"` +} + +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) Reset() { + *m = MsgDesignateConsensusKeyForConsumerChainResponse{} +} +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) String() string { + return proto.CompactTextString(m) +} +func (*MsgDesignateConsensusKeyForConsumerChainResponse) ProtoMessage() {} +func (*MsgDesignateConsensusKeyForConsumerChainResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_43221a4391e9fbf4, []int{1} +} +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDesignateConsensusKeyForConsumerChainResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDesignateConsensusKeyForConsumerChainResponse.Merge(m, src) +} +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDesignateConsensusKeyForConsumerChainResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDesignateConsensusKeyForConsumerChainResponse proto.InternalMessageInfo + +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) GetPlaceholder() string { + if m != nil { + return m.Placeholder + } + return "" +} + +func init() { + proto.RegisterType((*MsgDesignateConsensusKeyForConsumerChain)(nil), "interchain_security.ccv.provider.v1.MsgDesignateConsensusKeyForConsumerChain") + proto.RegisterType((*MsgDesignateConsensusKeyForConsumerChainResponse)(nil), "interchain_security.ccv.provider.v1.MsgDesignateConsensusKeyForConsumerChainResponse") +} + +func init() { + proto.RegisterFile("interchain_security/ccv/provider/v1/tx.proto", fileDescriptor_43221a4391e9fbf4) +} + +var fileDescriptor_43221a4391e9fbf4 = []byte{ + // 304 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x91, 0xbf, 0x4a, 0x43, 0x31, + 0x14, 0x87, 0x1b, 0x04, 0xc1, 0xeb, 0x56, 0x1c, 0xa4, 0x48, 0x28, 0x15, 0xa1, 0x83, 0x26, 0xad, + 0x6e, 0x8e, 0x56, 0x5c, 0xb4, 0x4b, 0xa9, 0x8b, 0x8b, 0xa4, 0xe9, 0x21, 0x0d, 0xf6, 0xe6, 0x84, + 0x9c, 0xdc, 0x4b, 0xef, 0x5b, 0xf8, 0x58, 0x2e, 0x42, 0x17, 0xc1, 0x51, 0xda, 0x17, 0x91, 0xdb, + 0x5a, 0xff, 0x80, 0xe0, 0x1d, 0xdc, 0x4e, 0x4e, 0x4e, 0x3e, 0xbe, 0x9c, 0x5f, 0x72, 0x6c, 0x5d, + 0x84, 0xa0, 0x27, 0xca, 0xba, 0x7b, 0x02, 0x9d, 0x05, 0x1b, 0x0b, 0xa9, 0x75, 0x2e, 0x7d, 0xc0, + 0xdc, 0x8e, 0x21, 0xc8, 0xbc, 0x2b, 0xe3, 0x4c, 0xf8, 0x80, 0x11, 0xeb, 0x87, 0xbf, 0x4c, 0x0b, + 0xad, 0x73, 0xb1, 0x99, 0x16, 0x79, 0xb7, 0x71, 0x60, 0x10, 0xcd, 0x14, 0xa4, 0xf2, 0x56, 0x2a, + 0xe7, 0x30, 0xaa, 0x68, 0xd1, 0xd1, 0x1a, 0xd1, 0xd8, 0x33, 0x68, 0x70, 0x55, 0xca, 0xb2, 0xfa, + 0xe8, 0x76, 0xaa, 0x68, 0x3c, 0x40, 0x91, 0x2a, 0xbf, 0x7e, 0xd1, 0xba, 0x49, 0xda, 0x7d, 0x32, + 0x97, 0x40, 0xd6, 0x38, 0x15, 0xa1, 0x87, 0x8e, 0xc0, 0x51, 0x46, 0xd7, 0x50, 0x5c, 0x61, 0x28, + 0x8f, 0x59, 0x0a, 0xa1, 0x57, 0x12, 0xeb, 0xcd, 0x64, 0xd7, 0x4f, 0x95, 0x86, 0x09, 0x4e, 0xc7, + 0x10, 0xf6, 0x59, 0x93, 0xb5, 0x77, 0x06, 0xdf, 0x5b, 0xad, 0x61, 0xd2, 0xa9, 0x4a, 0x1b, 0x00, + 0xf9, 0xf2, 0xfa, 0x6f, 0xea, 0xe9, 0x0b, 0x4b, 0xb6, 0xfa, 0x64, 0xea, 0xcf, 0x2c, 0x39, 0xaa, + 0x66, 0xda, 0x17, 0x15, 0x36, 0x2c, 0xaa, 0xaa, 0x36, 0x6e, 0xff, 0x15, 0xb7, 0xf9, 0xf9, 0xc5, + 0xf0, 0x69, 0xc1, 0xd9, 0x7c, 0xc1, 0xd9, 0xdb, 0x82, 0xb3, 0xc7, 0x25, 0xaf, 0xcd, 0x97, 0xbc, + 0xf6, 0xba, 0xe4, 0xb5, 0xbb, 0x73, 0x63, 0xe3, 0x24, 0x1b, 0x09, 0x8d, 0xa9, 0xd4, 0x48, 0x29, + 0x92, 0xfc, 0x32, 0x38, 0xf9, 0x4c, 0x76, 0xf6, 0x33, 0xdb, 0x58, 0x78, 0xa0, 0xd1, 0xf6, 0x2a, + 0xd8, 0xb3, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x9e, 0x37, 0x95, 0x93, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + DesignateConsensusKeyForConsumerChain(ctx context.Context, in *MsgDesignateConsensusKeyForConsumerChain, opts ...grpc.CallOption) (*MsgDesignateConsensusKeyForConsumerChainResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) DesignateConsensusKeyForConsumerChain(ctx context.Context, in *MsgDesignateConsensusKeyForConsumerChain, opts ...grpc.CallOption) (*MsgDesignateConsensusKeyForConsumerChainResponse, error) { + out := new(MsgDesignateConsensusKeyForConsumerChainResponse) + err := c.cc.Invoke(ctx, "/interchain_security.ccv.provider.v1.Msg/DesignateConsensusKeyForConsumerChain", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + DesignateConsensusKeyForConsumerChain(context.Context, *MsgDesignateConsensusKeyForConsumerChain) (*MsgDesignateConsensusKeyForConsumerChainResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) DesignateConsensusKeyForConsumerChain(ctx context.Context, req *MsgDesignateConsensusKeyForConsumerChain) (*MsgDesignateConsensusKeyForConsumerChainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DesignateConsensusKeyForConsumerChain not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_DesignateConsensusKeyForConsumerChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDesignateConsensusKeyForConsumerChain) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DesignateConsensusKeyForConsumerChain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/interchain_security.ccv.provider.v1.Msg/DesignateConsensusKeyForConsumerChain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DesignateConsensusKeyForConsumerChain(ctx, req.(*MsgDesignateConsensusKeyForConsumerChain)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "interchain_security.ccv.provider.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DesignateConsensusKeyForConsumerChain", + Handler: _Msg_DesignateConsensusKeyForConsumerChain_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "interchain_security/ccv/provider/v1/tx.proto", +} + +func (m *MsgDesignateConsensusKeyForConsumerChain) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDesignateConsensusKeyForConsumerChain) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDesignateConsensusKeyForConsumerChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Placeholder) > 0 { + i -= len(m.Placeholder) + copy(dAtA[i:], m.Placeholder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Placeholder))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Placeholder) > 0 { + i -= len(m.Placeholder) + copy(dAtA[i:], m.Placeholder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Placeholder))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgDesignateConsensusKeyForConsumerChain) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Placeholder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Placeholder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgDesignateConsensusKeyForConsumerChain) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDesignateConsensusKeyForConsumerChain: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDesignateConsensusKeyForConsumerChain: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Placeholder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Placeholder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDesignateConsensusKeyForConsumerChainResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDesignateConsensusKeyForConsumerChainResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDesignateConsensusKeyForConsumerChainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Placeholder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Placeholder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +)