From 73655886de81c055f233ce34097ffac8297edb10 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Tue, 17 Jan 2023 15:15:54 -0500 Subject: [PATCH 01/34] idiot check --- api/cosmos/base/abci/v1beta1/abci.pulsar.go | 751 ++++++++++++++++---- client/tendermint.go | 1 + proto/cosmos/base/abci/v1beta1/abci.proto | 7 + simapp/simd/cmd/root.go | 2 +- types/abci.pb.go | 281 ++++++-- types/result.go | 11 + x/auth/block/query.go | 64 ++ x/auth/client/cli/query.go | 97 +++ 8 files changed, 1001 insertions(+), 213 deletions(-) create mode 100644 x/auth/block/query.go diff --git a/api/cosmos/base/abci/v1beta1/abci.pulsar.go b/api/cosmos/base/abci/v1beta1/abci.pulsar.go index 6d3253676da1..fc65a06f128d 100644 --- a/api/cosmos/base/abci/v1beta1/abci.pulsar.go +++ b/api/cosmos/base/abci/v1beta1/abci.pulsar.go @@ -1302,6 +1302,410 @@ func (x *fastReflection_TxResponse) ProtoMethods() *protoiface.Methods { } } +var ( + md_BlockResponse protoreflect.MessageDescriptor + fd_BlockResponse_height protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_base_abci_v1beta1_abci_proto_init() + md_BlockResponse = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("BlockResponse") + fd_BlockResponse_height = md_BlockResponse.Fields().ByName("height") +} + +var _ protoreflect.Message = (*fastReflection_BlockResponse)(nil) + +type fastReflection_BlockResponse BlockResponse + +func (x *BlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_BlockResponse)(x) +} + +func (x *BlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_BlockResponse_messageType fastReflection_BlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_BlockResponse_messageType{} + +type fastReflection_BlockResponse_messageType struct{} + +func (x fastReflection_BlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_BlockResponse)(nil) +} +func (x fastReflection_BlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_BlockResponse) +} +func (x fastReflection_BlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BlockResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_BlockResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_BlockResponse) Type() protoreflect.MessageType { + return _fastReflection_BlockResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BlockResponse) New() protoreflect.Message { + return new(fastReflection_BlockResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BlockResponse) Interface() protoreflect.ProtoMessage { + return (*BlockResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_BlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Height != int64(0) { + value := protoreflect.ValueOfInt64(x.Height) + if !f(fd_BlockResponse_height, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_BlockResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.BlockResponse.height": + return x.Height != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.BlockResponse.height": + x.Height = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_BlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.base.abci.v1beta1.BlockResponse.height": + value := x.Height + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.BlockResponse.height": + x.Height = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.BlockResponse.height": + panic(fmt.Errorf("field height of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_BlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.BlockResponse.height": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_BlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.BlockResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_BlockResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_BlockResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_BlockResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BlockResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Height != 0 { + n += 1 + runtime.Sov(uint64(x.Height)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*BlockResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Height != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Height)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*BlockResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + x.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + var _ protoreflect.List = (*_ABCIMessageLog_3_list)(nil) type _ABCIMessageLog_3_list struct { @@ -1377,7 +1781,7 @@ func (x *ABCIMessageLog) ProtoReflect() protoreflect.Message { } func (x *ABCIMessageLog) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[1] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1981,7 +2385,7 @@ func (x *StringEvent) ProtoReflect() protoreflect.Message { } func (x *StringEvent) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2488,7 +2892,7 @@ func (x *Attribute) ProtoReflect() protoreflect.Message { } func (x *Attribute) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2972,7 +3376,7 @@ func (x *GasInfo) ProtoReflect() protoreflect.Message { } func (x *GasInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3530,7 +3934,7 @@ func (x *Result) ProtoReflect() protoreflect.Message { } func (x *Result) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4186,7 +4590,7 @@ func (x *SimulationResponse) ProtoReflect() protoreflect.Message { } func (x *SimulationResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4700,7 +5104,7 @@ func (x *MsgData) ProtoReflect() protoreflect.Message { } func (x *MsgData) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5288,7 +5692,7 @@ func (x *TxMsgData) ProtoReflect() protoreflect.Message { } func (x *TxMsgData) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5877,7 +6281,7 @@ func (x *SearchTxsResult) ProtoReflect() protoreflect.Message { } func (x *SearchTxsResult) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6697,6 +7101,43 @@ func (x *TxResponse) GetEvents() []*abci.Event { return nil } +// BlockResponse placeholder - still needs work +type BlockResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The block height + Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` +} + +func (x *BlockResponse) Reset() { + *x = BlockResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlockResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlockResponse) ProtoMessage() {} + +// Deprecated: Use BlockResponse.ProtoReflect.Descriptor instead. +func (*BlockResponse) Descriptor() ([]byte, []int) { + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{1} +} + +func (x *BlockResponse) GetHeight() int64 { + if x != nil { + return x.Height + } + return 0 +} + // ABCIMessageLog defines a structure containing an indexed tx ABCI message log. type ABCIMessageLog struct { state protoimpl.MessageState @@ -6713,7 +7154,7 @@ type ABCIMessageLog struct { func (x *ABCIMessageLog) Reset() { *x = ABCIMessageLog{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[1] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6727,7 +7168,7 @@ func (*ABCIMessageLog) ProtoMessage() {} // Deprecated: Use ABCIMessageLog.ProtoReflect.Descriptor instead. func (*ABCIMessageLog) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{1} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{2} } func (x *ABCIMessageLog) GetMsgIndex() uint32 { @@ -6765,7 +7206,7 @@ type StringEvent struct { func (x *StringEvent) Reset() { *x = StringEvent{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6779,7 +7220,7 @@ func (*StringEvent) ProtoMessage() {} // Deprecated: Use StringEvent.ProtoReflect.Descriptor instead. func (*StringEvent) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{2} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{3} } func (x *StringEvent) GetType_() string { @@ -6810,7 +7251,7 @@ type Attribute struct { func (x *Attribute) Reset() { *x = Attribute{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6824,7 +7265,7 @@ func (*Attribute) ProtoMessage() {} // Deprecated: Use Attribute.ProtoReflect.Descriptor instead. func (*Attribute) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{3} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{4} } func (x *Attribute) GetKey() string { @@ -6856,7 +7297,7 @@ type GasInfo struct { func (x *GasInfo) Reset() { *x = GasInfo{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6870,7 +7311,7 @@ func (*GasInfo) ProtoMessage() {} // Deprecated: Use GasInfo.ProtoReflect.Descriptor instead. func (*GasInfo) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{4} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{5} } func (x *GasInfo) GetGasWanted() uint64 { @@ -6914,7 +7355,7 @@ type Result struct { func (x *Result) Reset() { *x = Result{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6928,7 +7369,7 @@ func (*Result) ProtoMessage() {} // Deprecated: Use Result.ProtoReflect.Descriptor instead. func (*Result) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{5} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{6} } // Deprecated: Do not use. @@ -6974,7 +7415,7 @@ type SimulationResponse struct { func (x *SimulationResponse) Reset() { *x = SimulationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6988,7 +7429,7 @@ func (*SimulationResponse) ProtoMessage() {} // Deprecated: Use SimulationResponse.ProtoReflect.Descriptor instead. func (*SimulationResponse) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{6} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{7} } func (x *SimulationResponse) GetGasInfo() *GasInfo { @@ -7021,7 +7462,7 @@ type MsgData struct { func (x *MsgData) Reset() { *x = MsgData{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7035,7 +7476,7 @@ func (*MsgData) ProtoMessage() {} // Deprecated: Use MsgData.ProtoReflect.Descriptor instead. func (*MsgData) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{7} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{8} } func (x *MsgData) GetMsgType() string { @@ -7072,7 +7513,7 @@ type TxMsgData struct { func (x *TxMsgData) Reset() { *x = TxMsgData{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7086,7 +7527,7 @@ func (*TxMsgData) ProtoMessage() {} // Deprecated: Use TxMsgData.ProtoReflect.Descriptor instead. func (*TxMsgData) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{8} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{9} } // Deprecated: Do not use. @@ -7127,7 +7568,7 @@ type SearchTxsResult struct { func (x *SearchTxsResult) Reset() { *x = SearchTxsResult{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7141,7 +7582,7 @@ func (*SearchTxsResult) ProtoMessage() {} // Deprecated: Use SearchTxsResult.ProtoReflect.Descriptor instead. func (*SearchTxsResult) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{9} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{10} } func (x *SearchTxsResult) GetTotalCount() uint64 { @@ -7226,95 +7667,98 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{ 0x12, 0x34, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xa9, 0x01, 0x0a, - 0x0e, 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x12, - 0x2a, 0x0a, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0d, 0x42, 0x0d, 0xea, 0xde, 0x1f, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x52, 0x08, 0x6d, 0x73, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6c, - 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x53, 0x0a, - 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x42, 0x14, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x0c, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x72, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x61, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, - 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x33, 0x0a, 0x09, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x43, 0x0a, 0x07, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, - 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, - 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, - 0x61, 0x73, 0x55, 0x73, 0x65, 0x64, 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, - 0x02, 0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x34, 0x0a, 0x06, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0c, - 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x3a, 0x04, 0x88, 0xa0, - 0x1f, 0x00, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x67, 0x61, 0x73, - 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x08, - 0xc8, 0xde, 0x1f, 0x00, 0xd0, 0xde, 0x1f, 0x01, 0x52, 0x07, 0x67, 0x61, 0x73, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x38, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x40, 0x0a, 0x07, 0x4d, - 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x73, 0x67, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x06, 0x18, 0x01, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x87, 0x01, - 0x0a, 0x09, 0x54, 0x78, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x42, 0x02, 0x18, 0x01, - 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x41, 0x6e, 0x79, 0x52, 0x0c, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xdc, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, - 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, - 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x36, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, - 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x74, 0x78, 0x73, - 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x42, 0xe7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x2d, 0x0a, 0x0d, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xa9, 0x01, 0x0a, 0x0e, + 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x2a, + 0x0a, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x42, 0x0d, 0xea, 0xde, 0x1f, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x52, 0x08, 0x6d, 0x73, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, + 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x53, 0x0a, 0x06, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x41, 0x62, 0x63, 0x69, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, - 0x73, 0x65, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, - 0x61, 0x62, 0x63, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, - 0x41, 0xaa, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, - 0x41, 0x62, 0x63, 0x69, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x24, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x41, - 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xd8, 0xe1, 0x1e, 0x00, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x42, 0x14, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x0c, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x72, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x33, 0x0a, 0x09, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x22, 0x43, 0x0a, 0x07, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x67, + 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x61, + 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x61, + 0x73, 0x55, 0x73, 0x65, 0x64, 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, + 0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x34, 0x0a, 0x06, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0c, 0x6d, + 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, + 0x00, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, + 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x08, 0xc8, + 0xde, 0x1f, 0x00, 0xd0, 0xde, 0x1f, 0x01, 0x52, 0x07, 0x67, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, + 0x12, 0x38, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, + 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x40, 0x0a, 0x07, 0x4d, 0x73, + 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x73, 0x67, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x3a, 0x06, 0x18, 0x01, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x87, 0x01, 0x0a, + 0x09, 0x54, 0x78, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, + 0x6e, 0x79, 0x52, 0x0c, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, + 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xdc, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, + 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x36, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x06, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x74, 0x78, 0x73, 0x3a, + 0x04, 0x80, 0xdc, 0x20, 0x01, 0x42, 0xe7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x41, 0x62, 0x63, 0x69, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, + 0x65, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, + 0x62, 0x63, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x41, + 0xaa, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41, + 0x62, 0x63, 0x69, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x24, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, + 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x41, 0x62, + 0x63, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xd8, 0xe1, 0x1e, 0x00, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -7329,33 +7773,34 @@ func file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP() []byte { return file_cosmos_base_abci_v1beta1_abci_proto_rawDescData } -var file_cosmos_base_abci_v1beta1_abci_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_cosmos_base_abci_v1beta1_abci_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_cosmos_base_abci_v1beta1_abci_proto_goTypes = []interface{}{ (*TxResponse)(nil), // 0: cosmos.base.abci.v1beta1.TxResponse - (*ABCIMessageLog)(nil), // 1: cosmos.base.abci.v1beta1.ABCIMessageLog - (*StringEvent)(nil), // 2: cosmos.base.abci.v1beta1.StringEvent - (*Attribute)(nil), // 3: cosmos.base.abci.v1beta1.Attribute - (*GasInfo)(nil), // 4: cosmos.base.abci.v1beta1.GasInfo - (*Result)(nil), // 5: cosmos.base.abci.v1beta1.Result - (*SimulationResponse)(nil), // 6: cosmos.base.abci.v1beta1.SimulationResponse - (*MsgData)(nil), // 7: cosmos.base.abci.v1beta1.MsgData - (*TxMsgData)(nil), // 8: cosmos.base.abci.v1beta1.TxMsgData - (*SearchTxsResult)(nil), // 9: cosmos.base.abci.v1beta1.SearchTxsResult - (*anypb.Any)(nil), // 10: google.protobuf.Any - (*abci.Event)(nil), // 11: tendermint.abci.Event + (*BlockResponse)(nil), // 1: cosmos.base.abci.v1beta1.BlockResponse + (*ABCIMessageLog)(nil), // 2: cosmos.base.abci.v1beta1.ABCIMessageLog + (*StringEvent)(nil), // 3: cosmos.base.abci.v1beta1.StringEvent + (*Attribute)(nil), // 4: cosmos.base.abci.v1beta1.Attribute + (*GasInfo)(nil), // 5: cosmos.base.abci.v1beta1.GasInfo + (*Result)(nil), // 6: cosmos.base.abci.v1beta1.Result + (*SimulationResponse)(nil), // 7: cosmos.base.abci.v1beta1.SimulationResponse + (*MsgData)(nil), // 8: cosmos.base.abci.v1beta1.MsgData + (*TxMsgData)(nil), // 9: cosmos.base.abci.v1beta1.TxMsgData + (*SearchTxsResult)(nil), // 10: cosmos.base.abci.v1beta1.SearchTxsResult + (*anypb.Any)(nil), // 11: google.protobuf.Any + (*abci.Event)(nil), // 12: tendermint.abci.Event } var file_cosmos_base_abci_v1beta1_abci_proto_depIdxs = []int32{ - 1, // 0: cosmos.base.abci.v1beta1.TxResponse.logs:type_name -> cosmos.base.abci.v1beta1.ABCIMessageLog - 10, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any - 11, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> tendermint.abci.Event - 2, // 3: cosmos.base.abci.v1beta1.ABCIMessageLog.events:type_name -> cosmos.base.abci.v1beta1.StringEvent - 3, // 4: cosmos.base.abci.v1beta1.StringEvent.attributes:type_name -> cosmos.base.abci.v1beta1.Attribute - 11, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> tendermint.abci.Event - 10, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any - 4, // 7: cosmos.base.abci.v1beta1.SimulationResponse.gas_info:type_name -> cosmos.base.abci.v1beta1.GasInfo - 5, // 8: cosmos.base.abci.v1beta1.SimulationResponse.result:type_name -> cosmos.base.abci.v1beta1.Result - 7, // 9: cosmos.base.abci.v1beta1.TxMsgData.data:type_name -> cosmos.base.abci.v1beta1.MsgData - 10, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any + 2, // 0: cosmos.base.abci.v1beta1.TxResponse.logs:type_name -> cosmos.base.abci.v1beta1.ABCIMessageLog + 11, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any + 12, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> tendermint.abci.Event + 3, // 3: cosmos.base.abci.v1beta1.ABCIMessageLog.events:type_name -> cosmos.base.abci.v1beta1.StringEvent + 4, // 4: cosmos.base.abci.v1beta1.StringEvent.attributes:type_name -> cosmos.base.abci.v1beta1.Attribute + 12, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> tendermint.abci.Event + 11, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any + 5, // 7: cosmos.base.abci.v1beta1.SimulationResponse.gas_info:type_name -> cosmos.base.abci.v1beta1.GasInfo + 6, // 8: cosmos.base.abci.v1beta1.SimulationResponse.result:type_name -> cosmos.base.abci.v1beta1.Result + 8, // 9: cosmos.base.abci.v1beta1.TxMsgData.data:type_name -> cosmos.base.abci.v1beta1.MsgData + 11, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any 0, // 11: cosmos.base.abci.v1beta1.SearchTxsResult.txs:type_name -> cosmos.base.abci.v1beta1.TxResponse 12, // [12:12] is the sub-list for method output_type 12, // [12:12] is the sub-list for method input_type @@ -7383,7 +7828,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { } } file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ABCIMessageLog); i { + switch v := v.(*BlockResponse); i { case 0: return &v.state case 1: @@ -7395,7 +7840,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { } } file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StringEvent); i { + switch v := v.(*ABCIMessageLog); i { case 0: return &v.state case 1: @@ -7407,7 +7852,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { } } file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Attribute); i { + switch v := v.(*StringEvent); i { case 0: return &v.state case 1: @@ -7419,7 +7864,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { } } file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GasInfo); i { + switch v := v.(*Attribute); i { case 0: return &v.state case 1: @@ -7431,7 +7876,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { } } file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Result); i { + switch v := v.(*GasInfo); i { case 0: return &v.state case 1: @@ -7443,7 +7888,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { } } file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SimulationResponse); i { + switch v := v.(*Result); i { case 0: return &v.state case 1: @@ -7455,7 +7900,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { } } file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgData); i { + switch v := v.(*SimulationResponse); i { case 0: return &v.state case 1: @@ -7467,7 +7912,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { } } file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TxMsgData); i { + switch v := v.(*MsgData); i { case 0: return &v.state case 1: @@ -7479,6 +7924,18 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { } } file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxMsgData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SearchTxsResult); i { case 0: return &v.state @@ -7497,7 +7954,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_cosmos_base_abci_v1beta1_abci_proto_rawDesc, NumEnums: 0, - NumMessages: 10, + NumMessages: 11, NumExtensions: 0, NumServices: 0, }, diff --git a/client/tendermint.go b/client/tendermint.go index 5465c398d4a3..8a35d04f2ac3 100644 --- a/client/tendermint.go +++ b/client/tendermint.go @@ -15,6 +15,7 @@ type TendermintRPC interface { Validators(ctx context.Context, height *int64, page, perPage *int) (*coretypes.ResultValidators, error) Status(context.Context) (*coretypes.ResultStatus, error) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error) + BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error) BlockchainInfo(ctx context.Context, minHeight, maxHeight int64) (*coretypes.ResultBlockchainInfo, error) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error) diff --git a/proto/cosmos/base/abci/v1beta1/abci.proto b/proto/cosmos/base/abci/v1beta1/abci.proto index ddaa63561774..dba9e75b7b52 100644 --- a/proto/cosmos/base/abci/v1beta1/abci.proto +++ b/proto/cosmos/base/abci/v1beta1/abci.proto @@ -48,6 +48,13 @@ message TxResponse { repeated tendermint.abci.Event events = 13 [(gogoproto.nullable) = false]; } +// BlockResponse placeholder - still needs work +message BlockResponse { + option (gogoproto.goproto_getters) = false; + // The block height + int64 height = 1; +} + // ABCIMessageLog defines a structure containing an indexed tx ABCI message log. message ABCIMessageLog { option (gogoproto.stringer) = true; diff --git a/simapp/simd/cmd/root.go b/simapp/simd/cmd/root.go index 693c5f7b30a7..e0058475ee0c 100644 --- a/simapp/simd/cmd/root.go +++ b/simapp/simd/cmd/root.go @@ -221,7 +221,7 @@ func queryCommand() *cobra.Command { cmd.AddCommand( authcmd.GetAccountCmd(), rpc.ValidatorCommand(), - rpc.BlockCommand(), + authcmd.QueryBlockCmd(), authcmd.QueryTxsByEventsCmd(), authcmd.QueryTxCmd(), ) diff --git a/types/abci.pb.go b/types/abci.pb.go index 6499130fb4d6..393546bacf0b 100644 --- a/types/abci.pb.go +++ b/types/abci.pb.go @@ -98,6 +98,46 @@ func (m *TxResponse) XXX_DiscardUnknown() { var xxx_messageInfo_TxResponse proto.InternalMessageInfo +// BlockResponse placeholder - still needs work +type BlockResponse struct { + // The block height + Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` +} + +func (m *BlockResponse) Reset() { *m = BlockResponse{} } +func (m *BlockResponse) String() string { return proto.CompactTextString(m) } //I had to manually add this +func (m *BlockResponse) Empty() bool { return len(proto.CompactTextString(m)) == 0 } //I had to manually add this +func (*BlockResponse) ProtoMessage() {} +func (*BlockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4e37629bc7eb0df8, []int{1} +} +func (m *BlockResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockResponse.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 *BlockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockResponse.Merge(m, src) +} +func (m *BlockResponse) XXX_Size() int { + return m.Size() +} +func (m *BlockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BlockResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockResponse proto.InternalMessageInfo + // ABCIMessageLog defines a structure containing an indexed tx ABCI message log. type ABCIMessageLog struct { MsgIndex uint32 `protobuf:"varint,1,opt,name=msg_index,json=msgIndex,proto3" json:"msg_index"` @@ -110,7 +150,7 @@ type ABCIMessageLog struct { func (m *ABCIMessageLog) Reset() { *m = ABCIMessageLog{} } func (*ABCIMessageLog) ProtoMessage() {} func (*ABCIMessageLog) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{1} + return fileDescriptor_4e37629bc7eb0df8, []int{2} } func (m *ABCIMessageLog) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -170,7 +210,7 @@ type StringEvent struct { func (m *StringEvent) Reset() { *m = StringEvent{} } func (*StringEvent) ProtoMessage() {} func (*StringEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{2} + return fileDescriptor_4e37629bc7eb0df8, []int{3} } func (m *StringEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -223,7 +263,7 @@ type Attribute struct { func (m *Attribute) Reset() { *m = Attribute{} } func (*Attribute) ProtoMessage() {} func (*Attribute) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{3} + return fileDescriptor_4e37629bc7eb0df8, []int{4} } func (m *Attribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -277,7 +317,7 @@ type GasInfo struct { func (m *GasInfo) Reset() { *m = GasInfo{} } func (*GasInfo) ProtoMessage() {} func (*GasInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{4} + return fileDescriptor_4e37629bc7eb0df8, []int{5} } func (m *GasInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -341,7 +381,7 @@ type Result struct { func (m *Result) Reset() { *m = Result{} } func (*Result) ProtoMessage() {} func (*Result) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{5} + return fileDescriptor_4e37629bc7eb0df8, []int{6} } func (m *Result) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -380,7 +420,7 @@ type SimulationResponse struct { func (m *SimulationResponse) Reset() { *m = SimulationResponse{} } func (*SimulationResponse) ProtoMessage() {} func (*SimulationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{6} + return fileDescriptor_4e37629bc7eb0df8, []int{7} } func (m *SimulationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -428,7 +468,7 @@ type MsgData struct { func (m *MsgData) Reset() { *m = MsgData{} } func (*MsgData) ProtoMessage() {} func (*MsgData) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{7} + return fileDescriptor_4e37629bc7eb0df8, []int{8} } func (m *MsgData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -485,7 +525,7 @@ type TxMsgData struct { func (m *TxMsgData) Reset() { *m = TxMsgData{} } func (*TxMsgData) ProtoMessage() {} func (*TxMsgData) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{8} + return fileDescriptor_4e37629bc7eb0df8, []int{9} } func (m *TxMsgData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -548,7 +588,7 @@ type SearchTxsResult struct { func (m *SearchTxsResult) Reset() { *m = SearchTxsResult{} } func (*SearchTxsResult) ProtoMessage() {} func (*SearchTxsResult) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{9} + return fileDescriptor_4e37629bc7eb0df8, []int{10} } func (m *SearchTxsResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -621,6 +661,7 @@ func (m *SearchTxsResult) GetTxs() []*TxResponse { func init() { proto.RegisterType((*TxResponse)(nil), "cosmos.base.abci.v1beta1.TxResponse") + proto.RegisterType((*BlockResponse)(nil), "cosmos.base.abci.v1beta1.BlockResponse") proto.RegisterType((*ABCIMessageLog)(nil), "cosmos.base.abci.v1beta1.ABCIMessageLog") proto.RegisterType((*StringEvent)(nil), "cosmos.base.abci.v1beta1.StringEvent") proto.RegisterType((*Attribute)(nil), "cosmos.base.abci.v1beta1.Attribute") @@ -637,64 +678,65 @@ func init() { } var fileDescriptor_4e37629bc7eb0df8 = []byte{ - // 909 bytes of a gzipped FileDescriptorProto + // 921 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xda, 0xdb, 0x75, 0x3c, 0x8e, 0x29, 0x1a, 0x45, 0xe9, 0xa4, 0x80, 0x6d, 0xdc, 0x22, - 0x59, 0x48, 0xac, 0xd5, 0xb4, 0x42, 0xb4, 0xa7, 0xd6, 0xe1, 0x2b, 0x52, 0xcb, 0x61, 0xe3, 0x0a, - 0x89, 0x8b, 0x35, 0xb6, 0xa7, 0xe3, 0x55, 0xbd, 0x3b, 0xd6, 0xce, 0x6c, 0xb2, 0xb9, 0x71, 0x83, + 0x14, 0xf7, 0xda, 0xdb, 0x75, 0x3c, 0xb6, 0x29, 0x1a, 0x45, 0xe9, 0xa4, 0x80, 0x6d, 0xdc, 0x22, + 0x59, 0x48, 0x5d, 0xab, 0x69, 0x85, 0x68, 0x4f, 0xad, 0xc3, 0x57, 0xa4, 0x96, 0xc3, 0xc6, 0x15, + 0x12, 0x17, 0x6b, 0x6c, 0x4f, 0xc7, 0xab, 0x78, 0x77, 0xac, 0x9d, 0x71, 0xb2, 0xb9, 0x71, 0x83, 0x23, 0x27, 0xce, 0x5c, 0xe1, 0x2f, 0xe9, 0x81, 0x43, 0x8e, 0x3d, 0x54, 0x01, 0x92, 0x1b, 0x7f, - 0x05, 0x7a, 0x6f, 0xc6, 0x1f, 0x25, 0x75, 0xd5, 0x93, 0xdf, 0xfc, 0xde, 0x87, 0xdf, 0xfb, 0xbd, - 0xdf, 0xce, 0x90, 0x5b, 0x63, 0xa5, 0x13, 0xa5, 0x7b, 0x23, 0xae, 0x45, 0x8f, 0x8f, 0xc6, 0x71, - 0xef, 0xf8, 0xce, 0x48, 0x18, 0x7e, 0x07, 0x0f, 0xe1, 0x3c, 0x53, 0x46, 0x51, 0x66, 0x83, 0x42, - 0x08, 0x0a, 0x11, 0x77, 0x41, 0x37, 0x77, 0xa4, 0x92, 0x0a, 0x83, 0x7a, 0x60, 0xd9, 0xf8, 0x9b, - 0x1f, 0x18, 0x91, 0x4e, 0x44, 0x96, 0xc4, 0xa9, 0xb1, 0x35, 0xcd, 0xe9, 0x5c, 0x68, 0xe7, 0xdc, - 0x93, 0x4a, 0xc9, 0x99, 0xe8, 0xe1, 0x69, 0x94, 0x3f, 0xeb, 0xf1, 0xf4, 0xd4, 0xba, 0x3a, 0x7f, - 0x56, 0x08, 0x19, 0x14, 0x91, 0xd0, 0x73, 0x95, 0x6a, 0x41, 0x77, 0x49, 0x30, 0x15, 0xb1, 0x9c, - 0x1a, 0xe6, 0xb5, 0xbd, 0x6e, 0x25, 0x72, 0x27, 0xda, 0x21, 0x81, 0x29, 0xa6, 0x5c, 0x4f, 0x59, - 0xb9, 0xed, 0x75, 0x6b, 0x7d, 0x72, 0x71, 0xde, 0x0a, 0x06, 0xc5, 0xb7, 0x5c, 0x4f, 0x23, 0xe7, - 0xa1, 0x1f, 0x92, 0xda, 0x58, 0x4d, 0x84, 0x9e, 0xf3, 0xb1, 0x60, 0x15, 0x08, 0x8b, 0x56, 0x00, - 0xa5, 0xc4, 0x87, 0x03, 0xf3, 0xdb, 0x5e, 0xb7, 0x11, 0xa1, 0x0d, 0xd8, 0x84, 0x1b, 0xce, 0xae, - 0x61, 0x30, 0xda, 0xf4, 0x06, 0xa9, 0x66, 0xfc, 0x64, 0x38, 0x53, 0x92, 0x05, 0x08, 0x07, 0x19, - 0x3f, 0x79, 0xac, 0x24, 0x7d, 0x4a, 0xfc, 0x99, 0x92, 0x9a, 0x55, 0xdb, 0x95, 0x6e, 0x7d, 0xbf, - 0x1b, 0x6e, 0x22, 0x28, 0x7c, 0xd4, 0x3f, 0x38, 0x7c, 0x22, 0xb4, 0xe6, 0x52, 0x3c, 0x56, 0xb2, - 0x7f, 0xe3, 0xc5, 0x79, 0xab, 0xf4, 0xc7, 0x5f, 0xad, 0xeb, 0xaf, 0xe3, 0x3a, 0xc2, 0x72, 0xd0, - 0x43, 0x9c, 0x3e, 0x53, 0x6c, 0xcb, 0xf6, 0x00, 0x36, 0xfd, 0x88, 0x10, 0xc9, 0xf5, 0xf0, 0x84, - 0xa7, 0x46, 0x4c, 0x58, 0x0d, 0x99, 0xa8, 0x49, 0xae, 0xbf, 0x47, 0x80, 0xee, 0x91, 0x2d, 0x70, - 0xe7, 0x5a, 0x4c, 0x18, 0x41, 0x67, 0x55, 0x72, 0xfd, 0x54, 0x8b, 0x09, 0xbd, 0x4d, 0xca, 0xa6, - 0x60, 0xf5, 0xb6, 0xd7, 0xad, 0xef, 0xef, 0x84, 0x96, 0xf6, 0x70, 0x41, 0x7b, 0xf8, 0x28, 0x3d, - 0x8d, 0xca, 0xa6, 0x00, 0xa6, 0x4c, 0x9c, 0x08, 0x6d, 0x78, 0x32, 0x67, 0xdb, 0x96, 0xa9, 0x25, - 0x40, 0xef, 0x91, 0x40, 0x1c, 0x8b, 0xd4, 0x68, 0xd6, 0xc0, 0x51, 0x77, 0xc3, 0xd5, 0x6e, 0xed, - 0xa4, 0x5f, 0x81, 0xbb, 0xef, 0xc3, 0x60, 0x91, 0x8b, 0x7d, 0xe0, 0xff, 0xfc, 0x5b, 0xab, 0xd4, - 0xf9, 0xdd, 0x23, 0xef, 0xbd, 0x3e, 0x27, 0xfd, 0x94, 0xd4, 0x12, 0x2d, 0x87, 0x71, 0x3a, 0x11, - 0x05, 0x6e, 0xb5, 0xd1, 0x6f, 0xfc, 0x7b, 0xde, 0x5a, 0x81, 0xd1, 0x56, 0xa2, 0xe5, 0x21, 0x58, - 0xf4, 0x7d, 0x52, 0x01, 0xe2, 0x71, 0xc7, 0x11, 0x98, 0xf4, 0x68, 0xd9, 0x4c, 0x05, 0x9b, 0xf9, - 0x64, 0x33, 0xef, 0x47, 0x26, 0x8b, 0x53, 0x69, 0x7b, 0xdb, 0x71, 0xa4, 0x6f, 0xaf, 0x81, 0x7a, - 0xd5, 0xeb, 0x8f, 0xaf, 0xda, 0x5e, 0x27, 0x23, 0xf5, 0x35, 0x2f, 0x2c, 0x02, 0x34, 0x8b, 0x2d, - 0xd6, 0x22, 0xb4, 0xe9, 0x21, 0x21, 0xdc, 0x98, 0x2c, 0x1e, 0xe5, 0x46, 0x68, 0x56, 0xc6, 0x0e, - 0x6e, 0xbd, 0x65, 0xf3, 0x8b, 0x58, 0xc7, 0xcd, 0x5a, 0xb2, 0xfb, 0xcf, 0xbb, 0xa4, 0xb6, 0x0c, - 0x82, 0x69, 0x9f, 0x8b, 0x53, 0xf7, 0x87, 0x60, 0xd2, 0x1d, 0x72, 0xed, 0x98, 0xcf, 0x72, 0xe1, - 0x18, 0xb0, 0x87, 0xce, 0x01, 0xa9, 0x7e, 0xc3, 0xf5, 0xe1, 0x55, 0x65, 0x40, 0xa6, 0xbf, 0x49, - 0x19, 0x65, 0x74, 0x2e, 0x94, 0x01, 0x9b, 0x09, 0x22, 0xa1, 0xf3, 0x99, 0xa1, 0xbb, 0x4e, 0xf6, - 0x90, 0xbe, 0xdd, 0x2f, 0x33, 0xcf, 0x49, 0xff, 0x2a, 0xfb, 0xf7, 0xfe, 0xc7, 0xfe, 0x3b, 0x49, - 0x81, 0xde, 0x27, 0x0d, 0x58, 0x6e, 0xe6, 0x3e, 0x6a, 0xcd, 0x7c, 0x4c, 0x7e, 0xb3, 0x1e, 0xb7, - 0x13, 0x2d, 0x17, 0x9f, 0xff, 0x42, 0x45, 0xbf, 0x7a, 0x84, 0x1e, 0xc5, 0x49, 0x3e, 0xe3, 0x26, - 0x56, 0xe9, 0xf2, 0x72, 0xf8, 0xda, 0x4e, 0x87, 0x9f, 0x8b, 0x87, 0x12, 0xff, 0x78, 0xf3, 0x2e, - 0x1c, 0x63, 0xfd, 0x2d, 0x68, 0xed, 0xec, 0xbc, 0xe5, 0x21, 0x15, 0x48, 0xe2, 0x17, 0x24, 0xc8, - 0x90, 0x09, 0x1c, 0xb5, 0xbe, 0xdf, 0xde, 0x5c, 0xc5, 0x32, 0x16, 0xb9, 0xf8, 0xce, 0x43, 0x52, - 0x7d, 0xa2, 0xe5, 0x97, 0x40, 0xd6, 0x1e, 0x01, 0xd9, 0x0e, 0xd7, 0x24, 0x53, 0x4d, 0xb4, 0x1c, - 0x80, 0x6a, 0x16, 0xd7, 0x0a, 0x54, 0xdf, 0xb6, 0xdc, 0x3e, 0x08, 0x60, 0xfd, 0xcc, 0xeb, 0xfc, - 0xe4, 0x91, 0xda, 0xa0, 0x58, 0x14, 0xb9, 0xbf, 0xdc, 0x44, 0xe5, 0xed, 0xd3, 0xb8, 0x84, 0xb5, - 0x65, 0x5d, 0x21, 0xb9, 0xfc, 0xee, 0x24, 0xa3, 0x14, 0x5f, 0x79, 0xe4, 0xfa, 0x91, 0xe0, 0xd9, - 0x78, 0x3a, 0x28, 0xb4, 0x53, 0x46, 0x8b, 0xd4, 0x8d, 0x32, 0x7c, 0x36, 0x1c, 0xab, 0x3c, 0x35, - 0x4e, 0x5f, 0x04, 0xa1, 0x03, 0x40, 0x40, 0xa0, 0xd6, 0x65, 0xd5, 0x65, 0x0f, 0x90, 0x36, 0xe7, - 0x52, 0x0c, 0xd3, 0x3c, 0x19, 0x89, 0x0c, 0xef, 0x5e, 0x3f, 0x22, 0x00, 0x7d, 0x87, 0x08, 0xc8, - 0x16, 0x03, 0xb0, 0x12, 0x5e, 0xc1, 0x7e, 0x54, 0x03, 0x64, 0x00, 0x00, 0x54, 0x9d, 0xc5, 0x49, - 0x6c, 0xf0, 0x22, 0xf6, 0x23, 0x7b, 0xa0, 0x9f, 0x93, 0x8a, 0x29, 0x34, 0x0b, 0x70, 0xae, 0xdb, - 0x9b, 0xb9, 0x59, 0x3d, 0x1f, 0x11, 0x24, 0xd8, 0xf1, 0xfa, 0x0f, 0x5f, 0xfe, 0xd3, 0x2c, 0xbd, - 0xb8, 0x68, 0x7a, 0x67, 0x17, 0x4d, 0xef, 0xef, 0x8b, 0xa6, 0xf7, 0xcb, 0x65, 0xb3, 0x74, 0x76, - 0xd9, 0x2c, 0xbd, 0xbc, 0x6c, 0x96, 0x7e, 0xe8, 0xc8, 0xd8, 0x4c, 0xf3, 0x51, 0x38, 0x56, 0x49, - 0xcf, 0x3d, 0x87, 0xf6, 0xe7, 0x33, 0x3d, 0x79, 0x6e, 0xdf, 0xae, 0x51, 0x80, 0x14, 0xde, 0xfd, - 0x2f, 0x00, 0x00, 0xff, 0xff, 0xa7, 0xf1, 0x8e, 0x98, 0x30, 0x07, 0x00, 0x00, + 0x05, 0x7a, 0x6f, 0xc6, 0x1f, 0x25, 0xb8, 0xed, 0xc9, 0x6f, 0x7e, 0xef, 0xc3, 0xef, 0xfd, 0xde, + 0x6f, 0x66, 0xc9, 0xad, 0x91, 0xd2, 0x89, 0xd2, 0xdd, 0x21, 0xd7, 0xa2, 0xcb, 0x87, 0xa3, 0xb8, + 0x7b, 0x7c, 0x77, 0x28, 0x0c, 0xbf, 0x8b, 0x87, 0x70, 0x96, 0x29, 0xa3, 0x28, 0xb3, 0x41, 0x21, + 0x04, 0x85, 0x88, 0xbb, 0xa0, 0x9b, 0xdb, 0x52, 0x49, 0x85, 0x41, 0x5d, 0xb0, 0x6c, 0xfc, 0xcd, + 0x0f, 0x8c, 0x48, 0xc7, 0x22, 0x4b, 0xe2, 0xd4, 0xd8, 0x9a, 0xe6, 0x74, 0x26, 0xb4, 0x73, 0xee, + 0x4a, 0xa5, 0xe4, 0x54, 0x74, 0xf1, 0x34, 0x9c, 0x3f, 0xef, 0xf2, 0xf4, 0xd4, 0xba, 0xda, 0x7f, + 0x94, 0x08, 0xe9, 0xe7, 0x91, 0xd0, 0x33, 0x95, 0x6a, 0x41, 0x77, 0x48, 0x30, 0x11, 0xb1, 0x9c, + 0x18, 0xe6, 0xb5, 0xbc, 0x4e, 0x29, 0x72, 0x27, 0xda, 0x26, 0x81, 0xc9, 0x27, 0x5c, 0x4f, 0x58, + 0xb1, 0xe5, 0x75, 0x2a, 0x3d, 0x72, 0x71, 0xde, 0x0c, 0xfa, 0xf9, 0x37, 0x5c, 0x4f, 0x22, 0xe7, + 0xa1, 0x1f, 0x92, 0xca, 0x48, 0x8d, 0x85, 0x9e, 0xf1, 0x91, 0x60, 0x25, 0x08, 0x8b, 0x56, 0x00, + 0xa5, 0xc4, 0x87, 0x03, 0xf3, 0x5b, 0x5e, 0xa7, 0x1e, 0xa1, 0x0d, 0xd8, 0x98, 0x1b, 0xce, 0xae, + 0x61, 0x30, 0xda, 0xf4, 0x06, 0x29, 0x67, 0xfc, 0x64, 0x30, 0x55, 0x92, 0x05, 0x08, 0x07, 0x19, + 0x3f, 0x79, 0xa2, 0x24, 0x7d, 0x46, 0xfc, 0xa9, 0x92, 0x9a, 0x95, 0x5b, 0xa5, 0x4e, 0x75, 0xaf, + 0x13, 0x6e, 0x22, 0x28, 0x7c, 0xdc, 0xdb, 0x3f, 0x78, 0x2a, 0xb4, 0xe6, 0x52, 0x3c, 0x51, 0xb2, + 0x77, 0xe3, 0xc5, 0x79, 0xb3, 0xf0, 0xfb, 0x9f, 0xcd, 0xeb, 0xaf, 0xe3, 0x3a, 0xc2, 0x72, 0xd0, + 0x43, 0x9c, 0x3e, 0x57, 0x6c, 0xcb, 0xf6, 0x00, 0x36, 0xfd, 0x88, 0x10, 0xc9, 0xf5, 0xe0, 0x84, + 0xa7, 0x46, 0x8c, 0x59, 0x05, 0x99, 0xa8, 0x48, 0xae, 0xbf, 0x43, 0x80, 0xee, 0x92, 0x2d, 0x70, + 0xcf, 0xb5, 0x18, 0x33, 0x82, 0xce, 0xb2, 0xe4, 0xfa, 0x99, 0x16, 0x63, 0x7a, 0x9b, 0x14, 0x4d, + 0xce, 0xaa, 0x2d, 0xaf, 0x53, 0xdd, 0xdb, 0x0e, 0x2d, 0xed, 0xe1, 0x82, 0xf6, 0xf0, 0x71, 0x7a, + 0x1a, 0x15, 0x4d, 0x0e, 0x4c, 0x99, 0x38, 0x11, 0xda, 0xf0, 0x64, 0xc6, 0x6a, 0x96, 0xa9, 0x25, + 0x40, 0xef, 0x93, 0x40, 0x1c, 0x8b, 0xd4, 0x68, 0x56, 0xc7, 0x51, 0x77, 0xc2, 0xd5, 0x6e, 0xed, + 0xa4, 0x5f, 0x82, 0xbb, 0xe7, 0xc3, 0x60, 0x91, 0x8b, 0x7d, 0xe8, 0xff, 0xf4, 0x6b, 0xb3, 0xd0, + 0xbe, 0x43, 0xea, 0xbd, 0xa9, 0x1a, 0x1d, 0xbd, 0x6d, 0xa1, 0x2e, 0xfc, 0x37, 0x8f, 0xbc, 0xf7, + 0x3a, 0x2d, 0xf4, 0x53, 0x52, 0x49, 0xb4, 0x1c, 0xc4, 0xe9, 0x58, 0xe4, 0x98, 0x53, 0xef, 0xd5, + 0xff, 0x39, 0x6f, 0xae, 0xc0, 0x68, 0x2b, 0xd1, 0xf2, 0x00, 0x2c, 0xfa, 0x3e, 0x29, 0xc1, 0x9e, + 0x50, 0x12, 0x11, 0x98, 0xf4, 0x70, 0xd9, 0x7b, 0x09, 0x7b, 0xff, 0x64, 0xf3, 0x9a, 0x0e, 0x4d, + 0x16, 0xa7, 0xd2, 0x8e, 0xb2, 0xed, 0x76, 0x54, 0x5b, 0x03, 0xf5, 0x6a, 0xb4, 0x1f, 0x5e, 0xb5, + 0xbc, 0x76, 0x46, 0xaa, 0x6b, 0x5e, 0xd8, 0x1b, 0x48, 0x1c, 0x5b, 0xac, 0x44, 0x68, 0xd3, 0x03, + 0x42, 0xb8, 0x31, 0x59, 0x3c, 0x9c, 0x1b, 0xa1, 0x59, 0x11, 0x3b, 0xb8, 0xf5, 0x06, 0xa1, 0x2c, + 0x62, 0x1d, 0x95, 0x6b, 0xc9, 0xee, 0x3f, 0xef, 0x91, 0xca, 0x32, 0x08, 0xa6, 0x3d, 0x12, 0xa7, + 0xee, 0x0f, 0xc1, 0xa4, 0xdb, 0xe4, 0xda, 0x31, 0x9f, 0xce, 0x85, 0x63, 0xc0, 0x1e, 0xda, 0xfb, + 0xa4, 0xfc, 0x35, 0xd7, 0x07, 0x57, 0x85, 0x04, 0x99, 0xfe, 0x26, 0x21, 0x15, 0xd1, 0xb9, 0x10, + 0x12, 0x6c, 0x26, 0x88, 0x84, 0x9e, 0x4f, 0x0d, 0xdd, 0x71, 0xb7, 0x04, 0xd2, 0x6b, 0xbd, 0x22, + 0xf3, 0xdc, 0x4d, 0xb9, 0xca, 0xfe, 0xfd, 0xff, 0xb0, 0xff, 0x4e, 0xca, 0xa1, 0x0f, 0x48, 0x1d, + 0x96, 0x9b, 0x39, 0xc9, 0x68, 0xe6, 0x63, 0xf2, 0xff, 0xcb, 0xb7, 0x96, 0x68, 0xb9, 0x10, 0xd7, + 0x42, 0x74, 0xbf, 0x78, 0x84, 0x1e, 0xc6, 0xc9, 0x7c, 0xca, 0x4d, 0xac, 0xd2, 0xa5, 0xf4, 0xbe, + 0xb2, 0xd3, 0xe1, 0xed, 0xf2, 0xf0, 0x46, 0x7c, 0xbc, 0x79, 0x17, 0x8e, 0xb1, 0xde, 0x16, 0xb4, + 0x76, 0x76, 0xde, 0xf4, 0x90, 0x0a, 0x24, 0xf1, 0x73, 0x12, 0x64, 0xc8, 0x04, 0x8e, 0x5a, 0xdd, + 0x6b, 0x6d, 0xae, 0x62, 0x19, 0x8b, 0x5c, 0x7c, 0xfb, 0x11, 0x29, 0x3f, 0xd5, 0xf2, 0x0b, 0x20, + 0x6b, 0x97, 0x80, 0x6c, 0x07, 0x6b, 0x92, 0x29, 0x27, 0x5a, 0xf6, 0x41, 0x35, 0x8b, 0x57, 0x08, + 0xaa, 0xd7, 0x2c, 0xb7, 0x0f, 0x03, 0x58, 0x3f, 0xf3, 0xda, 0x3f, 0x7a, 0xa4, 0xd2, 0xcf, 0x17, + 0x45, 0x1e, 0x2c, 0x37, 0x51, 0x7a, 0xf3, 0x34, 0x2e, 0x61, 0x6d, 0x59, 0x57, 0x48, 0x2e, 0xbe, + 0x3b, 0xc9, 0x28, 0xc5, 0x57, 0x1e, 0xb9, 0x7e, 0x28, 0x78, 0x36, 0x9a, 0xf4, 0x73, 0xed, 0x94, + 0xd1, 0x24, 0x55, 0xa3, 0x0c, 0x9f, 0x0e, 0x46, 0x6a, 0x9e, 0x1a, 0xa7, 0x2f, 0x82, 0xd0, 0x3e, + 0x20, 0x20, 0x50, 0xeb, 0xb2, 0xea, 0xb2, 0x07, 0x48, 0x9b, 0x71, 0x29, 0x06, 0xe9, 0x3c, 0x19, + 0x8a, 0x0c, 0x9f, 0x6a, 0x3f, 0x22, 0x00, 0x7d, 0x8b, 0x08, 0xc8, 0x16, 0x03, 0xb0, 0x12, 0xbe, + 0xd8, 0x7e, 0x54, 0x01, 0xa4, 0x0f, 0x00, 0x54, 0x9d, 0xc6, 0x49, 0x6c, 0xf0, 0xdd, 0xf6, 0x23, + 0x7b, 0xa0, 0x9f, 0x91, 0x92, 0xc9, 0x35, 0x0b, 0x70, 0xae, 0xdb, 0x9b, 0xb9, 0x59, 0x7d, 0x6d, + 0x22, 0x48, 0xb0, 0xe3, 0xf5, 0x1e, 0xbd, 0xfc, 0xbb, 0x51, 0x78, 0x71, 0xd1, 0xf0, 0xce, 0x2e, + 0x1a, 0xde, 0x5f, 0x17, 0x0d, 0xef, 0xe7, 0xcb, 0x46, 0xe1, 0xec, 0xb2, 0x51, 0x78, 0x79, 0xd9, + 0x28, 0x7c, 0xdf, 0x96, 0xb1, 0x99, 0xcc, 0x87, 0xe1, 0x48, 0x25, 0x5d, 0xf7, 0xf5, 0xb4, 0x3f, + 0x77, 0xf4, 0xf8, 0xc8, 0x7e, 0xea, 0x86, 0x01, 0x52, 0x78, 0xef, 0xdf, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x5f, 0x68, 0x0b, 0x63, 0x5f, 0x07, 0x00, 0x00, } func (m *TxResponse) Marshal() (dAtA []byte, err error) { @@ -822,6 +864,34 @@ func (m *TxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *BlockResponse) 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 *BlockResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Height != 0 { + i = encodeVarintAbci(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *ABCIMessageLog) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1317,6 +1387,18 @@ func (m *TxResponse) Size() (n int) { return n } +func (m *BlockResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovAbci(uint64(m.Height)) + } + return n +} + func (m *ABCIMessageLog) Size() (n int) { if m == nil { return 0 @@ -2023,6 +2105,75 @@ func (m *TxResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *BlockResponse) 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 ErrIntOverflowAbci + } + 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: BlockResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAbci(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAbci + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ABCIMessageLog) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/types/result.go b/types/result.go index 90849aeba370..91813c7b43a0 100644 --- a/types/result.go +++ b/types/result.go @@ -83,6 +83,17 @@ func NewResponseResultTx(res *coretypes.ResultTx, anyTx *codectypes.Any, timesta } } +// NewResponseResultBlock returns a BlockResponse given a ResultBlock from tendermint +func NewResponseResultBlock(res *coretypes.ResultBlock) *BlockResponse { + if res == nil { + return nil + } + + return &BlockResponse{ + Height: res.Block.Height, + } +} + // NewResponseFormatBroadcastTx returns a TxResponse given a ResultBroadcastTx from tendermint func NewResponseFormatBroadcastTx(res *coretypes.ResultBroadcastTx) *TxResponse { if res == nil { diff --git a/x/auth/block/query.go b/x/auth/block/query.go new file mode 100644 index 000000000000..f0b918cb5c18 --- /dev/null +++ b/x/auth/block/query.go @@ -0,0 +1,64 @@ +package block + +import ( + "context" + "encoding/hex" + + "github.com/cosmos/cosmos-sdk/client" + sdk "github.com/cosmos/cosmos-sdk/types" + coretypes "github.com/tendermint/tendermint/rpc/core/types" +) + +// get block by height +func GetBlockByHeight(clientCtx client.Context, height *int64) (*sdk.BlockResponse, error) { + // get the node + node, err := clientCtx.GetNode() + if err != nil { + return nil, err + } + + // header -> BlockchainInfo + // header, tx -> Block + // results -> BlockResults + resBlock, err := node.Block(context.Background(), height) + if err != nil { + return nil, err + } + + out, err := mkBlockResult(resBlock) + if err != nil { + return out, err + } + + return out, nil +} + +func GetBlockByHash(clientCtx client.Context, hashHexString string) (*sdk.BlockResponse, error) { + + hash, err := hex.DecodeString(hashHexString) + if err != nil { + return nil, err + } + + // get the node + node, err := clientCtx.GetNode() + if err != nil { + return nil, err + } + + resBlock, err := node.BlockByHash(context.Background(), hash) + if err != nil { + return nil, err + } + + out, err := mkBlockResult(resBlock) + if err != nil { + return out, err + } + + return out, nil +} + +func mkBlockResult(resBlock *coretypes.ResultBlock) (*sdk.BlockResponse, error) { + return sdk.NewResponseResultBlock(resBlock), nil +} diff --git a/x/auth/client/cli/query.go b/x/auth/client/cli/query.go index 11f22e8dde74..59b1aadbb38a 100644 --- a/x/auth/client/cli/query.go +++ b/x/auth/client/cli/query.go @@ -15,6 +15,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/query" "github.com/cosmos/cosmos-sdk/version" + authblock "github.com/cosmos/cosmos-sdk/x/auth/block" authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" "github.com/cosmos/cosmos-sdk/x/auth/types" ) @@ -26,6 +27,7 @@ const ( typeHash = "hash" typeAccSeq = "acc_seq" typeSig = "signature" + typeHeight = "height" eventFormat = "{eventType}.{eventAttribute}={value}" ) @@ -429,6 +431,101 @@ $ %s query tx --%s=%s , return cmd } +// QueryTxCmd implements the default command for a tx query. +func QueryBlockCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "block --type=[height|hash] [height|hash]", + Short: "Query for a committed block by height or hash", + Long: strings.TrimSpace(fmt.Sprintf(` +Example: +$ %s query block +$ %s query block --%s=%s +`, + version.AppName, + version.AppName, flagType, typeHeight)), + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + typ, _ := cmd.Flags().GetString(flagType) + + switch typ { + case typeHeight: + { + if args[0] == "" { + return fmt.Errorf("argument should be a block height") + } + + var height *int64 + + // optional height + if len(args) > 0 { + h, err := strconv.Atoi(args[0]) + if err != nil { + return err + } + if h > 0 { + tmp := int64(h) + height = &tmp + } + } + + output, err := authblock.GetBlockByHeight(clientCtx, height) + if err != nil { + return err + } + + if output.Empty() { + return fmt.Errorf("no transaction found with hash %s", args[0]) + } + + return clientCtx.PrintProto(output) + } + case typeHash: + { + if args[0] == "" { + return fmt.Errorf("argument should be a tx hash") + } + + // If hash is given, then query the tx by hash. + output, err := authblock.GetBlockByHash(clientCtx, args[0]) + if err != nil { + return err + } + + if output.Empty() { + return fmt.Errorf("no transaction found with hash %s", args[0]) + } + + return clientCtx.PrintProto(output) + + // // If hash is given, then query the tx by hash. + // output, err := authtx.QueryTx(clientCtx, args[0]) + // if err != nil { + // return err + // } + + // if output.Empty() { + // return fmt.Errorf("no transaction found with hash %s", args[0]) + // } + + // return clientCtx.PrintProto(output) + } + default: + return fmt.Errorf("unknown --%s value %s", flagType, typ) + } + }, + } + + flags.AddQueryFlagsToCmd(cmd) + cmd.Flags().String(flagType, typeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\"", typeHeight, typeHash)) + + return cmd +} + // ParseSigArgs parses comma-separated signatures from the CLI arguments. func ParseSigArgs(args []string) ([]string, error) { if len(args) != 1 || args[0] == "" { From ddc0edd4876b38ea6f3bec02fdd7b223aa2a3a22 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Tue, 17 Jan 2023 15:31:40 -0500 Subject: [PATCH 02/34] cleaned up --- x/auth/client/cli/query.go | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/x/auth/client/cli/query.go b/x/auth/client/cli/query.go index 59b1aadbb38a..e650ef09a044 100644 --- a/x/auth/client/cli/query.go +++ b/x/auth/client/cli/query.go @@ -431,7 +431,7 @@ $ %s query tx --%s=%s , return cmd } -// QueryTxCmd implements the default command for a tx query. +// QueryBlockCmd implements the default command for a Block query. func QueryBlockCmd() *cobra.Command { cmd := &cobra.Command{ Use: "block --type=[height|hash] [height|hash]", @@ -479,7 +479,7 @@ $ %s query block --%s=%s } if output.Empty() { - return fmt.Errorf("no transaction found with hash %s", args[0]) + return fmt.Errorf("no block found with hash %s", args[0]) } return clientCtx.PrintProto(output) @@ -501,18 +501,6 @@ $ %s query block --%s=%s } return clientCtx.PrintProto(output) - - // // If hash is given, then query the tx by hash. - // output, err := authtx.QueryTx(clientCtx, args[0]) - // if err != nil { - // return err - // } - - // if output.Empty() { - // return fmt.Errorf("no transaction found with hash %s", args[0]) - // } - - // return clientCtx.PrintProto(output) } default: return fmt.Errorf("unknown --%s value %s", flagType, typ) From 38a6468ab91dee3fb8de570495b07effcea8807b Mon Sep 17 00:00:00 2001 From: cipherZ Date: Fri, 20 Jan 2023 16:20:15 -0500 Subject: [PATCH 03/34] updated BlockResponse proto and got the BlockSearch working --- api/cosmos/base/abci/v1beta1/abci.pulsar.go | 7008 ++++++++++++++----- client/tendermint.go | 6 + go.mod | 6 - go.sum | 9 - proto/cosmos/base/abci/v1beta1/abci.proto | 33 +- simapp/simd/cmd/cmd_test.go | 1 + simapp/simd/cmd/root.go | 1 + types/abci.pb.go | 2258 +++++- types/result.go | 26 +- x/auth/block/query.go | 63 +- x/auth/client/cli/query.go | 79 +- 11 files changed, 7224 insertions(+), 2266 deletions(-) diff --git a/api/cosmos/base/abci/v1beta1/abci.pulsar.go b/api/cosmos/base/abci/v1beta1/abci.pulsar.go index fc65a06f128d..4da2fa5dba13 100644 --- a/api/cosmos/base/abci/v1beta1/abci.pulsar.go +++ b/api/cosmos/base/abci/v1beta1/abci.pulsar.go @@ -1303,14 +1303,36 @@ func (x *fastReflection_TxResponse) ProtoMethods() *protoiface.Methods { } var ( - md_BlockResponse protoreflect.MessageDescriptor - fd_BlockResponse_height protoreflect.FieldDescriptor + md_BlockResponse protoreflect.MessageDescriptor + fd_BlockResponse_height protoreflect.FieldDescriptor + fd_BlockResponse_time protoreflect.FieldDescriptor + fd_BlockResponse_chain_id protoreflect.FieldDescriptor + fd_BlockResponse_last_commit protoreflect.FieldDescriptor + fd_BlockResponse_data protoreflect.FieldDescriptor + fd_BlockResponse_validators protoreflect.FieldDescriptor + fd_BlockResponse_next_validators protoreflect.FieldDescriptor + fd_BlockResponse_app protoreflect.FieldDescriptor + fd_BlockResponse_consensus protoreflect.FieldDescriptor + fd_BlockResponse_results protoreflect.FieldDescriptor + fd_BlockResponse_evidence protoreflect.FieldDescriptor + fd_BlockResponse_proposer protoreflect.FieldDescriptor ) func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() md_BlockResponse = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("BlockResponse") fd_BlockResponse_height = md_BlockResponse.Fields().ByName("height") + fd_BlockResponse_time = md_BlockResponse.Fields().ByName("time") + fd_BlockResponse_chain_id = md_BlockResponse.Fields().ByName("chain_id") + fd_BlockResponse_last_commit = md_BlockResponse.Fields().ByName("last_commit") + fd_BlockResponse_data = md_BlockResponse.Fields().ByName("data") + fd_BlockResponse_validators = md_BlockResponse.Fields().ByName("validators") + fd_BlockResponse_next_validators = md_BlockResponse.Fields().ByName("next_validators") + fd_BlockResponse_app = md_BlockResponse.Fields().ByName("app") + fd_BlockResponse_consensus = md_BlockResponse.Fields().ByName("consensus") + fd_BlockResponse_results = md_BlockResponse.Fields().ByName("results") + fd_BlockResponse_evidence = md_BlockResponse.Fields().ByName("evidence") + fd_BlockResponse_proposer = md_BlockResponse.Fields().ByName("proposer") } var _ protoreflect.Message = (*fastReflection_BlockResponse)(nil) @@ -1384,6 +1406,72 @@ func (x *fastReflection_BlockResponse) Range(f func(protoreflect.FieldDescriptor return } } + if x.Time != "" { + value := protoreflect.ValueOfString(x.Time) + if !f(fd_BlockResponse_time, value) { + return + } + } + if x.ChainId != "" { + value := protoreflect.ValueOfString(x.ChainId) + if !f(fd_BlockResponse_chain_id, value) { + return + } + } + if x.LastCommit != "" { + value := protoreflect.ValueOfString(x.LastCommit) + if !f(fd_BlockResponse_last_commit, value) { + return + } + } + if x.Data != "" { + value := protoreflect.ValueOfString(x.Data) + if !f(fd_BlockResponse_data, value) { + return + } + } + if x.Validators != "" { + value := protoreflect.ValueOfString(x.Validators) + if !f(fd_BlockResponse_validators, value) { + return + } + } + if x.NextValidators != "" { + value := protoreflect.ValueOfString(x.NextValidators) + if !f(fd_BlockResponse_next_validators, value) { + return + } + } + if x.App != "" { + value := protoreflect.ValueOfString(x.App) + if !f(fd_BlockResponse_app, value) { + return + } + } + if x.Consensus != "" { + value := protoreflect.ValueOfString(x.Consensus) + if !f(fd_BlockResponse_consensus, value) { + return + } + } + if x.Results != "" { + value := protoreflect.ValueOfString(x.Results) + if !f(fd_BlockResponse_results, value) { + return + } + } + if x.Evidence != "" { + value := protoreflect.ValueOfString(x.Evidence) + if !f(fd_BlockResponse_evidence, value) { + return + } + } + if x.Proposer != "" { + value := protoreflect.ValueOfString(x.Proposer) + if !f(fd_BlockResponse_proposer, value) { + return + } + } } // Has reports whether a field is populated. @@ -1401,6 +1489,28 @@ func (x *fastReflection_BlockResponse) Has(fd protoreflect.FieldDescriptor) bool switch fd.FullName() { case "cosmos.base.abci.v1beta1.BlockResponse.height": return x.Height != int64(0) + case "cosmos.base.abci.v1beta1.BlockResponse.time": + return x.Time != "" + case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": + return x.ChainId != "" + case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": + return x.LastCommit != "" + case "cosmos.base.abci.v1beta1.BlockResponse.data": + return x.Data != "" + case "cosmos.base.abci.v1beta1.BlockResponse.validators": + return x.Validators != "" + case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": + return x.NextValidators != "" + case "cosmos.base.abci.v1beta1.BlockResponse.app": + return x.App != "" + case "cosmos.base.abci.v1beta1.BlockResponse.consensus": + return x.Consensus != "" + case "cosmos.base.abci.v1beta1.BlockResponse.results": + return x.Results != "" + case "cosmos.base.abci.v1beta1.BlockResponse.evidence": + return x.Evidence != "" + case "cosmos.base.abci.v1beta1.BlockResponse.proposer": + return x.Proposer != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) @@ -1419,6 +1529,28 @@ func (x *fastReflection_BlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "cosmos.base.abci.v1beta1.BlockResponse.height": x.Height = int64(0) + case "cosmos.base.abci.v1beta1.BlockResponse.time": + x.Time = "" + case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": + x.ChainId = "" + case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": + x.LastCommit = "" + case "cosmos.base.abci.v1beta1.BlockResponse.data": + x.Data = "" + case "cosmos.base.abci.v1beta1.BlockResponse.validators": + x.Validators = "" + case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": + x.NextValidators = "" + case "cosmos.base.abci.v1beta1.BlockResponse.app": + x.App = "" + case "cosmos.base.abci.v1beta1.BlockResponse.consensus": + x.Consensus = "" + case "cosmos.base.abci.v1beta1.BlockResponse.results": + x.Results = "" + case "cosmos.base.abci.v1beta1.BlockResponse.evidence": + x.Evidence = "" + case "cosmos.base.abci.v1beta1.BlockResponse.proposer": + x.Proposer = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) @@ -1438,6 +1570,39 @@ func (x *fastReflection_BlockResponse) Get(descriptor protoreflect.FieldDescript case "cosmos.base.abci.v1beta1.BlockResponse.height": value := x.Height return protoreflect.ValueOfInt64(value) + case "cosmos.base.abci.v1beta1.BlockResponse.time": + value := x.Time + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": + value := x.ChainId + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": + value := x.LastCommit + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.BlockResponse.data": + value := x.Data + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.BlockResponse.validators": + value := x.Validators + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": + value := x.NextValidators + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.BlockResponse.app": + value := x.App + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.BlockResponse.consensus": + value := x.Consensus + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.BlockResponse.results": + value := x.Results + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.BlockResponse.evidence": + value := x.Evidence + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.BlockResponse.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) @@ -1460,6 +1625,28 @@ func (x *fastReflection_BlockResponse) Set(fd protoreflect.FieldDescriptor, valu switch fd.FullName() { case "cosmos.base.abci.v1beta1.BlockResponse.height": x.Height = value.Int() + case "cosmos.base.abci.v1beta1.BlockResponse.time": + x.Time = value.Interface().(string) + case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": + x.ChainId = value.Interface().(string) + case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": + x.LastCommit = value.Interface().(string) + case "cosmos.base.abci.v1beta1.BlockResponse.data": + x.Data = value.Interface().(string) + case "cosmos.base.abci.v1beta1.BlockResponse.validators": + x.Validators = value.Interface().(string) + case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": + x.NextValidators = value.Interface().(string) + case "cosmos.base.abci.v1beta1.BlockResponse.app": + x.App = value.Interface().(string) + case "cosmos.base.abci.v1beta1.BlockResponse.consensus": + x.Consensus = value.Interface().(string) + case "cosmos.base.abci.v1beta1.BlockResponse.results": + x.Results = value.Interface().(string) + case "cosmos.base.abci.v1beta1.BlockResponse.evidence": + x.Evidence = value.Interface().(string) + case "cosmos.base.abci.v1beta1.BlockResponse.proposer": + x.Proposer = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) @@ -1482,6 +1669,28 @@ func (x *fastReflection_BlockResponse) Mutable(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "cosmos.base.abci.v1beta1.BlockResponse.height": panic(fmt.Errorf("field height of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.time": + panic(fmt.Errorf("field time of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": + panic(fmt.Errorf("field chain_id of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": + panic(fmt.Errorf("field last_commit of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.data": + panic(fmt.Errorf("field data of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.validators": + panic(fmt.Errorf("field validators of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": + panic(fmt.Errorf("field next_validators of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.app": + panic(fmt.Errorf("field app of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.consensus": + panic(fmt.Errorf("field consensus of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.results": + panic(fmt.Errorf("field results of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.evidence": + panic(fmt.Errorf("field evidence of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) + case "cosmos.base.abci.v1beta1.BlockResponse.proposer": + panic(fmt.Errorf("field proposer of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) @@ -1497,6 +1706,28 @@ func (x *fastReflection_BlockResponse) NewField(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "cosmos.base.abci.v1beta1.BlockResponse.height": return protoreflect.ValueOfInt64(int64(0)) + case "cosmos.base.abci.v1beta1.BlockResponse.time": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.BlockResponse.data": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.BlockResponse.validators": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.BlockResponse.app": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.BlockResponse.consensus": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.BlockResponse.results": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.BlockResponse.evidence": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.BlockResponse.proposer": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) @@ -1569,6 +1800,50 @@ func (x *fastReflection_BlockResponse) ProtoMethods() *protoiface.Methods { if x.Height != 0 { n += 1 + runtime.Sov(uint64(x.Height)) } + l = len(x.Time) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ChainId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LastCommit) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Data) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Validators) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NextValidators) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.App) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Consensus) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Results) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Evidence) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Proposer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1598,6 +1873,83 @@ func (x *fastReflection_BlockResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Proposer) > 0 { + i -= len(x.Proposer) + copy(dAtA[i:], x.Proposer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) + i-- + dAtA[i] = 0x62 + } + if len(x.Evidence) > 0 { + i -= len(x.Evidence) + copy(dAtA[i:], x.Evidence) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Evidence))) + i-- + dAtA[i] = 0x5a + } + if len(x.Results) > 0 { + i -= len(x.Results) + copy(dAtA[i:], x.Results) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Results))) + i-- + dAtA[i] = 0x52 + } + if len(x.Consensus) > 0 { + i -= len(x.Consensus) + copy(dAtA[i:], x.Consensus) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Consensus))) + i-- + dAtA[i] = 0x4a + } + if len(x.App) > 0 { + i -= len(x.App) + copy(dAtA[i:], x.App) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.App))) + i-- + dAtA[i] = 0x42 + } + if len(x.NextValidators) > 0 { + i -= len(x.NextValidators) + copy(dAtA[i:], x.NextValidators) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NextValidators))) + i-- + dAtA[i] = 0x3a + } + if len(x.Validators) > 0 { + i -= len(x.Validators) + copy(dAtA[i:], x.Validators) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Validators))) + i-- + dAtA[i] = 0x32 + } + if len(x.Data) > 0 { + i -= len(x.Data) + copy(dAtA[i:], x.Data) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data))) + i-- + dAtA[i] = 0x2a + } + if len(x.LastCommit) > 0 { + i -= len(x.LastCommit) + copy(dAtA[i:], x.LastCommit) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LastCommit))) + i-- + dAtA[i] = 0x22 + } + if len(x.ChainId) > 0 { + i -= len(x.ChainId) + copy(dAtA[i:], x.ChainId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChainId))) + i-- + dAtA[i] = 0x1a + } + if len(x.Time) > 0 { + i -= len(x.Time) + copy(dAtA[i:], x.Time) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Time))) + i-- + dAtA[i] = 0x12 + } if x.Height != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Height)) i-- @@ -1671,117 +2023,2622 @@ func (x *fastReflection_BlockResponse) ProtoMethods() *protoiface.Methods { break } } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - if (iNdEx + skippy) > l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + x.Time = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_ABCIMessageLog_3_list)(nil) - -type _ABCIMessageLog_3_list struct { - list *[]*StringEvent -} - -func (x *_ABCIMessageLog_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_ABCIMessageLog_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_ABCIMessageLog_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*StringEvent) - (*x.list)[i] = concreteValue -} - -func (x *_ABCIMessageLog_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*StringEvent) - *x.list = append(*x.list, concreteValue) -} - -func (x *_ABCIMessageLog_3_list) AppendMutable() protoreflect.Value { - v := new(StringEvent) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_ABCIMessageLog_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_ABCIMessageLog_3_list) NewElement() protoreflect.Value { - v := new(StringEvent) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_ABCIMessageLog_3_list) IsValid() bool { - return x.list != nil -} - -var ( - md_ABCIMessageLog protoreflect.MessageDescriptor - fd_ABCIMessageLog_msg_index protoreflect.FieldDescriptor - fd_ABCIMessageLog_log protoreflect.FieldDescriptor - fd_ABCIMessageLog_events protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_base_abci_v1beta1_abci_proto_init() - md_ABCIMessageLog = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("ABCIMessageLog") - fd_ABCIMessageLog_msg_index = md_ABCIMessageLog.Fields().ByName("msg_index") - fd_ABCIMessageLog_log = md_ABCIMessageLog.Fields().ByName("log") - fd_ABCIMessageLog_events = md_ABCIMessageLog.Fields().ByName("events") -} - -var _ protoreflect.Message = (*fastReflection_ABCIMessageLog)(nil) - -type fastReflection_ABCIMessageLog ABCIMessageLog - -func (x *ABCIMessageLog) ProtoReflect() protoreflect.Message { - return (*fastReflection_ABCIMessageLog)(x) + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastCommit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LastCommit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Data = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Validators = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextValidators", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NextValidators = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field App", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.App = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Consensus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Consensus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Results = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Evidence = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_ABCIMessageLog_3_list)(nil) + +type _ABCIMessageLog_3_list struct { + list *[]*StringEvent +} + +func (x *_ABCIMessageLog_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ABCIMessageLog_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ABCIMessageLog_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*StringEvent) + (*x.list)[i] = concreteValue +} + +func (x *_ABCIMessageLog_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*StringEvent) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ABCIMessageLog_3_list) AppendMutable() protoreflect.Value { + v := new(StringEvent) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ABCIMessageLog_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ABCIMessageLog_3_list) NewElement() protoreflect.Value { + v := new(StringEvent) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ABCIMessageLog_3_list) IsValid() bool { + return x.list != nil +} + +var ( + md_ABCIMessageLog protoreflect.MessageDescriptor + fd_ABCIMessageLog_msg_index protoreflect.FieldDescriptor + fd_ABCIMessageLog_log protoreflect.FieldDescriptor + fd_ABCIMessageLog_events protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_base_abci_v1beta1_abci_proto_init() + md_ABCIMessageLog = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("ABCIMessageLog") + fd_ABCIMessageLog_msg_index = md_ABCIMessageLog.Fields().ByName("msg_index") + fd_ABCIMessageLog_log = md_ABCIMessageLog.Fields().ByName("log") + fd_ABCIMessageLog_events = md_ABCIMessageLog.Fields().ByName("events") +} + +var _ protoreflect.Message = (*fastReflection_ABCIMessageLog)(nil) + +type fastReflection_ABCIMessageLog ABCIMessageLog + +func (x *ABCIMessageLog) ProtoReflect() protoreflect.Message { + return (*fastReflection_ABCIMessageLog)(x) +} + +func (x *ABCIMessageLog) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ABCIMessageLog_messageType fastReflection_ABCIMessageLog_messageType +var _ protoreflect.MessageType = fastReflection_ABCIMessageLog_messageType{} + +type fastReflection_ABCIMessageLog_messageType struct{} + +func (x fastReflection_ABCIMessageLog_messageType) Zero() protoreflect.Message { + return (*fastReflection_ABCIMessageLog)(nil) +} +func (x fastReflection_ABCIMessageLog_messageType) New() protoreflect.Message { + return new(fastReflection_ABCIMessageLog) +} +func (x fastReflection_ABCIMessageLog_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ABCIMessageLog +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ABCIMessageLog) Descriptor() protoreflect.MessageDescriptor { + return md_ABCIMessageLog +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ABCIMessageLog) Type() protoreflect.MessageType { + return _fastReflection_ABCIMessageLog_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ABCIMessageLog) New() protoreflect.Message { + return new(fastReflection_ABCIMessageLog) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ABCIMessageLog) Interface() protoreflect.ProtoMessage { + return (*ABCIMessageLog)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ABCIMessageLog) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.MsgIndex != uint32(0) { + value := protoreflect.ValueOfUint32(x.MsgIndex) + if !f(fd_ABCIMessageLog_msg_index, value) { + return + } + } + if x.Log != "" { + value := protoreflect.ValueOfString(x.Log) + if !f(fd_ABCIMessageLog_log, value) { + return + } + } + if len(x.Events) != 0 { + value := protoreflect.ValueOfList(&_ABCIMessageLog_3_list{list: &x.Events}) + if !f(fd_ABCIMessageLog_events, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_ABCIMessageLog) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": + return x.MsgIndex != uint32(0) + case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + return x.Log != "" + case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + return len(x.Events) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ABCIMessageLog) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": + x.MsgIndex = uint32(0) + case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + x.Log = "" + case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + x.Events = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ABCIMessageLog) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": + value := x.MsgIndex + return protoreflect.ValueOfUint32(value) + case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + value := x.Log + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + if len(x.Events) == 0 { + return protoreflect.ValueOfList(&_ABCIMessageLog_3_list{}) + } + listValue := &_ABCIMessageLog_3_list{list: &x.Events} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ABCIMessageLog) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": + x.MsgIndex = uint32(value.Uint()) + case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + x.Log = value.Interface().(string) + case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + lv := value.List() + clv := lv.(*_ABCIMessageLog_3_list) + x.Events = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ABCIMessageLog) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + if x.Events == nil { + x.Events = []*StringEvent{} + } + value := &_ABCIMessageLog_3_list{list: &x.Events} + return protoreflect.ValueOfList(value) + case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": + panic(fmt.Errorf("field msg_index of message cosmos.base.abci.v1beta1.ABCIMessageLog is not mutable")) + case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + panic(fmt.Errorf("field log of message cosmos.base.abci.v1beta1.ABCIMessageLog is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ABCIMessageLog) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": + return protoreflect.ValueOfUint32(uint32(0)) + case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + list := []*StringEvent{} + return protoreflect.ValueOfList(&_ABCIMessageLog_3_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ABCIMessageLog) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.ABCIMessageLog", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ABCIMessageLog) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ABCIMessageLog) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ABCIMessageLog) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ABCIMessageLog) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.MsgIndex != 0 { + n += 1 + runtime.Sov(uint64(x.MsgIndex)) + } + l = len(x.Log) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Events) > 0 { + for _, e := range x.Events { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ABCIMessageLog) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Events) > 0 { + for iNdEx := len(x.Events) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Events[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if len(x.Log) > 0 { + i -= len(x.Log) + copy(dAtA[i:], x.Log) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Log))) + i-- + dAtA[i] = 0x12 + } + if x.MsgIndex != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MsgIndex)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*ABCIMessageLog) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ABCIMessageLog: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ABCIMessageLog: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgIndex", wireType) + } + x.MsgIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.MsgIndex |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Log = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Events = append(x.Events, &StringEvent{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Events[len(x.Events)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_StringEvent_2_list)(nil) + +type _StringEvent_2_list struct { + list *[]*Attribute +} + +func (x *_StringEvent_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_StringEvent_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_StringEvent_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Attribute) + (*x.list)[i] = concreteValue +} + +func (x *_StringEvent_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Attribute) + *x.list = append(*x.list, concreteValue) +} + +func (x *_StringEvent_2_list) AppendMutable() protoreflect.Value { + v := new(Attribute) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_StringEvent_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_StringEvent_2_list) NewElement() protoreflect.Value { + v := new(Attribute) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_StringEvent_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_StringEvent protoreflect.MessageDescriptor + fd_StringEvent_type protoreflect.FieldDescriptor + fd_StringEvent_attributes protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_base_abci_v1beta1_abci_proto_init() + md_StringEvent = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("StringEvent") + fd_StringEvent_type = md_StringEvent.Fields().ByName("type") + fd_StringEvent_attributes = md_StringEvent.Fields().ByName("attributes") +} + +var _ protoreflect.Message = (*fastReflection_StringEvent)(nil) + +type fastReflection_StringEvent StringEvent + +func (x *StringEvent) ProtoReflect() protoreflect.Message { + return (*fastReflection_StringEvent)(x) +} + +func (x *StringEvent) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_StringEvent_messageType fastReflection_StringEvent_messageType +var _ protoreflect.MessageType = fastReflection_StringEvent_messageType{} + +type fastReflection_StringEvent_messageType struct{} + +func (x fastReflection_StringEvent_messageType) Zero() protoreflect.Message { + return (*fastReflection_StringEvent)(nil) +} +func (x fastReflection_StringEvent_messageType) New() protoreflect.Message { + return new(fastReflection_StringEvent) +} +func (x fastReflection_StringEvent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StringEvent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StringEvent) Descriptor() protoreflect.MessageDescriptor { + return md_StringEvent +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_StringEvent) Type() protoreflect.MessageType { + return _fastReflection_StringEvent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StringEvent) New() protoreflect.Message { + return new(fastReflection_StringEvent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StringEvent) Interface() protoreflect.ProtoMessage { + return (*StringEvent)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_StringEvent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Type_ != "" { + value := protoreflect.ValueOfString(x.Type_) + if !f(fd_StringEvent_type, value) { + return + } + } + if len(x.Attributes) != 0 { + value := protoreflect.ValueOfList(&_StringEvent_2_list{list: &x.Attributes}) + if !f(fd_StringEvent_attributes, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_StringEvent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.StringEvent.type": + return x.Type_ != "" + case "cosmos.base.abci.v1beta1.StringEvent.attributes": + return len(x.Attributes) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StringEvent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.StringEvent.type": + x.Type_ = "" + case "cosmos.base.abci.v1beta1.StringEvent.attributes": + x.Attributes = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_StringEvent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.base.abci.v1beta1.StringEvent.type": + value := x.Type_ + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.StringEvent.attributes": + if len(x.Attributes) == 0 { + return protoreflect.ValueOfList(&_StringEvent_2_list{}) + } + listValue := &_StringEvent_2_list{list: &x.Attributes} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StringEvent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.StringEvent.type": + x.Type_ = value.Interface().(string) + case "cosmos.base.abci.v1beta1.StringEvent.attributes": + lv := value.List() + clv := lv.(*_StringEvent_2_list) + x.Attributes = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StringEvent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.StringEvent.attributes": + if x.Attributes == nil { + x.Attributes = []*Attribute{} + } + value := &_StringEvent_2_list{list: &x.Attributes} + return protoreflect.ValueOfList(value) + case "cosmos.base.abci.v1beta1.StringEvent.type": + panic(fmt.Errorf("field type of message cosmos.base.abci.v1beta1.StringEvent is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_StringEvent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.StringEvent.type": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.StringEvent.attributes": + list := []*Attribute{} + return protoreflect.ValueOfList(&_StringEvent_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_StringEvent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.StringEvent", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_StringEvent) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StringEvent) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_StringEvent) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_StringEvent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StringEvent) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Type_) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Attributes) > 0 { + for _, e := range x.Attributes { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*StringEvent) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Attributes) > 0 { + for iNdEx := len(x.Attributes) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Attributes[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Type_) > 0 { + i -= len(x.Type_) + copy(dAtA[i:], x.Type_) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Type_))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*StringEvent) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StringEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StringEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Type_ = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Attributes = append(x.Attributes, &Attribute{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Attributes[len(x.Attributes)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_Attribute protoreflect.MessageDescriptor + fd_Attribute_key protoreflect.FieldDescriptor + fd_Attribute_value protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_base_abci_v1beta1_abci_proto_init() + md_Attribute = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("Attribute") + fd_Attribute_key = md_Attribute.Fields().ByName("key") + fd_Attribute_value = md_Attribute.Fields().ByName("value") +} + +var _ protoreflect.Message = (*fastReflection_Attribute)(nil) + +type fastReflection_Attribute Attribute + +func (x *Attribute) ProtoReflect() protoreflect.Message { + return (*fastReflection_Attribute)(x) +} + +func (x *Attribute) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Attribute_messageType fastReflection_Attribute_messageType +var _ protoreflect.MessageType = fastReflection_Attribute_messageType{} + +type fastReflection_Attribute_messageType struct{} + +func (x fastReflection_Attribute_messageType) Zero() protoreflect.Message { + return (*fastReflection_Attribute)(nil) +} +func (x fastReflection_Attribute_messageType) New() protoreflect.Message { + return new(fastReflection_Attribute) +} +func (x fastReflection_Attribute_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Attribute +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Attribute) Descriptor() protoreflect.MessageDescriptor { + return md_Attribute +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Attribute) Type() protoreflect.MessageType { + return _fastReflection_Attribute_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Attribute) New() protoreflect.Message { + return new(fastReflection_Attribute) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Attribute) Interface() protoreflect.ProtoMessage { + return (*Attribute)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Attribute) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Key != "" { + value := protoreflect.ValueOfString(x.Key) + if !f(fd_Attribute_key, value) { + return + } + } + if x.Value != "" { + value := protoreflect.ValueOfString(x.Value) + if !f(fd_Attribute_value, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Attribute) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.Attribute.key": + return x.Key != "" + case "cosmos.base.abci.v1beta1.Attribute.value": + return x.Value != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Attribute) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.Attribute.key": + x.Key = "" + case "cosmos.base.abci.v1beta1.Attribute.value": + x.Value = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Attribute) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.base.abci.v1beta1.Attribute.key": + value := x.Key + return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.Attribute.value": + value := x.Value + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Attribute) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.Attribute.key": + x.Key = value.Interface().(string) + case "cosmos.base.abci.v1beta1.Attribute.value": + x.Value = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Attribute) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.Attribute.key": + panic(fmt.Errorf("field key of message cosmos.base.abci.v1beta1.Attribute is not mutable")) + case "cosmos.base.abci.v1beta1.Attribute.value": + panic(fmt.Errorf("field value of message cosmos.base.abci.v1beta1.Attribute is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Attribute) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.Attribute.key": + return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.Attribute.value": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Attribute) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.Attribute", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Attribute) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Attribute) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Attribute) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Attribute) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Attribute) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Key) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Value) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Attribute) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Value) > 0 { + i -= len(x.Value) + copy(dAtA[i:], x.Value) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Value))) + i-- + dAtA[i] = 0x12 + } + if len(x.Key) > 0 { + i -= len(x.Key) + copy(dAtA[i:], x.Key) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Key))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Attribute) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Attribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Attribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_GasInfo protoreflect.MessageDescriptor + fd_GasInfo_gas_wanted protoreflect.FieldDescriptor + fd_GasInfo_gas_used protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_base_abci_v1beta1_abci_proto_init() + md_GasInfo = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("GasInfo") + fd_GasInfo_gas_wanted = md_GasInfo.Fields().ByName("gas_wanted") + fd_GasInfo_gas_used = md_GasInfo.Fields().ByName("gas_used") +} + +var _ protoreflect.Message = (*fastReflection_GasInfo)(nil) + +type fastReflection_GasInfo GasInfo + +func (x *GasInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_GasInfo)(x) +} + +func (x *GasInfo) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GasInfo_messageType fastReflection_GasInfo_messageType +var _ protoreflect.MessageType = fastReflection_GasInfo_messageType{} + +type fastReflection_GasInfo_messageType struct{} + +func (x fastReflection_GasInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_GasInfo)(nil) +} +func (x fastReflection_GasInfo_messageType) New() protoreflect.Message { + return new(fastReflection_GasInfo) +} +func (x fastReflection_GasInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GasInfo +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GasInfo) Descriptor() protoreflect.MessageDescriptor { + return md_GasInfo +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GasInfo) Type() protoreflect.MessageType { + return _fastReflection_GasInfo_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GasInfo) New() protoreflect.Message { + return new(fastReflection_GasInfo) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GasInfo) Interface() protoreflect.ProtoMessage { + return (*GasInfo)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GasInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.GasWanted != uint64(0) { + value := protoreflect.ValueOfUint64(x.GasWanted) + if !f(fd_GasInfo_gas_wanted, value) { + return + } + } + if x.GasUsed != uint64(0) { + value := protoreflect.ValueOfUint64(x.GasUsed) + if !f(fd_GasInfo_gas_used, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GasInfo) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": + return x.GasWanted != uint64(0) + case "cosmos.base.abci.v1beta1.GasInfo.gas_used": + return x.GasUsed != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasInfo) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": + x.GasWanted = uint64(0) + case "cosmos.base.abci.v1beta1.GasInfo.gas_used": + x.GasUsed = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GasInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": + value := x.GasWanted + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.GasInfo.gas_used": + value := x.GasUsed + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": + x.GasWanted = value.Uint() + case "cosmos.base.abci.v1beta1.GasInfo.gas_used": + x.GasUsed = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": + panic(fmt.Errorf("field gas_wanted of message cosmos.base.abci.v1beta1.GasInfo is not mutable")) + case "cosmos.base.abci.v1beta1.GasInfo.gas_used": + panic(fmt.Errorf("field gas_used of message cosmos.base.abci.v1beta1.GasInfo is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GasInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.GasInfo.gas_used": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + } + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GasInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.GasInfo", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GasInfo) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasInfo) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GasInfo) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GasInfo) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.GasWanted != 0 { + n += 1 + runtime.Sov(uint64(x.GasWanted)) + } + if x.GasUsed != 0 { + n += 1 + runtime.Sov(uint64(x.GasUsed)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GasInfo) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.GasUsed != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.GasUsed)) + i-- + dAtA[i] = 0x10 + } + if x.GasWanted != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.GasWanted)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GasInfo) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) + } + x.GasWanted = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.GasWanted |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) + } + x.GasUsed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.GasUsed |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_Result_3_list)(nil) + +type _Result_3_list struct { + list *[]*abci.Event +} + +func (x *_Result_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Result_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_Result_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*abci.Event) + (*x.list)[i] = concreteValue +} + +func (x *_Result_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*abci.Event) + *x.list = append(*x.list, concreteValue) +} + +func (x *_Result_3_list) AppendMutable() protoreflect.Value { + v := new(abci.Event) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Result_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_Result_3_list) NewElement() protoreflect.Value { + v := new(abci.Event) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Result_3_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_Result_4_list)(nil) + +type _Result_4_list struct { + list *[]*anypb.Any +} + +func (x *_Result_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Result_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_Result_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_Result_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) } -func (x *ABCIMessageLog) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2] +func (x *_Result_4_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Result_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_Result_4_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Result_4_list) IsValid() bool { + return x.list != nil +} + +var ( + md_Result protoreflect.MessageDescriptor + fd_Result_data protoreflect.FieldDescriptor + fd_Result_log protoreflect.FieldDescriptor + fd_Result_events protoreflect.FieldDescriptor + fd_Result_msg_responses protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_base_abci_v1beta1_abci_proto_init() + md_Result = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("Result") + fd_Result_data = md_Result.Fields().ByName("data") + fd_Result_log = md_Result.Fields().ByName("log") + fd_Result_events = md_Result.Fields().ByName("events") + fd_Result_msg_responses = md_Result.Fields().ByName("msg_responses") +} + +var _ protoreflect.Message = (*fastReflection_Result)(nil) + +type fastReflection_Result Result + +func (x *Result) ProtoReflect() protoreflect.Message { + return (*fastReflection_Result)(x) +} + +func (x *Result) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1792,43 +4649,43 @@ func (x *ABCIMessageLog) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ABCIMessageLog_messageType fastReflection_ABCIMessageLog_messageType -var _ protoreflect.MessageType = fastReflection_ABCIMessageLog_messageType{} +var _fastReflection_Result_messageType fastReflection_Result_messageType +var _ protoreflect.MessageType = fastReflection_Result_messageType{} -type fastReflection_ABCIMessageLog_messageType struct{} +type fastReflection_Result_messageType struct{} -func (x fastReflection_ABCIMessageLog_messageType) Zero() protoreflect.Message { - return (*fastReflection_ABCIMessageLog)(nil) +func (x fastReflection_Result_messageType) Zero() protoreflect.Message { + return (*fastReflection_Result)(nil) } -func (x fastReflection_ABCIMessageLog_messageType) New() protoreflect.Message { - return new(fastReflection_ABCIMessageLog) +func (x fastReflection_Result_messageType) New() protoreflect.Message { + return new(fastReflection_Result) } -func (x fastReflection_ABCIMessageLog_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ABCIMessageLog +func (x fastReflection_Result_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Result } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ABCIMessageLog) Descriptor() protoreflect.MessageDescriptor { - return md_ABCIMessageLog +func (x *fastReflection_Result) Descriptor() protoreflect.MessageDescriptor { + return md_Result } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ABCIMessageLog) Type() protoreflect.MessageType { - return _fastReflection_ABCIMessageLog_messageType +func (x *fastReflection_Result) Type() protoreflect.MessageType { + return _fastReflection_Result_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ABCIMessageLog) New() protoreflect.Message { - return new(fastReflection_ABCIMessageLog) +func (x *fastReflection_Result) New() protoreflect.Message { + return new(fastReflection_Result) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ABCIMessageLog) Interface() protoreflect.ProtoMessage { - return (*ABCIMessageLog)(x) +func (x *fastReflection_Result) Interface() protoreflect.ProtoMessage { + return (*Result)(x) } // Range iterates over every populated field in an undefined order, @@ -1836,22 +4693,28 @@ func (x *fastReflection_ABCIMessageLog) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ABCIMessageLog) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.MsgIndex != uint32(0) { - value := protoreflect.ValueOfUint32(x.MsgIndex) - if !f(fd_ABCIMessageLog_msg_index, value) { +func (x *fastReflection_Result) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Data) != 0 { + value := protoreflect.ValueOfBytes(x.Data) + if !f(fd_Result_data, value) { return } } if x.Log != "" { value := protoreflect.ValueOfString(x.Log) - if !f(fd_ABCIMessageLog_log, value) { + if !f(fd_Result_log, value) { return } } if len(x.Events) != 0 { - value := protoreflect.ValueOfList(&_ABCIMessageLog_3_list{list: &x.Events}) - if !f(fd_ABCIMessageLog_events, value) { + value := protoreflect.ValueOfList(&_Result_3_list{list: &x.Events}) + if !f(fd_Result_events, value) { + return + } + } + if len(x.MsgResponses) != 0 { + value := protoreflect.ValueOfList(&_Result_4_list{list: &x.MsgResponses}) + if !f(fd_Result_msg_responses, value) { return } } @@ -1868,19 +4731,21 @@ func (x *fastReflection_ABCIMessageLog) Range(f func(protoreflect.FieldDescripto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ABCIMessageLog) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_Result) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": - return x.MsgIndex != uint32(0) - case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + case "cosmos.base.abci.v1beta1.Result.data": + return len(x.Data) != 0 + case "cosmos.base.abci.v1beta1.Result.log": return x.Log != "" - case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + case "cosmos.base.abci.v1beta1.Result.events": return len(x.Events) != 0 + case "cosmos.base.abci.v1beta1.Result.msg_responses": + return len(x.MsgResponses) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", fd.FullName())) } } @@ -1890,19 +4755,21 @@ func (x *fastReflection_ABCIMessageLog) Has(fd protoreflect.FieldDescriptor) boo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ABCIMessageLog) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_Result) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": - x.MsgIndex = uint32(0) - case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + case "cosmos.base.abci.v1beta1.Result.data": + x.Data = nil + case "cosmos.base.abci.v1beta1.Result.log": x.Log = "" - case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + case "cosmos.base.abci.v1beta1.Result.events": x.Events = nil + case "cosmos.base.abci.v1beta1.Result.msg_responses": + x.MsgResponses = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", fd.FullName())) } } @@ -1912,25 +4779,31 @@ func (x *fastReflection_ABCIMessageLog) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ABCIMessageLog) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Result) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": - value := x.MsgIndex - return protoreflect.ValueOfUint32(value) - case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + case "cosmos.base.abci.v1beta1.Result.data": + value := x.Data + return protoreflect.ValueOfBytes(value) + case "cosmos.base.abci.v1beta1.Result.log": value := x.Log return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + case "cosmos.base.abci.v1beta1.Result.events": if len(x.Events) == 0 { - return protoreflect.ValueOfList(&_ABCIMessageLog_3_list{}) + return protoreflect.ValueOfList(&_Result_3_list{}) } - listValue := &_ABCIMessageLog_3_list{list: &x.Events} + listValue := &_Result_3_list{list: &x.Events} + return protoreflect.ValueOfList(listValue) + case "cosmos.base.abci.v1beta1.Result.msg_responses": + if len(x.MsgResponses) == 0 { + return protoreflect.ValueOfList(&_Result_4_list{}) + } + listValue := &_Result_4_list{list: &x.MsgResponses} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", descriptor.FullName())) } } @@ -1944,21 +4817,25 @@ func (x *fastReflection_ABCIMessageLog) Get(descriptor protoreflect.FieldDescrip // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ABCIMessageLog) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_Result) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": - x.MsgIndex = uint32(value.Uint()) - case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + case "cosmos.base.abci.v1beta1.Result.data": + x.Data = value.Bytes() + case "cosmos.base.abci.v1beta1.Result.log": x.Log = value.Interface().(string) - case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + case "cosmos.base.abci.v1beta1.Result.events": lv := value.List() - clv := lv.(*_ABCIMessageLog_3_list) + clv := lv.(*_Result_3_list) x.Events = *clv.list + case "cosmos.base.abci.v1beta1.Result.msg_responses": + lv := value.List() + clv := lv.(*_Result_4_list) + x.MsgResponses = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", fd.FullName())) } } @@ -1972,53 +4849,62 @@ func (x *fastReflection_ABCIMessageLog) Set(fd protoreflect.FieldDescriptor, val // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ABCIMessageLog) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Result) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": + case "cosmos.base.abci.v1beta1.Result.events": if x.Events == nil { - x.Events = []*StringEvent{} + x.Events = []*abci.Event{} } - value := &_ABCIMessageLog_3_list{list: &x.Events} + value := &_Result_3_list{list: &x.Events} return protoreflect.ValueOfList(value) - case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": - panic(fmt.Errorf("field msg_index of message cosmos.base.abci.v1beta1.ABCIMessageLog is not mutable")) - case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": - panic(fmt.Errorf("field log of message cosmos.base.abci.v1beta1.ABCIMessageLog is not mutable")) + case "cosmos.base.abci.v1beta1.Result.msg_responses": + if x.MsgResponses == nil { + x.MsgResponses = []*anypb.Any{} + } + value := &_Result_4_list{list: &x.MsgResponses} + return protoreflect.ValueOfList(value) + case "cosmos.base.abci.v1beta1.Result.data": + panic(fmt.Errorf("field data of message cosmos.base.abci.v1beta1.Result is not mutable")) + case "cosmos.base.abci.v1beta1.Result.log": + panic(fmt.Errorf("field log of message cosmos.base.abci.v1beta1.Result is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ABCIMessageLog) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Result) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.ABCIMessageLog.msg_index": - return protoreflect.ValueOfUint32(uint32(0)) - case "cosmos.base.abci.v1beta1.ABCIMessageLog.log": + case "cosmos.base.abci.v1beta1.Result.data": + return protoreflect.ValueOfBytes(nil) + case "cosmos.base.abci.v1beta1.Result.log": return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.ABCIMessageLog.events": - list := []*StringEvent{} - return protoreflect.ValueOfList(&_ABCIMessageLog_3_list{list: &list}) + case "cosmos.base.abci.v1beta1.Result.events": + list := []*abci.Event{} + return protoreflect.ValueOfList(&_Result_3_list{list: &list}) + case "cosmos.base.abci.v1beta1.Result.msg_responses": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_Result_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.ABCIMessageLog")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.ABCIMessageLog does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ABCIMessageLog) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_Result) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.ABCIMessageLog", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.Result", d.FullName())) } panic("unreachable") } @@ -2026,7 +4912,7 @@ func (x *fastReflection_ABCIMessageLog) WhichOneof(d protoreflect.OneofDescripto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ABCIMessageLog) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_Result) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2037,7 +4923,7 @@ func (x *fastReflection_ABCIMessageLog) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ABCIMessageLog) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_Result) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2049,7 +4935,7 @@ func (x *fastReflection_ABCIMessageLog) SetUnknown(fields protoreflect.RawFields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ABCIMessageLog) IsValid() bool { +func (x *fastReflection_Result) IsValid() bool { return x != nil } @@ -2059,9 +4945,9 @@ func (x *fastReflection_ABCIMessageLog) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ABCIMessageLog) + x := input.Message.Interface().(*Result) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2073,8 +4959,9 @@ func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.MsgIndex != 0 { - n += 1 + runtime.Sov(uint64(x.MsgIndex)) + l = len(x.Data) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Log) if l > 0 { @@ -2086,6 +4973,12 @@ func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } + if len(x.MsgResponses) > 0 { + for _, e := range x.MsgResponses { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2096,7 +4989,7 @@ func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ABCIMessageLog) + x := input.Message.Interface().(*Result) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2115,6 +5008,22 @@ func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.MsgResponses) > 0 { + for iNdEx := len(x.MsgResponses) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.MsgResponses[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } if len(x.Events) > 0 { for iNdEx := len(x.Events) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.Events[iNdEx]) @@ -2138,10 +5047,12 @@ func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x12 } - if x.MsgIndex != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MsgIndex)) + if len(x.Data) > 0 { + i -= len(x.Data) + copy(dAtA[i:], x.Data) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -2154,7 +5065,7 @@ func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ABCIMessageLog) + x := input.Message.Interface().(*Result) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2186,17 +5097,17 @@ func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ABCIMessageLog: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Result: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ABCIMessageLog: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Result: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgIndex", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - x.MsgIndex = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2206,11 +5117,26 @@ func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.MsgIndex |= uint32(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Data = append(x.Data[:0], dAtA[iNdEx:postIndex]...) + if x.Data == nil { + x.Data = []byte{} + } + iNdEx = postIndex case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) @@ -2272,11 +5198,45 @@ func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Events = append(x.Events, &StringEvent{}) + x.Events = append(x.Events, &abci.Event{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Events[len(x.Events)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgResponses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.MsgResponses = append(x.MsgResponses, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MsgResponses[len(x.MsgResponses)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2312,80 +5272,29 @@ func (x *fastReflection_ABCIMessageLog) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_StringEvent_2_list)(nil) - -type _StringEvent_2_list struct { - list *[]*Attribute -} - -func (x *_StringEvent_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_StringEvent_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_StringEvent_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Attribute) - (*x.list)[i] = concreteValue -} - -func (x *_StringEvent_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Attribute) - *x.list = append(*x.list, concreteValue) -} - -func (x *_StringEvent_2_list) AppendMutable() protoreflect.Value { - v := new(Attribute) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_StringEvent_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_StringEvent_2_list) NewElement() protoreflect.Value { - v := new(Attribute) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_StringEvent_2_list) IsValid() bool { - return x.list != nil -} - var ( - md_StringEvent protoreflect.MessageDescriptor - fd_StringEvent_type protoreflect.FieldDescriptor - fd_StringEvent_attributes protoreflect.FieldDescriptor + md_SimulationResponse protoreflect.MessageDescriptor + fd_SimulationResponse_gas_info protoreflect.FieldDescriptor + fd_SimulationResponse_result protoreflect.FieldDescriptor ) func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() - md_StringEvent = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("StringEvent") - fd_StringEvent_type = md_StringEvent.Fields().ByName("type") - fd_StringEvent_attributes = md_StringEvent.Fields().ByName("attributes") + md_SimulationResponse = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("SimulationResponse") + fd_SimulationResponse_gas_info = md_SimulationResponse.Fields().ByName("gas_info") + fd_SimulationResponse_result = md_SimulationResponse.Fields().ByName("result") } -var _ protoreflect.Message = (*fastReflection_StringEvent)(nil) +var _ protoreflect.Message = (*fastReflection_SimulationResponse)(nil) -type fastReflection_StringEvent StringEvent +type fastReflection_SimulationResponse SimulationResponse -func (x *StringEvent) ProtoReflect() protoreflect.Message { - return (*fastReflection_StringEvent)(x) +func (x *SimulationResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_SimulationResponse)(x) } -func (x *StringEvent) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3] +func (x *SimulationResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2396,43 +5305,43 @@ func (x *StringEvent) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_StringEvent_messageType fastReflection_StringEvent_messageType -var _ protoreflect.MessageType = fastReflection_StringEvent_messageType{} +var _fastReflection_SimulationResponse_messageType fastReflection_SimulationResponse_messageType +var _ protoreflect.MessageType = fastReflection_SimulationResponse_messageType{} -type fastReflection_StringEvent_messageType struct{} +type fastReflection_SimulationResponse_messageType struct{} -func (x fastReflection_StringEvent_messageType) Zero() protoreflect.Message { - return (*fastReflection_StringEvent)(nil) +func (x fastReflection_SimulationResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_SimulationResponse)(nil) } -func (x fastReflection_StringEvent_messageType) New() protoreflect.Message { - return new(fastReflection_StringEvent) +func (x fastReflection_SimulationResponse_messageType) New() protoreflect.Message { + return new(fastReflection_SimulationResponse) } -func (x fastReflection_StringEvent_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_StringEvent +func (x fastReflection_SimulationResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SimulationResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_StringEvent) Descriptor() protoreflect.MessageDescriptor { - return md_StringEvent +func (x *fastReflection_SimulationResponse) Descriptor() protoreflect.MessageDescriptor { + return md_SimulationResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_StringEvent) Type() protoreflect.MessageType { - return _fastReflection_StringEvent_messageType +func (x *fastReflection_SimulationResponse) Type() protoreflect.MessageType { + return _fastReflection_SimulationResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_StringEvent) New() protoreflect.Message { - return new(fastReflection_StringEvent) +func (x *fastReflection_SimulationResponse) New() protoreflect.Message { + return new(fastReflection_SimulationResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_StringEvent) Interface() protoreflect.ProtoMessage { - return (*StringEvent)(x) +func (x *fastReflection_SimulationResponse) Interface() protoreflect.ProtoMessage { + return (*SimulationResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2440,16 +5349,16 @@ func (x *fastReflection_StringEvent) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_StringEvent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Type_ != "" { - value := protoreflect.ValueOfString(x.Type_) - if !f(fd_StringEvent_type, value) { +func (x *fastReflection_SimulationResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.GasInfo != nil { + value := protoreflect.ValueOfMessage(x.GasInfo.ProtoReflect()) + if !f(fd_SimulationResponse_gas_info, value) { return } } - if len(x.Attributes) != 0 { - value := protoreflect.ValueOfList(&_StringEvent_2_list{list: &x.Attributes}) - if !f(fd_StringEvent_attributes, value) { + if x.Result != nil { + value := protoreflect.ValueOfMessage(x.Result.ProtoReflect()) + if !f(fd_SimulationResponse_result, value) { return } } @@ -2466,17 +5375,17 @@ func (x *fastReflection_StringEvent) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_StringEvent) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_SimulationResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.StringEvent.type": - return x.Type_ != "" - case "cosmos.base.abci.v1beta1.StringEvent.attributes": - return len(x.Attributes) != 0 + case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": + return x.GasInfo != nil + case "cosmos.base.abci.v1beta1.SimulationResponse.result": + return x.Result != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", fd.FullName())) } } @@ -2486,17 +5395,17 @@ func (x *fastReflection_StringEvent) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_StringEvent) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_SimulationResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.StringEvent.type": - x.Type_ = "" - case "cosmos.base.abci.v1beta1.StringEvent.attributes": - x.Attributes = nil + case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": + x.GasInfo = nil + case "cosmos.base.abci.v1beta1.SimulationResponse.result": + x.Result = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", fd.FullName())) } } @@ -2506,22 +5415,19 @@ func (x *fastReflection_StringEvent) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_StringEvent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SimulationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.StringEvent.type": - value := x.Type_ - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.StringEvent.attributes": - if len(x.Attributes) == 0 { - return protoreflect.ValueOfList(&_StringEvent_2_list{}) - } - listValue := &_StringEvent_2_list{list: &x.Attributes} - return protoreflect.ValueOfList(listValue) + case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": + value := x.GasInfo + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.base.abci.v1beta1.SimulationResponse.result": + value := x.Result + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", descriptor.FullName())) } } @@ -2535,19 +5441,17 @@ func (x *fastReflection_StringEvent) Get(descriptor protoreflect.FieldDescriptor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_StringEvent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_SimulationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.StringEvent.type": - x.Type_ = value.Interface().(string) - case "cosmos.base.abci.v1beta1.StringEvent.attributes": - lv := value.List() - clv := lv.(*_StringEvent_2_list) - x.Attributes = *clv.list + case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": + x.GasInfo = value.Message().Interface().(*GasInfo) + case "cosmos.base.abci.v1beta1.SimulationResponse.result": + x.Result = value.Message().Interface().(*Result) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", fd.FullName())) } } @@ -2561,49 +5465,52 @@ func (x *fastReflection_StringEvent) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_StringEvent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SimulationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.StringEvent.attributes": - if x.Attributes == nil { - x.Attributes = []*Attribute{} + case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": + if x.GasInfo == nil { + x.GasInfo = new(GasInfo) } - value := &_StringEvent_2_list{list: &x.Attributes} - return protoreflect.ValueOfList(value) - case "cosmos.base.abci.v1beta1.StringEvent.type": - panic(fmt.Errorf("field type of message cosmos.base.abci.v1beta1.StringEvent is not mutable")) + return protoreflect.ValueOfMessage(x.GasInfo.ProtoReflect()) + case "cosmos.base.abci.v1beta1.SimulationResponse.result": + if x.Result == nil { + x.Result = new(Result) + } + return protoreflect.ValueOfMessage(x.Result.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_StringEvent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SimulationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.StringEvent.type": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.StringEvent.attributes": - list := []*Attribute{} - return protoreflect.ValueOfList(&_StringEvent_2_list{list: &list}) + case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": + m := new(GasInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "cosmos.base.abci.v1beta1.SimulationResponse.result": + m := new(Result) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.StringEvent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.StringEvent does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_StringEvent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_SimulationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.StringEvent", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.SimulationResponse", d.FullName())) } panic("unreachable") } @@ -2611,7 +5518,7 @@ func (x *fastReflection_StringEvent) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_StringEvent) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_SimulationResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2622,7 +5529,7 @@ func (x *fastReflection_StringEvent) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_StringEvent) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_SimulationResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2634,7 +5541,7 @@ func (x *fastReflection_StringEvent) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_StringEvent) IsValid() bool { +func (x *fastReflection_SimulationResponse) IsValid() bool { return x != nil } @@ -2644,9 +5551,9 @@ func (x *fastReflection_StringEvent) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_StringEvent) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_SimulationResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*StringEvent) + x := input.Message.Interface().(*SimulationResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2658,15 +5565,13 @@ func (x *fastReflection_StringEvent) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Type_) - if l > 0 { + if x.GasInfo != nil { + l = options.Size(x.GasInfo) n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Attributes) > 0 { - for _, e := range x.Attributes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.Result != nil { + l = options.Size(x.Result) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -2678,7 +5583,7 @@ func (x *fastReflection_StringEvent) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*StringEvent) + x := input.Message.Interface().(*SimulationResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2697,26 +5602,31 @@ func (x *fastReflection_StringEvent) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Attributes) > 0 { - for iNdEx := len(x.Attributes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Attributes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 + if x.Result != nil { + encoded, err := options.Marshal(x.Result) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 } - if len(x.Type_) > 0 { - i -= len(x.Type_) - copy(dAtA[i:], x.Type_) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Type_))) + if x.GasInfo != nil { + encoded, err := options.Marshal(x.GasInfo) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -2731,7 +5641,7 @@ func (x *fastReflection_StringEvent) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*StringEvent) + x := input.Message.Interface().(*SimulationResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2763,17 +5673,17 @@ func (x *fastReflection_StringEvent) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StringEvent: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SimulationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StringEvent: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SimulationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasInfo", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2783,27 +5693,31 @@ func (x *fastReflection_StringEvent) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Type_ = string(dAtA[iNdEx:postIndex]) + if x.GasInfo == nil { + x.GasInfo = &GasInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GasInfo); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2830,8 +5744,10 @@ func (x *fastReflection_StringEvent) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Attributes = append(x.Attributes, &Attribute{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Attributes[len(x.Attributes)-1]); err != nil { + if x.Result == nil { + x.Result = &Result{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Result); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -2871,28 +5787,28 @@ func (x *fastReflection_StringEvent) ProtoMethods() *protoiface.Methods { } var ( - md_Attribute protoreflect.MessageDescriptor - fd_Attribute_key protoreflect.FieldDescriptor - fd_Attribute_value protoreflect.FieldDescriptor + md_MsgData protoreflect.MessageDescriptor + fd_MsgData_msg_type protoreflect.FieldDescriptor + fd_MsgData_data protoreflect.FieldDescriptor ) func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() - md_Attribute = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("Attribute") - fd_Attribute_key = md_Attribute.Fields().ByName("key") - fd_Attribute_value = md_Attribute.Fields().ByName("value") + md_MsgData = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("MsgData") + fd_MsgData_msg_type = md_MsgData.Fields().ByName("msg_type") + fd_MsgData_data = md_MsgData.Fields().ByName("data") } -var _ protoreflect.Message = (*fastReflection_Attribute)(nil) +var _ protoreflect.Message = (*fastReflection_MsgData)(nil) -type fastReflection_Attribute Attribute +type fastReflection_MsgData MsgData -func (x *Attribute) ProtoReflect() protoreflect.Message { - return (*fastReflection_Attribute)(x) +func (x *MsgData) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgData)(x) } -func (x *Attribute) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4] +func (x *MsgData) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2903,43 +5819,43 @@ func (x *Attribute) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_Attribute_messageType fastReflection_Attribute_messageType -var _ protoreflect.MessageType = fastReflection_Attribute_messageType{} +var _fastReflection_MsgData_messageType fastReflection_MsgData_messageType +var _ protoreflect.MessageType = fastReflection_MsgData_messageType{} -type fastReflection_Attribute_messageType struct{} +type fastReflection_MsgData_messageType struct{} -func (x fastReflection_Attribute_messageType) Zero() protoreflect.Message { - return (*fastReflection_Attribute)(nil) +func (x fastReflection_MsgData_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgData)(nil) } -func (x fastReflection_Attribute_messageType) New() protoreflect.Message { - return new(fastReflection_Attribute) +func (x fastReflection_MsgData_messageType) New() protoreflect.Message { + return new(fastReflection_MsgData) } -func (x fastReflection_Attribute_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Attribute +func (x fastReflection_MsgData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgData } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_Attribute) Descriptor() protoreflect.MessageDescriptor { - return md_Attribute +func (x *fastReflection_MsgData) Descriptor() protoreflect.MessageDescriptor { + return md_MsgData } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_Attribute) Type() protoreflect.MessageType { - return _fastReflection_Attribute_messageType +func (x *fastReflection_MsgData) Type() protoreflect.MessageType { + return _fastReflection_MsgData_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_Attribute) New() protoreflect.Message { - return new(fastReflection_Attribute) +func (x *fastReflection_MsgData) New() protoreflect.Message { + return new(fastReflection_MsgData) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_Attribute) Interface() protoreflect.ProtoMessage { - return (*Attribute)(x) +func (x *fastReflection_MsgData) Interface() protoreflect.ProtoMessage { + return (*MsgData)(x) } // Range iterates over every populated field in an undefined order, @@ -2947,16 +5863,16 @@ func (x *fastReflection_Attribute) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_Attribute) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Key != "" { - value := protoreflect.ValueOfString(x.Key) - if !f(fd_Attribute_key, value) { +func (x *fastReflection_MsgData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.MsgType != "" { + value := protoreflect.ValueOfString(x.MsgType) + if !f(fd_MsgData_msg_type, value) { return } } - if x.Value != "" { - value := protoreflect.ValueOfString(x.Value) - if !f(fd_Attribute_value, value) { + if len(x.Data) != 0 { + value := protoreflect.ValueOfBytes(x.Data) + if !f(fd_MsgData_data, value) { return } } @@ -2973,17 +5889,17 @@ func (x *fastReflection_Attribute) Range(f func(protoreflect.FieldDescriptor, pr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_Attribute) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgData) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.Attribute.key": - return x.Key != "" - case "cosmos.base.abci.v1beta1.Attribute.value": - return x.Value != "" + case "cosmos.base.abci.v1beta1.MsgData.msg_type": + return x.MsgType != "" + case "cosmos.base.abci.v1beta1.MsgData.data": + return len(x.Data) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", fd.FullName())) } } @@ -2993,17 +5909,17 @@ func (x *fastReflection_Attribute) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Attribute) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.Attribute.key": - x.Key = "" - case "cosmos.base.abci.v1beta1.Attribute.value": - x.Value = "" +func (x *fastReflection_MsgData) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.MsgData.msg_type": + x.MsgType = "" + case "cosmos.base.abci.v1beta1.MsgData.data": + x.Data = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", fd.FullName())) } } @@ -3013,19 +5929,19 @@ func (x *fastReflection_Attribute) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Attribute) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.Attribute.key": - value := x.Key - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.Attribute.value": - value := x.Value + case "cosmos.base.abci.v1beta1.MsgData.msg_type": + value := x.MsgType return protoreflect.ValueOfString(value) + case "cosmos.base.abci.v1beta1.MsgData.data": + value := x.Data + return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", descriptor.FullName())) } } @@ -3039,17 +5955,17 @@ func (x *fastReflection_Attribute) Get(descriptor protoreflect.FieldDescriptor) // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Attribute) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.Attribute.key": - x.Key = value.Interface().(string) - case "cosmos.base.abci.v1beta1.Attribute.value": - x.Value = value.Interface().(string) + case "cosmos.base.abci.v1beta1.MsgData.msg_type": + x.MsgType = value.Interface().(string) + case "cosmos.base.abci.v1beta1.MsgData.data": + x.Data = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", fd.FullName())) } } @@ -3063,44 +5979,44 @@ func (x *fastReflection_Attribute) Set(fd protoreflect.FieldDescriptor, value pr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Attribute) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.Attribute.key": - panic(fmt.Errorf("field key of message cosmos.base.abci.v1beta1.Attribute is not mutable")) - case "cosmos.base.abci.v1beta1.Attribute.value": - panic(fmt.Errorf("field value of message cosmos.base.abci.v1beta1.Attribute is not mutable")) + case "cosmos.base.abci.v1beta1.MsgData.msg_type": + panic(fmt.Errorf("field msg_type of message cosmos.base.abci.v1beta1.MsgData is not mutable")) + case "cosmos.base.abci.v1beta1.MsgData.data": + panic(fmt.Errorf("field data of message cosmos.base.abci.v1beta1.MsgData is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Attribute) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.Attribute.key": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.Attribute.value": + case "cosmos.base.abci.v1beta1.MsgData.msg_type": return protoreflect.ValueOfString("") + case "cosmos.base.abci.v1beta1.MsgData.data": + return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Attribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Attribute does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Attribute) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.Attribute", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.MsgData", d.FullName())) } panic("unreachable") } @@ -3108,7 +6024,7 @@ func (x *fastReflection_Attribute) WhichOneof(d protoreflect.OneofDescriptor) pr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Attribute) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgData) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3119,7 +6035,7 @@ func (x *fastReflection_Attribute) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Attribute) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgData) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3131,7 +6047,7 @@ func (x *fastReflection_Attribute) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_Attribute) IsValid() bool { +func (x *fastReflection_MsgData) IsValid() bool { return x != nil } @@ -3141,9 +6057,9 @@ func (x *fastReflection_Attribute) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_Attribute) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgData) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Attribute) + x := input.Message.Interface().(*MsgData) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3155,11 +6071,11 @@ func (x *fastReflection_Attribute) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Key) + l = len(x.MsgType) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Value) + l = len(x.Data) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -3173,7 +6089,7 @@ func (x *fastReflection_Attribute) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Attribute) + x := input.Message.Interface().(*MsgData) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3192,17 +6108,17 @@ func (x *fastReflection_Attribute) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Value) > 0 { - i -= len(x.Value) - copy(dAtA[i:], x.Value) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Value))) + if len(x.Data) > 0 { + i -= len(x.Data) + copy(dAtA[i:], x.Data) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data))) i-- dAtA[i] = 0x12 } - if len(x.Key) > 0 { - i -= len(x.Key) - copy(dAtA[i:], x.Key) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Key))) + if len(x.MsgType) > 0 { + i -= len(x.MsgType) + copy(dAtA[i:], x.MsgType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MsgType))) i-- dAtA[i] = 0xa } @@ -3217,7 +6133,7 @@ func (x *fastReflection_Attribute) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Attribute) + x := input.Message.Interface().(*MsgData) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3249,15 +6165,15 @@ func (x *fastReflection_Attribute) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Attribute: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgData: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Attribute: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3285,13 +6201,13 @@ func (x *fastReflection_Attribute) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Key = string(dAtA[iNdEx:postIndex]) + x.MsgType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3301,23 +6217,25 @@ func (x *fastReflection_Attribute) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Value = string(dAtA[iNdEx:postIndex]) + x.Data = append(x.Data[:0], dAtA[iNdEx:postIndex]...) + if x.Data == nil { + x.Data = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -3354,29 +6272,131 @@ func (x *fastReflection_Attribute) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_TxMsgData_1_list)(nil) + +type _TxMsgData_1_list struct { + list *[]*MsgData +} + +func (x *_TxMsgData_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_TxMsgData_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_TxMsgData_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*MsgData) + (*x.list)[i] = concreteValue +} + +func (x *_TxMsgData_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*MsgData) + *x.list = append(*x.list, concreteValue) +} + +func (x *_TxMsgData_1_list) AppendMutable() protoreflect.Value { + v := new(MsgData) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_TxMsgData_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_TxMsgData_1_list) NewElement() protoreflect.Value { + v := new(MsgData) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_TxMsgData_1_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_TxMsgData_2_list)(nil) + +type _TxMsgData_2_list struct { + list *[]*anypb.Any +} + +func (x *_TxMsgData_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_TxMsgData_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_TxMsgData_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_TxMsgData_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_TxMsgData_2_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_TxMsgData_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_TxMsgData_2_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_TxMsgData_2_list) IsValid() bool { + return x.list != nil +} + var ( - md_GasInfo protoreflect.MessageDescriptor - fd_GasInfo_gas_wanted protoreflect.FieldDescriptor - fd_GasInfo_gas_used protoreflect.FieldDescriptor + md_TxMsgData protoreflect.MessageDescriptor + fd_TxMsgData_data protoreflect.FieldDescriptor + fd_TxMsgData_msg_responses protoreflect.FieldDescriptor ) func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() - md_GasInfo = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("GasInfo") - fd_GasInfo_gas_wanted = md_GasInfo.Fields().ByName("gas_wanted") - fd_GasInfo_gas_used = md_GasInfo.Fields().ByName("gas_used") + md_TxMsgData = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("TxMsgData") + fd_TxMsgData_data = md_TxMsgData.Fields().ByName("data") + fd_TxMsgData_msg_responses = md_TxMsgData.Fields().ByName("msg_responses") } -var _ protoreflect.Message = (*fastReflection_GasInfo)(nil) +var _ protoreflect.Message = (*fastReflection_TxMsgData)(nil) -type fastReflection_GasInfo GasInfo +type fastReflection_TxMsgData TxMsgData -func (x *GasInfo) ProtoReflect() protoreflect.Message { - return (*fastReflection_GasInfo)(x) +func (x *TxMsgData) ProtoReflect() protoreflect.Message { + return (*fastReflection_TxMsgData)(x) } -func (x *GasInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5] +func (x *TxMsgData) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3387,43 +6407,43 @@ func (x *GasInfo) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GasInfo_messageType fastReflection_GasInfo_messageType -var _ protoreflect.MessageType = fastReflection_GasInfo_messageType{} +var _fastReflection_TxMsgData_messageType fastReflection_TxMsgData_messageType +var _ protoreflect.MessageType = fastReflection_TxMsgData_messageType{} -type fastReflection_GasInfo_messageType struct{} +type fastReflection_TxMsgData_messageType struct{} -func (x fastReflection_GasInfo_messageType) Zero() protoreflect.Message { - return (*fastReflection_GasInfo)(nil) +func (x fastReflection_TxMsgData_messageType) Zero() protoreflect.Message { + return (*fastReflection_TxMsgData)(nil) } -func (x fastReflection_GasInfo_messageType) New() protoreflect.Message { - return new(fastReflection_GasInfo) +func (x fastReflection_TxMsgData_messageType) New() protoreflect.Message { + return new(fastReflection_TxMsgData) } -func (x fastReflection_GasInfo_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GasInfo +func (x fastReflection_TxMsgData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TxMsgData } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GasInfo) Descriptor() protoreflect.MessageDescriptor { - return md_GasInfo +func (x *fastReflection_TxMsgData) Descriptor() protoreflect.MessageDescriptor { + return md_TxMsgData } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GasInfo) Type() protoreflect.MessageType { - return _fastReflection_GasInfo_messageType +func (x *fastReflection_TxMsgData) Type() protoreflect.MessageType { + return _fastReflection_TxMsgData_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GasInfo) New() protoreflect.Message { - return new(fastReflection_GasInfo) +func (x *fastReflection_TxMsgData) New() protoreflect.Message { + return new(fastReflection_TxMsgData) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GasInfo) Interface() protoreflect.ProtoMessage { - return (*GasInfo)(x) +func (x *fastReflection_TxMsgData) Interface() protoreflect.ProtoMessage { + return (*TxMsgData)(x) } // Range iterates over every populated field in an undefined order, @@ -3431,16 +6451,16 @@ func (x *fastReflection_GasInfo) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GasInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GasWanted != uint64(0) { - value := protoreflect.ValueOfUint64(x.GasWanted) - if !f(fd_GasInfo_gas_wanted, value) { +func (x *fastReflection_TxMsgData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Data) != 0 { + value := protoreflect.ValueOfList(&_TxMsgData_1_list{list: &x.Data}) + if !f(fd_TxMsgData_data, value) { return } } - if x.GasUsed != uint64(0) { - value := protoreflect.ValueOfUint64(x.GasUsed) - if !f(fd_GasInfo_gas_used, value) { + if len(x.MsgResponses) != 0 { + value := protoreflect.ValueOfList(&_TxMsgData_2_list{list: &x.MsgResponses}) + if !f(fd_TxMsgData_msg_responses, value) { return } } @@ -3457,17 +6477,17 @@ func (x *fastReflection_GasInfo) Range(f func(protoreflect.FieldDescriptor, prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GasInfo) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_TxMsgData) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": - return x.GasWanted != uint64(0) - case "cosmos.base.abci.v1beta1.GasInfo.gas_used": - return x.GasUsed != uint64(0) + case "cosmos.base.abci.v1beta1.TxMsgData.data": + return len(x.Data) != 0 + case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": + return len(x.MsgResponses) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", fd.FullName())) } } @@ -3477,17 +6497,17 @@ func (x *fastReflection_GasInfo) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GasInfo) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_TxMsgData) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": - x.GasWanted = uint64(0) - case "cosmos.base.abci.v1beta1.GasInfo.gas_used": - x.GasUsed = uint64(0) + case "cosmos.base.abci.v1beta1.TxMsgData.data": + x.Data = nil + case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": + x.MsgResponses = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", fd.FullName())) } } @@ -3497,19 +6517,25 @@ func (x *fastReflection_GasInfo) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GasInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_TxMsgData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": - value := x.GasWanted - return protoreflect.ValueOfUint64(value) - case "cosmos.base.abci.v1beta1.GasInfo.gas_used": - value := x.GasUsed - return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.TxMsgData.data": + if len(x.Data) == 0 { + return protoreflect.ValueOfList(&_TxMsgData_1_list{}) + } + listValue := &_TxMsgData_1_list{list: &x.Data} + return protoreflect.ValueOfList(listValue) + case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": + if len(x.MsgResponses) == 0 { + return protoreflect.ValueOfList(&_TxMsgData_2_list{}) + } + listValue := &_TxMsgData_2_list{list: &x.MsgResponses} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", descriptor.FullName())) } } @@ -3523,17 +6549,21 @@ func (x *fastReflection_GasInfo) Get(descriptor protoreflect.FieldDescriptor) pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GasInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_TxMsgData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": - x.GasWanted = value.Uint() - case "cosmos.base.abci.v1beta1.GasInfo.gas_used": - x.GasUsed = value.Uint() + case "cosmos.base.abci.v1beta1.TxMsgData.data": + lv := value.List() + clv := lv.(*_TxMsgData_1_list) + x.Data = *clv.list + case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": + lv := value.List() + clv := lv.(*_TxMsgData_2_list) + x.MsgResponses = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", fd.FullName())) } } @@ -3547,44 +6577,54 @@ func (x *fastReflection_GasInfo) Set(fd protoreflect.FieldDescriptor, value prot // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GasInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_TxMsgData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": - panic(fmt.Errorf("field gas_wanted of message cosmos.base.abci.v1beta1.GasInfo is not mutable")) - case "cosmos.base.abci.v1beta1.GasInfo.gas_used": - panic(fmt.Errorf("field gas_used of message cosmos.base.abci.v1beta1.GasInfo is not mutable")) + case "cosmos.base.abci.v1beta1.TxMsgData.data": + if x.Data == nil { + x.Data = []*MsgData{} + } + value := &_TxMsgData_1_list{list: &x.Data} + return protoreflect.ValueOfList(value) + case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": + if x.MsgResponses == nil { + x.MsgResponses = []*anypb.Any{} + } + value := &_TxMsgData_2_list{list: &x.MsgResponses} + return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GasInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_TxMsgData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.GasInfo.gas_wanted": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.base.abci.v1beta1.GasInfo.gas_used": - return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.TxMsgData.data": + list := []*MsgData{} + return protoreflect.ValueOfList(&_TxMsgData_1_list{list: &list}) + case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_TxMsgData_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.GasInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.GasInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GasInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_TxMsgData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.GasInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.TxMsgData", d.FullName())) } panic("unreachable") } @@ -3592,7 +6632,7 @@ func (x *fastReflection_GasInfo) WhichOneof(d protoreflect.OneofDescriptor) prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GasInfo) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_TxMsgData) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3603,7 +6643,7 @@ func (x *fastReflection_GasInfo) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GasInfo) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_TxMsgData) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3615,7 +6655,7 @@ func (x *fastReflection_GasInfo) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GasInfo) IsValid() bool { +func (x *fastReflection_TxMsgData) IsValid() bool { return x != nil } @@ -3625,9 +6665,9 @@ func (x *fastReflection_GasInfo) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_TxMsgData) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GasInfo) + x := input.Message.Interface().(*TxMsgData) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3639,11 +6679,17 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.GasWanted != 0 { - n += 1 + runtime.Sov(uint64(x.GasWanted)) + if len(x.Data) > 0 { + for _, e := range x.Data { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } - if x.GasUsed != 0 { - n += 1 + runtime.Sov(uint64(x.GasUsed)) + if len(x.MsgResponses) > 0 { + for _, e := range x.MsgResponses { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -3655,7 +6701,7 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GasInfo) + x := input.Message.Interface().(*TxMsgData) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3674,15 +6720,37 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.GasUsed != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GasUsed)) - i-- - dAtA[i] = 0x10 + if len(x.MsgResponses) > 0 { + for iNdEx := len(x.MsgResponses) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.MsgResponses[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } } - if x.GasWanted != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GasWanted)) - i-- - dAtA[i] = 0x8 + if len(x.Data) > 0 { + for iNdEx := len(x.Data) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Data[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -3695,7 +6763,7 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GasInfo) + x := input.Message.Interface().(*TxMsgData) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3727,17 +6795,17 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasInfo: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TxMsgData: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasInfo: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TxMsgData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - x.GasWanted = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3747,16 +6815,31 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.GasWanted |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Data = append(x.Data, &MsgData{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Data[len(x.Data)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgResponses", wireType) } - x.GasUsed = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3766,11 +6849,26 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.GasUsed |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.MsgResponses = append(x.MsgResponses, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MsgResponses[len(x.MsgResponses)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -3806,135 +6904,88 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_Result_3_list)(nil) - -type _Result_3_list struct { - list *[]*abci.Event -} - -func (x *_Result_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Result_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Result_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*abci.Event) - (*x.list)[i] = concreteValue -} - -func (x *_Result_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*abci.Event) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Result_3_list) AppendMutable() protoreflect.Value { - v := new(abci.Event) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Result_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Result_3_list) NewElement() protoreflect.Value { - v := new(abci.Event) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Result_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_Result_4_list)(nil) +var _ protoreflect.List = (*_SearchTxsResult_6_list)(nil) -type _Result_4_list struct { - list *[]*anypb.Any +type _SearchTxsResult_6_list struct { + list *[]*TxResponse } -func (x *_Result_4_list) Len() int { +func (x *_SearchTxsResult_6_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Result_4_list) Get(i int) protoreflect.Value { +func (x *_SearchTxsResult_6_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_Result_4_list) Set(i int, value protoreflect.Value) { +func (x *_SearchTxsResult_6_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*anypb.Any) + concreteValue := valueUnwrapped.Interface().(*TxResponse) (*x.list)[i] = concreteValue } -func (x *_Result_4_list) Append(value protoreflect.Value) { +func (x *_SearchTxsResult_6_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*anypb.Any) + concreteValue := valueUnwrapped.Interface().(*TxResponse) *x.list = append(*x.list, concreteValue) } -func (x *_Result_4_list) AppendMutable() protoreflect.Value { - v := new(anypb.Any) +func (x *_SearchTxsResult_6_list) AppendMutable() protoreflect.Value { + v := new(TxResponse) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Result_4_list) Truncate(n int) { +func (x *_SearchTxsResult_6_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_Result_4_list) NewElement() protoreflect.Value { - v := new(anypb.Any) +func (x *_SearchTxsResult_6_list) NewElement() protoreflect.Value { + v := new(TxResponse) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Result_4_list) IsValid() bool { +func (x *_SearchTxsResult_6_list) IsValid() bool { return x.list != nil } var ( - md_Result protoreflect.MessageDescriptor - fd_Result_data protoreflect.FieldDescriptor - fd_Result_log protoreflect.FieldDescriptor - fd_Result_events protoreflect.FieldDescriptor - fd_Result_msg_responses protoreflect.FieldDescriptor + md_SearchTxsResult protoreflect.MessageDescriptor + fd_SearchTxsResult_total_count protoreflect.FieldDescriptor + fd_SearchTxsResult_count protoreflect.FieldDescriptor + fd_SearchTxsResult_page_number protoreflect.FieldDescriptor + fd_SearchTxsResult_page_total protoreflect.FieldDescriptor + fd_SearchTxsResult_limit protoreflect.FieldDescriptor + fd_SearchTxsResult_txs protoreflect.FieldDescriptor ) func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() - md_Result = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("Result") - fd_Result_data = md_Result.Fields().ByName("data") - fd_Result_log = md_Result.Fields().ByName("log") - fd_Result_events = md_Result.Fields().ByName("events") - fd_Result_msg_responses = md_Result.Fields().ByName("msg_responses") + md_SearchTxsResult = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("SearchTxsResult") + fd_SearchTxsResult_total_count = md_SearchTxsResult.Fields().ByName("total_count") + fd_SearchTxsResult_count = md_SearchTxsResult.Fields().ByName("count") + fd_SearchTxsResult_page_number = md_SearchTxsResult.Fields().ByName("page_number") + fd_SearchTxsResult_page_total = md_SearchTxsResult.Fields().ByName("page_total") + fd_SearchTxsResult_limit = md_SearchTxsResult.Fields().ByName("limit") + fd_SearchTxsResult_txs = md_SearchTxsResult.Fields().ByName("txs") } -var _ protoreflect.Message = (*fastReflection_Result)(nil) +var _ protoreflect.Message = (*fastReflection_SearchTxsResult)(nil) -type fastReflection_Result Result +type fastReflection_SearchTxsResult SearchTxsResult -func (x *Result) ProtoReflect() protoreflect.Message { - return (*fastReflection_Result)(x) +func (x *SearchTxsResult) ProtoReflect() protoreflect.Message { + return (*fastReflection_SearchTxsResult)(x) } -func (x *Result) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6] +func (x *SearchTxsResult) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3945,43 +6996,43 @@ func (x *Result) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_Result_messageType fastReflection_Result_messageType -var _ protoreflect.MessageType = fastReflection_Result_messageType{} +var _fastReflection_SearchTxsResult_messageType fastReflection_SearchTxsResult_messageType +var _ protoreflect.MessageType = fastReflection_SearchTxsResult_messageType{} -type fastReflection_Result_messageType struct{} +type fastReflection_SearchTxsResult_messageType struct{} -func (x fastReflection_Result_messageType) Zero() protoreflect.Message { - return (*fastReflection_Result)(nil) +func (x fastReflection_SearchTxsResult_messageType) Zero() protoreflect.Message { + return (*fastReflection_SearchTxsResult)(nil) } -func (x fastReflection_Result_messageType) New() protoreflect.Message { - return new(fastReflection_Result) +func (x fastReflection_SearchTxsResult_messageType) New() protoreflect.Message { + return new(fastReflection_SearchTxsResult) } -func (x fastReflection_Result_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Result +func (x fastReflection_SearchTxsResult_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SearchTxsResult } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_Result) Descriptor() protoreflect.MessageDescriptor { - return md_Result +func (x *fastReflection_SearchTxsResult) Descriptor() protoreflect.MessageDescriptor { + return md_SearchTxsResult } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_Result) Type() protoreflect.MessageType { - return _fastReflection_Result_messageType +func (x *fastReflection_SearchTxsResult) Type() protoreflect.MessageType { + return _fastReflection_SearchTxsResult_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_Result) New() protoreflect.Message { - return new(fastReflection_Result) +func (x *fastReflection_SearchTxsResult) New() protoreflect.Message { + return new(fastReflection_SearchTxsResult) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_Result) Interface() protoreflect.ProtoMessage { - return (*Result)(x) +func (x *fastReflection_SearchTxsResult) Interface() protoreflect.ProtoMessage { + return (*SearchTxsResult)(x) } // Range iterates over every populated field in an undefined order, @@ -3989,28 +7040,40 @@ func (x *fastReflection_Result) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_Result) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Data) != 0 { - value := protoreflect.ValueOfBytes(x.Data) - if !f(fd_Result_data, value) { +func (x *fastReflection_SearchTxsResult) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalCount != uint64(0) { + value := protoreflect.ValueOfUint64(x.TotalCount) + if !f(fd_SearchTxsResult_total_count, value) { return } } - if x.Log != "" { - value := protoreflect.ValueOfString(x.Log) - if !f(fd_Result_log, value) { + if x.Count != uint64(0) { + value := protoreflect.ValueOfUint64(x.Count) + if !f(fd_SearchTxsResult_count, value) { return } } - if len(x.Events) != 0 { - value := protoreflect.ValueOfList(&_Result_3_list{list: &x.Events}) - if !f(fd_Result_events, value) { + if x.PageNumber != uint64(0) { + value := protoreflect.ValueOfUint64(x.PageNumber) + if !f(fd_SearchTxsResult_page_number, value) { return } } - if len(x.MsgResponses) != 0 { - value := protoreflect.ValueOfList(&_Result_4_list{list: &x.MsgResponses}) - if !f(fd_Result_msg_responses, value) { + if x.PageTotal != uint64(0) { + value := protoreflect.ValueOfUint64(x.PageTotal) + if !f(fd_SearchTxsResult_page_total, value) { + return + } + } + if x.Limit != uint64(0) { + value := protoreflect.ValueOfUint64(x.Limit) + if !f(fd_SearchTxsResult_limit, value) { + return + } + } + if len(x.Txs) != 0 { + value := protoreflect.ValueOfList(&_SearchTxsResult_6_list{list: &x.Txs}) + if !f(fd_SearchTxsResult_txs, value) { return } } @@ -4027,21 +7090,25 @@ func (x *fastReflection_Result) Range(f func(protoreflect.FieldDescriptor, proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_Result) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_SearchTxsResult) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.Result.data": - return len(x.Data) != 0 - case "cosmos.base.abci.v1beta1.Result.log": - return x.Log != "" - case "cosmos.base.abci.v1beta1.Result.events": - return len(x.Events) != 0 - case "cosmos.base.abci.v1beta1.Result.msg_responses": - return len(x.MsgResponses) != 0 + case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": + return x.TotalCount != uint64(0) + case "cosmos.base.abci.v1beta1.SearchTxsResult.count": + return x.Count != uint64(0) + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": + return x.PageNumber != uint64(0) + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": + return x.PageTotal != uint64(0) + case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": + return x.Limit != uint64(0) + case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": + return len(x.Txs) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", fd.FullName())) } } @@ -4051,21 +7118,25 @@ func (x *fastReflection_Result) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Result) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_SearchTxsResult) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.Result.data": - x.Data = nil - case "cosmos.base.abci.v1beta1.Result.log": - x.Log = "" - case "cosmos.base.abci.v1beta1.Result.events": - x.Events = nil - case "cosmos.base.abci.v1beta1.Result.msg_responses": - x.MsgResponses = nil + case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": + x.TotalCount = uint64(0) + case "cosmos.base.abci.v1beta1.SearchTxsResult.count": + x.Count = uint64(0) + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": + x.PageNumber = uint64(0) + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": + x.PageTotal = uint64(0) + case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": + x.Limit = uint64(0) + case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": + x.Txs = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", fd.FullName())) } } @@ -4075,31 +7146,34 @@ func (x *fastReflection_Result) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Result) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SearchTxsResult) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.Result.data": - value := x.Data - return protoreflect.ValueOfBytes(value) - case "cosmos.base.abci.v1beta1.Result.log": - value := x.Log - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.Result.events": - if len(x.Events) == 0 { - return protoreflect.ValueOfList(&_Result_3_list{}) - } - listValue := &_Result_3_list{list: &x.Events} - return protoreflect.ValueOfList(listValue) - case "cosmos.base.abci.v1beta1.Result.msg_responses": - if len(x.MsgResponses) == 0 { - return protoreflect.ValueOfList(&_Result_4_list{}) + case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": + value := x.TotalCount + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.SearchTxsResult.count": + value := x.Count + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": + value := x.PageNumber + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": + value := x.PageTotal + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": + value := x.Limit + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": + if len(x.Txs) == 0 { + return protoreflect.ValueOfList(&_SearchTxsResult_6_list{}) } - listValue := &_Result_4_list{list: &x.MsgResponses} + listValue := &_SearchTxsResult_6_list{list: &x.Txs} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", descriptor.FullName())) } } @@ -4113,25 +7187,27 @@ func (x *fastReflection_Result) Get(descriptor protoreflect.FieldDescriptor) pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Result) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_SearchTxsResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.Result.data": - x.Data = value.Bytes() - case "cosmos.base.abci.v1beta1.Result.log": - x.Log = value.Interface().(string) - case "cosmos.base.abci.v1beta1.Result.events": - lv := value.List() - clv := lv.(*_Result_3_list) - x.Events = *clv.list - case "cosmos.base.abci.v1beta1.Result.msg_responses": + case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": + x.TotalCount = value.Uint() + case "cosmos.base.abci.v1beta1.SearchTxsResult.count": + x.Count = value.Uint() + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": + x.PageNumber = value.Uint() + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": + x.PageTotal = value.Uint() + case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": + x.Limit = value.Uint() + case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": lv := value.List() - clv := lv.(*_Result_4_list) - x.MsgResponses = *clv.list + clv := lv.(*_SearchTxsResult_6_list) + x.Txs = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", fd.FullName())) } } @@ -4145,62 +7221,65 @@ func (x *fastReflection_Result) Set(fd protoreflect.FieldDescriptor, value proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Result) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SearchTxsResult) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.Result.events": - if x.Events == nil { - x.Events = []*abci.Event{} - } - value := &_Result_3_list{list: &x.Events} - return protoreflect.ValueOfList(value) - case "cosmos.base.abci.v1beta1.Result.msg_responses": - if x.MsgResponses == nil { - x.MsgResponses = []*anypb.Any{} + case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": + if x.Txs == nil { + x.Txs = []*TxResponse{} } - value := &_Result_4_list{list: &x.MsgResponses} + value := &_SearchTxsResult_6_list{list: &x.Txs} return protoreflect.ValueOfList(value) - case "cosmos.base.abci.v1beta1.Result.data": - panic(fmt.Errorf("field data of message cosmos.base.abci.v1beta1.Result is not mutable")) - case "cosmos.base.abci.v1beta1.Result.log": - panic(fmt.Errorf("field log of message cosmos.base.abci.v1beta1.Result is not mutable")) + case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": + panic(fmt.Errorf("field total_count of message cosmos.base.abci.v1beta1.SearchTxsResult is not mutable")) + case "cosmos.base.abci.v1beta1.SearchTxsResult.count": + panic(fmt.Errorf("field count of message cosmos.base.abci.v1beta1.SearchTxsResult is not mutable")) + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": + panic(fmt.Errorf("field page_number of message cosmos.base.abci.v1beta1.SearchTxsResult is not mutable")) + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": + panic(fmt.Errorf("field page_total of message cosmos.base.abci.v1beta1.SearchTxsResult is not mutable")) + case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": + panic(fmt.Errorf("field limit of message cosmos.base.abci.v1beta1.SearchTxsResult is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Result) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SearchTxsResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.Result.data": - return protoreflect.ValueOfBytes(nil) - case "cosmos.base.abci.v1beta1.Result.log": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.Result.events": - list := []*abci.Event{} - return protoreflect.ValueOfList(&_Result_3_list{list: &list}) - case "cosmos.base.abci.v1beta1.Result.msg_responses": - list := []*anypb.Any{} - return protoreflect.ValueOfList(&_Result_4_list{list: &list}) + case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.SearchTxsResult.count": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": + list := []*TxResponse{} + return protoreflect.ValueOfList(&_SearchTxsResult_6_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.Result")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.Result does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Result) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_SearchTxsResult) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.Result", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.SearchTxsResult", d.FullName())) } panic("unreachable") } @@ -4208,7 +7287,7 @@ func (x *fastReflection_Result) WhichOneof(d protoreflect.OneofDescriptor) proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Result) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_SearchTxsResult) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4219,7 +7298,7 @@ func (x *fastReflection_Result) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Result) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_SearchTxsResult) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4231,7 +7310,7 @@ func (x *fastReflection_Result) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_Result) IsValid() bool { +func (x *fastReflection_SearchTxsResult) IsValid() bool { return x != nil } @@ -4241,9 +7320,9 @@ func (x *fastReflection_Result) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Result) + x := input.Message.Interface().(*SearchTxsResult) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4255,22 +7334,23 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Data) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.TotalCount != 0 { + n += 1 + runtime.Sov(uint64(x.TotalCount)) } - l = len(x.Log) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.Count != 0 { + n += 1 + runtime.Sov(uint64(x.Count)) } - if len(x.Events) > 0 { - for _, e := range x.Events { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.PageNumber != 0 { + n += 1 + runtime.Sov(uint64(x.PageNumber)) } - if len(x.MsgResponses) > 0 { - for _, e := range x.MsgResponses { + if x.PageTotal != 0 { + n += 1 + runtime.Sov(uint64(x.PageTotal)) + } + if x.Limit != 0 { + n += 1 + runtime.Sov(uint64(x.Limit)) + } + if len(x.Txs) > 0 { + for _, e := range x.Txs { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -4285,7 +7365,7 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Result) + x := input.Message.Interface().(*SearchTxsResult) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4304,9 +7384,9 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.MsgResponses) > 0 { - for iNdEx := len(x.MsgResponses) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.MsgResponses[iNdEx]) + if len(x.Txs) > 0 { + for iNdEx := len(x.Txs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Txs[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4317,38 +7397,33 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x32 } } - if len(x.Events) > 0 { - for iNdEx := len(x.Events) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Events[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } + if x.Limit != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Limit)) + i-- + dAtA[i] = 0x28 } - if len(x.Log) > 0 { - i -= len(x.Log) - copy(dAtA[i:], x.Log) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Log))) + if x.PageTotal != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PageTotal)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x20 } - if len(x.Data) > 0 { - i -= len(x.Data) - copy(dAtA[i:], x.Data) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data))) + if x.PageNumber != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PageNumber)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x18 + } + if x.Count != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Count)) + i-- + dAtA[i] = 0x10 + } + if x.TotalCount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalCount)) + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -4361,7 +7436,7 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Result) + x := input.Message.Interface().(*SearchTxsResult) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4393,17 +7468,36 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Result: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SearchTxsResult: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Result: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SearchTxsResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalCount", wireType) + } + x.TotalCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TotalCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - var byteLen int + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + x.Count = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4413,31 +7507,16 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + x.Count |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Data = append(x.Data[:0], dAtA[iNdEx:postIndex]...) - if x.Data == nil { - x.Data = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PageNumber", wireType) } - var stringLen uint64 + x.PageNumber = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4447,29 +7526,16 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.PageNumber |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Log = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PageTotal", wireType) } - var msglen int + x.PageTotal = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4479,29 +7545,33 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.PageTotal |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } - x.Events = append(x.Events, &abci.Event{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Events[len(x.Events)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + x.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Limit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 4: + case 6: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgResponses", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4528,8 +7598,8 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.MsgResponses = append(x.MsgResponses, &anypb.Any{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MsgResponses[len(x.MsgResponses)-1]); err != nil { + x.Txs = append(x.Txs, &TxResponse{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Txs[len(x.Txs)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -4568,29 +7638,88 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_SearchBlocksResult_6_list)(nil) + +type _SearchBlocksResult_6_list struct { + list *[]*BlockResponse +} + +func (x *_SearchBlocksResult_6_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_SearchBlocksResult_6_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_SearchBlocksResult_6_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*BlockResponse) + (*x.list)[i] = concreteValue +} + +func (x *_SearchBlocksResult_6_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*BlockResponse) + *x.list = append(*x.list, concreteValue) +} + +func (x *_SearchBlocksResult_6_list) AppendMutable() protoreflect.Value { + v := new(BlockResponse) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_SearchBlocksResult_6_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_SearchBlocksResult_6_list) NewElement() protoreflect.Value { + v := new(BlockResponse) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_SearchBlocksResult_6_list) IsValid() bool { + return x.list != nil +} + var ( - md_SimulationResponse protoreflect.MessageDescriptor - fd_SimulationResponse_gas_info protoreflect.FieldDescriptor - fd_SimulationResponse_result protoreflect.FieldDescriptor + md_SearchBlocksResult protoreflect.MessageDescriptor + fd_SearchBlocksResult_total_count protoreflect.FieldDescriptor + fd_SearchBlocksResult_count protoreflect.FieldDescriptor + fd_SearchBlocksResult_page_number protoreflect.FieldDescriptor + fd_SearchBlocksResult_page_total protoreflect.FieldDescriptor + fd_SearchBlocksResult_limit protoreflect.FieldDescriptor + fd_SearchBlocksResult_blocks protoreflect.FieldDescriptor ) func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() - md_SimulationResponse = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("SimulationResponse") - fd_SimulationResponse_gas_info = md_SimulationResponse.Fields().ByName("gas_info") - fd_SimulationResponse_result = md_SimulationResponse.Fields().ByName("result") + md_SearchBlocksResult = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("SearchBlocksResult") + fd_SearchBlocksResult_total_count = md_SearchBlocksResult.Fields().ByName("total_count") + fd_SearchBlocksResult_count = md_SearchBlocksResult.Fields().ByName("count") + fd_SearchBlocksResult_page_number = md_SearchBlocksResult.Fields().ByName("page_number") + fd_SearchBlocksResult_page_total = md_SearchBlocksResult.Fields().ByName("page_total") + fd_SearchBlocksResult_limit = md_SearchBlocksResult.Fields().ByName("limit") + fd_SearchBlocksResult_blocks = md_SearchBlocksResult.Fields().ByName("blocks") } -var _ protoreflect.Message = (*fastReflection_SimulationResponse)(nil) +var _ protoreflect.Message = (*fastReflection_SearchBlocksResult)(nil) -type fastReflection_SimulationResponse SimulationResponse +type fastReflection_SearchBlocksResult SearchBlocksResult -func (x *SimulationResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_SimulationResponse)(x) +func (x *SearchBlocksResult) ProtoReflect() protoreflect.Message { + return (*fastReflection_SearchBlocksResult)(x) } -func (x *SimulationResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7] +func (x *SearchBlocksResult) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4601,43 +7730,43 @@ func (x *SimulationResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_SimulationResponse_messageType fastReflection_SimulationResponse_messageType -var _ protoreflect.MessageType = fastReflection_SimulationResponse_messageType{} +var _fastReflection_SearchBlocksResult_messageType fastReflection_SearchBlocksResult_messageType +var _ protoreflect.MessageType = fastReflection_SearchBlocksResult_messageType{} -type fastReflection_SimulationResponse_messageType struct{} +type fastReflection_SearchBlocksResult_messageType struct{} -func (x fastReflection_SimulationResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_SimulationResponse)(nil) +func (x fastReflection_SearchBlocksResult_messageType) Zero() protoreflect.Message { + return (*fastReflection_SearchBlocksResult)(nil) } -func (x fastReflection_SimulationResponse_messageType) New() protoreflect.Message { - return new(fastReflection_SimulationResponse) +func (x fastReflection_SearchBlocksResult_messageType) New() protoreflect.Message { + return new(fastReflection_SearchBlocksResult) } -func (x fastReflection_SimulationResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_SimulationResponse +func (x fastReflection_SearchBlocksResult_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SearchBlocksResult } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_SimulationResponse) Descriptor() protoreflect.MessageDescriptor { - return md_SimulationResponse +func (x *fastReflection_SearchBlocksResult) Descriptor() protoreflect.MessageDescriptor { + return md_SearchBlocksResult } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_SimulationResponse) Type() protoreflect.MessageType { - return _fastReflection_SimulationResponse_messageType +func (x *fastReflection_SearchBlocksResult) Type() protoreflect.MessageType { + return _fastReflection_SearchBlocksResult_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_SimulationResponse) New() protoreflect.Message { - return new(fastReflection_SimulationResponse) +func (x *fastReflection_SearchBlocksResult) New() protoreflect.Message { + return new(fastReflection_SearchBlocksResult) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_SimulationResponse) Interface() protoreflect.ProtoMessage { - return (*SimulationResponse)(x) +func (x *fastReflection_SearchBlocksResult) Interface() protoreflect.ProtoMessage { + return (*SearchBlocksResult)(x) } // Range iterates over every populated field in an undefined order, @@ -4645,16 +7774,40 @@ func (x *fastReflection_SimulationResponse) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_SimulationResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GasInfo != nil { - value := protoreflect.ValueOfMessage(x.GasInfo.ProtoReflect()) - if !f(fd_SimulationResponse_gas_info, value) { +func (x *fastReflection_SearchBlocksResult) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalCount != uint64(0) { + value := protoreflect.ValueOfUint64(x.TotalCount) + if !f(fd_SearchBlocksResult_total_count, value) { return } } - if x.Result != nil { - value := protoreflect.ValueOfMessage(x.Result.ProtoReflect()) - if !f(fd_SimulationResponse_result, value) { + if x.Count != uint64(0) { + value := protoreflect.ValueOfUint64(x.Count) + if !f(fd_SearchBlocksResult_count, value) { + return + } + } + if x.PageNumber != uint64(0) { + value := protoreflect.ValueOfUint64(x.PageNumber) + if !f(fd_SearchBlocksResult_page_number, value) { + return + } + } + if x.PageTotal != uint64(0) { + value := protoreflect.ValueOfUint64(x.PageTotal) + if !f(fd_SearchBlocksResult_page_total, value) { + return + } + } + if x.Limit != uint64(0) { + value := protoreflect.ValueOfUint64(x.Limit) + if !f(fd_SearchBlocksResult_limit, value) { + return + } + } + if len(x.Blocks) != 0 { + value := protoreflect.ValueOfList(&_SearchBlocksResult_6_list{list: &x.Blocks}) + if !f(fd_SearchBlocksResult_blocks, value) { return } } @@ -4671,17 +7824,25 @@ func (x *fastReflection_SimulationResponse) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_SimulationResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_SearchBlocksResult) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": - return x.GasInfo != nil - case "cosmos.base.abci.v1beta1.SimulationResponse.result": - return x.Result != nil + case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": + return x.TotalCount != uint64(0) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": + return x.Count != uint64(0) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": + return x.PageNumber != uint64(0) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": + return x.PageTotal != uint64(0) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": + return x.Limit != uint64(0) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": + return len(x.Blocks) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchBlocksResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchBlocksResult does not contain field %s", fd.FullName())) } } @@ -4691,17 +7852,25 @@ func (x *fastReflection_SimulationResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SimulationResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_SearchBlocksResult) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": - x.GasInfo = nil - case "cosmos.base.abci.v1beta1.SimulationResponse.result": - x.Result = nil + case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": + x.TotalCount = uint64(0) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": + x.Count = uint64(0) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": + x.PageNumber = uint64(0) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": + x.PageTotal = uint64(0) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": + x.Limit = uint64(0) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": + x.Blocks = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchBlocksResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchBlocksResult does not contain field %s", fd.FullName())) } } @@ -4711,19 +7880,34 @@ func (x *fastReflection_SimulationResponse) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_SimulationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SearchBlocksResult) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": - value := x.GasInfo - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cosmos.base.abci.v1beta1.SimulationResponse.result": - value := x.Result - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": + value := x.TotalCount + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": + value := x.Count + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": + value := x.PageNumber + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": + value := x.PageTotal + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": + value := x.Limit + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": + if len(x.Blocks) == 0 { + return protoreflect.ValueOfList(&_SearchBlocksResult_6_list{}) + } + listValue := &_SearchBlocksResult_6_list{list: &x.Blocks} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchBlocksResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchBlocksResult does not contain field %s", descriptor.FullName())) } } @@ -4737,17 +7921,27 @@ func (x *fastReflection_SimulationResponse) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SimulationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_SearchBlocksResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": - x.GasInfo = value.Message().Interface().(*GasInfo) - case "cosmos.base.abci.v1beta1.SimulationResponse.result": - x.Result = value.Message().Interface().(*Result) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": + x.TotalCount = value.Uint() + case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": + x.Count = value.Uint() + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": + x.PageNumber = value.Uint() + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": + x.PageTotal = value.Uint() + case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": + x.Limit = value.Uint() + case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": + lv := value.List() + clv := lv.(*_SearchBlocksResult_6_list) + x.Blocks = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchBlocksResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchBlocksResult does not contain field %s", fd.FullName())) } } @@ -4761,52 +7955,65 @@ func (x *fastReflection_SimulationResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SimulationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SearchBlocksResult) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": - if x.GasInfo == nil { - x.GasInfo = new(GasInfo) - } - return protoreflect.ValueOfMessage(x.GasInfo.ProtoReflect()) - case "cosmos.base.abci.v1beta1.SimulationResponse.result": - if x.Result == nil { - x.Result = new(Result) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": + if x.Blocks == nil { + x.Blocks = []*BlockResponse{} } - return protoreflect.ValueOfMessage(x.Result.ProtoReflect()) + value := &_SearchBlocksResult_6_list{list: &x.Blocks} + return protoreflect.ValueOfList(value) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": + panic(fmt.Errorf("field total_count of message cosmos.base.abci.v1beta1.SearchBlocksResult is not mutable")) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": + panic(fmt.Errorf("field count of message cosmos.base.abci.v1beta1.SearchBlocksResult is not mutable")) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": + panic(fmt.Errorf("field page_number of message cosmos.base.abci.v1beta1.SearchBlocksResult is not mutable")) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": + panic(fmt.Errorf("field page_total of message cosmos.base.abci.v1beta1.SearchBlocksResult is not mutable")) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": + panic(fmt.Errorf("field limit of message cosmos.base.abci.v1beta1.SearchBlocksResult is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchBlocksResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchBlocksResult does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_SimulationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SearchBlocksResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.SimulationResponse.gas_info": - m := new(GasInfo) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cosmos.base.abci.v1beta1.SimulationResponse.result": - m := new(Result) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": + list := []*BlockResponse{} + return protoreflect.ValueOfList(&_SearchBlocksResult_6_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SimulationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchBlocksResult")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SimulationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchBlocksResult does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_SimulationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_SearchBlocksResult) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.SimulationResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.SearchBlocksResult", d.FullName())) } panic("unreachable") } @@ -4814,7 +8021,7 @@ func (x *fastReflection_SimulationResponse) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_SimulationResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_SearchBlocksResult) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4825,7 +8032,7 @@ func (x *fastReflection_SimulationResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SimulationResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_SearchBlocksResult) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4837,7 +8044,7 @@ func (x *fastReflection_SimulationResponse) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_SimulationResponse) IsValid() bool { +func (x *fastReflection_SearchBlocksResult) IsValid() bool { return x != nil } @@ -4847,9 +8054,9 @@ func (x *fastReflection_SimulationResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_SimulationResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*SimulationResponse) + x := input.Message.Interface().(*SearchBlocksResult) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4861,13 +8068,26 @@ func (x *fastReflection_SimulationResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.GasInfo != nil { - l = options.Size(x.GasInfo) - n += 1 + l + runtime.Sov(uint64(l)) + if x.TotalCount != 0 { + n += 1 + runtime.Sov(uint64(x.TotalCount)) } - if x.Result != nil { - l = options.Size(x.Result) - n += 1 + l + runtime.Sov(uint64(l)) + if x.Count != 0 { + n += 1 + runtime.Sov(uint64(x.Count)) + } + if x.PageNumber != 0 { + n += 1 + runtime.Sov(uint64(x.PageNumber)) + } + if x.PageTotal != 0 { + n += 1 + runtime.Sov(uint64(x.PageTotal)) + } + if x.Limit != 0 { + n += 1 + runtime.Sov(uint64(x.Limit)) + } + if len(x.Blocks) > 0 { + for _, e := range x.Blocks { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -4879,7 +8099,7 @@ func (x *fastReflection_SimulationResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*SimulationResponse) + x := input.Message.Interface().(*SearchBlocksResult) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4898,33 +8118,46 @@ func (x *fastReflection_SimulationResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Result != nil { - encoded, err := options.Marshal(x.Result) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if len(x.Blocks) > 0 { + for iNdEx := len(x.Blocks) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Blocks[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + } + if x.Limit != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Limit)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x28 } - if x.GasInfo != nil { - encoded, err := options.Marshal(x.GasInfo) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if x.PageTotal != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PageTotal)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x20 + } + if x.PageNumber != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PageNumber)) + i-- + dAtA[i] = 0x18 + } + if x.Count != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Count)) + i-- + dAtA[i] = 0x10 + } + if x.TotalCount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalCount)) + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -4937,7 +8170,7 @@ func (x *fastReflection_SimulationResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*SimulationResponse) + x := input.Message.Interface().(*SearchBlocksResult) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4969,17 +8202,17 @@ func (x *fastReflection_SimulationResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SimulationResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SearchBlocksResult: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SimulationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SearchBlocksResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasInfo", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalCount", wireType) } - var msglen int + x.TotalCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4989,31 +8222,90 @@ func (x *fastReflection_SimulationResponse) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.TotalCount |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + x.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Count |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PageNumber", wireType) } - if x.GasInfo == nil { - x.GasInfo = &GasInfo{} + x.PageNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.PageNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GasInfo); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PageTotal", wireType) } - iNdEx = postIndex - case 2: + x.PageTotal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.PageTotal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + x.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Limit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5040,10 +8332,8 @@ func (x *fastReflection_SimulationResponse) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Result == nil { - x.Result = &Result{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Result); err != nil { + x.Blocks = append(x.Blocks, &BlockResponse{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Blocks[len(x.Blocks)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -5083,28 +8373,28 @@ func (x *fastReflection_SimulationResponse) ProtoMethods() *protoiface.Methods { } var ( - md_MsgData protoreflect.MessageDescriptor - fd_MsgData_msg_type protoreflect.FieldDescriptor - fd_MsgData_data protoreflect.FieldDescriptor + md_BlockVersion protoreflect.MessageDescriptor + fd_BlockVersion_block protoreflect.FieldDescriptor + fd_BlockVersion_app protoreflect.FieldDescriptor ) func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() - md_MsgData = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("MsgData") - fd_MsgData_msg_type = md_MsgData.Fields().ByName("msg_type") - fd_MsgData_data = md_MsgData.Fields().ByName("data") + md_BlockVersion = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("BlockVersion") + fd_BlockVersion_block = md_BlockVersion.Fields().ByName("block") + fd_BlockVersion_app = md_BlockVersion.Fields().ByName("app") } -var _ protoreflect.Message = (*fastReflection_MsgData)(nil) +var _ protoreflect.Message = (*fastReflection_BlockVersion)(nil) -type fastReflection_MsgData MsgData +type fastReflection_BlockVersion BlockVersion -func (x *MsgData) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgData)(x) +func (x *BlockVersion) ProtoReflect() protoreflect.Message { + return (*fastReflection_BlockVersion)(x) } -func (x *MsgData) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8] +func (x *BlockVersion) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5115,43 +8405,43 @@ func (x *MsgData) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgData_messageType fastReflection_MsgData_messageType -var _ protoreflect.MessageType = fastReflection_MsgData_messageType{} +var _fastReflection_BlockVersion_messageType fastReflection_BlockVersion_messageType +var _ protoreflect.MessageType = fastReflection_BlockVersion_messageType{} -type fastReflection_MsgData_messageType struct{} +type fastReflection_BlockVersion_messageType struct{} -func (x fastReflection_MsgData_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgData)(nil) +func (x fastReflection_BlockVersion_messageType) Zero() protoreflect.Message { + return (*fastReflection_BlockVersion)(nil) } -func (x fastReflection_MsgData_messageType) New() protoreflect.Message { - return new(fastReflection_MsgData) +func (x fastReflection_BlockVersion_messageType) New() protoreflect.Message { + return new(fastReflection_BlockVersion) } -func (x fastReflection_MsgData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgData +func (x fastReflection_BlockVersion_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BlockVersion } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgData) Descriptor() protoreflect.MessageDescriptor { - return md_MsgData +func (x *fastReflection_BlockVersion) Descriptor() protoreflect.MessageDescriptor { + return md_BlockVersion } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgData) Type() protoreflect.MessageType { - return _fastReflection_MsgData_messageType +func (x *fastReflection_BlockVersion) Type() protoreflect.MessageType { + return _fastReflection_BlockVersion_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgData) New() protoreflect.Message { - return new(fastReflection_MsgData) +func (x *fastReflection_BlockVersion) New() protoreflect.Message { + return new(fastReflection_BlockVersion) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgData) Interface() protoreflect.ProtoMessage { - return (*MsgData)(x) +func (x *fastReflection_BlockVersion) Interface() protoreflect.ProtoMessage { + return (*BlockVersion)(x) } // Range iterates over every populated field in an undefined order, @@ -5159,16 +8449,16 @@ func (x *fastReflection_MsgData) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.MsgType != "" { - value := protoreflect.ValueOfString(x.MsgType) - if !f(fd_MsgData_msg_type, value) { +func (x *fastReflection_BlockVersion) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Block != uint64(0) { + value := protoreflect.ValueOfUint64(x.Block) + if !f(fd_BlockVersion_block, value) { return } } - if len(x.Data) != 0 { - value := protoreflect.ValueOfBytes(x.Data) - if !f(fd_MsgData_data, value) { + if x.App != uint64(0) { + value := protoreflect.ValueOfUint64(x.App) + if !f(fd_BlockVersion_app, value) { return } } @@ -5185,17 +8475,17 @@ func (x *fastReflection_MsgData) Range(f func(protoreflect.FieldDescriptor, prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgData) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_BlockVersion) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.MsgData.msg_type": - return x.MsgType != "" - case "cosmos.base.abci.v1beta1.MsgData.data": - return len(x.Data) != 0 + case "cosmos.base.abci.v1beta1.BlockVersion.block": + return x.Block != uint64(0) + case "cosmos.base.abci.v1beta1.BlockVersion.app": + return x.App != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", fd.FullName())) } } @@ -5204,18 +8494,18 @@ func (x *fastReflection_MsgData) Has(fd protoreflect.FieldDescriptor) bool { // Clearing an extension field clears both the extension type and value // associated with the given field number. // -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgData) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.MsgData.msg_type": - x.MsgType = "" - case "cosmos.base.abci.v1beta1.MsgData.data": - x.Data = nil +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockVersion) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.base.abci.v1beta1.BlockVersion.block": + x.Block = uint64(0) + case "cosmos.base.abci.v1beta1.BlockVersion.app": + x.App = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", fd.FullName())) } } @@ -5225,19 +8515,19 @@ func (x *fastReflection_MsgData) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_BlockVersion) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.MsgData.msg_type": - value := x.MsgType - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.MsgData.data": - value := x.Data - return protoreflect.ValueOfBytes(value) + case "cosmos.base.abci.v1beta1.BlockVersion.block": + value := x.Block + return protoreflect.ValueOfUint64(value) + case "cosmos.base.abci.v1beta1.BlockVersion.app": + value := x.App + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", descriptor.FullName())) } } @@ -5251,17 +8541,17 @@ func (x *fastReflection_MsgData) Get(descriptor protoreflect.FieldDescriptor) pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_BlockVersion) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.MsgData.msg_type": - x.MsgType = value.Interface().(string) - case "cosmos.base.abci.v1beta1.MsgData.data": - x.Data = value.Bytes() + case "cosmos.base.abci.v1beta1.BlockVersion.block": + x.Block = value.Uint() + case "cosmos.base.abci.v1beta1.BlockVersion.app": + x.App = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", fd.FullName())) } } @@ -5275,44 +8565,44 @@ func (x *fastReflection_MsgData) Set(fd protoreflect.FieldDescriptor, value prot // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_BlockVersion) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.MsgData.msg_type": - panic(fmt.Errorf("field msg_type of message cosmos.base.abci.v1beta1.MsgData is not mutable")) - case "cosmos.base.abci.v1beta1.MsgData.data": - panic(fmt.Errorf("field data of message cosmos.base.abci.v1beta1.MsgData is not mutable")) + case "cosmos.base.abci.v1beta1.BlockVersion.block": + panic(fmt.Errorf("field block of message cosmos.base.abci.v1beta1.BlockVersion is not mutable")) + case "cosmos.base.abci.v1beta1.BlockVersion.app": + panic(fmt.Errorf("field app of message cosmos.base.abci.v1beta1.BlockVersion is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_BlockVersion) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.MsgData.msg_type": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.MsgData.data": - return protoreflect.ValueOfBytes(nil) + case "cosmos.base.abci.v1beta1.BlockVersion.block": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.base.abci.v1beta1.BlockVersion.app": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.MsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.MsgData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_BlockVersion) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.MsgData", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.BlockVersion", d.FullName())) } panic("unreachable") } @@ -5320,7 +8610,7 @@ func (x *fastReflection_MsgData) WhichOneof(d protoreflect.OneofDescriptor) prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgData) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_BlockVersion) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5331,7 +8621,7 @@ func (x *fastReflection_MsgData) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgData) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_BlockVersion) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5343,7 +8633,7 @@ func (x *fastReflection_MsgData) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgData) IsValid() bool { +func (x *fastReflection_BlockVersion) IsValid() bool { return x != nil } @@ -5353,9 +8643,9 @@ func (x *fastReflection_MsgData) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgData) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_BlockVersion) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgData) + x := input.Message.Interface().(*BlockVersion) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5367,13 +8657,11 @@ func (x *fastReflection_MsgData) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.MsgType) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.Block != 0 { + n += 1 + runtime.Sov(uint64(x.Block)) } - l = len(x.Data) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.App != 0 { + n += 1 + runtime.Sov(uint64(x.App)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -5385,7 +8673,7 @@ func (x *fastReflection_MsgData) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgData) + x := input.Message.Interface().(*BlockVersion) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5404,19 +8692,15 @@ func (x *fastReflection_MsgData) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Data) > 0 { - i -= len(x.Data) - copy(dAtA[i:], x.Data) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data))) + if x.App != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.App)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if len(x.MsgType) > 0 { - i -= len(x.MsgType) - copy(dAtA[i:], x.MsgType) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MsgType))) + if x.Block != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Block)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -5429,7 +8713,7 @@ func (x *fastReflection_MsgData) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgData) + x := input.Message.Interface().(*BlockVersion) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5461,17 +8745,17 @@ func (x *fastReflection_MsgData) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgData: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockVersion: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgData: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockVersion: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgType", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) } - var stringLen uint64 + x.Block = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -5481,29 +8765,16 @@ func (x *fastReflection_MsgData) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.Block |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MsgType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field App", wireType) } - var byteLen int + x.App = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -5513,26 +8784,11 @@ func (x *fastReflection_MsgData) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + x.App |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Data = append(x.Data[:0], dAtA[iNdEx:postIndex]...) - if x.Data == nil { - x.Data = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5568,131 +8824,29 @@ func (x *fastReflection_MsgData) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_TxMsgData_1_list)(nil) - -type _TxMsgData_1_list struct { - list *[]*MsgData -} - -func (x *_TxMsgData_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_TxMsgData_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_TxMsgData_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MsgData) - (*x.list)[i] = concreteValue -} - -func (x *_TxMsgData_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MsgData) - *x.list = append(*x.list, concreteValue) -} - -func (x *_TxMsgData_1_list) AppendMutable() protoreflect.Value { - v := new(MsgData) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_TxMsgData_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_TxMsgData_1_list) NewElement() protoreflect.Value { - v := new(MsgData) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_TxMsgData_1_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_TxMsgData_2_list)(nil) - -type _TxMsgData_2_list struct { - list *[]*anypb.Any -} - -func (x *_TxMsgData_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_TxMsgData_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_TxMsgData_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*anypb.Any) - (*x.list)[i] = concreteValue -} - -func (x *_TxMsgData_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*anypb.Any) - *x.list = append(*x.list, concreteValue) -} - -func (x *_TxMsgData_2_list) AppendMutable() protoreflect.Value { - v := new(anypb.Any) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_TxMsgData_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_TxMsgData_2_list) NewElement() protoreflect.Value { - v := new(anypb.Any) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_TxMsgData_2_list) IsValid() bool { - return x.list != nil -} - var ( - md_TxMsgData protoreflect.MessageDescriptor - fd_TxMsgData_data protoreflect.FieldDescriptor - fd_TxMsgData_msg_responses protoreflect.FieldDescriptor + md_LastBlockID protoreflect.MessageDescriptor + fd_LastBlockID_hash protoreflect.FieldDescriptor + fd_LastBlockID_parts protoreflect.FieldDescriptor ) func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() - md_TxMsgData = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("TxMsgData") - fd_TxMsgData_data = md_TxMsgData.Fields().ByName("data") - fd_TxMsgData_msg_responses = md_TxMsgData.Fields().ByName("msg_responses") + md_LastBlockID = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("LastBlockID") + fd_LastBlockID_hash = md_LastBlockID.Fields().ByName("hash") + fd_LastBlockID_parts = md_LastBlockID.Fields().ByName("parts") } -var _ protoreflect.Message = (*fastReflection_TxMsgData)(nil) +var _ protoreflect.Message = (*fastReflection_LastBlockID)(nil) -type fastReflection_TxMsgData TxMsgData +type fastReflection_LastBlockID LastBlockID -func (x *TxMsgData) ProtoReflect() protoreflect.Message { - return (*fastReflection_TxMsgData)(x) +func (x *LastBlockID) ProtoReflect() protoreflect.Message { + return (*fastReflection_LastBlockID)(x) } -func (x *TxMsgData) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9] +func (x *LastBlockID) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5703,43 +8857,43 @@ func (x *TxMsgData) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_TxMsgData_messageType fastReflection_TxMsgData_messageType -var _ protoreflect.MessageType = fastReflection_TxMsgData_messageType{} +var _fastReflection_LastBlockID_messageType fastReflection_LastBlockID_messageType +var _ protoreflect.MessageType = fastReflection_LastBlockID_messageType{} -type fastReflection_TxMsgData_messageType struct{} +type fastReflection_LastBlockID_messageType struct{} -func (x fastReflection_TxMsgData_messageType) Zero() protoreflect.Message { - return (*fastReflection_TxMsgData)(nil) +func (x fastReflection_LastBlockID_messageType) Zero() protoreflect.Message { + return (*fastReflection_LastBlockID)(nil) } -func (x fastReflection_TxMsgData_messageType) New() protoreflect.Message { - return new(fastReflection_TxMsgData) +func (x fastReflection_LastBlockID_messageType) New() protoreflect.Message { + return new(fastReflection_LastBlockID) } -func (x fastReflection_TxMsgData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_TxMsgData +func (x fastReflection_LastBlockID_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_LastBlockID } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_TxMsgData) Descriptor() protoreflect.MessageDescriptor { - return md_TxMsgData +func (x *fastReflection_LastBlockID) Descriptor() protoreflect.MessageDescriptor { + return md_LastBlockID } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_TxMsgData) Type() protoreflect.MessageType { - return _fastReflection_TxMsgData_messageType +func (x *fastReflection_LastBlockID) Type() protoreflect.MessageType { + return _fastReflection_LastBlockID_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_TxMsgData) New() protoreflect.Message { - return new(fastReflection_TxMsgData) +func (x *fastReflection_LastBlockID) New() protoreflect.Message { + return new(fastReflection_LastBlockID) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_TxMsgData) Interface() protoreflect.ProtoMessage { - return (*TxMsgData)(x) +func (x *fastReflection_LastBlockID) Interface() protoreflect.ProtoMessage { + return (*LastBlockID)(x) } // Range iterates over every populated field in an undefined order, @@ -5747,16 +8901,16 @@ func (x *fastReflection_TxMsgData) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_TxMsgData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Data) != 0 { - value := protoreflect.ValueOfList(&_TxMsgData_1_list{list: &x.Data}) - if !f(fd_TxMsgData_data, value) { +func (x *fastReflection_LastBlockID) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Hash) != 0 { + value := protoreflect.ValueOfBytes(x.Hash) + if !f(fd_LastBlockID_hash, value) { return } } - if len(x.MsgResponses) != 0 { - value := protoreflect.ValueOfList(&_TxMsgData_2_list{list: &x.MsgResponses}) - if !f(fd_TxMsgData_msg_responses, value) { + if x.Parts != nil { + value := protoreflect.ValueOfMessage(x.Parts.ProtoReflect()) + if !f(fd_LastBlockID_parts, value) { return } } @@ -5773,17 +8927,17 @@ func (x *fastReflection_TxMsgData) Range(f func(protoreflect.FieldDescriptor, pr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_TxMsgData) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_LastBlockID) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.TxMsgData.data": - return len(x.Data) != 0 - case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": - return len(x.MsgResponses) != 0 + case "cosmos.base.abci.v1beta1.LastBlockID.hash": + return len(x.Hash) != 0 + case "cosmos.base.abci.v1beta1.LastBlockID.parts": + return x.Parts != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", fd.FullName())) } } @@ -5793,17 +8947,17 @@ func (x *fastReflection_TxMsgData) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TxMsgData) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_LastBlockID) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.TxMsgData.data": - x.Data = nil - case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": - x.MsgResponses = nil + case "cosmos.base.abci.v1beta1.LastBlockID.hash": + x.Hash = nil + case "cosmos.base.abci.v1beta1.LastBlockID.parts": + x.Parts = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", fd.FullName())) } } @@ -5813,25 +8967,19 @@ func (x *fastReflection_TxMsgData) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_TxMsgData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_LastBlockID) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.TxMsgData.data": - if len(x.Data) == 0 { - return protoreflect.ValueOfList(&_TxMsgData_1_list{}) - } - listValue := &_TxMsgData_1_list{list: &x.Data} - return protoreflect.ValueOfList(listValue) - case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": - if len(x.MsgResponses) == 0 { - return protoreflect.ValueOfList(&_TxMsgData_2_list{}) - } - listValue := &_TxMsgData_2_list{list: &x.MsgResponses} - return protoreflect.ValueOfList(listValue) + case "cosmos.base.abci.v1beta1.LastBlockID.hash": + value := x.Hash + return protoreflect.ValueOfBytes(value) + case "cosmos.base.abci.v1beta1.LastBlockID.parts": + value := x.Parts + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", descriptor.FullName())) } } @@ -5845,21 +8993,17 @@ func (x *fastReflection_TxMsgData) Get(descriptor protoreflect.FieldDescriptor) // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TxMsgData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_LastBlockID) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.TxMsgData.data": - lv := value.List() - clv := lv.(*_TxMsgData_1_list) - x.Data = *clv.list - case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": - lv := value.List() - clv := lv.(*_TxMsgData_2_list) - x.MsgResponses = *clv.list + case "cosmos.base.abci.v1beta1.LastBlockID.hash": + x.Hash = value.Bytes() + case "cosmos.base.abci.v1beta1.LastBlockID.parts": + x.Parts = value.Message().Interface().(*PartSetHeader) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", fd.FullName())) } } @@ -5873,54 +9017,48 @@ func (x *fastReflection_TxMsgData) Set(fd protoreflect.FieldDescriptor, value pr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TxMsgData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_LastBlockID) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.TxMsgData.data": - if x.Data == nil { - x.Data = []*MsgData{} - } - value := &_TxMsgData_1_list{list: &x.Data} - return protoreflect.ValueOfList(value) - case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": - if x.MsgResponses == nil { - x.MsgResponses = []*anypb.Any{} + case "cosmos.base.abci.v1beta1.LastBlockID.parts": + if x.Parts == nil { + x.Parts = new(PartSetHeader) } - value := &_TxMsgData_2_list{list: &x.MsgResponses} - return protoreflect.ValueOfList(value) + return protoreflect.ValueOfMessage(x.Parts.ProtoReflect()) + case "cosmos.base.abci.v1beta1.LastBlockID.hash": + panic(fmt.Errorf("field hash of message cosmos.base.abci.v1beta1.LastBlockID is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_TxMsgData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_LastBlockID) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.TxMsgData.data": - list := []*MsgData{} - return protoreflect.ValueOfList(&_TxMsgData_1_list{list: &list}) - case "cosmos.base.abci.v1beta1.TxMsgData.msg_responses": - list := []*anypb.Any{} - return protoreflect.ValueOfList(&_TxMsgData_2_list{list: &list}) + case "cosmos.base.abci.v1beta1.LastBlockID.hash": + return protoreflect.ValueOfBytes(nil) + case "cosmos.base.abci.v1beta1.LastBlockID.parts": + m := new(PartSetHeader) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.TxMsgData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.TxMsgData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_TxMsgData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_LastBlockID) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.TxMsgData", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.LastBlockID", d.FullName())) } panic("unreachable") } @@ -5928,7 +9066,7 @@ func (x *fastReflection_TxMsgData) WhichOneof(d protoreflect.OneofDescriptor) pr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_TxMsgData) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_LastBlockID) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5939,7 +9077,7 @@ func (x *fastReflection_TxMsgData) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TxMsgData) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_LastBlockID) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5951,7 +9089,7 @@ func (x *fastReflection_TxMsgData) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_TxMsgData) IsValid() bool { +func (x *fastReflection_LastBlockID) IsValid() bool { return x != nil } @@ -5961,9 +9099,9 @@ func (x *fastReflection_TxMsgData) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_TxMsgData) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_LastBlockID) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*TxMsgData) + x := input.Message.Interface().(*LastBlockID) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5975,17 +9113,13 @@ func (x *fastReflection_TxMsgData) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if len(x.Data) > 0 { - for _, e := range x.Data { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + l = len(x.Hash) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.MsgResponses) > 0 { - for _, e := range x.MsgResponses { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.Parts != nil { + l = options.Size(x.Parts) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -5997,7 +9131,7 @@ func (x *fastReflection_TxMsgData) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*TxMsgData) + x := input.Message.Interface().(*LastBlockID) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6016,37 +9150,26 @@ func (x *fastReflection_TxMsgData) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.MsgResponses) > 0 { - for iNdEx := len(x.MsgResponses) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.MsgResponses[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 + if x.Parts != nil { + encoded, err := options.Marshal(x.Parts) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 } - if len(x.Data) > 0 { - for iNdEx := len(x.Data) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Data[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } + if len(x.Hash) > 0 { + i -= len(x.Hash) + copy(dAtA[i:], x.Hash) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) + i-- + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -6059,7 +9182,7 @@ func (x *fastReflection_TxMsgData) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*TxMsgData) + x := input.Message.Interface().(*LastBlockID) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6091,17 +9214,17 @@ func (x *fastReflection_TxMsgData) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TxMsgData: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LastBlockID: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TxMsgData: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LastBlockID: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6111,29 +9234,29 @@ func (x *fastReflection_TxMsgData) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Data = append(x.Data, &MsgData{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Data[len(x.Data)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + x.Hash = append(x.Hash[:0], dAtA[iNdEx:postIndex]...) + if x.Hash == nil { + x.Hash = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgResponses", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Parts", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6160,8 +9283,10 @@ func (x *fastReflection_TxMsgData) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.MsgResponses = append(x.MsgResponses, &anypb.Any{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MsgResponses[len(x.MsgResponses)-1]); err != nil { + if x.Parts == nil { + x.Parts = &PartSetHeader{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Parts); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -6200,88 +9325,29 @@ func (x *fastReflection_TxMsgData) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_SearchTxsResult_6_list)(nil) - -type _SearchTxsResult_6_list struct { - list *[]*TxResponse -} - -func (x *_SearchTxsResult_6_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_SearchTxsResult_6_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_SearchTxsResult_6_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TxResponse) - (*x.list)[i] = concreteValue -} - -func (x *_SearchTxsResult_6_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TxResponse) - *x.list = append(*x.list, concreteValue) -} - -func (x *_SearchTxsResult_6_list) AppendMutable() protoreflect.Value { - v := new(TxResponse) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_SearchTxsResult_6_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_SearchTxsResult_6_list) NewElement() protoreflect.Value { - v := new(TxResponse) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_SearchTxsResult_6_list) IsValid() bool { - return x.list != nil -} - var ( - md_SearchTxsResult protoreflect.MessageDescriptor - fd_SearchTxsResult_total_count protoreflect.FieldDescriptor - fd_SearchTxsResult_count protoreflect.FieldDescriptor - fd_SearchTxsResult_page_number protoreflect.FieldDescriptor - fd_SearchTxsResult_page_total protoreflect.FieldDescriptor - fd_SearchTxsResult_limit protoreflect.FieldDescriptor - fd_SearchTxsResult_txs protoreflect.FieldDescriptor + md_PartSetHeader protoreflect.MessageDescriptor + fd_PartSetHeader_total protoreflect.FieldDescriptor + fd_PartSetHeader_hash protoreflect.FieldDescriptor ) func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() - md_SearchTxsResult = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("SearchTxsResult") - fd_SearchTxsResult_total_count = md_SearchTxsResult.Fields().ByName("total_count") - fd_SearchTxsResult_count = md_SearchTxsResult.Fields().ByName("count") - fd_SearchTxsResult_page_number = md_SearchTxsResult.Fields().ByName("page_number") - fd_SearchTxsResult_page_total = md_SearchTxsResult.Fields().ByName("page_total") - fd_SearchTxsResult_limit = md_SearchTxsResult.Fields().ByName("limit") - fd_SearchTxsResult_txs = md_SearchTxsResult.Fields().ByName("txs") + md_PartSetHeader = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("PartSetHeader") + fd_PartSetHeader_total = md_PartSetHeader.Fields().ByName("total") + fd_PartSetHeader_hash = md_PartSetHeader.Fields().ByName("hash") } -var _ protoreflect.Message = (*fastReflection_SearchTxsResult)(nil) +var _ protoreflect.Message = (*fastReflection_PartSetHeader)(nil) -type fastReflection_SearchTxsResult SearchTxsResult +type fastReflection_PartSetHeader PartSetHeader -func (x *SearchTxsResult) ProtoReflect() protoreflect.Message { - return (*fastReflection_SearchTxsResult)(x) +func (x *PartSetHeader) ProtoReflect() protoreflect.Message { + return (*fastReflection_PartSetHeader)(x) } -func (x *SearchTxsResult) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10] +func (x *PartSetHeader) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6292,43 +9358,43 @@ func (x *SearchTxsResult) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_SearchTxsResult_messageType fastReflection_SearchTxsResult_messageType -var _ protoreflect.MessageType = fastReflection_SearchTxsResult_messageType{} +var _fastReflection_PartSetHeader_messageType fastReflection_PartSetHeader_messageType +var _ protoreflect.MessageType = fastReflection_PartSetHeader_messageType{} -type fastReflection_SearchTxsResult_messageType struct{} +type fastReflection_PartSetHeader_messageType struct{} -func (x fastReflection_SearchTxsResult_messageType) Zero() protoreflect.Message { - return (*fastReflection_SearchTxsResult)(nil) +func (x fastReflection_PartSetHeader_messageType) Zero() protoreflect.Message { + return (*fastReflection_PartSetHeader)(nil) } -func (x fastReflection_SearchTxsResult_messageType) New() protoreflect.Message { - return new(fastReflection_SearchTxsResult) +func (x fastReflection_PartSetHeader_messageType) New() protoreflect.Message { + return new(fastReflection_PartSetHeader) } -func (x fastReflection_SearchTxsResult_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_SearchTxsResult +func (x fastReflection_PartSetHeader_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PartSetHeader } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_SearchTxsResult) Descriptor() protoreflect.MessageDescriptor { - return md_SearchTxsResult +func (x *fastReflection_PartSetHeader) Descriptor() protoreflect.MessageDescriptor { + return md_PartSetHeader } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_SearchTxsResult) Type() protoreflect.MessageType { - return _fastReflection_SearchTxsResult_messageType +func (x *fastReflection_PartSetHeader) Type() protoreflect.MessageType { + return _fastReflection_PartSetHeader_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_SearchTxsResult) New() protoreflect.Message { - return new(fastReflection_SearchTxsResult) +func (x *fastReflection_PartSetHeader) New() protoreflect.Message { + return new(fastReflection_PartSetHeader) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_SearchTxsResult) Interface() protoreflect.ProtoMessage { - return (*SearchTxsResult)(x) +func (x *fastReflection_PartSetHeader) Interface() protoreflect.ProtoMessage { + return (*PartSetHeader)(x) } // Range iterates over every populated field in an undefined order, @@ -6336,40 +9402,16 @@ func (x *fastReflection_SearchTxsResult) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_SearchTxsResult) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TotalCount != uint64(0) { - value := protoreflect.ValueOfUint64(x.TotalCount) - if !f(fd_SearchTxsResult_total_count, value) { - return - } - } - if x.Count != uint64(0) { - value := protoreflect.ValueOfUint64(x.Count) - if !f(fd_SearchTxsResult_count, value) { - return - } - } - if x.PageNumber != uint64(0) { - value := protoreflect.ValueOfUint64(x.PageNumber) - if !f(fd_SearchTxsResult_page_number, value) { - return - } - } - if x.PageTotal != uint64(0) { - value := protoreflect.ValueOfUint64(x.PageTotal) - if !f(fd_SearchTxsResult_page_total, value) { - return - } - } - if x.Limit != uint64(0) { - value := protoreflect.ValueOfUint64(x.Limit) - if !f(fd_SearchTxsResult_limit, value) { +func (x *fastReflection_PartSetHeader) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Total != uint64(0) { + value := protoreflect.ValueOfUint64(x.Total) + if !f(fd_PartSetHeader_total, value) { return - } - } - if len(x.Txs) != 0 { - value := protoreflect.ValueOfList(&_SearchTxsResult_6_list{list: &x.Txs}) - if !f(fd_SearchTxsResult_txs, value) { + } + } + if len(x.Hash) != 0 { + value := protoreflect.ValueOfBytes(x.Hash) + if !f(fd_PartSetHeader_hash, value) { return } } @@ -6386,25 +9428,17 @@ func (x *fastReflection_SearchTxsResult) Range(f func(protoreflect.FieldDescript // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_SearchTxsResult) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_PartSetHeader) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": - return x.TotalCount != uint64(0) - case "cosmos.base.abci.v1beta1.SearchTxsResult.count": - return x.Count != uint64(0) - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": - return x.PageNumber != uint64(0) - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": - return x.PageTotal != uint64(0) - case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": - return x.Limit != uint64(0) - case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": - return len(x.Txs) != 0 + case "cosmos.base.abci.v1beta1.PartSetHeader.total": + return x.Total != uint64(0) + case "cosmos.base.abci.v1beta1.PartSetHeader.hash": + return len(x.Hash) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", fd.FullName())) } } @@ -6414,25 +9448,17 @@ func (x *fastReflection_SearchTxsResult) Has(fd protoreflect.FieldDescriptor) bo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SearchTxsResult) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_PartSetHeader) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": - x.TotalCount = uint64(0) - case "cosmos.base.abci.v1beta1.SearchTxsResult.count": - x.Count = uint64(0) - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": - x.PageNumber = uint64(0) - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": - x.PageTotal = uint64(0) - case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": - x.Limit = uint64(0) - case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": - x.Txs = nil + case "cosmos.base.abci.v1beta1.PartSetHeader.total": + x.Total = uint64(0) + case "cosmos.base.abci.v1beta1.PartSetHeader.hash": + x.Hash = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", fd.FullName())) } } @@ -6442,34 +9468,19 @@ func (x *fastReflection_SearchTxsResult) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_SearchTxsResult) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PartSetHeader) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": - value := x.TotalCount - return protoreflect.ValueOfUint64(value) - case "cosmos.base.abci.v1beta1.SearchTxsResult.count": - value := x.Count - return protoreflect.ValueOfUint64(value) - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": - value := x.PageNumber - return protoreflect.ValueOfUint64(value) - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": - value := x.PageTotal + case "cosmos.base.abci.v1beta1.PartSetHeader.total": + value := x.Total return protoreflect.ValueOfUint64(value) - case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": - value := x.Limit - return protoreflect.ValueOfUint64(value) - case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": - if len(x.Txs) == 0 { - return protoreflect.ValueOfList(&_SearchTxsResult_6_list{}) - } - listValue := &_SearchTxsResult_6_list{list: &x.Txs} - return protoreflect.ValueOfList(listValue) + case "cosmos.base.abci.v1beta1.PartSetHeader.hash": + value := x.Hash + return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", descriptor.FullName())) } } @@ -6483,27 +9494,17 @@ func (x *fastReflection_SearchTxsResult) Get(descriptor protoreflect.FieldDescri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SearchTxsResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_PartSetHeader) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": - x.TotalCount = value.Uint() - case "cosmos.base.abci.v1beta1.SearchTxsResult.count": - x.Count = value.Uint() - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": - x.PageNumber = value.Uint() - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": - x.PageTotal = value.Uint() - case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": - x.Limit = value.Uint() - case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": - lv := value.List() - clv := lv.(*_SearchTxsResult_6_list) - x.Txs = *clv.list + case "cosmos.base.abci.v1beta1.PartSetHeader.total": + x.Total = value.Uint() + case "cosmos.base.abci.v1beta1.PartSetHeader.hash": + x.Hash = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", fd.FullName())) } } @@ -6517,65 +9518,44 @@ func (x *fastReflection_SearchTxsResult) Set(fd protoreflect.FieldDescriptor, va // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SearchTxsResult) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PartSetHeader) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": - if x.Txs == nil { - x.Txs = []*TxResponse{} - } - value := &_SearchTxsResult_6_list{list: &x.Txs} - return protoreflect.ValueOfList(value) - case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": - panic(fmt.Errorf("field total_count of message cosmos.base.abci.v1beta1.SearchTxsResult is not mutable")) - case "cosmos.base.abci.v1beta1.SearchTxsResult.count": - panic(fmt.Errorf("field count of message cosmos.base.abci.v1beta1.SearchTxsResult is not mutable")) - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": - panic(fmt.Errorf("field page_number of message cosmos.base.abci.v1beta1.SearchTxsResult is not mutable")) - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": - panic(fmt.Errorf("field page_total of message cosmos.base.abci.v1beta1.SearchTxsResult is not mutable")) - case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": - panic(fmt.Errorf("field limit of message cosmos.base.abci.v1beta1.SearchTxsResult is not mutable")) + case "cosmos.base.abci.v1beta1.PartSetHeader.total": + panic(fmt.Errorf("field total of message cosmos.base.abci.v1beta1.PartSetHeader is not mutable")) + case "cosmos.base.abci.v1beta1.PartSetHeader.hash": + panic(fmt.Errorf("field hash of message cosmos.base.abci.v1beta1.PartSetHeader is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_SearchTxsResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PartSetHeader) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.base.abci.v1beta1.SearchTxsResult.total_count": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.base.abci.v1beta1.SearchTxsResult.count": + case "cosmos.base.abci.v1beta1.PartSetHeader.total": return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_number": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.base.abci.v1beta1.SearchTxsResult.page_total": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.base.abci.v1beta1.SearchTxsResult.limit": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.base.abci.v1beta1.SearchTxsResult.txs": - list := []*TxResponse{} - return protoreflect.ValueOfList(&_SearchTxsResult_6_list{list: &list}) + case "cosmos.base.abci.v1beta1.PartSetHeader.hash": + return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.SearchTxsResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.SearchTxsResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_SearchTxsResult) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_PartSetHeader) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.SearchTxsResult", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.PartSetHeader", d.FullName())) } panic("unreachable") } @@ -6583,7 +9563,7 @@ func (x *fastReflection_SearchTxsResult) WhichOneof(d protoreflect.OneofDescript // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_SearchTxsResult) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_PartSetHeader) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6594,7 +9574,7 @@ func (x *fastReflection_SearchTxsResult) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SearchTxsResult) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_PartSetHeader) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6606,7 +9586,7 @@ func (x *fastReflection_SearchTxsResult) SetUnknown(fields protoreflect.RawField // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_SearchTxsResult) IsValid() bool { +func (x *fastReflection_PartSetHeader) IsValid() bool { return x != nil } @@ -6616,9 +9596,9 @@ func (x *fastReflection_SearchTxsResult) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_PartSetHeader) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*SearchTxsResult) + x := input.Message.Interface().(*PartSetHeader) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6630,26 +9610,12 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.TotalCount != 0 { - n += 1 + runtime.Sov(uint64(x.TotalCount)) - } - if x.Count != 0 { - n += 1 + runtime.Sov(uint64(x.Count)) - } - if x.PageNumber != 0 { - n += 1 + runtime.Sov(uint64(x.PageNumber)) - } - if x.PageTotal != 0 { - n += 1 + runtime.Sov(uint64(x.PageTotal)) - } - if x.Limit != 0 { - n += 1 + runtime.Sov(uint64(x.Limit)) + if x.Total != 0 { + n += 1 + runtime.Sov(uint64(x.Total)) } - if len(x.Txs) > 0 { - for _, e := range x.Txs { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + l = len(x.Hash) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -6661,7 +9627,7 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*SearchTxsResult) + x := input.Message.Interface().(*PartSetHeader) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6680,44 +9646,15 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Txs) > 0 { - for iNdEx := len(x.Txs) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Txs[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } - } - if x.Limit != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Limit)) - i-- - dAtA[i] = 0x28 - } - if x.PageTotal != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.PageTotal)) - i-- - dAtA[i] = 0x20 - } - if x.PageNumber != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.PageNumber)) - i-- - dAtA[i] = 0x18 - } - if x.Count != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Count)) + if len(x.Hash) > 0 { + i -= len(x.Hash) + copy(dAtA[i:], x.Hash) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if x.TotalCount != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalCount)) + if x.Total != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Total)) i-- dAtA[i] = 0x8 } @@ -6732,7 +9669,7 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*SearchTxsResult) + x := input.Message.Interface().(*PartSetHeader) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6764,93 +9701,17 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SearchTxsResult: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PartSetHeader: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SearchTxsResult: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PartSetHeader: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalCount", wireType) - } - x.TotalCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TotalCount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - x.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Count |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PageNumber", wireType) - } - x.PageNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.PageNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PageTotal", wireType) - } - x.PageTotal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.PageTotal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) } - x.Limit = 0 + x.Total = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6860,16 +9721,16 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.Limit |= uint64(b&0x7F) << shift + x.Total |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 6: + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6879,24 +9740,24 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Txs = append(x.Txs, &TxResponse{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Txs[len(x.Txs)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + x.Hash = append(x.Hash[:0], dAtA[iNdEx:postIndex]...) + if x.Hash == nil { + x.Hash = []byte{} } iNdEx = postIndex default: @@ -7101,14 +9962,25 @@ func (x *TxResponse) GetEvents() []*abci.Event { return nil } -// BlockResponse placeholder - still needs work +// BlockResponse type BlockResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The block height - Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` + ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + LastCommit string `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"` + Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` + Validators string `protobuf:"bytes,6,opt,name=validators,proto3" json:"validators,omitempty"` + NextValidators string `protobuf:"bytes,7,opt,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"` + App string `protobuf:"bytes,8,opt,name=app,proto3" json:"app,omitempty"` + Consensus string `protobuf:"bytes,9,opt,name=consensus,proto3" json:"consensus,omitempty"` + Results string `protobuf:"bytes,10,opt,name=results,proto3" json:"results,omitempty"` + Evidence string `protobuf:"bytes,11,opt,name=evidence,proto3" json:"evidence,omitempty"` + Proposer string `protobuf:"bytes,12,opt,name=proposer,proto3" json:"proposer,omitempty"` } func (x *BlockResponse) Reset() { @@ -7138,6 +10010,83 @@ func (x *BlockResponse) GetHeight() int64 { return 0 } +func (x *BlockResponse) GetTime() string { + if x != nil { + return x.Time + } + return "" +} + +func (x *BlockResponse) GetChainId() string { + if x != nil { + return x.ChainId + } + return "" +} + +func (x *BlockResponse) GetLastCommit() string { + if x != nil { + return x.LastCommit + } + return "" +} + +func (x *BlockResponse) GetData() string { + if x != nil { + return x.Data + } + return "" +} + +func (x *BlockResponse) GetValidators() string { + if x != nil { + return x.Validators + } + return "" +} + +func (x *BlockResponse) GetNextValidators() string { + if x != nil { + return x.NextValidators + } + return "" +} + +func (x *BlockResponse) GetApp() string { + if x != nil { + return x.App + } + return "" +} + +func (x *BlockResponse) GetConsensus() string { + if x != nil { + return x.Consensus + } + return "" +} + +func (x *BlockResponse) GetResults() string { + if x != nil { + return x.Results + } + return "" +} + +func (x *BlockResponse) GetEvidence() string { + if x != nil { + return x.Evidence + } + return "" +} + +func (x *BlockResponse) GetProposer() string { + if x != nil { + return x.Proposer + } + return "" +} + // ABCIMessageLog defines a structure containing an indexed tx ABCI message log. type ABCIMessageLog struct { state protoimpl.MessageState @@ -7627,6 +10576,220 @@ func (x *SearchTxsResult) GetTxs() []*TxResponse { return nil } +// SearchBlocksResult defines a structure for querying blocks pageable +type SearchBlocksResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Count of all blocks + TotalCount uint64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` + // Count of blocks in current page + Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + // Index of current page, start from 1 + PageNumber uint64 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` + // Count of total pages + PageTotal uint64 `protobuf:"varint,4,opt,name=page_total,json=pageTotal,proto3" json:"page_total,omitempty"` + // Max count blocks per page + Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + // List of blocks in current page + Blocks []*BlockResponse `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` +} + +func (x *SearchBlocksResult) Reset() { + *x = SearchBlocksResult{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SearchBlocksResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchBlocksResult) ProtoMessage() {} + +// Deprecated: Use SearchBlocksResult.ProtoReflect.Descriptor instead. +func (*SearchBlocksResult) Descriptor() ([]byte, []int) { + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{11} +} + +func (x *SearchBlocksResult) GetTotalCount() uint64 { + if x != nil { + return x.TotalCount + } + return 0 +} + +func (x *SearchBlocksResult) GetCount() uint64 { + if x != nil { + return x.Count + } + return 0 +} + +func (x *SearchBlocksResult) GetPageNumber() uint64 { + if x != nil { + return x.PageNumber + } + return 0 +} + +func (x *SearchBlocksResult) GetPageTotal() uint64 { + if x != nil { + return x.PageTotal + } + return 0 +} + +func (x *SearchBlocksResult) GetLimit() uint64 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *SearchBlocksResult) GetBlocks() []*BlockResponse { + if x != nil { + return x.Blocks + } + return nil +} + +// BlockVersion defines the version of the block. +type BlockVersion struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Block uint64 `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"` + App uint64 `protobuf:"varint,2,opt,name=app,proto3" json:"app,omitempty"` +} + +func (x *BlockVersion) Reset() { + *x = BlockVersion{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlockVersion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlockVersion) ProtoMessage() {} + +// Deprecated: Use BlockVersion.ProtoReflect.Descriptor instead. +func (*BlockVersion) Descriptor() ([]byte, []int) { + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{12} +} + +func (x *BlockVersion) GetBlock() uint64 { + if x != nil { + return x.Block + } + return 0 +} + +func (x *BlockVersion) GetApp() uint64 { + if x != nil { + return x.App + } + return 0 +} + +// LastBlockID defines the last block ID. +type LastBlockID struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Parts *PartSetHeader `protobuf:"bytes,2,opt,name=parts,proto3" json:"parts,omitempty"` +} + +func (x *LastBlockID) Reset() { + *x = LastBlockID{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LastBlockID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LastBlockID) ProtoMessage() {} + +// Deprecated: Use LastBlockID.ProtoReflect.Descriptor instead. +func (*LastBlockID) Descriptor() ([]byte, []int) { + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{13} +} + +func (x *LastBlockID) GetHash() []byte { + if x != nil { + return x.Hash + } + return nil +} + +func (x *LastBlockID) GetParts() *PartSetHeader { + if x != nil { + return x.Parts + } + return nil +} + +// PartSetHeader defines the part set header. +type PartSetHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (x *PartSetHeader) Reset() { + *x = PartSetHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PartSetHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PartSetHeader) ProtoMessage() {} + +// Deprecated: Use PartSetHeader.ProtoReflect.Descriptor instead. +func (*PartSetHeader) Descriptor() ([]byte, []int) { + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{14} +} + +func (x *PartSetHeader) GetTotal() uint64 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *PartSetHeader) GetHash() []byte { + if x != nil { + return x.Hash + } + return nil +} + var File_cosmos_base_abci_v1beta1_abci_proto protoreflect.FileDescriptor var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{ @@ -7667,10 +10830,29 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{ 0x12, 0x34, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x2d, 0x0a, 0x0d, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xa9, 0x01, 0x0a, 0x0e, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xdc, 0x02, 0x0a, + 0x0d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x65, + 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x61, 0x70, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, + 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, + 0x73, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1a, 0x0a, + 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xa9, 0x01, 0x0a, 0x0e, 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x2a, 0x0a, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0d, 0xea, 0xde, 0x1f, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, @@ -7743,7 +10925,35 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x74, 0x78, 0x73, 0x3a, - 0x04, 0x80, 0xdc, 0x20, 0x01, 0x42, 0xe7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, + 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xe8, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, + 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, + 0x22, 0x36, 0x0a, 0x0c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x70, 0x70, 0x22, 0x60, 0x0a, 0x0b, 0x4c, 0x61, 0x73, 0x74, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x3d, 0x0a, 0x05, 0x70, + 0x61, 0x72, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x53, 0x65, 0x74, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x73, 0x22, 0x39, 0x0a, 0x0d, 0x50, 0x61, + 0x72, 0x74, 0x53, 0x65, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x68, 0x61, 0x73, 0x68, 0x42, 0xe7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x41, 0x62, 0x63, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, @@ -7773,7 +10983,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP() []byte { return file_cosmos_base_abci_v1beta1_abci_proto_rawDescData } -var file_cosmos_base_abci_v1beta1_abci_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_cosmos_base_abci_v1beta1_abci_proto_msgTypes = make([]protoimpl.MessageInfo, 15) var file_cosmos_base_abci_v1beta1_abci_proto_goTypes = []interface{}{ (*TxResponse)(nil), // 0: cosmos.base.abci.v1beta1.TxResponse (*BlockResponse)(nil), // 1: cosmos.base.abci.v1beta1.BlockResponse @@ -7786,27 +10996,33 @@ var file_cosmos_base_abci_v1beta1_abci_proto_goTypes = []interface{}{ (*MsgData)(nil), // 8: cosmos.base.abci.v1beta1.MsgData (*TxMsgData)(nil), // 9: cosmos.base.abci.v1beta1.TxMsgData (*SearchTxsResult)(nil), // 10: cosmos.base.abci.v1beta1.SearchTxsResult - (*anypb.Any)(nil), // 11: google.protobuf.Any - (*abci.Event)(nil), // 12: tendermint.abci.Event + (*SearchBlocksResult)(nil), // 11: cosmos.base.abci.v1beta1.SearchBlocksResult + (*BlockVersion)(nil), // 12: cosmos.base.abci.v1beta1.BlockVersion + (*LastBlockID)(nil), // 13: cosmos.base.abci.v1beta1.LastBlockID + (*PartSetHeader)(nil), // 14: cosmos.base.abci.v1beta1.PartSetHeader + (*anypb.Any)(nil), // 15: google.protobuf.Any + (*abci.Event)(nil), // 16: tendermint.abci.Event } var file_cosmos_base_abci_v1beta1_abci_proto_depIdxs = []int32{ 2, // 0: cosmos.base.abci.v1beta1.TxResponse.logs:type_name -> cosmos.base.abci.v1beta1.ABCIMessageLog - 11, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any - 12, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> tendermint.abci.Event + 15, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any + 16, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> tendermint.abci.Event 3, // 3: cosmos.base.abci.v1beta1.ABCIMessageLog.events:type_name -> cosmos.base.abci.v1beta1.StringEvent 4, // 4: cosmos.base.abci.v1beta1.StringEvent.attributes:type_name -> cosmos.base.abci.v1beta1.Attribute - 12, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> tendermint.abci.Event - 11, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any + 16, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> tendermint.abci.Event + 15, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any 5, // 7: cosmos.base.abci.v1beta1.SimulationResponse.gas_info:type_name -> cosmos.base.abci.v1beta1.GasInfo 6, // 8: cosmos.base.abci.v1beta1.SimulationResponse.result:type_name -> cosmos.base.abci.v1beta1.Result 8, // 9: cosmos.base.abci.v1beta1.TxMsgData.data:type_name -> cosmos.base.abci.v1beta1.MsgData - 11, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any + 15, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any 0, // 11: cosmos.base.abci.v1beta1.SearchTxsResult.txs:type_name -> cosmos.base.abci.v1beta1.TxResponse - 12, // [12:12] is the sub-list for method output_type - 12, // [12:12] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 1, // 12: cosmos.base.abci.v1beta1.SearchBlocksResult.blocks:type_name -> cosmos.base.abci.v1beta1.BlockResponse + 14, // 13: cosmos.base.abci.v1beta1.LastBlockID.parts:type_name -> cosmos.base.abci.v1beta1.PartSetHeader + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name } func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() } @@ -7947,6 +11163,54 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SearchBlocksResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockVersion); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LastBlockID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PartSetHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -7954,7 +11218,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_cosmos_base_abci_v1beta1_abci_proto_rawDesc, NumEnums: 0, - NumMessages: 11, + NumMessages: 15, NumExtensions: 0, NumServices: 0, }, diff --git a/client/tendermint.go b/client/tendermint.go index 8a35d04f2ac3..79fa58cc2dc7 100644 --- a/client/tendermint.go +++ b/client/tendermint.go @@ -26,4 +26,10 @@ type TendermintRPC interface { page, perPage *int, orderBy string, ) (*coretypes.ResultTxSearch, error) + BlockSearch( + ctx context.Context, + query string, + page, perPage *int, + orderBy string, + ) (*coretypes.ResultBlockSearch, error) } diff --git a/go.mod b/go.mod index 7ce8c303d3df..b86298cafba9 100644 --- a/go.mod +++ b/go.mod @@ -45,7 +45,6 @@ require ( github.com/prometheus/client_golang v1.14.0 github.com/prometheus/common v0.39.0 github.com/rakyll/statik v0.1.7 - github.com/regen-network/gocuke v0.6.2 github.com/spf13/cast v1.5.0 github.com/spf13/cobra v1.6.1 github.com/spf13/pflag v1.0.5 @@ -77,14 +76,12 @@ require ( github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect github.com/DataDog/zstd v1.4.5 // indirect github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect - github.com/alecthomas/participle/v2 v2.0.0-alpha7 // indirect github.com/aws/aws-sdk-go v1.40.45 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.1.2 // indirect - github.com/cockroachdb/apd/v3 v3.1.0 // indirect github.com/cockroachdb/errors v1.8.1 // indirect github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f // indirect github.com/cockroachdb/pebble v0.0.0-20220817183557-09c6e030a677 // indirect @@ -92,8 +89,6 @@ require ( github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 // indirect github.com/cosmos/gorocksdb v1.2.0 // indirect github.com/creachadair/taskgroup v0.3.2 // indirect - github.com/cucumber/common/gherkin/go/v22 v22.0.0 // indirect - github.com/cucumber/common/messages/go/v17 v17.1.1 // indirect github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect @@ -109,7 +104,6 @@ require ( github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.5.1 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect - github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/glog v1.0.0 // indirect diff --git a/go.sum b/go.sum index 61c125f7e433..079fec889d69 100644 --- a/go.sum +++ b/go.sum @@ -93,9 +93,6 @@ github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= github.com/alecthomas/participle/v2 v2.0.0-alpha7 h1:cK4vjj0VSgb3lN1nuKA5F7dw+1s1pWBe5bx7nNCnN+c= -github.com/alecthomas/participle/v2 v2.0.0-alpha7/go.mod h1:NumScqsC42o9x+dGj8/YqsIfhrIQjFEOFovxotbBirA= -github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1 h1:GDQdwm/gAcJcLAKQQZGOJ4knlw+7rfEQQcmwTbt4p5E= -github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= @@ -164,7 +161,6 @@ github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWH github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= -github.com/cockroachdb/apd/v3 v3.1.0/go.mod h1:6qgPBMXjATAdD/VefbRP9NoSLKjbB4LCoA7gN4LpHs4= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= github.com/cockroachdb/datadriven v1.0.0/go.mod h1:5Ib8Meh+jk1RlHIXej6Pzevx/NLlNvQB9pmSBZErGA4= github.com/cockroachdb/errors v1.6.1/go.mod h1:tm6FTP5G81vwJ5lC0SizQo374JNCOPrHyXGitRJoDqM= @@ -220,9 +216,7 @@ github.com/creachadair/taskgroup v0.3.2/go.mod h1:wieWwecHVzsidg2CsUnFinW1faVN4+ github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= -github.com/cucumber/common/gherkin/go/v22 v22.0.0/go.mod h1:3mJT10B2GGn3MvVPd3FwR7m2u4tLhSRhWUqJU4KN4Fg= github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts= -github.com/cucumber/common/messages/go/v17 v17.1.1/go.mod h1:bpGxb57tDE385Rb2EohgUadLkAbhoC4IyCFi89u/JQI= github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -329,9 +323,7 @@ github.com/goccy/go-json v0.9.7 h1:IcB+Aqpx/iMHu5Yooh7jEzJk1JZ7Pjtmys2ukPr7EeM= github.com/goccy/go-json v0.9.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= -github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= -github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869 h1:kRpU4zq+Pzh4feET49aEWPOzwQy3U2SsbZEQ7QEcif0= @@ -765,7 +757,6 @@ github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqn github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/regen-network/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M= -github.com/regen-network/gocuke v0.6.2/go.mod h1:zYaqIHZobHyd0xOrHGPQjbhGJsuZ1oElx150u2o1xuk= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= diff --git a/proto/cosmos/base/abci/v1beta1/abci.proto b/proto/cosmos/base/abci/v1beta1/abci.proto index dba9e75b7b52..3633b77186fb 100644 --- a/proto/cosmos/base/abci/v1beta1/abci.proto +++ b/proto/cosmos/base/abci/v1beta1/abci.proto @@ -48,11 +48,22 @@ message TxResponse { repeated tendermint.abci.Event events = 13 [(gogoproto.nullable) = false]; } -// BlockResponse placeholder - still needs work +// BlockResponse message BlockResponse { option (gogoproto.goproto_getters) = false; // The block height int64 height = 1; + string time = 2; + string chain_id = 3; + string last_commit = 4; + string data = 5; + string validators = 6; + string next_validators = 7; + string app = 8; + string consensus = 9; + string results = 10; + string evidence = 11; + string proposer = 12; } // ABCIMessageLog defines a structure containing an indexed tx ABCI message log. @@ -163,3 +174,23 @@ message SearchTxsResult { // List of txs in current page repeated TxResponse txs = 6; } + +// SearchBlocksResult defines a structure for querying blocks pageable +message SearchBlocksResult { + option (gogoproto.stringer) = true; + + // Count of all blocks + uint64 total_count = 1; + // Count of blocks in current page + uint64 count = 2; + // Index of current page, start from 1 + uint64 page_number = 3; + // Count of total pages + uint64 page_total = 4; + // Max count blocks per page + uint64 limit = 5; + // List of blocks in current page + repeated BlockResponse blocks = 6; +} + + diff --git a/simapp/simd/cmd/cmd_test.go b/simapp/simd/cmd/cmd_test.go index a9c2f8ba537c..a4330f0b003f 100644 --- a/simapp/simd/cmd/cmd_test.go +++ b/simapp/simd/cmd/cmd_test.go @@ -38,5 +38,6 @@ func TestHomeFlagRegistration(t *testing.T) { result, err := rootCmd.Flags().GetString(flags.FlagHome) require.NoError(t, err) + fmt.Println(result, homeDir) require.Equal(t, result, homeDir) } diff --git a/simapp/simd/cmd/root.go b/simapp/simd/cmd/root.go index e0058475ee0c..567b0a8dcf0e 100644 --- a/simapp/simd/cmd/root.go +++ b/simapp/simd/cmd/root.go @@ -223,6 +223,7 @@ func queryCommand() *cobra.Command { rpc.ValidatorCommand(), authcmd.QueryBlockCmd(), authcmd.QueryTxsByEventsCmd(), + authcmd.QueryBlocksByEventsCmd(), authcmd.QueryTxCmd(), ) diff --git a/types/abci.pb.go b/types/abci.pb.go index 393546bacf0b..cb9e5de0cbd3 100644 --- a/types/abci.pb.go +++ b/types/abci.pb.go @@ -98,10 +98,21 @@ func (m *TxResponse) XXX_DiscardUnknown() { var xxx_messageInfo_TxResponse proto.InternalMessageInfo -// BlockResponse placeholder - still needs work +// BlockResponse type BlockResponse struct { // The block height - Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` + ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + LastCommit string `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"` + Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` + Validators string `protobuf:"bytes,6,opt,name=validators,proto3" json:"validators,omitempty"` + NextValidators string `protobuf:"bytes,7,opt,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"` + App string `protobuf:"bytes,8,opt,name=app,proto3" json:"app,omitempty"` + Consensus string `protobuf:"bytes,9,opt,name=consensus,proto3" json:"consensus,omitempty"` + Results string `protobuf:"bytes,10,opt,name=results,proto3" json:"results,omitempty"` + Evidence string `protobuf:"bytes,11,opt,name=evidence,proto3" json:"evidence,omitempty"` + Proposer string `protobuf:"bytes,12,opt,name=proposer,proto3" json:"proposer,omitempty"` } func (m *BlockResponse) Reset() { *m = BlockResponse{} } @@ -659,6 +670,258 @@ func (m *SearchTxsResult) GetTxs() []*TxResponse { return nil } +// SearchBlocksResult defines a structure for querying blocks pageable +type SearchBlocksResult struct { + // Count of all blocks + TotalCount uint64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` + // Count of blocks in current page + Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + // Index of current page, start from 1 + PageNumber uint64 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` + // Count of total pages + PageTotal uint64 `protobuf:"varint,4,opt,name=page_total,json=pageTotal,proto3" json:"page_total,omitempty"` + // Max count blocks per page + Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + // List of blocks in current page + Blocks []*BlockResponse `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` +} + +func (m *SearchBlocksResult) Reset() { *m = SearchBlocksResult{} } +func (*SearchBlocksResult) ProtoMessage() {} +func (*SearchBlocksResult) Descriptor() ([]byte, []int) { + return fileDescriptor_4e37629bc7eb0df8, []int{11} +} +func (m *SearchBlocksResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SearchBlocksResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SearchBlocksResult.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 *SearchBlocksResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchBlocksResult.Merge(m, src) +} +func (m *SearchBlocksResult) XXX_Size() int { + return m.Size() +} +func (m *SearchBlocksResult) XXX_DiscardUnknown() { + xxx_messageInfo_SearchBlocksResult.DiscardUnknown(m) +} + +var xxx_messageInfo_SearchBlocksResult proto.InternalMessageInfo + +func (m *SearchBlocksResult) GetTotalCount() uint64 { + if m != nil { + return m.TotalCount + } + return 0 +} + +func (m *SearchBlocksResult) GetCount() uint64 { + if m != nil { + return m.Count + } + return 0 +} + +func (m *SearchBlocksResult) GetPageNumber() uint64 { + if m != nil { + return m.PageNumber + } + return 0 +} + +func (m *SearchBlocksResult) GetPageTotal() uint64 { + if m != nil { + return m.PageTotal + } + return 0 +} + +func (m *SearchBlocksResult) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *SearchBlocksResult) GetBlocks() []*BlockResponse { + if m != nil { + return m.Blocks + } + return nil +} + +// BlockVersion defines the version of the block. +type BlockVersion struct { + Block uint64 `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"` + App uint64 `protobuf:"varint,2,opt,name=app,proto3" json:"app,omitempty"` +} + +func (m *BlockVersion) Reset() { *m = BlockVersion{} } +func (m *BlockVersion) String() string { return proto.CompactTextString(m) } //I had to manually add this +func (m *BlockVersion) Empty() bool { return len(proto.CompactTextString(m)) == 0 } //I had to manually add this +func (*BlockVersion) ProtoMessage() {} +func (*BlockVersion) Descriptor() ([]byte, []int) { + return fileDescriptor_4e37629bc7eb0df8, []int{12} +} +func (m *BlockVersion) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockVersion.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 *BlockVersion) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockVersion.Merge(m, src) +} +func (m *BlockVersion) XXX_Size() int { + return m.Size() +} +func (m *BlockVersion) XXX_DiscardUnknown() { + xxx_messageInfo_BlockVersion.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockVersion proto.InternalMessageInfo + +func (m *BlockVersion) GetBlock() uint64 { + if m != nil { + return m.Block + } + return 0 +} + +func (m *BlockVersion) GetApp() uint64 { + if m != nil { + return m.App + } + return 0 +} + +// LastBlockID defines the last block ID. +type LastBlockID struct { + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Parts *PartSetHeader `protobuf:"bytes,2,opt,name=parts,proto3" json:"parts,omitempty"` +} + +func (m *LastBlockID) Reset() { *m = LastBlockID{} } +func (m *LastBlockID) String() string { return proto.CompactTextString(m) } //I had to manually add this +func (m *LastBlockID) Empty() bool { return len(proto.CompactTextString(m)) == 0 } //I had to manually add this +func (*LastBlockID) ProtoMessage() {} +func (*LastBlockID) Descriptor() ([]byte, []int) { + return fileDescriptor_4e37629bc7eb0df8, []int{13} +} +func (m *LastBlockID) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LastBlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LastBlockID.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 *LastBlockID) XXX_Merge(src proto.Message) { + xxx_messageInfo_LastBlockID.Merge(m, src) +} +func (m *LastBlockID) XXX_Size() int { + return m.Size() +} +func (m *LastBlockID) XXX_DiscardUnknown() { + xxx_messageInfo_LastBlockID.DiscardUnknown(m) +} + +var xxx_messageInfo_LastBlockID proto.InternalMessageInfo + +func (m *LastBlockID) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + +func (m *LastBlockID) GetParts() *PartSetHeader { + if m != nil { + return m.Parts + } + return nil +} + +// PartSetHeader defines the part set header. +type PartSetHeader struct { + Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (m *PartSetHeader) Reset() { *m = PartSetHeader{} } +func (m *PartSetHeader) String() string { return proto.CompactTextString(m) } //I had to manually add this +func (m *PartSetHeader) Empty() bool { return len(proto.CompactTextString(m)) == 0 } //I had to manually add this +func (*PartSetHeader) ProtoMessage() {} +func (*PartSetHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_4e37629bc7eb0df8, []int{14} +} +func (m *PartSetHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PartSetHeader.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 *PartSetHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_PartSetHeader.Merge(m, src) +} +func (m *PartSetHeader) XXX_Size() int { + return m.Size() +} +func (m *PartSetHeader) XXX_DiscardUnknown() { + xxx_messageInfo_PartSetHeader.DiscardUnknown(m) +} + +var xxx_messageInfo_PartSetHeader proto.InternalMessageInfo + +func (m *PartSetHeader) GetTotal() uint64 { + if m != nil { + return m.Total + } + return 0 +} + +func (m *PartSetHeader) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + func init() { proto.RegisterType((*TxResponse)(nil), "cosmos.base.abci.v1beta1.TxResponse") proto.RegisterType((*BlockResponse)(nil), "cosmos.base.abci.v1beta1.BlockResponse") @@ -671,6 +934,10 @@ func init() { proto.RegisterType((*MsgData)(nil), "cosmos.base.abci.v1beta1.MsgData") proto.RegisterType((*TxMsgData)(nil), "cosmos.base.abci.v1beta1.TxMsgData") proto.RegisterType((*SearchTxsResult)(nil), "cosmos.base.abci.v1beta1.SearchTxsResult") + proto.RegisterType((*SearchBlocksResult)(nil), "cosmos.base.abci.v1beta1.SearchBlocksResult") + proto.RegisterType((*BlockVersion)(nil), "cosmos.base.abci.v1beta1.BlockVersion") + proto.RegisterType((*LastBlockID)(nil), "cosmos.base.abci.v1beta1.LastBlockID") + proto.RegisterType((*PartSetHeader)(nil), "cosmos.base.abci.v1beta1.PartSetHeader") } func init() { @@ -678,65 +945,81 @@ func init() { } var fileDescriptor_4e37629bc7eb0df8 = []byte{ - // 921 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xda, 0xdb, 0x75, 0x3c, 0xb6, 0x29, 0x1a, 0x45, 0xe9, 0xa4, 0x80, 0x6d, 0xdc, 0x22, - 0x59, 0x48, 0x5d, 0xab, 0x69, 0x85, 0x68, 0x4f, 0xad, 0xc3, 0x57, 0xa4, 0x96, 0xc3, 0xc6, 0x15, - 0x12, 0x17, 0x6b, 0x6c, 0x4f, 0xc7, 0xab, 0x78, 0x77, 0xac, 0x9d, 0x71, 0xb2, 0xb9, 0x71, 0x83, - 0x23, 0x27, 0xce, 0x5c, 0xe1, 0x2f, 0xe9, 0x81, 0x43, 0x8e, 0x3d, 0x54, 0x01, 0x92, 0x1b, 0x7f, - 0x05, 0x7a, 0x6f, 0xc6, 0x1f, 0x25, 0xb8, 0xed, 0xc9, 0x6f, 0x7e, 0xef, 0xc3, 0xef, 0xfd, 0xde, - 0x6f, 0x66, 0xc9, 0xad, 0x91, 0xd2, 0x89, 0xd2, 0xdd, 0x21, 0xd7, 0xa2, 0xcb, 0x87, 0xa3, 0xb8, - 0x7b, 0x7c, 0x77, 0x28, 0x0c, 0xbf, 0x8b, 0x87, 0x70, 0x96, 0x29, 0xa3, 0x28, 0xb3, 0x41, 0x21, - 0x04, 0x85, 0x88, 0xbb, 0xa0, 0x9b, 0xdb, 0x52, 0x49, 0x85, 0x41, 0x5d, 0xb0, 0x6c, 0xfc, 0xcd, - 0x0f, 0x8c, 0x48, 0xc7, 0x22, 0x4b, 0xe2, 0xd4, 0xd8, 0x9a, 0xe6, 0x74, 0x26, 0xb4, 0x73, 0xee, - 0x4a, 0xa5, 0xe4, 0x54, 0x74, 0xf1, 0x34, 0x9c, 0x3f, 0xef, 0xf2, 0xf4, 0xd4, 0xba, 0xda, 0x7f, - 0x94, 0x08, 0xe9, 0xe7, 0x91, 0xd0, 0x33, 0x95, 0x6a, 0x41, 0x77, 0x48, 0x30, 0x11, 0xb1, 0x9c, - 0x18, 0xe6, 0xb5, 0xbc, 0x4e, 0x29, 0x72, 0x27, 0xda, 0x26, 0x81, 0xc9, 0x27, 0x5c, 0x4f, 0x58, - 0xb1, 0xe5, 0x75, 0x2a, 0x3d, 0x72, 0x71, 0xde, 0x0c, 0xfa, 0xf9, 0x37, 0x5c, 0x4f, 0x22, 0xe7, - 0xa1, 0x1f, 0x92, 0xca, 0x48, 0x8d, 0x85, 0x9e, 0xf1, 0x91, 0x60, 0x25, 0x08, 0x8b, 0x56, 0x00, - 0xa5, 0xc4, 0x87, 0x03, 0xf3, 0x5b, 0x5e, 0xa7, 0x1e, 0xa1, 0x0d, 0xd8, 0x98, 0x1b, 0xce, 0xae, - 0x61, 0x30, 0xda, 0xf4, 0x06, 0x29, 0x67, 0xfc, 0x64, 0x30, 0x55, 0x92, 0x05, 0x08, 0x07, 0x19, - 0x3f, 0x79, 0xa2, 0x24, 0x7d, 0x46, 0xfc, 0xa9, 0x92, 0x9a, 0x95, 0x5b, 0xa5, 0x4e, 0x75, 0xaf, - 0x13, 0x6e, 0x22, 0x28, 0x7c, 0xdc, 0xdb, 0x3f, 0x78, 0x2a, 0xb4, 0xe6, 0x52, 0x3c, 0x51, 0xb2, - 0x77, 0xe3, 0xc5, 0x79, 0xb3, 0xf0, 0xfb, 0x9f, 0xcd, 0xeb, 0xaf, 0xe3, 0x3a, 0xc2, 0x72, 0xd0, - 0x43, 0x9c, 0x3e, 0x57, 0x6c, 0xcb, 0xf6, 0x00, 0x36, 0xfd, 0x88, 0x10, 0xc9, 0xf5, 0xe0, 0x84, - 0xa7, 0x46, 0x8c, 0x59, 0x05, 0x99, 0xa8, 0x48, 0xae, 0xbf, 0x43, 0x80, 0xee, 0x92, 0x2d, 0x70, - 0xcf, 0xb5, 0x18, 0x33, 0x82, 0xce, 0xb2, 0xe4, 0xfa, 0x99, 0x16, 0x63, 0x7a, 0x9b, 0x14, 0x4d, - 0xce, 0xaa, 0x2d, 0xaf, 0x53, 0xdd, 0xdb, 0x0e, 0x2d, 0xed, 0xe1, 0x82, 0xf6, 0xf0, 0x71, 0x7a, - 0x1a, 0x15, 0x4d, 0x0e, 0x4c, 0x99, 0x38, 0x11, 0xda, 0xf0, 0x64, 0xc6, 0x6a, 0x96, 0xa9, 0x25, - 0x40, 0xef, 0x93, 0x40, 0x1c, 0x8b, 0xd4, 0x68, 0x56, 0xc7, 0x51, 0x77, 0xc2, 0xd5, 0x6e, 0xed, - 0xa4, 0x5f, 0x82, 0xbb, 0xe7, 0xc3, 0x60, 0x91, 0x8b, 0x7d, 0xe8, 0xff, 0xf4, 0x6b, 0xb3, 0xd0, - 0xbe, 0x43, 0xea, 0xbd, 0xa9, 0x1a, 0x1d, 0xbd, 0x6d, 0xa1, 0x2e, 0xfc, 0x37, 0x8f, 0xbc, 0xf7, - 0x3a, 0x2d, 0xf4, 0x53, 0x52, 0x49, 0xb4, 0x1c, 0xc4, 0xe9, 0x58, 0xe4, 0x98, 0x53, 0xef, 0xd5, - 0xff, 0x39, 0x6f, 0xae, 0xc0, 0x68, 0x2b, 0xd1, 0xf2, 0x00, 0x2c, 0xfa, 0x3e, 0x29, 0xc1, 0x9e, - 0x50, 0x12, 0x11, 0x98, 0xf4, 0x70, 0xd9, 0x7b, 0x09, 0x7b, 0xff, 0x64, 0xf3, 0x9a, 0x0e, 0x4d, - 0x16, 0xa7, 0xd2, 0x8e, 0xb2, 0xed, 0x76, 0x54, 0x5b, 0x03, 0xf5, 0x6a, 0xb4, 0x1f, 0x5e, 0xb5, - 0xbc, 0x76, 0x46, 0xaa, 0x6b, 0x5e, 0xd8, 0x1b, 0x48, 0x1c, 0x5b, 0xac, 0x44, 0x68, 0xd3, 0x03, - 0x42, 0xb8, 0x31, 0x59, 0x3c, 0x9c, 0x1b, 0xa1, 0x59, 0x11, 0x3b, 0xb8, 0xf5, 0x06, 0xa1, 0x2c, - 0x62, 0x1d, 0x95, 0x6b, 0xc9, 0xee, 0x3f, 0xef, 0x91, 0xca, 0x32, 0x08, 0xa6, 0x3d, 0x12, 0xa7, - 0xee, 0x0f, 0xc1, 0xa4, 0xdb, 0xe4, 0xda, 0x31, 0x9f, 0xce, 0x85, 0x63, 0xc0, 0x1e, 0xda, 0xfb, - 0xa4, 0xfc, 0x35, 0xd7, 0x07, 0x57, 0x85, 0x04, 0x99, 0xfe, 0x26, 0x21, 0x15, 0xd1, 0xb9, 0x10, - 0x12, 0x6c, 0x26, 0x88, 0x84, 0x9e, 0x4f, 0x0d, 0xdd, 0x71, 0xb7, 0x04, 0xd2, 0x6b, 0xbd, 0x22, - 0xf3, 0xdc, 0x4d, 0xb9, 0xca, 0xfe, 0xfd, 0xff, 0xb0, 0xff, 0x4e, 0xca, 0xa1, 0x0f, 0x48, 0x1d, - 0x96, 0x9b, 0x39, 0xc9, 0x68, 0xe6, 0x63, 0xf2, 0xff, 0xcb, 0xb7, 0x96, 0x68, 0xb9, 0x10, 0xd7, - 0x42, 0x74, 0xbf, 0x78, 0x84, 0x1e, 0xc6, 0xc9, 0x7c, 0xca, 0x4d, 0xac, 0xd2, 0xa5, 0xf4, 0xbe, - 0xb2, 0xd3, 0xe1, 0xed, 0xf2, 0xf0, 0x46, 0x7c, 0xbc, 0x79, 0x17, 0x8e, 0xb1, 0xde, 0x16, 0xb4, - 0x76, 0x76, 0xde, 0xf4, 0x90, 0x0a, 0x24, 0xf1, 0x73, 0x12, 0x64, 0xc8, 0x04, 0x8e, 0x5a, 0xdd, - 0x6b, 0x6d, 0xae, 0x62, 0x19, 0x8b, 0x5c, 0x7c, 0xfb, 0x11, 0x29, 0x3f, 0xd5, 0xf2, 0x0b, 0x20, - 0x6b, 0x97, 0x80, 0x6c, 0x07, 0x6b, 0x92, 0x29, 0x27, 0x5a, 0xf6, 0x41, 0x35, 0x8b, 0x57, 0x08, - 0xaa, 0xd7, 0x2c, 0xb7, 0x0f, 0x03, 0x58, 0x3f, 0xf3, 0xda, 0x3f, 0x7a, 0xa4, 0xd2, 0xcf, 0x17, - 0x45, 0x1e, 0x2c, 0x37, 0x51, 0x7a, 0xf3, 0x34, 0x2e, 0x61, 0x6d, 0x59, 0x57, 0x48, 0x2e, 0xbe, - 0x3b, 0xc9, 0x28, 0xc5, 0x57, 0x1e, 0xb9, 0x7e, 0x28, 0x78, 0x36, 0x9a, 0xf4, 0x73, 0xed, 0x94, - 0xd1, 0x24, 0x55, 0xa3, 0x0c, 0x9f, 0x0e, 0x46, 0x6a, 0x9e, 0x1a, 0xa7, 0x2f, 0x82, 0xd0, 0x3e, - 0x20, 0x20, 0x50, 0xeb, 0xb2, 0xea, 0xb2, 0x07, 0x48, 0x9b, 0x71, 0x29, 0x06, 0xe9, 0x3c, 0x19, - 0x8a, 0x0c, 0x9f, 0x6a, 0x3f, 0x22, 0x00, 0x7d, 0x8b, 0x08, 0xc8, 0x16, 0x03, 0xb0, 0x12, 0xbe, - 0xd8, 0x7e, 0x54, 0x01, 0xa4, 0x0f, 0x00, 0x54, 0x9d, 0xc6, 0x49, 0x6c, 0xf0, 0xdd, 0xf6, 0x23, - 0x7b, 0xa0, 0x9f, 0x91, 0x92, 0xc9, 0x35, 0x0b, 0x70, 0xae, 0xdb, 0x9b, 0xb9, 0x59, 0x7d, 0x6d, - 0x22, 0x48, 0xb0, 0xe3, 0xf5, 0x1e, 0xbd, 0xfc, 0xbb, 0x51, 0x78, 0x71, 0xd1, 0xf0, 0xce, 0x2e, - 0x1a, 0xde, 0x5f, 0x17, 0x0d, 0xef, 0xe7, 0xcb, 0x46, 0xe1, 0xec, 0xb2, 0x51, 0x78, 0x79, 0xd9, - 0x28, 0x7c, 0xdf, 0x96, 0xb1, 0x99, 0xcc, 0x87, 0xe1, 0x48, 0x25, 0x5d, 0xf7, 0xf5, 0xb4, 0x3f, - 0x77, 0xf4, 0xf8, 0xc8, 0x7e, 0xea, 0x86, 0x01, 0x52, 0x78, 0xef, 0xdf, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x5f, 0x68, 0x0b, 0x63, 0x5f, 0x07, 0x00, 0x00, + // 1169 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4d, 0x8f, 0x1b, 0x45, + 0x13, 0xf6, 0xd8, 0x5e, 0x7b, 0x5d, 0xb6, 0x93, 0x57, 0xad, 0x55, 0x32, 0xc9, 0x0b, 0xb6, 0x71, + 0x82, 0x62, 0x21, 0x61, 0x2b, 0x1f, 0x8a, 0x48, 0x24, 0x44, 0xe2, 0x0d, 0x10, 0x4b, 0x09, 0x42, + 0xb3, 0x4e, 0x90, 0xb8, 0x98, 0xb6, 0xa7, 0x33, 0x1e, 0xc5, 0x33, 0x3d, 0x9a, 0x6e, 0x6f, 0xec, + 0x1b, 0x37, 0x38, 0x72, 0xe2, 0xcc, 0x15, 0x7e, 0x49, 0x0e, 0x1c, 0x72, 0xcc, 0x61, 0xb5, 0xc0, + 0xee, 0x05, 0xf1, 0x2b, 0x50, 0x55, 0xb7, 0x3f, 0x96, 0x8d, 0x97, 0x1c, 0x39, 0xb9, 0xeb, 0xab, + 0xbb, 0xeb, 0x79, 0x9e, 0x6a, 0x0f, 0x5c, 0x19, 0x49, 0x15, 0x49, 0xd5, 0x19, 0x72, 0x25, 0x3a, + 0x7c, 0x38, 0x0a, 0x3b, 0xfb, 0xd7, 0x87, 0x42, 0xf3, 0xeb, 0x64, 0xb4, 0x93, 0x54, 0x6a, 0xc9, + 0x5c, 0x93, 0xd4, 0xc6, 0xa4, 0x36, 0xf9, 0x6d, 0xd2, 0xe5, 0x9d, 0x40, 0x06, 0x92, 0x92, 0x3a, + 0xb8, 0x32, 0xf9, 0x97, 0xff, 0xaf, 0x45, 0xec, 0x8b, 0x34, 0x0a, 0x63, 0x6d, 0xf6, 0xd4, 0xf3, + 0x44, 0x28, 0x1b, 0xbc, 0x14, 0x48, 0x19, 0x4c, 0x44, 0x87, 0xac, 0xe1, 0xf4, 0x59, 0x87, 0xc7, + 0x73, 0x13, 0x6a, 0xfe, 0x9a, 0x03, 0xe8, 0xcf, 0x3c, 0xa1, 0x12, 0x19, 0x2b, 0xc1, 0x2e, 0x40, + 0x61, 0x2c, 0xc2, 0x60, 0xac, 0x5d, 0xa7, 0xe1, 0xb4, 0x72, 0x9e, 0xb5, 0x58, 0x13, 0x0a, 0x7a, + 0x36, 0xe6, 0x6a, 0xec, 0x66, 0x1b, 0x4e, 0xab, 0xd4, 0x85, 0xa3, 0xc3, 0x7a, 0xa1, 0x3f, 0x7b, + 0xc8, 0xd5, 0xd8, 0xb3, 0x11, 0xf6, 0x0e, 0x94, 0x46, 0xd2, 0x17, 0x2a, 0xe1, 0x23, 0xe1, 0xe6, + 0x30, 0xcd, 0x5b, 0x39, 0x18, 0x83, 0x3c, 0x1a, 0x6e, 0xbe, 0xe1, 0xb4, 0xaa, 0x1e, 0xad, 0xd1, + 0xe7, 0x73, 0xcd, 0xdd, 0x2d, 0x4a, 0xa6, 0x35, 0xbb, 0x08, 0xc5, 0x94, 0xbf, 0x18, 0x4c, 0x64, + 0xe0, 0x16, 0xc8, 0x5d, 0x48, 0xf9, 0x8b, 0x47, 0x32, 0x60, 0x4f, 0x20, 0x3f, 0x91, 0x81, 0x72, + 0x8b, 0x8d, 0x5c, 0xab, 0x7c, 0xa3, 0xd5, 0xde, 0x04, 0x50, 0xfb, 0x7e, 0x77, 0xb7, 0xf7, 0x58, + 0x28, 0xc5, 0x03, 0xf1, 0x48, 0x06, 0xdd, 0x8b, 0x2f, 0x0f, 0xeb, 0x99, 0x5f, 0x7e, 0xab, 0x9f, + 0x3f, 0xe9, 0x57, 0x1e, 0x6d, 0x87, 0x77, 0x08, 0xe3, 0x67, 0xd2, 0xdd, 0x36, 0x77, 0xc0, 0x35, + 0x7b, 0x17, 0x20, 0xe0, 0x6a, 0xf0, 0x82, 0xc7, 0x5a, 0xf8, 0x6e, 0x89, 0x90, 0x28, 0x05, 0x5c, + 0x7d, 0x45, 0x0e, 0x76, 0x09, 0xb6, 0x31, 0x3c, 0x55, 0xc2, 0x77, 0x81, 0x82, 0xc5, 0x80, 0xab, + 0x27, 0x4a, 0xf8, 0xec, 0x2a, 0x64, 0xf5, 0xcc, 0x2d, 0x37, 0x9c, 0x56, 0xf9, 0xc6, 0x4e, 0xdb, + 0xc0, 0xde, 0x5e, 0xc0, 0xde, 0xbe, 0x1f, 0xcf, 0xbd, 0xac, 0x9e, 0x21, 0x52, 0x3a, 0x8c, 0x84, + 0xd2, 0x3c, 0x4a, 0xdc, 0x8a, 0x41, 0x6a, 0xe9, 0x60, 0xb7, 0xa0, 0x20, 0xf6, 0x45, 0xac, 0x95, + 0x5b, 0xa5, 0x56, 0x2f, 0xb4, 0x57, 0xdc, 0x9a, 0x4e, 0x3f, 0xc5, 0x70, 0x37, 0x8f, 0x8d, 0x79, + 0x36, 0xf7, 0x6e, 0xfe, 0xfb, 0x9f, 0xea, 0x99, 0xe6, 0x41, 0x16, 0xaa, 0xdd, 0x89, 0x1c, 0x3d, + 0xff, 0x57, 0x46, 0x19, 0xe4, 0xf1, 0x48, 0xc3, 0xa7, 0x47, 0x6b, 0x6c, 0x6c, 0x34, 0xe6, 0x61, + 0x3c, 0x08, 0x7d, 0x4b, 0x60, 0x91, 0xec, 0x9e, 0xcf, 0xea, 0x50, 0x9e, 0x70, 0xa5, 0x07, 0x23, + 0x19, 0x45, 0xa1, 0x26, 0x16, 0x4b, 0x1e, 0xa0, 0x6b, 0x97, 0x3c, 0x6f, 0xe4, 0xb2, 0x06, 0xb0, + 0xcf, 0x27, 0xa1, 0xcf, 0xb5, 0x4c, 0x95, 0xa5, 0x73, 0xcd, 0xc3, 0xae, 0xc1, 0xf9, 0x58, 0xcc, + 0xf4, 0x60, 0x2d, 0xa9, 0x48, 0x49, 0xe7, 0xd0, 0xfd, 0x74, 0x95, 0xf8, 0x3f, 0xc8, 0xf1, 0x24, + 0xb1, 0x1c, 0xe1, 0xd2, 0x88, 0x2d, 0x56, 0x22, 0x56, 0x53, 0x45, 0x0c, 0x91, 0xd8, 0xac, 0x83, + 0xb9, 0x50, 0x4c, 0x85, 0x9a, 0x4e, 0xb4, 0x22, 0x82, 0x4a, 0xde, 0xc2, 0x64, 0x97, 0x61, 0x5b, + 0xec, 0x87, 0xbe, 0x88, 0x47, 0x82, 0x68, 0x2a, 0x79, 0x4b, 0x1b, 0x63, 0x49, 0x2a, 0x13, 0xa9, + 0x44, 0x6a, 0x59, 0x59, 0xda, 0x16, 0xde, 0x9f, 0x1d, 0x38, 0x77, 0x52, 0x46, 0xec, 0x03, 0x28, + 0x45, 0x2a, 0x18, 0x84, 0xb1, 0x2f, 0x66, 0x04, 0x71, 0xb5, 0x5b, 0xfd, 0xeb, 0xb0, 0xbe, 0x72, + 0x7a, 0xdb, 0x91, 0x0a, 0x7a, 0xb8, 0xc2, 0x36, 0x50, 0xd7, 0x06, 0x72, 0x5c, 0xb2, 0xbd, 0x25, + 0xd7, 0x39, 0xe2, 0xfa, 0xfd, 0xcd, 0xb2, 0xde, 0xd3, 0x69, 0x18, 0x07, 0x86, 0xfa, 0x1d, 0xab, + 0xe9, 0xca, 0x9a, 0x53, 0xad, 0xa4, 0xf0, 0xed, 0x41, 0xc3, 0x69, 0xa6, 0x50, 0x5e, 0x8b, 0x12, + 0xdf, 0xf3, 0x44, 0xd0, 0x15, 0x91, 0xef, 0x79, 0x22, 0x58, 0x0f, 0x80, 0x6b, 0x9d, 0x86, 0xc3, + 0xa9, 0x16, 0xca, 0xcd, 0xd2, 0x0d, 0xae, 0x9c, 0x31, 0x58, 0x8b, 0x5c, 0x2b, 0xbd, 0xb5, 0x62, + 0x7b, 0xe6, 0x4d, 0x28, 0x2d, 0x93, 0xb0, 0xdb, 0xe7, 0x62, 0x6e, 0x0f, 0xc4, 0x25, 0xdb, 0x81, + 0xad, 0x7d, 0x3e, 0x99, 0x2e, 0x44, 0x67, 0x8c, 0xe6, 0x2e, 0x14, 0x3f, 0xe7, 0xaa, 0x77, 0x7a, + 0xf0, 0xb0, 0x32, 0xbf, 0x69, 0xf0, 0xb2, 0x14, 0x5c, 0x0c, 0x1e, 0x32, 0x53, 0xf0, 0x88, 0x63, + 0x76, 0xc1, 0x2a, 0x11, 0xcb, 0x2b, 0xdd, 0xac, 0xeb, 0x58, 0x35, 0x9e, 0x46, 0xff, 0xd6, 0x3f, + 0xd0, 0x7f, 0xab, 0x49, 0x63, 0x77, 0xa0, 0x8a, 0xe4, 0xa6, 0x76, 0xc2, 0x94, 0x9b, 0xa7, 0xe2, + 0x37, 0x8f, 0x7b, 0x25, 0x52, 0xc1, 0x62, 0x16, 0x17, 0x43, 0xfa, 0xa3, 0x03, 0x6c, 0x2f, 0x8c, + 0xa6, 0x13, 0xae, 0x43, 0x19, 0x2f, 0x27, 0xf5, 0x33, 0xd3, 0x1d, 0xbd, 0x46, 0x0e, 0xbd, 0x20, + 0xef, 0x6d, 0xe6, 0xc2, 0x22, 0xd6, 0xdd, 0xc6, 0xab, 0xbd, 0x3a, 0xac, 0x3b, 0x04, 0x05, 0x81, + 0xf8, 0x11, 0x14, 0x8c, 0xda, 0xa9, 0xd5, 0xf2, 0x8d, 0xc6, 0xe6, 0x5d, 0x0c, 0x62, 0x9e, 0xcd, + 0x6f, 0xde, 0x83, 0xe2, 0x63, 0x15, 0x3c, 0x40, 0xb0, 0x2e, 0x01, 0xca, 0x76, 0xb0, 0x26, 0x99, + 0x62, 0xa4, 0x82, 0x3e, 0xaa, 0x66, 0x31, 0xe9, 0xb8, 0x7b, 0xc5, 0x60, 0x7b, 0xb7, 0x80, 0xf4, + 0xbb, 0x4e, 0xf3, 0x3b, 0x07, 0x4a, 0xfd, 0xd9, 0x62, 0x93, 0x3b, 0x4b, 0x26, 0x72, 0x67, 0x77, + 0x63, 0x0b, 0xd6, 0xc8, 0x3a, 0x05, 0x72, 0xf6, 0xed, 0x41, 0x26, 0x29, 0x1e, 0x38, 0x70, 0x7e, + 0x4f, 0xf0, 0x74, 0x34, 0xee, 0xcf, 0x94, 0x55, 0x46, 0x1d, 0xca, 0x5a, 0x6a, 0x3e, 0x19, 0x8c, + 0xe4, 0x34, 0xd6, 0x56, 0x5f, 0x40, 0xae, 0x5d, 0xf4, 0xa0, 0x40, 0x4d, 0xc8, 0xa8, 0xcb, 0x18, + 0x58, 0x96, 0xf0, 0x40, 0x0c, 0xe2, 0x69, 0x34, 0x14, 0x29, 0xbd, 0x8c, 0x79, 0x0f, 0xd0, 0xf5, + 0x05, 0x79, 0x50, 0xb6, 0x94, 0x40, 0x3b, 0xd1, 0xdb, 0x98, 0xf7, 0x4a, 0xe8, 0xe9, 0xa3, 0x03, + 0x77, 0x9d, 0x84, 0xf8, 0x6a, 0x6e, 0x99, 0x5d, 0xc9, 0x60, 0xb7, 0x21, 0xa7, 0x67, 0xf8, 0x2a, + 0x62, 0x5f, 0x57, 0x37, 0x63, 0xb3, 0xfa, 0x77, 0xf6, 0xb0, 0xc0, 0xb6, 0xf7, 0x27, 0x6a, 0x88, + 0xda, 0xa3, 0xe7, 0xfe, 0x3f, 0xd9, 0xe1, 0x27, 0x50, 0x18, 0xd2, 0xe5, 0x6c, 0x93, 0xd7, 0x36, + 0x37, 0x79, 0xe2, 0x3f, 0xcb, 0xb3, 0x65, 0xb6, 0xd5, 0xdb, 0x50, 0xa1, 0xf0, 0x53, 0x91, 0xaa, + 0x50, 0xc6, 0x78, 0x18, 0xc5, 0x6d, 0x77, 0xc6, 0x58, 0xfc, 0x45, 0x98, 0xb6, 0x70, 0xd9, 0xfc, + 0x06, 0xca, 0x8f, 0xb8, 0xd2, 0x54, 0xdb, 0x7b, 0x80, 0xb2, 0xa5, 0x0f, 0x18, 0xc7, 0xc8, 0x96, + 0x3e, 0x59, 0x3e, 0x86, 0xad, 0x84, 0xa7, 0x5a, 0xd9, 0x49, 0x39, 0xe3, 0x82, 0x5f, 0xf2, 0x54, + 0xef, 0x09, 0xfd, 0x50, 0x70, 0x5f, 0xa4, 0x9e, 0xa9, 0x6a, 0xde, 0x81, 0xea, 0x09, 0x3f, 0x5e, + 0xcd, 0x20, 0x64, 0xaf, 0x46, 0xc6, 0xf2, 0xe4, 0xec, 0xea, 0xe4, 0xee, 0xbd, 0xd7, 0x7f, 0xd4, + 0x32, 0x2f, 0x8f, 0x6a, 0xce, 0xab, 0xa3, 0x9a, 0xf3, 0xfb, 0x51, 0xcd, 0xf9, 0xe1, 0xb8, 0x96, + 0x79, 0x75, 0x5c, 0xcb, 0xbc, 0x3e, 0xae, 0x65, 0xbe, 0x6e, 0x06, 0xa1, 0x1e, 0x4f, 0x87, 0xed, + 0x91, 0x8c, 0x3a, 0xf6, 0x6b, 0xd1, 0xfc, 0x7c, 0xa8, 0xfc, 0xe7, 0xe6, 0xd3, 0x6e, 0x58, 0xa0, + 0x11, 0xb8, 0xf9, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcb, 0x5f, 0xa8, 0xb5, 0x4f, 0x0a, 0x00, + 0x00, } func (m *TxResponse) Marshal() (dAtA []byte, err error) { @@ -884,6 +1167,83 @@ func (m *BlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Proposer) > 0 { + i -= len(m.Proposer) + copy(dAtA[i:], m.Proposer) + i = encodeVarintAbci(dAtA, i, uint64(len(m.Proposer))) + i-- + dAtA[i] = 0x62 + } + if len(m.Evidence) > 0 { + i -= len(m.Evidence) + copy(dAtA[i:], m.Evidence) + i = encodeVarintAbci(dAtA, i, uint64(len(m.Evidence))) + i-- + dAtA[i] = 0x5a + } + if len(m.Results) > 0 { + i -= len(m.Results) + copy(dAtA[i:], m.Results) + i = encodeVarintAbci(dAtA, i, uint64(len(m.Results))) + i-- + dAtA[i] = 0x52 + } + if len(m.Consensus) > 0 { + i -= len(m.Consensus) + copy(dAtA[i:], m.Consensus) + i = encodeVarintAbci(dAtA, i, uint64(len(m.Consensus))) + i-- + dAtA[i] = 0x4a + } + if len(m.App) > 0 { + i -= len(m.App) + copy(dAtA[i:], m.App) + i = encodeVarintAbci(dAtA, i, uint64(len(m.App))) + i-- + dAtA[i] = 0x42 + } + if len(m.NextValidators) > 0 { + i -= len(m.NextValidators) + copy(dAtA[i:], m.NextValidators) + i = encodeVarintAbci(dAtA, i, uint64(len(m.NextValidators))) + i-- + dAtA[i] = 0x3a + } + if len(m.Validators) > 0 { + i -= len(m.Validators) + copy(dAtA[i:], m.Validators) + i = encodeVarintAbci(dAtA, i, uint64(len(m.Validators))) + i-- + dAtA[i] = 0x32 + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintAbci(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x2a + } + if len(m.LastCommit) > 0 { + i -= len(m.LastCommit) + copy(dAtA[i:], m.LastCommit) + i = encodeVarintAbci(dAtA, i, uint64(len(m.LastCommit))) + i-- + dAtA[i] = 0x22 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintAbci(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0x1a + } + if len(m.Time) > 0 { + i -= len(m.Time) + copy(dAtA[i:], m.Time) + i = encodeVarintAbci(dAtA, i, uint64(len(m.Time))) + i-- + dAtA[i] = 0x12 + } if m.Height != 0 { i = encodeVarintAbci(dAtA, i, uint64(m.Height)) i-- @@ -1315,44 +1675,216 @@ func (m *SearchTxsResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintAbci(dAtA []byte, offset int, v uint64) int { - offset -= sovAbci(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *SearchBlocksResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *TxResponse) Size() (n int) { - if m == nil { - return 0 - } + +func (m *SearchBlocksResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SearchBlocksResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Height != 0 { - n += 1 + sovAbci(uint64(m.Height)) - } - l = len(m.TxHash) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) + if len(m.Blocks) > 0 { + for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAbci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } } - l = len(m.Codespace) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) + if m.Limit != 0 { + i = encodeVarintAbci(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x28 } - if m.Code != 0 { - n += 1 + sovAbci(uint64(m.Code)) + if m.PageTotal != 0 { + i = encodeVarintAbci(dAtA, i, uint64(m.PageTotal)) + i-- + dAtA[i] = 0x20 } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) + if m.PageNumber != 0 { + i = encodeVarintAbci(dAtA, i, uint64(m.PageNumber)) + i-- + dAtA[i] = 0x18 } - l = len(m.RawLog) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) + if m.Count != 0 { + i = encodeVarintAbci(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x10 + } + if m.TotalCount != 0 { + i = encodeVarintAbci(dAtA, i, uint64(m.TotalCount)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BlockVersion) 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 *BlockVersion) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.App != 0 { + i = encodeVarintAbci(dAtA, i, uint64(m.App)) + i-- + dAtA[i] = 0x10 + } + if m.Block != 0 { + i = encodeVarintAbci(dAtA, i, uint64(m.Block)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *LastBlockID) 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 *LastBlockID) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LastBlockID) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Parts != nil { + { + size, err := m.Parts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAbci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintAbci(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PartSetHeader) 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 *PartSetHeader) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintAbci(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0x12 + } + if m.Total != 0 { + i = encodeVarintAbci(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintAbci(dAtA []byte, offset int, v uint64) int { + offset -= sovAbci(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TxResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovAbci(uint64(m.Height)) + } + l = len(m.TxHash) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.Codespace) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + if m.Code != 0 { + n += 1 + sovAbci(uint64(m.Code)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.RawLog) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) } if len(m.Logs) > 0 { for _, e := range m.Logs { @@ -1396,6 +1928,50 @@ func (m *BlockResponse) Size() (n int) { if m.Height != 0 { n += 1 + sovAbci(uint64(m.Height)) } + l = len(m.Time) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.LastCommit) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.Validators) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.NextValidators) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.App) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.Consensus) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.Results) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.Evidence) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = len(m.Proposer) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } return n } @@ -1584,6 +2160,84 @@ func (m *SearchTxsResult) Size() (n int) { return n } +func (m *SearchBlocksResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TotalCount != 0 { + n += 1 + sovAbci(uint64(m.TotalCount)) + } + if m.Count != 0 { + n += 1 + sovAbci(uint64(m.Count)) + } + if m.PageNumber != 0 { + n += 1 + sovAbci(uint64(m.PageNumber)) + } + if m.PageTotal != 0 { + n += 1 + sovAbci(uint64(m.PageTotal)) + } + if m.Limit != 0 { + n += 1 + sovAbci(uint64(m.Limit)) + } + if len(m.Blocks) > 0 { + for _, e := range m.Blocks { + l = e.Size() + n += 1 + l + sovAbci(uint64(l)) + } + } + return n +} + +func (m *BlockVersion) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Block != 0 { + n += 1 + sovAbci(uint64(m.Block)) + } + if m.App != 0 { + n += 1 + sovAbci(uint64(m.App)) + } + return n +} + +func (m *LastBlockID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + if m.Parts != nil { + l = m.Parts.Size() + n += 1 + l + sovAbci(uint64(l)) + } + return n +} + +func (m *PartSetHeader) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Total != 0 { + n += 1 + sovAbci(uint64(m.Total)) + } + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + return n +} + func sovAbci(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1675,6 +2329,26 @@ func (this *SearchTxsResult) String() string { }, "") return s } +func (this *SearchBlocksResult) String() string { + if this == nil { + return "nil" + } + repeatedStringForBlocks := "[]*BlockResponse{" + for _, f := range this.Blocks { + repeatedStringForBlocks += strings.Replace(fmt.Sprintf("%v", f), "BlockResponse", "BlockResponse", 1) + "," + } + repeatedStringForBlocks += "}" + s := strings.Join([]string{`&SearchBlocksResult{`, + `TotalCount:` + fmt.Sprintf("%v", this.TotalCount) + `,`, + `Count:` + fmt.Sprintf("%v", this.Count) + `,`, + `PageNumber:` + fmt.Sprintf("%v", this.PageNumber) + `,`, + `PageTotal:` + fmt.Sprintf("%v", this.PageTotal) + `,`, + `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, + `Blocks:` + repeatedStringForBlocks + `,`, + `}`, + }, "") + return s +} func valueToStringAbci(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { @@ -2153,20 +2827,623 @@ func (m *BlockResponse) Unmarshal(dAtA []byte) error { break } } - default: - iNdEx = preIndex - skippy, err := skipAbci(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAbci - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) } - iNdEx += skippy - } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Time = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastCommit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LastCommit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validators = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextValidators", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextValidators = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field App", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.App = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Consensus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Consensus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Results = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Evidence = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAbci(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAbci + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ABCIMessageLog) 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 ErrIntOverflowAbci + } + 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: ABCIMessageLog: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ABCIMessageLog: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgIndex", wireType) + } + m.MsgIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MsgIndex |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Log = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Events = append(m.Events, StringEvent{}) + if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAbci(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAbci + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringEvent) 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 ErrIntOverflowAbci + } + 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: StringEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Attributes = append(m.Attributes, Attribute{}) + if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAbci(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAbci + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } if iNdEx > l { @@ -2174,7 +3451,7 @@ func (m *BlockResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *ABCIMessageLog) Unmarshal(dAtA []byte) error { +func (m *Attribute) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2197,17 +3474,131 @@ func (m *ABCIMessageLog) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ABCIMessageLog: wiretype end group for non-group") + return fmt.Errorf("proto: Attribute: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ABCIMessageLog: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Attribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + 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 ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAbci(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAbci + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GasInfo) 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 ErrIntOverflowAbci + } + 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: GasInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GasInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MsgIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) } - m.MsgIndex = 0 + m.GasWanted = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -2217,11 +3608,114 @@ func (m *ABCIMessageLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MsgIndex |= uint32(b&0x7F) << shift + m.GasWanted |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) + } + m.GasUsed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GasUsed |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAbci(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAbci + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Result) 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 ErrIntOverflowAbci + } + 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: Result: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Result: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) @@ -2283,11 +3777,45 @@ func (m *ABCIMessageLog) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, StringEvent{}) + m.Events = append(m.Events, types1.Event{}) if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgResponses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MsgResponses = append(m.MsgResponses, &types.Any{}) + if err := m.MsgResponses[len(m.MsgResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAbci(dAtA[iNdEx:]) @@ -2309,7 +3837,7 @@ func (m *ABCIMessageLog) Unmarshal(dAtA []byte) error { } return nil } -func (m *StringEvent) Unmarshal(dAtA []byte) error { +func (m *SimulationResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2332,17 +3860,17 @@ func (m *StringEvent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StringEvent: wiretype end group for non-group") + return fmt.Errorf("proto: SimulationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StringEvent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SimulationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GasInfo", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -2352,27 +3880,28 @@ func (m *StringEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAbci } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthAbci } if postIndex > l { return io.ErrUnexpectedEOF } - m.Type = string(dAtA[iNdEx:postIndex]) + if err := m.GasInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2399,8 +3928,10 @@ func (m *StringEvent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Attributes = append(m.Attributes, Attribute{}) - if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Result == nil { + m.Result = &Result{} + } + if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2425,7 +3956,7 @@ func (m *StringEvent) Unmarshal(dAtA []byte) error { } return nil } -func (m *Attribute) Unmarshal(dAtA []byte) error { +func (m *MsgData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2448,15 +3979,15 @@ func (m *Attribute) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Attribute: wiretype end group for non-group") + return fmt.Errorf("proto: MsgData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Attribute: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MsgType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2484,13 +4015,13 @@ func (m *Attribute) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = string(dAtA[iNdEx:postIndex]) + m.MsgType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -2500,23 +4031,25 @@ func (m *Attribute) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthAbci } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthAbci } if postIndex > l { return io.ErrUnexpectedEOF } - m.Value = string(dAtA[iNdEx:postIndex]) + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -2539,7 +4072,7 @@ func (m *Attribute) Unmarshal(dAtA []byte) error { } return nil } -func (m *GasInfo) Unmarshal(dAtA []byte) error { +func (m *TxMsgData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2562,17 +4095,17 @@ func (m *GasInfo) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GasInfo: wiretype end group for non-group") + return fmt.Errorf("proto: TxMsgData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GasInfo: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TxMsgData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - m.GasWanted = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -2582,16 +4115,31 @@ func (m *GasInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GasWanted |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data, &MsgData{}) + if err := m.Data[len(m.Data)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgResponses", wireType) } - m.GasUsed = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -2601,11 +4149,26 @@ func (m *GasInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GasUsed |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MsgResponses = append(m.MsgResponses, &types.Any{}) + if err := m.MsgResponses[len(m.MsgResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAbci(dAtA[iNdEx:]) @@ -2627,7 +4190,7 @@ func (m *GasInfo) Unmarshal(dAtA []byte) error { } return nil } -func (m *Result) Unmarshal(dAtA []byte) error { +func (m *SearchTxsResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2650,17 +4213,17 @@ func (m *Result) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Result: wiretype end group for non-group") + return fmt.Errorf("proto: SearchTxsResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Result: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SearchTxsResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalCount", wireType) } - var byteLen int + m.TotalCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -2670,31 +4233,16 @@ func (m *Result) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.TotalCount |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthAbci - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) } - var stringLen uint64 + m.Count = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -2704,29 +4252,16 @@ func (m *Result) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.Count |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Log = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageNumber", wireType) } - var msglen int + m.PageNumber = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -2736,29 +4271,52 @@ func (m *Result) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.PageNumber |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthAbci + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageTotal", wireType) } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAbci + m.PageTotal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageTotal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if postIndex > l { - return io.ErrUnexpectedEOF + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } - m.Events = append(m.Events, types1.Event{}) - if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 4: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MsgResponses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2785,8 +4343,8 @@ func (m *Result) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MsgResponses = append(m.MsgResponses, &types.Any{}) - if err := m.MsgResponses[len(m.MsgResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Txs = append(m.Txs, &TxResponse{}) + if err := m.Txs[len(m.Txs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2811,7 +4369,7 @@ func (m *Result) Unmarshal(dAtA []byte) error { } return nil } -func (m *SimulationResponse) Unmarshal(dAtA []byte) error { +func (m *SearchBlocksResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2834,17 +4392,17 @@ func (m *SimulationResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SimulationResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SearchBlocksResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SimulationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SearchBlocksResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GasInfo", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalCount", wireType) } - var msglen int + m.TotalCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -2854,28 +4412,90 @@ func (m *SimulationResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.TotalCount |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthAbci + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAbci + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Count |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if postIndex > l { - return io.ErrUnexpectedEOF + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageNumber", wireType) } - if err := m.GasInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.PageNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 2: + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageTotal", wireType) + } + m.PageTotal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageTotal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2902,10 +4522,8 @@ func (m *SimulationResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Result == nil { - m.Result = &Result{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Blocks = append(m.Blocks, &BlockResponse{}) + if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2930,7 +4548,7 @@ func (m *SimulationResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgData) Unmarshal(dAtA []byte) error { +func (m *BlockVersion) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2953,17 +4571,17 @@ func (m *MsgData) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgData: wiretype end group for non-group") + return fmt.Errorf("proto: BlockVersion: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgData: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BlockVersion: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MsgType", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) } - var stringLen uint64 + m.Block = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -2973,29 +4591,16 @@ func (m *MsgData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.Block |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MsgType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field App", wireType) } - var byteLen int + m.App = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -3005,26 +4610,11 @@ func (m *MsgData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.App |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthAbci - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAbci(dAtA[iNdEx:]) @@ -3046,7 +4636,7 @@ func (m *MsgData) Unmarshal(dAtA []byte) error { } return nil } -func (m *TxMsgData) Unmarshal(dAtA []byte) error { +func (m *LastBlockID) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3069,17 +4659,17 @@ func (m *TxMsgData) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TxMsgData: wiretype end group for non-group") + return fmt.Errorf("proto: LastBlockID: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TxMsgData: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LastBlockID: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -3089,29 +4679,29 @@ func (m *TxMsgData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthAbci } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthAbci } if postIndex > l { return io.ErrUnexpectedEOF } - m.Data = append(m.Data, &MsgData{}) - if err := m.Data[len(m.Data)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) + if m.Hash == nil { + m.Hash = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MsgResponses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Parts", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3138,8 +4728,10 @@ func (m *TxMsgData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MsgResponses = append(m.MsgResponses, &types.Any{}) - if err := m.MsgResponses[len(m.MsgResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Parts == nil { + m.Parts = &PartSetHeader{} + } + if err := m.Parts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3164,7 +4756,7 @@ func (m *TxMsgData) Unmarshal(dAtA []byte) error { } return nil } -func (m *SearchTxsResult) Unmarshal(dAtA []byte) error { +func (m *PartSetHeader) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3187,17 +4779,17 @@ func (m *SearchTxsResult) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SearchTxsResult: wiretype end group for non-group") + return fmt.Errorf("proto: PartSetHeader: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SearchTxsResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PartSetHeader: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalCount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) } - m.TotalCount = 0 + m.Total = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -3207,92 +4799,16 @@ func (m *SearchTxsResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalCount |= uint64(b&0x7F) << shift + m.Total |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageNumber", wireType) - } - m.PageNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageTotal", wireType) - } - m.PageTotal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageTotal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAbci @@ -3302,24 +4818,24 @@ func (m *SearchTxsResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthAbci } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthAbci } if postIndex > l { return io.ErrUnexpectedEOF } - m.Txs = append(m.Txs, &TxResponse{}) - if err := m.Txs[len(m.Txs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) + if m.Hash == nil { + m.Hash = []byte{} } iNdEx = postIndex default: diff --git a/types/result.go b/types/result.go index 91813c7b43a0..4f5a2922b41d 100644 --- a/types/result.go +++ b/types/result.go @@ -84,13 +84,24 @@ func NewResponseResultTx(res *coretypes.ResultTx, anyTx *codectypes.Any, timesta } // NewResponseResultBlock returns a BlockResponse given a ResultBlock from tendermint -func NewResponseResultBlock(res *coretypes.ResultBlock) *BlockResponse { +func NewResponseResultBlock(res *coretypes.ResultBlock, timestamp string) *BlockResponse { if res == nil { return nil } return &BlockResponse{ - Height: res.Block.Height, + Height: res.Block.Height, + Time: timestamp, + ChainId: res.Block.ChainID, + LastCommit: res.Block.LastCommitHash.String(), + Data: res.Block.DataHash.String(), + Validators: res.Block.ValidatorsHash.String(), + NextValidators: res.Block.NextValidatorsHash.String(), + Consensus: res.Block.ConsensusHash.String(), + App: res.Block.AppHash.String(), + Results: res.Block.LastResultsHash.String(), + Evidence: res.Block.EvidenceHash.String(), + Proposer: res.Block.ProposerAddress.String(), } } @@ -133,6 +144,17 @@ func NewSearchTxsResult(totalCount, count, page, limit uint64, txs []*TxResponse } } +func NewSearchBlocksResult(totalCount, count, page, limit uint64, blocks []*BlockResponse) *SearchBlocksResult { + return &SearchBlocksResult{ + TotalCount: totalCount, + Count: count, + PageNumber: page, + PageTotal: uint64(math.Ceil(float64(totalCount) / float64(limit))), + Limit: limit, + Blocks: blocks, + } +} + // ParseABCILogs attempts to parse a stringified ABCI tx log into a slice of // ABCIMessageLog types. It returns an error upon JSON decoding failure. func ParseABCILogs(logs string) (res ABCIMessageLogs, err error) { diff --git a/x/auth/block/query.go b/x/auth/block/query.go index f0b918cb5c18..3614ce597756 100644 --- a/x/auth/block/query.go +++ b/x/auth/block/query.go @@ -3,12 +3,59 @@ package block import ( "context" "encoding/hex" + "errors" + "strings" + "time" "github.com/cosmos/cosmos-sdk/client" sdk "github.com/cosmos/cosmos-sdk/types" coretypes "github.com/tendermint/tendermint/rpc/core/types" ) +// QueryBlocksByEvents performs a search for blocks for a given set of events +// via the Tendermint RPC. An event takes the form of: +// "{eventAttribute}.{attributeKey} = '{attributeValue}'". Each event is +// concatenated with an 'AND' operand. It returns a slice of Info object +// containing blocks and metadata. An error is returned if the query fails. +// If an empty string is provided it will order blocks by asc +func QueryBlocksByEvents(clientCtx client.Context, events []string, page, limit int, orderBy string) (*sdk.SearchBlocksResult, error) { + if len(events) == 0 { + return nil, errors.New("must declare at least one event to search") + } + + if page <= 0 { + return nil, errors.New("page must be greater than 0") + } + + if limit <= 0 { + return nil, errors.New("limit must be greater than 0") + } + + // XXX: implement ANY + query := strings.Join(events, " AND ") + + node, err := clientCtx.GetNode() + if err != nil { + return nil, err + } + + // TODO: this may not always need to be proven + // https://github.com/cosmos/cosmos-sdk/issues/6807 + resBlocks, err := node.BlockSearch(context.Background(), query, &page, &limit, orderBy) + if err != nil { + return nil, err + } + + blocks, err := formatBlockResults(resBlocks.Blocks) + if err != nil { + return nil, err + } + + result := sdk.NewSearchBlocksResult(uint64(resBlocks.TotalCount), uint64(len(blocks)), uint64(page), uint64(limit), blocks) + + return result, nil +} + // get block by height func GetBlockByHeight(clientCtx client.Context, height *int64) (*sdk.BlockResponse, error) { // get the node @@ -60,5 +107,19 @@ func GetBlockByHash(clientCtx client.Context, hashHexString string) (*sdk.BlockR } func mkBlockResult(resBlock *coretypes.ResultBlock) (*sdk.BlockResponse, error) { - return sdk.NewResponseResultBlock(resBlock), nil + return sdk.NewResponseResultBlock(resBlock, resBlock.Block.Time.Format(time.RFC3339)), nil +} + +// formatBlockResults parses the indexed blocks into a slice of BlockResponse objects. +func formatBlockResults(resBlocks []*coretypes.ResultBlock) ([]*sdk.BlockResponse, error) { + var err error + out := make([]*sdk.BlockResponse, len(resBlocks)) + for i := range resBlocks { + out[i], err = mkBlockResult(resBlocks[i]) + if err != nil { + return nil, err + } + } + + return out, nil } diff --git a/x/auth/client/cli/query.go b/x/auth/client/cli/query.go index e650ef09a044..13b0cf089539 100644 --- a/x/auth/client/cli/query.go +++ b/x/auth/client/cli/query.go @@ -329,6 +329,77 @@ $ %s query txs --%s 'message.sender=cosmos1...&message.action=withdraw_delegator return cmd } +// QueryBlocksByEventsCmd returns a command to search through blocks by events. +func QueryBlocksByEventsCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "blocks", + Short: "Query for paginated blocks that match a set of events", + Long: strings.TrimSpace( + fmt.Sprintf(` +Search for blocks that match the exact given events where results are paginated. +Each event takes the form of '%s'. Please refer +to each module's documentation for the full set of events to query for. Each module +documents its respective events under 'xx_events.md'. + +Example: +$ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delegator_reward' --page 1 --limit 30 +`, eventFormat, version.AppName, flagEvents), + ), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + eventsRaw, _ := cmd.Flags().GetString(flagEvents) + eventsStr := strings.Trim(eventsRaw, "'") + + var events []string + if strings.Contains(eventsStr, "&") { + events = strings.Split(eventsStr, "&") + } else { + events = append(events, eventsStr) + } + + var tmEvents []string + + for _, event := range events { + if !strings.Contains(event, "=") { + return fmt.Errorf("invalid event; event %s should be of the format: %s", event, eventFormat) + } else if strings.Count(event, "=") > 1 { + return fmt.Errorf("invalid event; event %s should be of the format: %s", event, eventFormat) + } + + tokens := strings.Split(event, "=") + if tokens[0] == tmtypes.TxHeightKey { + event = fmt.Sprintf("%s=%s", tokens[0], tokens[1]) + } else { + event = fmt.Sprintf("%s='%s'", tokens[0], tokens[1]) + } + + tmEvents = append(tmEvents, event) + } + + page, _ := cmd.Flags().GetInt(flags.FlagPage) + limit, _ := cmd.Flags().GetInt(flags.FlagLimit) + + blocks, err := authblock.QueryBlocksByEvents(clientCtx, tmEvents, page, limit, "") + if err != nil { + return err + } + + return clientCtx.PrintProto(blocks) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + cmd.Flags().Int(flags.FlagPage, query.DefaultPage, "Query a specific page of paginated results") + cmd.Flags().Int(flags.FlagLimit, query.DefaultLimit, "Query number of transactions results per page returned") + cmd.Flags().String(flagEvents, "", fmt.Sprintf("list of transaction events in the form of %s", eventFormat)) + cmd.MarkFlagRequired(flagEvents) + + return cmd +} + // QueryTxCmd implements the default command for a tx query. func QueryTxCmd() *cobra.Command { cmd := &cobra.Command{ @@ -435,14 +506,14 @@ $ %s query tx --%s=%s , func QueryBlockCmd() *cobra.Command { cmd := &cobra.Command{ Use: "block --type=[height|hash] [height|hash]", - Short: "Query for a committed block by height or hash", + Short: "Query for a committed block by height, hash, or event(s)", Long: strings.TrimSpace(fmt.Sprintf(` Example: -$ %s query block +$ %s query block --%s=%s $ %s query block --%s=%s `, - version.AppName, - version.AppName, flagType, typeHeight)), + version.AppName, flagType, typeHeight, + version.AppName, flagType, typeHash)), Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientQueryContext(cmd) From 7d0330c3fb87f10c0dfc6b9b17b0ea37757bbe6a Mon Sep 17 00:00:00 2001 From: cipherZ Date: Fri, 20 Jan 2023 20:53:44 -0500 Subject: [PATCH 04/34] merged latest --- CHANGELOG.md | 2 + api/cosmos/base/abci/v1beta1/abci.pulsar.go | 1666 +---------------- api/cosmos/staking/v1beta1/tx.pulsar.go | 3 +- .../tx/signing/v1beta1/signing.pulsar.go | 4 +- proto/cosmos/bank/v1beta1/query.proto | 1 - proto/cosmos/base/abci/v1beta1/abci.proto | 24 +- proto/cosmos/distribution/v1beta1/tx.proto | 37 +- proto/cosmos/gov/v1/gov.proto | 2 +- proto/cosmos/staking/v1beta1/tx.proto | 3 +- proto/cosmos/upgrade/v1beta1/upgrade.proto | 6 +- types/abci.pb.go | 778 +------- types/tx/signing/signing.pb.go | 4 +- x/auth/block/query.go | 1 - x/staking/types/tx.pb.go | 3 +- x/tx/textual/internal/textualpb/textual.proto | 37 +- 15 files changed, 159 insertions(+), 2412 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbf7a310cfd1..3d4e4b7f1b8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Features +* (cli) [#14659](https://github.com/cosmos/cosmos-sdk/pull/14659) Added ability to query blocks by either height/hash `simd q block --type=height|hash `. Also added ability to query blocks by events similar to the existing tx query `simd q blocks --events 'message.sender=cosmos...' --page 1 --limit 30` * (x/auth) [#14650](https://github.com/cosmos/cosmos-sdk/pull/14650) Add Textual SignModeHandler. It is however **NOT** enabled by default, and should only be used for **TESTING** purposes until `SIGN_MODE_TEXTUAL` is fully released. * (cli) [#14655](https://github.com/cosmos/cosmos-sdk/pull/14655) Add a new command to list supported algos. * (x/crisis) [#14588](https://github.com/cosmos/cosmos-sdk/pull/14588) Use CacheContext() in AssertInvariants() @@ -233,6 +234,7 @@ extension interfaces. `module.Manager.Modules` is now of type `map[string]interf ### CLI Breaking Changes +* (cli) [#14659](https://github.com/cosmos/cosmos-sdk/pull/14659) `simd q block ` is removed as it just output json. The new command allows either height/hash and is `simd q block --type=height|hash `. * (grpc-web) [#14652](https://github.com/cosmos/cosmos-sdk/pull/14652) Remove `grpc-web.address` flag. * (client) [#14342](https://github.com/cosmos/cosmos-sdk/pull/14342) `simd config` command is now a sub-command. Use `simd config --help` to learn more. * (x/genutil) [#13535](https://github.com/cosmos/cosmos-sdk/pull/13535) Replace in `simd init`, the `--staking-bond-denom` flag with `--default-denom` which is used for all default denomination in the genesis, instead of only staking. diff --git a/api/cosmos/base/abci/v1beta1/abci.pulsar.go b/api/cosmos/base/abci/v1beta1/abci.pulsar.go index 4da2fa5dba13..9c2cb6c5cce7 100644 --- a/api/cosmos/base/abci/v1beta1/abci.pulsar.go +++ b/api/cosmos/base/abci/v1beta1/abci.pulsar.go @@ -8372,1429 +8372,6 @@ func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods { } } -var ( - md_BlockVersion protoreflect.MessageDescriptor - fd_BlockVersion_block protoreflect.FieldDescriptor - fd_BlockVersion_app protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_base_abci_v1beta1_abci_proto_init() - md_BlockVersion = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("BlockVersion") - fd_BlockVersion_block = md_BlockVersion.Fields().ByName("block") - fd_BlockVersion_app = md_BlockVersion.Fields().ByName("app") -} - -var _ protoreflect.Message = (*fastReflection_BlockVersion)(nil) - -type fastReflection_BlockVersion BlockVersion - -func (x *BlockVersion) ProtoReflect() protoreflect.Message { - return (*fastReflection_BlockVersion)(x) -} - -func (x *BlockVersion) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_BlockVersion_messageType fastReflection_BlockVersion_messageType -var _ protoreflect.MessageType = fastReflection_BlockVersion_messageType{} - -type fastReflection_BlockVersion_messageType struct{} - -func (x fastReflection_BlockVersion_messageType) Zero() protoreflect.Message { - return (*fastReflection_BlockVersion)(nil) -} -func (x fastReflection_BlockVersion_messageType) New() protoreflect.Message { - return new(fastReflection_BlockVersion) -} -func (x fastReflection_BlockVersion_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_BlockVersion -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_BlockVersion) Descriptor() protoreflect.MessageDescriptor { - return md_BlockVersion -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_BlockVersion) Type() protoreflect.MessageType { - return _fastReflection_BlockVersion_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_BlockVersion) New() protoreflect.Message { - return new(fastReflection_BlockVersion) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_BlockVersion) Interface() protoreflect.ProtoMessage { - return (*BlockVersion)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_BlockVersion) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Block != uint64(0) { - value := protoreflect.ValueOfUint64(x.Block) - if !f(fd_BlockVersion_block, value) { - return - } - } - if x.App != uint64(0) { - value := protoreflect.ValueOfUint64(x.App) - if !f(fd_BlockVersion_app, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_BlockVersion) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.BlockVersion.block": - return x.Block != uint64(0) - case "cosmos.base.abci.v1beta1.BlockVersion.app": - return x.App != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockVersion) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.BlockVersion.block": - x.Block = uint64(0) - case "cosmos.base.abci.v1beta1.BlockVersion.app": - x.App = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_BlockVersion) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.BlockVersion.block": - value := x.Block - return protoreflect.ValueOfUint64(value) - case "cosmos.base.abci.v1beta1.BlockVersion.app": - value := x.App - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockVersion) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.BlockVersion.block": - x.Block = value.Uint() - case "cosmos.base.abci.v1beta1.BlockVersion.app": - x.App = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockVersion) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.BlockVersion.block": - panic(fmt.Errorf("field block of message cosmos.base.abci.v1beta1.BlockVersion is not mutable")) - case "cosmos.base.abci.v1beta1.BlockVersion.app": - panic(fmt.Errorf("field app of message cosmos.base.abci.v1beta1.BlockVersion is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_BlockVersion) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.BlockVersion.block": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.base.abci.v1beta1.BlockVersion.app": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockVersion")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockVersion does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_BlockVersion) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.BlockVersion", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_BlockVersion) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockVersion) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_BlockVersion) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_BlockVersion) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*BlockVersion) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Block != 0 { - n += 1 + runtime.Sov(uint64(x.Block)) - } - if x.App != 0 { - n += 1 + runtime.Sov(uint64(x.App)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*BlockVersion) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.App != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.App)) - i-- - dAtA[i] = 0x10 - } - if x.Block != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Block)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*BlockVersion) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockVersion: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockVersion: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - x.Block = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Block |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field App", wireType) - } - x.App = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.App |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_LastBlockID protoreflect.MessageDescriptor - fd_LastBlockID_hash protoreflect.FieldDescriptor - fd_LastBlockID_parts protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_base_abci_v1beta1_abci_proto_init() - md_LastBlockID = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("LastBlockID") - fd_LastBlockID_hash = md_LastBlockID.Fields().ByName("hash") - fd_LastBlockID_parts = md_LastBlockID.Fields().ByName("parts") -} - -var _ protoreflect.Message = (*fastReflection_LastBlockID)(nil) - -type fastReflection_LastBlockID LastBlockID - -func (x *LastBlockID) ProtoReflect() protoreflect.Message { - return (*fastReflection_LastBlockID)(x) -} - -func (x *LastBlockID) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_LastBlockID_messageType fastReflection_LastBlockID_messageType -var _ protoreflect.MessageType = fastReflection_LastBlockID_messageType{} - -type fastReflection_LastBlockID_messageType struct{} - -func (x fastReflection_LastBlockID_messageType) Zero() protoreflect.Message { - return (*fastReflection_LastBlockID)(nil) -} -func (x fastReflection_LastBlockID_messageType) New() protoreflect.Message { - return new(fastReflection_LastBlockID) -} -func (x fastReflection_LastBlockID_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_LastBlockID -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_LastBlockID) Descriptor() protoreflect.MessageDescriptor { - return md_LastBlockID -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_LastBlockID) Type() protoreflect.MessageType { - return _fastReflection_LastBlockID_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_LastBlockID) New() protoreflect.Message { - return new(fastReflection_LastBlockID) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_LastBlockID) Interface() protoreflect.ProtoMessage { - return (*LastBlockID)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_LastBlockID) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Hash) != 0 { - value := protoreflect.ValueOfBytes(x.Hash) - if !f(fd_LastBlockID_hash, value) { - return - } - } - if x.Parts != nil { - value := protoreflect.ValueOfMessage(x.Parts.ProtoReflect()) - if !f(fd_LastBlockID_parts, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_LastBlockID) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.LastBlockID.hash": - return len(x.Hash) != 0 - case "cosmos.base.abci.v1beta1.LastBlockID.parts": - return x.Parts != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LastBlockID) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.LastBlockID.hash": - x.Hash = nil - case "cosmos.base.abci.v1beta1.LastBlockID.parts": - x.Parts = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_LastBlockID) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.LastBlockID.hash": - value := x.Hash - return protoreflect.ValueOfBytes(value) - case "cosmos.base.abci.v1beta1.LastBlockID.parts": - value := x.Parts - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LastBlockID) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.LastBlockID.hash": - x.Hash = value.Bytes() - case "cosmos.base.abci.v1beta1.LastBlockID.parts": - x.Parts = value.Message().Interface().(*PartSetHeader) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LastBlockID) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.LastBlockID.parts": - if x.Parts == nil { - x.Parts = new(PartSetHeader) - } - return protoreflect.ValueOfMessage(x.Parts.ProtoReflect()) - case "cosmos.base.abci.v1beta1.LastBlockID.hash": - panic(fmt.Errorf("field hash of message cosmos.base.abci.v1beta1.LastBlockID is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_LastBlockID) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.LastBlockID.hash": - return protoreflect.ValueOfBytes(nil) - case "cosmos.base.abci.v1beta1.LastBlockID.parts": - m := new(PartSetHeader) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.LastBlockID")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.LastBlockID does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_LastBlockID) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.LastBlockID", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_LastBlockID) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LastBlockID) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_LastBlockID) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_LastBlockID) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*LastBlockID) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Hash) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Parts != nil { - l = options.Size(x.Parts) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*LastBlockID) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Parts != nil { - encoded, err := options.Marshal(x.Parts) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Hash) > 0 { - i -= len(x.Hash) - copy(dAtA[i:], x.Hash) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*LastBlockID) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LastBlockID: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LastBlockID: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Hash = append(x.Hash[:0], dAtA[iNdEx:postIndex]...) - if x.Hash == nil { - x.Hash = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Parts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Parts == nil { - x.Parts = &PartSetHeader{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Parts); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_PartSetHeader protoreflect.MessageDescriptor - fd_PartSetHeader_total protoreflect.FieldDescriptor - fd_PartSetHeader_hash protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_base_abci_v1beta1_abci_proto_init() - md_PartSetHeader = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("PartSetHeader") - fd_PartSetHeader_total = md_PartSetHeader.Fields().ByName("total") - fd_PartSetHeader_hash = md_PartSetHeader.Fields().ByName("hash") -} - -var _ protoreflect.Message = (*fastReflection_PartSetHeader)(nil) - -type fastReflection_PartSetHeader PartSetHeader - -func (x *PartSetHeader) ProtoReflect() protoreflect.Message { - return (*fastReflection_PartSetHeader)(x) -} - -func (x *PartSetHeader) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_PartSetHeader_messageType fastReflection_PartSetHeader_messageType -var _ protoreflect.MessageType = fastReflection_PartSetHeader_messageType{} - -type fastReflection_PartSetHeader_messageType struct{} - -func (x fastReflection_PartSetHeader_messageType) Zero() protoreflect.Message { - return (*fastReflection_PartSetHeader)(nil) -} -func (x fastReflection_PartSetHeader_messageType) New() protoreflect.Message { - return new(fastReflection_PartSetHeader) -} -func (x fastReflection_PartSetHeader_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PartSetHeader -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_PartSetHeader) Descriptor() protoreflect.MessageDescriptor { - return md_PartSetHeader -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_PartSetHeader) Type() protoreflect.MessageType { - return _fastReflection_PartSetHeader_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_PartSetHeader) New() protoreflect.Message { - return new(fastReflection_PartSetHeader) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_PartSetHeader) Interface() protoreflect.ProtoMessage { - return (*PartSetHeader)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_PartSetHeader) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Total != uint64(0) { - value := protoreflect.ValueOfUint64(x.Total) - if !f(fd_PartSetHeader_total, value) { - return - } - } - if len(x.Hash) != 0 { - value := protoreflect.ValueOfBytes(x.Hash) - if !f(fd_PartSetHeader_hash, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_PartSetHeader) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.PartSetHeader.total": - return x.Total != uint64(0) - case "cosmos.base.abci.v1beta1.PartSetHeader.hash": - return len(x.Hash) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PartSetHeader) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.PartSetHeader.total": - x.Total = uint64(0) - case "cosmos.base.abci.v1beta1.PartSetHeader.hash": - x.Hash = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PartSetHeader) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.PartSetHeader.total": - value := x.Total - return protoreflect.ValueOfUint64(value) - case "cosmos.base.abci.v1beta1.PartSetHeader.hash": - value := x.Hash - return protoreflect.ValueOfBytes(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PartSetHeader) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.PartSetHeader.total": - x.Total = value.Uint() - case "cosmos.base.abci.v1beta1.PartSetHeader.hash": - x.Hash = value.Bytes() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PartSetHeader) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.PartSetHeader.total": - panic(fmt.Errorf("field total of message cosmos.base.abci.v1beta1.PartSetHeader is not mutable")) - case "cosmos.base.abci.v1beta1.PartSetHeader.hash": - panic(fmt.Errorf("field hash of message cosmos.base.abci.v1beta1.PartSetHeader is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PartSetHeader) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.PartSetHeader.total": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.base.abci.v1beta1.PartSetHeader.hash": - return protoreflect.ValueOfBytes(nil) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.PartSetHeader")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.PartSetHeader does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PartSetHeader) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.PartSetHeader", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PartSetHeader) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PartSetHeader) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_PartSetHeader) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_PartSetHeader) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PartSetHeader) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Total != 0 { - n += 1 + runtime.Sov(uint64(x.Total)) - } - l = len(x.Hash) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PartSetHeader) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Hash) > 0 { - i -= len(x.Hash) - copy(dAtA[i:], x.Hash) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) - i-- - dAtA[i] = 0x12 - } - if x.Total != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Total)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PartSetHeader) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PartSetHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PartSetHeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) - } - x.Total = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Total |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Hash = append(x.Hash[:0], dAtA[iNdEx:postIndex]...) - if x.Hash == nil { - x.Hash = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -10658,138 +9235,6 @@ func (x *SearchBlocksResult) GetBlocks() []*BlockResponse { return nil } -// BlockVersion defines the version of the block. -type BlockVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Block uint64 `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"` - App uint64 `protobuf:"varint,2,opt,name=app,proto3" json:"app,omitempty"` -} - -func (x *BlockVersion) Reset() { - *x = BlockVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BlockVersion) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BlockVersion) ProtoMessage() {} - -// Deprecated: Use BlockVersion.ProtoReflect.Descriptor instead. -func (*BlockVersion) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{12} -} - -func (x *BlockVersion) GetBlock() uint64 { - if x != nil { - return x.Block - } - return 0 -} - -func (x *BlockVersion) GetApp() uint64 { - if x != nil { - return x.App - } - return 0 -} - -// LastBlockID defines the last block ID. -type LastBlockID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - Parts *PartSetHeader `protobuf:"bytes,2,opt,name=parts,proto3" json:"parts,omitempty"` -} - -func (x *LastBlockID) Reset() { - *x = LastBlockID{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LastBlockID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LastBlockID) ProtoMessage() {} - -// Deprecated: Use LastBlockID.ProtoReflect.Descriptor instead. -func (*LastBlockID) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{13} -} - -func (x *LastBlockID) GetHash() []byte { - if x != nil { - return x.Hash - } - return nil -} - -func (x *LastBlockID) GetParts() *PartSetHeader { - if x != nil { - return x.Parts - } - return nil -} - -// PartSetHeader defines the part set header. -type PartSetHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (x *PartSetHeader) Reset() { - *x = PartSetHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PartSetHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PartSetHeader) ProtoMessage() {} - -// Deprecated: Use PartSetHeader.ProtoReflect.Descriptor instead. -func (*PartSetHeader) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{14} -} - -func (x *PartSetHeader) GetTotal() uint64 { - if x != nil { - return x.Total - } - return 0 -} - -func (x *PartSetHeader) GetHash() []byte { - if x != nil { - return x.Hash - } - return nil -} - var File_cosmos_base_abci_v1beta1_abci_proto protoreflect.FileDescriptor var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{ @@ -10940,35 +9385,22 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{ 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, - 0x22, 0x36, 0x0a, 0x0c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x70, 0x70, 0x22, 0x60, 0x0a, 0x0b, 0x4c, 0x61, 0x73, 0x74, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x3d, 0x0a, 0x05, 0x70, - 0x61, 0x72, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x53, 0x65, 0x74, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x73, 0x22, 0x39, 0x0a, 0x0d, 0x50, 0x61, - 0x72, 0x74, 0x53, 0x65, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, - 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x04, 0x68, 0x61, 0x73, 0x68, 0x42, 0xe7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x41, 0x62, 0x63, 0x69, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, - 0x65, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, - 0x62, 0x63, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x41, - 0xaa, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41, - 0x62, 0x63, 0x69, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x24, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, + 0x42, 0xe7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x42, 0x09, 0x41, 0x62, 0x63, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x61, 0x62, 0x63, + 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x62, 0x63, 0x69, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x41, 0xaa, 0x02, 0x18, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x62, 0x63, 0x69, 0x2e, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, - 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x41, 0x62, - 0x63, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xd8, 0xe1, 0x1e, 0x00, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0xe2, 0x02, 0x24, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, + 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xd8, 0xe1, 0x1e, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -10983,7 +9415,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP() []byte { return file_cosmos_base_abci_v1beta1_abci_proto_rawDescData } -var file_cosmos_base_abci_v1beta1_abci_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_cosmos_base_abci_v1beta1_abci_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_cosmos_base_abci_v1beta1_abci_proto_goTypes = []interface{}{ (*TxResponse)(nil), // 0: cosmos.base.abci.v1beta1.TxResponse (*BlockResponse)(nil), // 1: cosmos.base.abci.v1beta1.BlockResponse @@ -10997,32 +9429,28 @@ var file_cosmos_base_abci_v1beta1_abci_proto_goTypes = []interface{}{ (*TxMsgData)(nil), // 9: cosmos.base.abci.v1beta1.TxMsgData (*SearchTxsResult)(nil), // 10: cosmos.base.abci.v1beta1.SearchTxsResult (*SearchBlocksResult)(nil), // 11: cosmos.base.abci.v1beta1.SearchBlocksResult - (*BlockVersion)(nil), // 12: cosmos.base.abci.v1beta1.BlockVersion - (*LastBlockID)(nil), // 13: cosmos.base.abci.v1beta1.LastBlockID - (*PartSetHeader)(nil), // 14: cosmos.base.abci.v1beta1.PartSetHeader - (*anypb.Any)(nil), // 15: google.protobuf.Any - (*abci.Event)(nil), // 16: tendermint.abci.Event + (*anypb.Any)(nil), // 12: google.protobuf.Any + (*abci.Event)(nil), // 13: tendermint.abci.Event } var file_cosmos_base_abci_v1beta1_abci_proto_depIdxs = []int32{ 2, // 0: cosmos.base.abci.v1beta1.TxResponse.logs:type_name -> cosmos.base.abci.v1beta1.ABCIMessageLog - 15, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any - 16, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> tendermint.abci.Event + 12, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any + 13, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> tendermint.abci.Event 3, // 3: cosmos.base.abci.v1beta1.ABCIMessageLog.events:type_name -> cosmos.base.abci.v1beta1.StringEvent 4, // 4: cosmos.base.abci.v1beta1.StringEvent.attributes:type_name -> cosmos.base.abci.v1beta1.Attribute - 16, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> tendermint.abci.Event - 15, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any + 13, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> tendermint.abci.Event + 12, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any 5, // 7: cosmos.base.abci.v1beta1.SimulationResponse.gas_info:type_name -> cosmos.base.abci.v1beta1.GasInfo 6, // 8: cosmos.base.abci.v1beta1.SimulationResponse.result:type_name -> cosmos.base.abci.v1beta1.Result 8, // 9: cosmos.base.abci.v1beta1.TxMsgData.data:type_name -> cosmos.base.abci.v1beta1.MsgData - 15, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any + 12, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any 0, // 11: cosmos.base.abci.v1beta1.SearchTxsResult.txs:type_name -> cosmos.base.abci.v1beta1.TxResponse 1, // 12: cosmos.base.abci.v1beta1.SearchBlocksResult.blocks:type_name -> cosmos.base.abci.v1beta1.BlockResponse - 14, // 13: cosmos.base.abci.v1beta1.LastBlockID.parts:type_name -> cosmos.base.abci.v1beta1.PartSetHeader - 14, // [14:14] is the sub-list for method output_type - 14, // [14:14] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name + 13, // [13:13] is the sub-list for method output_type + 13, // [13:13] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name } func init() { file_cosmos_base_abci_v1beta1_abci_proto_init() } @@ -11175,42 +9603,6 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LastBlockID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartSetHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } } type x struct{} out := protoimpl.TypeBuilder{ @@ -11218,7 +9610,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_cosmos_base_abci_v1beta1_abci_proto_rawDesc, NumEnums: 0, - NumMessages: 15, + NumMessages: 12, NumExtensions: 0, NumServices: 0, }, diff --git a/api/cosmos/staking/v1beta1/tx.pulsar.go b/api/cosmos/staking/v1beta1/tx.pulsar.go index 7c1bce64952e..b3986fba8470 100644 --- a/api/cosmos/staking/v1beta1/tx.pulsar.go +++ b/api/cosmos/staking/v1beta1/tx.pulsar.go @@ -7046,7 +7046,8 @@ type MsgCreateValidator struct { Commission *CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission,omitempty"` MinSelfDelegation string `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3" json:"min_self_delegation,omitempty"` // Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. - // The validator address and delegator address are always same while creating validator. + // The validator address bytes and delegator address bytes refer to the same account while creating validator (defer + // only in bech32 notation). // // Deprecated: Do not use. DelegatorAddress string `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` diff --git a/api/cosmos/tx/signing/v1beta1/signing.pulsar.go b/api/cosmos/tx/signing/v1beta1/signing.pulsar.go index 2a19fc80ce67..0e6c12827053 100644 --- a/api/cosmos/tx/signing/v1beta1/signing.pulsar.go +++ b/api/cosmos/tx/signing/v1beta1/signing.pulsar.go @@ -2723,7 +2723,9 @@ const ( SignMode_SIGN_MODE_DIRECT SignMode = 1 // SIGN_MODE_TEXTUAL is a future signing mode that will verify some // human-readable textual representation on top of the binary representation - // from SIGN_MODE_DIRECT. It is currently not supported. + // from SIGN_MODE_DIRECT. It is currently experimental, and should be used + // for testing purposes only, until Textual is fully released. Please follow + // the tracking issue https://github.com/cosmos/cosmos-sdk/issues/11970. SignMode_SIGN_MODE_TEXTUAL SignMode = 2 // SIGN_MODE_DIRECT_AUX specifies a signing mode which uses // SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not diff --git a/proto/cosmos/bank/v1beta1/query.proto b/proto/cosmos/bank/v1beta1/query.proto index 7abc31bacbf1..679aa28a444e 100644 --- a/proto/cosmos/bank/v1beta1/query.proto +++ b/proto/cosmos/bank/v1beta1/query.proto @@ -214,7 +214,6 @@ message QuerySpendableBalanceByDenomResponse { cosmos.base.v1beta1.Coin balance = 1; } - // QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC // method. message QueryTotalSupplyRequest { diff --git a/proto/cosmos/base/abci/v1beta1/abci.proto b/proto/cosmos/base/abci/v1beta1/abci.proto index 3633b77186fb..3916763ce320 100644 --- a/proto/cosmos/base/abci/v1beta1/abci.proto +++ b/proto/cosmos/base/abci/v1beta1/abci.proto @@ -52,18 +52,18 @@ message TxResponse { message BlockResponse { option (gogoproto.goproto_getters) = false; // The block height - int64 height = 1; - string time = 2; - string chain_id = 3; - string last_commit = 4; - string data = 5; - string validators = 6; + int64 height = 1; + string time = 2; + string chain_id = 3; + string last_commit = 4; + string data = 5; + string validators = 6; string next_validators = 7; - string app = 8; - string consensus = 9; - string results = 10; - string evidence = 11; - string proposer = 12; + string app = 8; + string consensus = 9; + string results = 10; + string evidence = 11; + string proposer = 12; } // ABCIMessageLog defines a structure containing an indexed tx ABCI message log. @@ -192,5 +192,3 @@ message SearchBlocksResult { // List of blocks in current page repeated BlockResponse blocks = 6; } - - diff --git a/proto/cosmos/distribution/v1beta1/tx.proto b/proto/cosmos/distribution/v1beta1/tx.proto index 3625cac380c0..a82ae10c8210 100644 --- a/proto/cosmos/distribution/v1beta1/tx.proto +++ b/proto/cosmos/distribution/v1beta1/tx.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.distribution.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; +option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; @@ -17,23 +17,19 @@ service Msg { // SetWithdrawAddress defines a method to change the withdraw address // for a delegator (or validator self-delegation). - rpc SetWithdrawAddress(MsgSetWithdrawAddress) - returns (MsgSetWithdrawAddressResponse); + rpc SetWithdrawAddress(MsgSetWithdrawAddress) returns (MsgSetWithdrawAddressResponse); // WithdrawDelegatorReward defines a method to withdraw rewards of delegator // from a single validator. - rpc WithdrawDelegatorReward(MsgWithdrawDelegatorReward) - returns (MsgWithdrawDelegatorRewardResponse); + rpc WithdrawDelegatorReward(MsgWithdrawDelegatorReward) returns (MsgWithdrawDelegatorRewardResponse); // WithdrawValidatorCommission defines a method to withdraw the // full commission to the validator address. - rpc WithdrawValidatorCommission(MsgWithdrawValidatorCommission) - returns (MsgWithdrawValidatorCommissionResponse); + rpc WithdrawValidatorCommission(MsgWithdrawValidatorCommission) returns (MsgWithdrawValidatorCommissionResponse); // FundCommunityPool defines a method to allow an account to directly // fund the community pool. - rpc FundCommunityPool(MsgFundCommunityPool) - returns (MsgFundCommunityPoolResponse); + rpc FundCommunityPool(MsgFundCommunityPool) returns (MsgFundCommunityPoolResponse); // UpdateParams defines a governance operation for updating the x/distribution // module parameters. The authority is defined in the keeper. @@ -47,15 +43,13 @@ service Msg { // keeper. // // Since: cosmos-sdk 0.47 - rpc CommunityPoolSpend(MsgCommunityPoolSpend) - returns (MsgCommunityPoolSpendResponse); + rpc CommunityPoolSpend(MsgCommunityPoolSpend) returns (MsgCommunityPoolSpendResponse); // DepositValidatorRewardsPool defines a method to provide additional rewards // to delegators to a specific validator. // // Since: cosmos-sdk 0.48 - rpc DepositValidatorRewardsPool(MsgDepositValidatorRewardsPool) - returns (MsgDepositValidatorRewardsPoolResponse); + rpc DepositValidatorRewardsPool(MsgDepositValidatorRewardsPool) returns (MsgDepositValidatorRewardsPoolResponse); } // MsgSetWithdrawAddress sets the withdraw address for @@ -155,8 +149,7 @@ message MsgUpdateParams { // params defines the x/distribution parameters to update. // // NOTE: All parameters must be supplied. - Params params = 2 - [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // MsgUpdateParamsResponse defines the response structure for executing a @@ -175,8 +168,8 @@ message MsgCommunityPoolSpend { option (amino.name) = "cosmos-sdk/distr/MsgCommunityPoolSpend"; // authority is the address that controls the module (defaults to x/gov unless overwritten). - string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - string recipient = 2; + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string recipient = 2; repeated cosmos.base.v1beta1.Coin amount = 3 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true, @@ -200,12 +193,10 @@ message MsgDepositValidatorRewardsPool { option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - repeated cosmos.base.v1beta1.Coin amount = 3 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + repeated cosmos.base.v1beta1.Coin amount = 3 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } // MsgDepositValidatorRewardsPoolResponse defines the response to executing a diff --git a/proto/cosmos/gov/v1/gov.proto b/proto/cosmos/gov/v1/gov.proto index 482f639ad45f..fb48c0131850 100644 --- a/proto/cosmos/gov/v1/gov.proto +++ b/proto/cosmos/gov/v1/gov.proto @@ -213,7 +213,7 @@ message Params { // // Since: cosmos-sdk 0.48 string proposal_cancel_ratio = 8 [(cosmos_proto.scalar) = "cosmos.Dec"]; - + // The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. // If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. // diff --git a/proto/cosmos/staking/v1beta1/tx.proto b/proto/cosmos/staking/v1beta1/tx.proto index 327b92fe3064..a79386928cea 100644 --- a/proto/cosmos/staking/v1beta1/tx.proto +++ b/proto/cosmos/staking/v1beta1/tx.proto @@ -63,7 +63,8 @@ message MsgCreateValidator { (gogoproto.nullable) = false ]; // Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. - // The validator address bytes and delegator address bytes refer to the same account while creating validator (defer only in bech32 notation). + // The validator address bytes and delegator address bytes refer to the same account while creating validator (defer + // only in bech32 notation). string delegator_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString", deprecated = true]; string validator_address = 5 [(cosmos_proto.scalar) = "cosmos.AddressString"]; google.protobuf.Any pubkey = 6 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; diff --git a/proto/cosmos/upgrade/v1beta1/upgrade.proto b/proto/cosmos/upgrade/v1beta1/upgrade.proto index 8605c8854c94..85f48080cb8b 100644 --- a/proto/cosmos/upgrade/v1beta1/upgrade.proto +++ b/proto/cosmos/upgrade/v1beta1/upgrade.proto @@ -54,13 +54,13 @@ message SoftwareUpgradeProposal { option (gogoproto.equal) = true; // title of the proposal - string title = 1; + string title = 1; // description of the proposal string description = 2; // plan of the proposal - Plan plan = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + Plan plan = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software @@ -74,7 +74,7 @@ message CancelSoftwareUpgradeProposal { option (gogoproto.equal) = true; // title of the proposal - string title = 1; + string title = 1; // description of the proposal string description = 2; diff --git a/types/abci.pb.go b/types/abci.pb.go index cb9e5de0cbd3..773482b86035 100644 --- a/types/abci.pb.go +++ b/types/abci.pb.go @@ -760,168 +760,6 @@ func (m *SearchBlocksResult) GetBlocks() []*BlockResponse { return nil } -// BlockVersion defines the version of the block. -type BlockVersion struct { - Block uint64 `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"` - App uint64 `protobuf:"varint,2,opt,name=app,proto3" json:"app,omitempty"` -} - -func (m *BlockVersion) Reset() { *m = BlockVersion{} } -func (m *BlockVersion) String() string { return proto.CompactTextString(m) } //I had to manually add this -func (m *BlockVersion) Empty() bool { return len(proto.CompactTextString(m)) == 0 } //I had to manually add this -func (*BlockVersion) ProtoMessage() {} -func (*BlockVersion) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{12} -} -func (m *BlockVersion) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockVersion.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 *BlockVersion) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockVersion.Merge(m, src) -} -func (m *BlockVersion) XXX_Size() int { - return m.Size() -} -func (m *BlockVersion) XXX_DiscardUnknown() { - xxx_messageInfo_BlockVersion.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockVersion proto.InternalMessageInfo - -func (m *BlockVersion) GetBlock() uint64 { - if m != nil { - return m.Block - } - return 0 -} - -func (m *BlockVersion) GetApp() uint64 { - if m != nil { - return m.App - } - return 0 -} - -// LastBlockID defines the last block ID. -type LastBlockID struct { - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - Parts *PartSetHeader `protobuf:"bytes,2,opt,name=parts,proto3" json:"parts,omitempty"` -} - -func (m *LastBlockID) Reset() { *m = LastBlockID{} } -func (m *LastBlockID) String() string { return proto.CompactTextString(m) } //I had to manually add this -func (m *LastBlockID) Empty() bool { return len(proto.CompactTextString(m)) == 0 } //I had to manually add this -func (*LastBlockID) ProtoMessage() {} -func (*LastBlockID) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{13} -} -func (m *LastBlockID) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LastBlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LastBlockID.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 *LastBlockID) XXX_Merge(src proto.Message) { - xxx_messageInfo_LastBlockID.Merge(m, src) -} -func (m *LastBlockID) XXX_Size() int { - return m.Size() -} -func (m *LastBlockID) XXX_DiscardUnknown() { - xxx_messageInfo_LastBlockID.DiscardUnknown(m) -} - -var xxx_messageInfo_LastBlockID proto.InternalMessageInfo - -func (m *LastBlockID) GetHash() []byte { - if m != nil { - return m.Hash - } - return nil -} - -func (m *LastBlockID) GetParts() *PartSetHeader { - if m != nil { - return m.Parts - } - return nil -} - -// PartSetHeader defines the part set header. -type PartSetHeader struct { - Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (m *PartSetHeader) Reset() { *m = PartSetHeader{} } -func (m *PartSetHeader) String() string { return proto.CompactTextString(m) } //I had to manually add this -func (m *PartSetHeader) Empty() bool { return len(proto.CompactTextString(m)) == 0 } //I had to manually add this -func (*PartSetHeader) ProtoMessage() {} -func (*PartSetHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{14} -} -func (m *PartSetHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PartSetHeader.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 *PartSetHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_PartSetHeader.Merge(m, src) -} -func (m *PartSetHeader) XXX_Size() int { - return m.Size() -} -func (m *PartSetHeader) XXX_DiscardUnknown() { - xxx_messageInfo_PartSetHeader.DiscardUnknown(m) -} - -var xxx_messageInfo_PartSetHeader proto.InternalMessageInfo - -func (m *PartSetHeader) GetTotal() uint64 { - if m != nil { - return m.Total - } - return 0 -} - -func (m *PartSetHeader) GetHash() []byte { - if m != nil { - return m.Hash - } - return nil -} - func init() { proto.RegisterType((*TxResponse)(nil), "cosmos.base.abci.v1beta1.TxResponse") proto.RegisterType((*BlockResponse)(nil), "cosmos.base.abci.v1beta1.BlockResponse") @@ -935,9 +773,6 @@ func init() { proto.RegisterType((*TxMsgData)(nil), "cosmos.base.abci.v1beta1.TxMsgData") proto.RegisterType((*SearchTxsResult)(nil), "cosmos.base.abci.v1beta1.SearchTxsResult") proto.RegisterType((*SearchBlocksResult)(nil), "cosmos.base.abci.v1beta1.SearchBlocksResult") - proto.RegisterType((*BlockVersion)(nil), "cosmos.base.abci.v1beta1.BlockVersion") - proto.RegisterType((*LastBlockID)(nil), "cosmos.base.abci.v1beta1.LastBlockID") - proto.RegisterType((*PartSetHeader)(nil), "cosmos.base.abci.v1beta1.PartSetHeader") } func init() { @@ -945,81 +780,75 @@ func init() { } var fileDescriptor_4e37629bc7eb0df8 = []byte{ - // 1169 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4d, 0x8f, 0x1b, 0x45, - 0x13, 0xf6, 0xd8, 0x5e, 0x7b, 0x5d, 0xb6, 0x93, 0x57, 0xad, 0x55, 0x32, 0xc9, 0x0b, 0xb6, 0x71, - 0x82, 0x62, 0x21, 0x61, 0x2b, 0x1f, 0x8a, 0x48, 0x24, 0x44, 0xe2, 0x0d, 0x10, 0x4b, 0x09, 0x42, - 0xb3, 0x4e, 0x90, 0xb8, 0x98, 0xb6, 0xa7, 0x33, 0x1e, 0xc5, 0x33, 0x3d, 0x9a, 0x6e, 0x6f, 0xec, - 0x1b, 0x37, 0x38, 0x72, 0xe2, 0xcc, 0x15, 0x7e, 0x49, 0x0e, 0x1c, 0x72, 0xcc, 0x61, 0xb5, 0xc0, - 0xee, 0x05, 0xf1, 0x2b, 0x50, 0x55, 0xb7, 0x3f, 0x96, 0x8d, 0x97, 0x1c, 0x39, 0xb9, 0xeb, 0xab, - 0xbb, 0xeb, 0x79, 0x9e, 0x6a, 0x0f, 0x5c, 0x19, 0x49, 0x15, 0x49, 0xd5, 0x19, 0x72, 0x25, 0x3a, - 0x7c, 0x38, 0x0a, 0x3b, 0xfb, 0xd7, 0x87, 0x42, 0xf3, 0xeb, 0x64, 0xb4, 0x93, 0x54, 0x6a, 0xc9, - 0x5c, 0x93, 0xd4, 0xc6, 0xa4, 0x36, 0xf9, 0x6d, 0xd2, 0xe5, 0x9d, 0x40, 0x06, 0x92, 0x92, 0x3a, - 0xb8, 0x32, 0xf9, 0x97, 0xff, 0xaf, 0x45, 0xec, 0x8b, 0x34, 0x0a, 0x63, 0x6d, 0xf6, 0xd4, 0xf3, - 0x44, 0x28, 0x1b, 0xbc, 0x14, 0x48, 0x19, 0x4c, 0x44, 0x87, 0xac, 0xe1, 0xf4, 0x59, 0x87, 0xc7, - 0x73, 0x13, 0x6a, 0xfe, 0x9a, 0x03, 0xe8, 0xcf, 0x3c, 0xa1, 0x12, 0x19, 0x2b, 0xc1, 0x2e, 0x40, - 0x61, 0x2c, 0xc2, 0x60, 0xac, 0x5d, 0xa7, 0xe1, 0xb4, 0x72, 0x9e, 0xb5, 0x58, 0x13, 0x0a, 0x7a, - 0x36, 0xe6, 0x6a, 0xec, 0x66, 0x1b, 0x4e, 0xab, 0xd4, 0x85, 0xa3, 0xc3, 0x7a, 0xa1, 0x3f, 0x7b, - 0xc8, 0xd5, 0xd8, 0xb3, 0x11, 0xf6, 0x0e, 0x94, 0x46, 0xd2, 0x17, 0x2a, 0xe1, 0x23, 0xe1, 0xe6, - 0x30, 0xcd, 0x5b, 0x39, 0x18, 0x83, 0x3c, 0x1a, 0x6e, 0xbe, 0xe1, 0xb4, 0xaa, 0x1e, 0xad, 0xd1, - 0xe7, 0x73, 0xcd, 0xdd, 0x2d, 0x4a, 0xa6, 0x35, 0xbb, 0x08, 0xc5, 0x94, 0xbf, 0x18, 0x4c, 0x64, - 0xe0, 0x16, 0xc8, 0x5d, 0x48, 0xf9, 0x8b, 0x47, 0x32, 0x60, 0x4f, 0x20, 0x3f, 0x91, 0x81, 0x72, - 0x8b, 0x8d, 0x5c, 0xab, 0x7c, 0xa3, 0xd5, 0xde, 0x04, 0x50, 0xfb, 0x7e, 0x77, 0xb7, 0xf7, 0x58, - 0x28, 0xc5, 0x03, 0xf1, 0x48, 0x06, 0xdd, 0x8b, 0x2f, 0x0f, 0xeb, 0x99, 0x5f, 0x7e, 0xab, 0x9f, - 0x3f, 0xe9, 0x57, 0x1e, 0x6d, 0x87, 0x77, 0x08, 0xe3, 0x67, 0xd2, 0xdd, 0x36, 0x77, 0xc0, 0x35, - 0x7b, 0x17, 0x20, 0xe0, 0x6a, 0xf0, 0x82, 0xc7, 0x5a, 0xf8, 0x6e, 0x89, 0x90, 0x28, 0x05, 0x5c, - 0x7d, 0x45, 0x0e, 0x76, 0x09, 0xb6, 0x31, 0x3c, 0x55, 0xc2, 0x77, 0x81, 0x82, 0xc5, 0x80, 0xab, - 0x27, 0x4a, 0xf8, 0xec, 0x2a, 0x64, 0xf5, 0xcc, 0x2d, 0x37, 0x9c, 0x56, 0xf9, 0xc6, 0x4e, 0xdb, - 0xc0, 0xde, 0x5e, 0xc0, 0xde, 0xbe, 0x1f, 0xcf, 0xbd, 0xac, 0x9e, 0x21, 0x52, 0x3a, 0x8c, 0x84, - 0xd2, 0x3c, 0x4a, 0xdc, 0x8a, 0x41, 0x6a, 0xe9, 0x60, 0xb7, 0xa0, 0x20, 0xf6, 0x45, 0xac, 0x95, - 0x5b, 0xa5, 0x56, 0x2f, 0xb4, 0x57, 0xdc, 0x9a, 0x4e, 0x3f, 0xc5, 0x70, 0x37, 0x8f, 0x8d, 0x79, - 0x36, 0xf7, 0x6e, 0xfe, 0xfb, 0x9f, 0xea, 0x99, 0xe6, 0x41, 0x16, 0xaa, 0xdd, 0x89, 0x1c, 0x3d, - 0xff, 0x57, 0x46, 0x19, 0xe4, 0xf1, 0x48, 0xc3, 0xa7, 0x47, 0x6b, 0x6c, 0x6c, 0x34, 0xe6, 0x61, - 0x3c, 0x08, 0x7d, 0x4b, 0x60, 0x91, 0xec, 0x9e, 0xcf, 0xea, 0x50, 0x9e, 0x70, 0xa5, 0x07, 0x23, - 0x19, 0x45, 0xa1, 0x26, 0x16, 0x4b, 0x1e, 0xa0, 0x6b, 0x97, 0x3c, 0x6f, 0xe4, 0xb2, 0x06, 0xb0, - 0xcf, 0x27, 0xa1, 0xcf, 0xb5, 0x4c, 0x95, 0xa5, 0x73, 0xcd, 0xc3, 0xae, 0xc1, 0xf9, 0x58, 0xcc, - 0xf4, 0x60, 0x2d, 0xa9, 0x48, 0x49, 0xe7, 0xd0, 0xfd, 0x74, 0x95, 0xf8, 0x3f, 0xc8, 0xf1, 0x24, - 0xb1, 0x1c, 0xe1, 0xd2, 0x88, 0x2d, 0x56, 0x22, 0x56, 0x53, 0x45, 0x0c, 0x91, 0xd8, 0xac, 0x83, - 0xb9, 0x50, 0x4c, 0x85, 0x9a, 0x4e, 0xb4, 0x22, 0x82, 0x4a, 0xde, 0xc2, 0x64, 0x97, 0x61, 0x5b, - 0xec, 0x87, 0xbe, 0x88, 0x47, 0x82, 0x68, 0x2a, 0x79, 0x4b, 0x1b, 0x63, 0x49, 0x2a, 0x13, 0xa9, - 0x44, 0x6a, 0x59, 0x59, 0xda, 0x16, 0xde, 0x9f, 0x1d, 0x38, 0x77, 0x52, 0x46, 0xec, 0x03, 0x28, - 0x45, 0x2a, 0x18, 0x84, 0xb1, 0x2f, 0x66, 0x04, 0x71, 0xb5, 0x5b, 0xfd, 0xeb, 0xb0, 0xbe, 0x72, - 0x7a, 0xdb, 0x91, 0x0a, 0x7a, 0xb8, 0xc2, 0x36, 0x50, 0xd7, 0x06, 0x72, 0x5c, 0xb2, 0xbd, 0x25, - 0xd7, 0x39, 0xe2, 0xfa, 0xfd, 0xcd, 0xb2, 0xde, 0xd3, 0x69, 0x18, 0x07, 0x86, 0xfa, 0x1d, 0xab, - 0xe9, 0xca, 0x9a, 0x53, 0xad, 0xa4, 0xf0, 0xed, 0x41, 0xc3, 0x69, 0xa6, 0x50, 0x5e, 0x8b, 0x12, - 0xdf, 0xf3, 0x44, 0xd0, 0x15, 0x91, 0xef, 0x79, 0x22, 0x58, 0x0f, 0x80, 0x6b, 0x9d, 0x86, 0xc3, - 0xa9, 0x16, 0xca, 0xcd, 0xd2, 0x0d, 0xae, 0x9c, 0x31, 0x58, 0x8b, 0x5c, 0x2b, 0xbd, 0xb5, 0x62, - 0x7b, 0xe6, 0x4d, 0x28, 0x2d, 0x93, 0xb0, 0xdb, 0xe7, 0x62, 0x6e, 0x0f, 0xc4, 0x25, 0xdb, 0x81, - 0xad, 0x7d, 0x3e, 0x99, 0x2e, 0x44, 0x67, 0x8c, 0xe6, 0x2e, 0x14, 0x3f, 0xe7, 0xaa, 0x77, 0x7a, - 0xf0, 0xb0, 0x32, 0xbf, 0x69, 0xf0, 0xb2, 0x14, 0x5c, 0x0c, 0x1e, 0x32, 0x53, 0xf0, 0x88, 0x63, - 0x76, 0xc1, 0x2a, 0x11, 0xcb, 0x2b, 0xdd, 0xac, 0xeb, 0x58, 0x35, 0x9e, 0x46, 0xff, 0xd6, 0x3f, - 0xd0, 0x7f, 0xab, 0x49, 0x63, 0x77, 0xa0, 0x8a, 0xe4, 0xa6, 0x76, 0xc2, 0x94, 0x9b, 0xa7, 0xe2, - 0x37, 0x8f, 0x7b, 0x25, 0x52, 0xc1, 0x62, 0x16, 0x17, 0x43, 0xfa, 0xa3, 0x03, 0x6c, 0x2f, 0x8c, - 0xa6, 0x13, 0xae, 0x43, 0x19, 0x2f, 0x27, 0xf5, 0x33, 0xd3, 0x1d, 0xbd, 0x46, 0x0e, 0xbd, 0x20, - 0xef, 0x6d, 0xe6, 0xc2, 0x22, 0xd6, 0xdd, 0xc6, 0xab, 0xbd, 0x3a, 0xac, 0x3b, 0x04, 0x05, 0x81, - 0xf8, 0x11, 0x14, 0x8c, 0xda, 0xa9, 0xd5, 0xf2, 0x8d, 0xc6, 0xe6, 0x5d, 0x0c, 0x62, 0x9e, 0xcd, - 0x6f, 0xde, 0x83, 0xe2, 0x63, 0x15, 0x3c, 0x40, 0xb0, 0x2e, 0x01, 0xca, 0x76, 0xb0, 0x26, 0x99, - 0x62, 0xa4, 0x82, 0x3e, 0xaa, 0x66, 0x31, 0xe9, 0xb8, 0x7b, 0xc5, 0x60, 0x7b, 0xb7, 0x80, 0xf4, - 0xbb, 0x4e, 0xf3, 0x3b, 0x07, 0x4a, 0xfd, 0xd9, 0x62, 0x93, 0x3b, 0x4b, 0x26, 0x72, 0x67, 0x77, - 0x63, 0x0b, 0xd6, 0xc8, 0x3a, 0x05, 0x72, 0xf6, 0xed, 0x41, 0x26, 0x29, 0x1e, 0x38, 0x70, 0x7e, - 0x4f, 0xf0, 0x74, 0x34, 0xee, 0xcf, 0x94, 0x55, 0x46, 0x1d, 0xca, 0x5a, 0x6a, 0x3e, 0x19, 0x8c, - 0xe4, 0x34, 0xd6, 0x56, 0x5f, 0x40, 0xae, 0x5d, 0xf4, 0xa0, 0x40, 0x4d, 0xc8, 0xa8, 0xcb, 0x18, - 0x58, 0x96, 0xf0, 0x40, 0x0c, 0xe2, 0x69, 0x34, 0x14, 0x29, 0xbd, 0x8c, 0x79, 0x0f, 0xd0, 0xf5, - 0x05, 0x79, 0x50, 0xb6, 0x94, 0x40, 0x3b, 0xd1, 0xdb, 0x98, 0xf7, 0x4a, 0xe8, 0xe9, 0xa3, 0x03, - 0x77, 0x9d, 0x84, 0xf8, 0x6a, 0x6e, 0x99, 0x5d, 0xc9, 0x60, 0xb7, 0x21, 0xa7, 0x67, 0xf8, 0x2a, - 0x62, 0x5f, 0x57, 0x37, 0x63, 0xb3, 0xfa, 0x77, 0xf6, 0xb0, 0xc0, 0xb6, 0xf7, 0x27, 0x6a, 0x88, - 0xda, 0xa3, 0xe7, 0xfe, 0x3f, 0xd9, 0xe1, 0x27, 0x50, 0x18, 0xd2, 0xe5, 0x6c, 0x93, 0xd7, 0x36, - 0x37, 0x79, 0xe2, 0x3f, 0xcb, 0xb3, 0x65, 0xb6, 0xd5, 0xdb, 0x50, 0xa1, 0xf0, 0x53, 0x91, 0xaa, - 0x50, 0xc6, 0x78, 0x18, 0xc5, 0x6d, 0x77, 0xc6, 0x58, 0xfc, 0x45, 0x98, 0xb6, 0x70, 0xd9, 0xfc, - 0x06, 0xca, 0x8f, 0xb8, 0xd2, 0x54, 0xdb, 0x7b, 0x80, 0xb2, 0xa5, 0x0f, 0x18, 0xc7, 0xc8, 0x96, - 0x3e, 0x59, 0x3e, 0x86, 0xad, 0x84, 0xa7, 0x5a, 0xd9, 0x49, 0x39, 0xe3, 0x82, 0x5f, 0xf2, 0x54, - 0xef, 0x09, 0xfd, 0x50, 0x70, 0x5f, 0xa4, 0x9e, 0xa9, 0x6a, 0xde, 0x81, 0xea, 0x09, 0x3f, 0x5e, - 0xcd, 0x20, 0x64, 0xaf, 0x46, 0xc6, 0xf2, 0xe4, 0xec, 0xea, 0xe4, 0xee, 0xbd, 0xd7, 0x7f, 0xd4, - 0x32, 0x2f, 0x8f, 0x6a, 0xce, 0xab, 0xa3, 0x9a, 0xf3, 0xfb, 0x51, 0xcd, 0xf9, 0xe1, 0xb8, 0x96, - 0x79, 0x75, 0x5c, 0xcb, 0xbc, 0x3e, 0xae, 0x65, 0xbe, 0x6e, 0x06, 0xa1, 0x1e, 0x4f, 0x87, 0xed, - 0x91, 0x8c, 0x3a, 0xf6, 0x6b, 0xd1, 0xfc, 0x7c, 0xa8, 0xfc, 0xe7, 0xe6, 0xd3, 0x6e, 0x58, 0xa0, - 0x11, 0xb8, 0xf9, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcb, 0x5f, 0xa8, 0xb5, 0x4f, 0x0a, 0x00, - 0x00, + // 1084 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xf6, 0xda, 0x8e, 0x1d, 0x3f, 0xc7, 0x0d, 0x1a, 0x45, 0xe9, 0x26, 0x80, 0x6d, 0xdc, 0xa2, + 0x5a, 0x48, 0xd8, 0x6a, 0x5a, 0x21, 0xda, 0x0b, 0xad, 0xc3, 0xaf, 0x48, 0x2d, 0x87, 0x8d, 0x0b, + 0x12, 0x17, 0x6b, 0xec, 0x9d, 0xae, 0x57, 0xf1, 0xee, 0xac, 0x76, 0xc6, 0x89, 0x7d, 0xe3, 0x06, + 0x47, 0x4e, 0x9c, 0xb9, 0xc2, 0x5f, 0xd2, 0x03, 0x87, 0x1c, 0x7b, 0x88, 0x02, 0x24, 0x17, 0xc4, + 0x5f, 0x81, 0xde, 0x9b, 0xf1, 0x8f, 0x90, 0xba, 0xf4, 0xc8, 0x29, 0xf3, 0xbe, 0xf7, 0x66, 0x76, + 0xde, 0xf7, 0x7d, 0x6f, 0x62, 0xb8, 0x35, 0x90, 0x2a, 0x92, 0xaa, 0xdd, 0xe7, 0x4a, 0xb4, 0x79, + 0x7f, 0x10, 0xb6, 0x8f, 0xef, 0xf6, 0x85, 0xe6, 0x77, 0x29, 0x68, 0x25, 0xa9, 0xd4, 0x92, 0xb9, + 0xa6, 0xa8, 0x85, 0x45, 0x2d, 0xc2, 0x6d, 0xd1, 0xee, 0x56, 0x20, 0x03, 0x49, 0x45, 0x6d, 0x5c, + 0x99, 0xfa, 0xdd, 0xb7, 0xb5, 0x88, 0x7d, 0x91, 0x46, 0x61, 0xac, 0xcd, 0x99, 0x7a, 0x9a, 0x08, + 0x65, 0x93, 0x3b, 0x81, 0x94, 0xc1, 0x48, 0xb4, 0x29, 0xea, 0x8f, 0x9f, 0xb7, 0x79, 0x3c, 0x35, + 0xa9, 0xc6, 0x6f, 0x39, 0x80, 0xee, 0xc4, 0x13, 0x2a, 0x91, 0xb1, 0x12, 0x6c, 0x1b, 0x0a, 0x43, + 0x11, 0x06, 0x43, 0xed, 0x3a, 0x75, 0xa7, 0x99, 0xf3, 0x6c, 0xc4, 0x1a, 0x50, 0xd0, 0x93, 0x21, + 0x57, 0x43, 0x37, 0x5b, 0x77, 0x9a, 0xa5, 0x0e, 0x5c, 0x9c, 0xd7, 0x0a, 0xdd, 0xc9, 0x97, 0x5c, + 0x0d, 0x3d, 0x9b, 0x61, 0xef, 0x40, 0x69, 0x20, 0x7d, 0xa1, 0x12, 0x3e, 0x10, 0x6e, 0x0e, 0xcb, + 0xbc, 0x05, 0xc0, 0x18, 0xe4, 0x31, 0x70, 0xf3, 0x75, 0xa7, 0x59, 0xf1, 0x68, 0x8d, 0x98, 0xcf, + 0x35, 0x77, 0xd7, 0xa8, 0x98, 0xd6, 0xec, 0x26, 0x14, 0x53, 0x7e, 0xd2, 0x1b, 0xc9, 0xc0, 0x2d, + 0x10, 0x5c, 0x48, 0xf9, 0xc9, 0x13, 0x19, 0xb0, 0x67, 0x90, 0x1f, 0xc9, 0x40, 0xb9, 0xc5, 0x7a, + 0xae, 0x59, 0xde, 0x6b, 0xb6, 0x56, 0x11, 0xd4, 0x7a, 0xdc, 0xd9, 0x3f, 0x78, 0x2a, 0x94, 0xe2, + 0x81, 0x78, 0x22, 0x83, 0xce, 0xcd, 0x17, 0xe7, 0xb5, 0xcc, 0xaf, 0xbf, 0xd7, 0x36, 0xaf, 0xe2, + 0xca, 0xa3, 0xe3, 0xf0, 0x0e, 0x61, 0xfc, 0x5c, 0xba, 0xeb, 0xe6, 0x0e, 0xb8, 0x66, 0xef, 0x02, + 0x04, 0x5c, 0xf5, 0x4e, 0x78, 0xac, 0x85, 0xef, 0x96, 0x88, 0x89, 0x52, 0xc0, 0xd5, 0x37, 0x04, + 0xb0, 0x1d, 0x58, 0xc7, 0xf4, 0x58, 0x09, 0xdf, 0x05, 0x4a, 0x16, 0x03, 0xae, 0x9e, 0x29, 0xe1, + 0xb3, 0xdb, 0x90, 0xd5, 0x13, 0xb7, 0x5c, 0x77, 0x9a, 0xe5, 0xbd, 0xad, 0x96, 0xa1, 0xbd, 0x35, + 0xa3, 0xbd, 0xf5, 0x38, 0x9e, 0x7a, 0x59, 0x3d, 0x41, 0xa6, 0x74, 0x18, 0x09, 0xa5, 0x79, 0x94, + 0xb8, 0x1b, 0x86, 0xa9, 0x39, 0xc0, 0xee, 0x43, 0x41, 0x1c, 0x8b, 0x58, 0x2b, 0xb7, 0x42, 0xad, + 0x6e, 0xb7, 0x16, 0xda, 0x9a, 0x4e, 0x3f, 0xc3, 0x74, 0x27, 0x8f, 0x8d, 0x79, 0xb6, 0xf6, 0x61, + 0xfe, 0x87, 0x9f, 0x6b, 0x99, 0xc6, 0x59, 0x16, 0x2a, 0x9d, 0x91, 0x1c, 0x1c, 0xfd, 0xa7, 0xa2, + 0x0c, 0xf2, 0xf8, 0x49, 0xa3, 0xa7, 0x47, 0x6b, 0x6c, 0x6c, 0x30, 0xe4, 0x61, 0xdc, 0x0b, 0x7d, + 0x2b, 0x60, 0x91, 0xe2, 0x03, 0x9f, 0xd5, 0xa0, 0x3c, 0xe2, 0x4a, 0xf7, 0x06, 0x32, 0x8a, 0x42, + 0x4d, 0x2a, 0x96, 0x3c, 0x40, 0x68, 0x9f, 0x90, 0x57, 0x6a, 0x59, 0x05, 0x38, 0xe6, 0xa3, 0xd0, + 0xe7, 0x5a, 0xa6, 0xca, 0xca, 0xb9, 0x84, 0xb0, 0x3b, 0xb0, 0x19, 0x8b, 0x89, 0xee, 0x2d, 0x15, + 0x15, 0xa9, 0xe8, 0x06, 0xc2, 0x5f, 0x2f, 0x0a, 0xdf, 0x82, 0x1c, 0x4f, 0x12, 0xab, 0x11, 0x2e, + 0x8d, 0xd9, 0x62, 0x25, 0x62, 0x35, 0x56, 0xa4, 0x10, 0x99, 0xcd, 0x02, 0xcc, 0x85, 0x62, 0x2a, + 0xd4, 0x78, 0xa4, 0x15, 0x09, 0x54, 0xf2, 0x66, 0x21, 0xdb, 0x85, 0x75, 0x71, 0x1c, 0xfa, 0x22, + 0x1e, 0x08, 0x92, 0xa9, 0xe4, 0xcd, 0x63, 0xcc, 0x25, 0xa9, 0x4c, 0xa4, 0x12, 0xa9, 0x55, 0x65, + 0x1e, 0x5b, 0x7a, 0x7f, 0x71, 0xe0, 0xc6, 0x55, 0x1b, 0xb1, 0x0f, 0xa0, 0x14, 0xa9, 0xa0, 0x17, + 0xc6, 0xbe, 0x98, 0x10, 0xc5, 0x95, 0x4e, 0xe5, 0xef, 0xf3, 0xda, 0x02, 0xf4, 0xd6, 0x23, 0x15, + 0x1c, 0xe0, 0x0a, 0xdb, 0x40, 0x5f, 0x1b, 0xca, 0x71, 0xc9, 0x0e, 0xe7, 0x5a, 0xe7, 0x48, 0xeb, + 0xf7, 0x57, 0xdb, 0xfa, 0x50, 0xa7, 0x61, 0x1c, 0x18, 0xe9, 0xb7, 0xac, 0xa7, 0x37, 0x96, 0x40, + 0xb5, 0xb0, 0xc2, 0x77, 0x67, 0x75, 0xa7, 0x91, 0x42, 0x79, 0x29, 0x4b, 0x7a, 0x4f, 0x13, 0x41, + 0x57, 0x44, 0xbd, 0xa7, 0x89, 0x60, 0x07, 0x00, 0x5c, 0xeb, 0x34, 0xec, 0x8f, 0xb5, 0x50, 0x6e, + 0x96, 0x6e, 0x70, 0xeb, 0x35, 0x83, 0x35, 0xab, 0xb5, 0xd6, 0x5b, 0xda, 0x6c, 0xbf, 0x79, 0x0f, + 0x4a, 0xf3, 0x22, 0xec, 0xf6, 0x48, 0x4c, 0xed, 0x07, 0x71, 0xc9, 0xb6, 0x60, 0xed, 0x98, 0x8f, + 0xc6, 0x33, 0xd3, 0x99, 0xa0, 0xb1, 0x0f, 0xc5, 0x2f, 0xb8, 0x3a, 0xb8, 0x3e, 0x78, 0xb8, 0x33, + 0xbf, 0x6a, 0xf0, 0xb2, 0x94, 0x9c, 0x0d, 0x1e, 0x2a, 0x53, 0xf0, 0x48, 0x63, 0xb6, 0x6d, 0x9d, + 0x88, 0xdb, 0x37, 0x3a, 0x59, 0xd7, 0xb1, 0x6e, 0xbc, 0xce, 0xfe, 0xfd, 0x7f, 0xb1, 0xff, 0x46, + 0x93, 0xc6, 0x1e, 0x40, 0x05, 0xc5, 0x4d, 0xed, 0x84, 0x29, 0x37, 0x4f, 0x9b, 0x5f, 0x3d, 0xee, + 0x1b, 0x91, 0x0a, 0x66, 0xb3, 0x38, 0x1b, 0xd2, 0x9f, 0x1c, 0x60, 0x87, 0x61, 0x34, 0x1e, 0x71, + 0x1d, 0xca, 0x78, 0x3e, 0xa9, 0x9f, 0x9b, 0xee, 0xe8, 0x35, 0x72, 0xe8, 0x05, 0x79, 0x6f, 0xb5, + 0x16, 0x96, 0xb1, 0xce, 0x3a, 0x5e, 0xed, 0xf4, 0xbc, 0xe6, 0x10, 0x15, 0x44, 0xe2, 0xc7, 0x50, + 0x30, 0x6e, 0xa7, 0x56, 0xcb, 0x7b, 0xf5, 0xd5, 0xa7, 0x18, 0xc6, 0x3c, 0x5b, 0xdf, 0x78, 0x04, + 0xc5, 0xa7, 0x2a, 0xf8, 0x14, 0xc9, 0xda, 0x01, 0xb4, 0x6d, 0x6f, 0xc9, 0x32, 0xc5, 0x48, 0x05, + 0x5d, 0x74, 0xcd, 0x6c, 0xd2, 0xf1, 0xf4, 0x0d, 0xc3, 0xed, 0xc3, 0x02, 0xca, 0xef, 0x3a, 0x8d, + 0xef, 0x1d, 0x28, 0x75, 0x27, 0xb3, 0x43, 0x1e, 0xcc, 0x95, 0xc8, 0xbd, 0xbe, 0x1b, 0xbb, 0x61, + 0x49, 0xac, 0x6b, 0x24, 0x67, 0xdf, 0x9c, 0x64, 0xb2, 0xe2, 0x99, 0x03, 0x9b, 0x87, 0x82, 0xa7, + 0x83, 0x61, 0x77, 0xa2, 0xac, 0x33, 0x6a, 0x50, 0xd6, 0x52, 0xf3, 0x51, 0x6f, 0x20, 0xc7, 0xb1, + 0xb6, 0xfe, 0x02, 0x82, 0xf6, 0x11, 0x41, 0x83, 0x9a, 0x94, 0x71, 0x97, 0x09, 0x70, 0x5b, 0xc2, + 0x03, 0xd1, 0x8b, 0xc7, 0x51, 0x5f, 0xa4, 0xf4, 0x32, 0xe6, 0x3d, 0x40, 0xe8, 0x2b, 0x42, 0xd0, + 0xb6, 0x54, 0x40, 0x27, 0xd1, 0xdb, 0x98, 0xf7, 0x4a, 0x88, 0x74, 0x11, 0xc0, 0x53, 0x47, 0x21, + 0xbe, 0x9a, 0x6b, 0xe6, 0x54, 0x0a, 0xd8, 0x47, 0x90, 0xd3, 0x13, 0x7c, 0x15, 0xb1, 0xaf, 0xdb, + 0xab, 0xb9, 0x59, 0xfc, 0x77, 0xf6, 0x70, 0x83, 0x6d, 0xef, 0x2f, 0xf4, 0x10, 0xb5, 0x47, 0xcf, + 0xfd, 0xff, 0xb2, 0xc3, 0x4f, 0xa0, 0xd0, 0xa7, 0xcb, 0xd9, 0x26, 0xef, 0xac, 0x6e, 0xf2, 0xca, + 0xff, 0x2c, 0xcf, 0x6e, 0x33, 0xad, 0x76, 0x1e, 0xbd, 0xfc, 0xb3, 0x9a, 0x79, 0x71, 0x51, 0x75, + 0x4e, 0x2f, 0xaa, 0xce, 0x1f, 0x17, 0x55, 0xe7, 0xc7, 0xcb, 0x6a, 0xe6, 0xf4, 0xb2, 0x9a, 0x79, + 0x79, 0x59, 0xcd, 0x7c, 0xdb, 0x08, 0x42, 0x3d, 0x1c, 0xf7, 0x5b, 0x03, 0x19, 0xb5, 0xed, 0x0f, + 0x2b, 0xf3, 0xe7, 0x43, 0xe5, 0x1f, 0x99, 0x5f, 0x41, 0xfd, 0x02, 0xb9, 0xe5, 0xde, 0x3f, 0x01, + 0x00, 0x00, 0xff, 0xff, 0xa7, 0x2a, 0xb9, 0x0c, 0x7a, 0x09, 0x00, 0x00, } func (m *TxResponse) Marshal() (dAtA []byte, err error) { @@ -1737,116 +1566,6 @@ func (m *SearchBlocksResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *BlockVersion) 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 *BlockVersion) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.App != 0 { - i = encodeVarintAbci(dAtA, i, uint64(m.App)) - i-- - dAtA[i] = 0x10 - } - if m.Block != 0 { - i = encodeVarintAbci(dAtA, i, uint64(m.Block)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *LastBlockID) 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 *LastBlockID) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LastBlockID) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Parts != nil { - { - size, err := m.Parts.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAbci(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintAbci(dAtA, i, uint64(len(m.Hash))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PartSetHeader) 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 *PartSetHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintAbci(dAtA, i, uint64(len(m.Hash))) - i-- - dAtA[i] = 0x12 - } - if m.Total != 0 { - i = encodeVarintAbci(dAtA, i, uint64(m.Total)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func encodeVarintAbci(dAtA []byte, offset int, v uint64) int { offset -= sovAbci(v) base := offset @@ -2190,54 +1909,6 @@ func (m *SearchBlocksResult) Size() (n int) { return n } -func (m *BlockVersion) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Block != 0 { - n += 1 + sovAbci(uint64(m.Block)) - } - if m.App != 0 { - n += 1 + sovAbci(uint64(m.App)) - } - return n -} - -func (m *LastBlockID) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Hash) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - if m.Parts != nil { - l = m.Parts.Size() - n += 1 + l + sovAbci(uint64(l)) - } - return n -} - -func (m *PartSetHeader) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Total != 0 { - n += 1 + sovAbci(uint64(m.Total)) - } - l = len(m.Hash) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - return n -} - func sovAbci(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -4548,317 +4219,6 @@ func (m *SearchBlocksResult) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockVersion) 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 ErrIntOverflowAbci - } - 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: BlockVersion: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockVersion: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - m.Block = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Block |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field App", wireType) - } - m.App = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.App |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAbci(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAbci - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LastBlockID) 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 ErrIntOverflowAbci - } - 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: LastBlockID: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LastBlockID: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAbci - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) - if m.Hash == nil { - m.Hash = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAbci - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Parts == nil { - m.Parts = &PartSetHeader{} - } - if err := m.Parts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAbci(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAbci - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PartSetHeader) 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 ErrIntOverflowAbci - } - 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: PartSetHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PartSetHeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) - } - m.Total = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Total |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAbci - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) - if m.Hash == nil { - m.Hash = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAbci(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAbci - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func skipAbci(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/types/tx/signing/signing.pb.go b/types/tx/signing/signing.pb.go index e037c6a15236..54beb1b1fbf7 100644 --- a/types/tx/signing/signing.pb.go +++ b/types/tx/signing/signing.pb.go @@ -43,7 +43,9 @@ const ( SignMode_SIGN_MODE_DIRECT SignMode = 1 // SIGN_MODE_TEXTUAL is a future signing mode that will verify some // human-readable textual representation on top of the binary representation - // from SIGN_MODE_DIRECT. It is currently not supported. + // from SIGN_MODE_DIRECT. It is currently experimental, and should be used + // for testing purposes only, until Textual is fully released. Please follow + // the tracking issue https://github.com/cosmos/cosmos-sdk/issues/11970. SignMode_SIGN_MODE_TEXTUAL SignMode = 2 // SIGN_MODE_DIRECT_AUX specifies a signing mode which uses // SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not diff --git a/x/auth/block/query.go b/x/auth/block/query.go index 3614ce597756..cfaafed638cc 100644 --- a/x/auth/block/query.go +++ b/x/auth/block/query.go @@ -81,7 +81,6 @@ func GetBlockByHeight(clientCtx client.Context, height *int64) (*sdk.BlockRespon } func GetBlockByHash(clientCtx client.Context, hashHexString string) (*sdk.BlockResponse, error) { - hash, err := hex.DecodeString(hashHexString) if err != nil { return nil, err diff --git a/x/staking/types/tx.pb.go b/x/staking/types/tx.pb.go index a92163e70850..a2b35f20cbc9 100644 --- a/x/staking/types/tx.pb.go +++ b/x/staking/types/tx.pb.go @@ -44,7 +44,8 @@ type MsgCreateValidator struct { Commission CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"` MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation"` // Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. - // The validator address and delegator address are always same while creating validator. + // The validator address bytes and delegator address bytes refer to the same account while creating validator (defer + // only in bech32 notation). DelegatorAddress string `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // Deprecated: Do not use. ValidatorAddress string `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Pubkey *types.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` diff --git a/x/tx/textual/internal/textualpb/textual.proto b/x/tx/textual/internal/textualpb/textual.proto index 3a3056ef8539..efd8d35275bd 100644 --- a/x/tx/textual/internal/textualpb/textual.proto +++ b/x/tx/textual/internal/textualpb/textual.proto @@ -58,7 +58,7 @@ message SignerData { } // Envelope is an internal data structure used to generate the tx envelope -// screens. It is derived from the TextualData struct (also internal) which +// screens. It is derived from the TextualData struct (also internal) which // contains the three following fields: // - body_bytes (from the original tx), // - auth_info_bytes (from the original tx), @@ -67,23 +67,22 @@ message SignerData { // If any of the three structs above is modified, then this Envelope message // also needs to be updated. message Envelope { - string chain_id = 1; - uint64 account_number = 2; - uint64 sequence = 3; - string address = 4; - google.protobuf.Any public_key = 5; - repeated google.protobuf.Any message = 6; - string memo = 7; - repeated cosmos.base.v1beta1.Coin fees = 8; - string fee_payer = 9; - string fee_granter = 10; - repeated cosmos.base.v1beta1.Coin tip = 11; - string tipper = 12; - uint64 gas_limit = 13; - uint64 timeout_height = 14; - repeated cosmos.tx.v1beta1.SignerInfo other_signer = 15; - repeated google.protobuf.Any extension_options = 16; + string chain_id = 1; + uint64 account_number = 2; + uint64 sequence = 3; + string address = 4; + google.protobuf.Any public_key = 5; + repeated google.protobuf.Any message = 6; + string memo = 7; + repeated cosmos.base.v1beta1.Coin fees = 8; + string fee_payer = 9; + string fee_granter = 10; + repeated cosmos.base.v1beta1.Coin tip = 11; + string tipper = 12; + uint64 gas_limit = 13; + uint64 timeout_height = 14; + repeated cosmos.tx.v1beta1.SignerInfo other_signer = 15; + repeated google.protobuf.Any extension_options = 16; repeated google.protobuf.Any non_critical_extension_options = 17; - string hash_of_raw_bytes = 18; + string hash_of_raw_bytes = 18; } - From 984270633e4aea55dec4ae1b55713416bf1369b4 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Sat, 21 Jan 2023 17:31:54 -0500 Subject: [PATCH 05/34] fixing int overflow? and some proto issues --- api/cosmos/base/abci/v1beta1/abci.pulsar.go | 306 ++++++++++---------- proto/cosmos/base/abci/v1beta1/abci.proto | 11 +- types/abci.pb.go | 194 +++++++------ types/result.go | 4 +- x/auth/block/query.go | 2 +- x/auth/client/cli/query.go | 8 +- 6 files changed, 273 insertions(+), 252 deletions(-) diff --git a/api/cosmos/base/abci/v1beta1/abci.pulsar.go b/api/cosmos/base/abci/v1beta1/abci.pulsar.go index 9c2cb6c5cce7..d04e1cccb986 100644 --- a/api/cosmos/base/abci/v1beta1/abci.pulsar.go +++ b/api/cosmos/base/abci/v1beta1/abci.pulsar.go @@ -7775,32 +7775,32 @@ func (x *fastReflection_SearchBlocksResult) Interface() protoreflect.ProtoMessag // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_SearchBlocksResult) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TotalCount != uint64(0) { - value := protoreflect.ValueOfUint64(x.TotalCount) + if x.TotalCount != int64(0) { + value := protoreflect.ValueOfInt64(x.TotalCount) if !f(fd_SearchBlocksResult_total_count, value) { return } } - if x.Count != uint64(0) { - value := protoreflect.ValueOfUint64(x.Count) + if x.Count != int64(0) { + value := protoreflect.ValueOfInt64(x.Count) if !f(fd_SearchBlocksResult_count, value) { return } } - if x.PageNumber != uint64(0) { - value := protoreflect.ValueOfUint64(x.PageNumber) + if x.PageNumber != int64(0) { + value := protoreflect.ValueOfInt64(x.PageNumber) if !f(fd_SearchBlocksResult_page_number, value) { return } } - if x.PageTotal != uint64(0) { - value := protoreflect.ValueOfUint64(x.PageTotal) + if x.PageTotal != int64(0) { + value := protoreflect.ValueOfInt64(x.PageTotal) if !f(fd_SearchBlocksResult_page_total, value) { return } } - if x.Limit != uint64(0) { - value := protoreflect.ValueOfUint64(x.Limit) + if x.Limit != int64(0) { + value := protoreflect.ValueOfInt64(x.Limit) if !f(fd_SearchBlocksResult_limit, value) { return } @@ -7827,15 +7827,15 @@ func (x *fastReflection_SearchBlocksResult) Range(f func(protoreflect.FieldDescr func (x *fastReflection_SearchBlocksResult) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": - return x.TotalCount != uint64(0) + return x.TotalCount != int64(0) case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": - return x.Count != uint64(0) + return x.Count != int64(0) case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": - return x.PageNumber != uint64(0) + return x.PageNumber != int64(0) case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": - return x.PageTotal != uint64(0) + return x.PageTotal != int64(0) case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": - return x.Limit != uint64(0) + return x.Limit != int64(0) case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": return len(x.Blocks) != 0 default: @@ -7855,15 +7855,15 @@ func (x *fastReflection_SearchBlocksResult) Has(fd protoreflect.FieldDescriptor) func (x *fastReflection_SearchBlocksResult) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": - x.TotalCount = uint64(0) + x.TotalCount = int64(0) case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": - x.Count = uint64(0) + x.Count = int64(0) case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": - x.PageNumber = uint64(0) + x.PageNumber = int64(0) case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": - x.PageTotal = uint64(0) + x.PageTotal = int64(0) case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": - x.Limit = uint64(0) + x.Limit = int64(0) case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": x.Blocks = nil default: @@ -7884,19 +7884,19 @@ func (x *fastReflection_SearchBlocksResult) Get(descriptor protoreflect.FieldDes switch descriptor.FullName() { case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": value := x.TotalCount - return protoreflect.ValueOfUint64(value) + return protoreflect.ValueOfInt64(value) case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": value := x.Count - return protoreflect.ValueOfUint64(value) + return protoreflect.ValueOfInt64(value) case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": value := x.PageNumber - return protoreflect.ValueOfUint64(value) + return protoreflect.ValueOfInt64(value) case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": value := x.PageTotal - return protoreflect.ValueOfUint64(value) + return protoreflect.ValueOfInt64(value) case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": value := x.Limit - return protoreflect.ValueOfUint64(value) + return protoreflect.ValueOfInt64(value) case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": if len(x.Blocks) == 0 { return protoreflect.ValueOfList(&_SearchBlocksResult_6_list{}) @@ -7924,15 +7924,15 @@ func (x *fastReflection_SearchBlocksResult) Get(descriptor protoreflect.FieldDes func (x *fastReflection_SearchBlocksResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": - x.TotalCount = value.Uint() + x.TotalCount = value.Int() case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": - x.Count = value.Uint() + x.Count = value.Int() case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": - x.PageNumber = value.Uint() + x.PageNumber = value.Int() case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": - x.PageTotal = value.Uint() + x.PageTotal = value.Int() case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": - x.Limit = value.Uint() + x.Limit = value.Int() case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": lv := value.List() clv := lv.(*_SearchBlocksResult_6_list) @@ -7987,15 +7987,15 @@ func (x *fastReflection_SearchBlocksResult) Mutable(fd protoreflect.FieldDescrip func (x *fastReflection_SearchBlocksResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cosmos.base.abci.v1beta1.SearchBlocksResult.total_count": - return protoreflect.ValueOfUint64(uint64(0)) + return protoreflect.ValueOfInt64(int64(0)) case "cosmos.base.abci.v1beta1.SearchBlocksResult.count": - return protoreflect.ValueOfUint64(uint64(0)) + return protoreflect.ValueOfInt64(int64(0)) case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_number": - return protoreflect.ValueOfUint64(uint64(0)) + return protoreflect.ValueOfInt64(int64(0)) case "cosmos.base.abci.v1beta1.SearchBlocksResult.page_total": - return protoreflect.ValueOfUint64(uint64(0)) + return protoreflect.ValueOfInt64(int64(0)) case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": - return protoreflect.ValueOfUint64(uint64(0)) + return protoreflect.ValueOfInt64(int64(0)) case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": list := []*BlockResponse{} return protoreflect.ValueOfList(&_SearchBlocksResult_6_list{list: &list}) @@ -8222,7 +8222,7 @@ func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.TotalCount |= uint64(b&0x7F) << shift + x.TotalCount |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8241,7 +8241,7 @@ func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.Count |= uint64(b&0x7F) << shift + x.Count |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8260,7 +8260,7 @@ func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.PageNumber |= uint64(b&0x7F) << shift + x.PageNumber |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8279,7 +8279,7 @@ func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.PageTotal |= uint64(b&0x7F) << shift + x.PageTotal |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8298,7 +8298,7 @@ func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.Limit |= uint64(b&0x7F) << shift + x.Limit |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9160,15 +9160,15 @@ type SearchBlocksResult struct { unknownFields protoimpl.UnknownFields // Count of all blocks - TotalCount uint64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` + TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // Count of blocks in current page - Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // Index of current page, start from 1 - PageNumber uint64 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` + PageNumber int64 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` // Count of total pages - PageTotal uint64 `protobuf:"varint,4,opt,name=page_total,json=pageTotal,proto3" json:"page_total,omitempty"` + PageTotal int64 `protobuf:"varint,4,opt,name=page_total,json=pageTotal,proto3" json:"page_total,omitempty"` // Max count blocks per page - Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` // List of blocks in current page Blocks []*BlockResponse `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` } @@ -9193,35 +9193,35 @@ func (*SearchBlocksResult) Descriptor() ([]byte, []int) { return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{11} } -func (x *SearchBlocksResult) GetTotalCount() uint64 { +func (x *SearchBlocksResult) GetTotalCount() int64 { if x != nil { return x.TotalCount } return 0 } -func (x *SearchBlocksResult) GetCount() uint64 { +func (x *SearchBlocksResult) GetCount() int64 { if x != nil { return x.Count } return 0 } -func (x *SearchBlocksResult) GetPageNumber() uint64 { +func (x *SearchBlocksResult) GetPageNumber() int64 { if x != nil { return x.PageNumber } return 0 } -func (x *SearchBlocksResult) GetPageTotal() uint64 { +func (x *SearchBlocksResult) GetPageTotal() int64 { if x != nil { return x.PageTotal } return 0 } -func (x *SearchBlocksResult) GetLimit() uint64 { +func (x *SearchBlocksResult) GetLimit() int64 { if x != nil { return x.Limit } @@ -9275,7 +9275,7 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{ 0x12, 0x34, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xdc, 0x02, 0x0a, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xe0, 0x02, 0x0a, 0x0d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, @@ -9297,110 +9297,110 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{ 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x65, 0x72, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xa9, 0x01, 0x0a, 0x0e, - 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x2a, - 0x0a, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x42, 0x0d, 0xea, 0xde, 0x1f, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x52, 0x08, 0x6d, 0x73, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, - 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x53, 0x0a, 0x06, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x42, 0x14, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x0c, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x72, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x61, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0x80, 0xdc, 0x20, 0x01, 0x22, + 0xa9, 0x01, 0x0a, 0x0e, 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, + 0x6f, 0x67, 0x12, 0x2a, 0x0a, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0d, 0xea, 0xde, 0x1f, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x52, 0x08, 0x6d, 0x73, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, + 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, + 0x12, 0x53, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, + 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x14, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, + 0x0c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x06, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x72, 0x0a, 0x0b, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x49, + 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, + 0x33, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x22, 0x43, 0x0a, 0x07, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x19, + 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x07, 0x67, 0x61, 0x73, 0x55, 0x73, 0x65, 0x64, 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, + 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x34, + 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, + 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, + 0x79, 0x52, 0x0c, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x3a, + 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x08, + 0x67, 0x61, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x33, 0x0a, 0x09, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x43, 0x0a, 0x07, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x67, - 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x61, - 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x61, - 0x73, 0x55, 0x73, 0x65, 0x64, 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, - 0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x34, 0x0a, 0x06, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0c, 0x6d, - 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, - 0x00, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, - 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x08, 0xc8, - 0xde, 0x1f, 0x00, 0xd0, 0xde, 0x1f, 0x01, 0x52, 0x07, 0x67, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x38, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, - 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x40, 0x0a, 0x07, 0x4d, 0x73, - 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x73, 0x67, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x3a, 0x06, 0x18, 0x01, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x87, 0x01, 0x0a, - 0x09, 0x54, 0x78, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x42, 0x02, 0x18, 0x01, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x6e, 0x79, 0x52, 0x0c, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, - 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xdc, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, - 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x36, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, + 0x6f, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0xd0, 0xde, 0x1f, 0x01, 0x52, 0x07, 0x67, 0x61, 0x73, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x38, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x74, 0x78, 0x73, 0x3a, - 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xe8, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, - 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, - 0x42, 0xe7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x09, 0x41, 0x62, 0x63, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x61, 0x62, 0x63, - 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x62, 0x63, 0x69, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x41, 0xaa, 0x02, 0x18, 0x43, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x62, 0x63, 0x69, 0x2e, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, - 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0xe2, 0x02, 0x24, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, - 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xd8, 0xe1, 0x1e, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x40, + 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x73, 0x67, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x73, 0x67, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x06, 0x18, 0x01, 0x80, 0xdc, 0x20, 0x01, + 0x22, 0x87, 0x01, 0x0a, 0x09, 0x54, 0x78, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, + 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x42, + 0x02, 0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, + 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0c, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xdc, 0x01, 0x0a, 0x0f, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, + 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, + 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x36, 0x0a, 0x03, 0x74, + 0x78, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, + 0x74, 0x78, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xe8, 0x01, 0x0a, 0x12, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x3f, 0x0a, + 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x3a, 0x04, + 0x80, 0xdc, 0x20, 0x01, 0x42, 0xe7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x41, 0x62, 0x63, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, + 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x62, + 0x63, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x41, 0xaa, + 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x62, + 0x63, 0x69, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x24, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, + 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x41, 0x62, 0x63, + 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xd8, 0xe1, 0x1e, 0x00, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/cosmos/base/abci/v1beta1/abci.proto b/proto/cosmos/base/abci/v1beta1/abci.proto index 3916763ce320..98d27f5480b5 100644 --- a/proto/cosmos/base/abci/v1beta1/abci.proto +++ b/proto/cosmos/base/abci/v1beta1/abci.proto @@ -50,6 +50,7 @@ message TxResponse { // BlockResponse message BlockResponse { + option (gogoproto.stringer) = true; option (gogoproto.goproto_getters) = false; // The block height int64 height = 1; @@ -180,15 +181,15 @@ message SearchBlocksResult { option (gogoproto.stringer) = true; // Count of all blocks - uint64 total_count = 1; + int64 total_count = 1; // Count of blocks in current page - uint64 count = 2; + int64 count = 2; // Index of current page, start from 1 - uint64 page_number = 3; + int64 page_number = 3; // Count of total pages - uint64 page_total = 4; + int64 page_total = 4; // Max count blocks per page - uint64 limit = 5; + int64 limit = 5; // List of blocks in current page repeated BlockResponse blocks = 6; } diff --git a/types/abci.pb.go b/types/abci.pb.go index 773482b86035..b28bfafcd443 100644 --- a/types/abci.pb.go +++ b/types/abci.pb.go @@ -116,8 +116,6 @@ type BlockResponse struct { } func (m *BlockResponse) Reset() { *m = BlockResponse{} } -func (m *BlockResponse) String() string { return proto.CompactTextString(m) } //I had to manually add this -func (m *BlockResponse) Empty() bool { return len(proto.CompactTextString(m)) == 0 } //I had to manually add this func (*BlockResponse) ProtoMessage() {} func (*BlockResponse) Descriptor() ([]byte, []int) { return fileDescriptor_4e37629bc7eb0df8, []int{1} @@ -673,15 +671,15 @@ func (m *SearchTxsResult) GetTxs() []*TxResponse { // SearchBlocksResult defines a structure for querying blocks pageable type SearchBlocksResult struct { // Count of all blocks - TotalCount uint64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` + TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // Count of blocks in current page - Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // Index of current page, start from 1 - PageNumber uint64 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` + PageNumber int64 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` // Count of total pages - PageTotal uint64 `protobuf:"varint,4,opt,name=page_total,json=pageTotal,proto3" json:"page_total,omitempty"` + PageTotal int64 `protobuf:"varint,4,opt,name=page_total,json=pageTotal,proto3" json:"page_total,omitempty"` // Max count blocks per page - Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` // List of blocks in current page Blocks []*BlockResponse `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` } @@ -718,35 +716,35 @@ func (m *SearchBlocksResult) XXX_DiscardUnknown() { var xxx_messageInfo_SearchBlocksResult proto.InternalMessageInfo -func (m *SearchBlocksResult) GetTotalCount() uint64 { +func (m *SearchBlocksResult) GetTotalCount() int64 { if m != nil { return m.TotalCount } return 0 } -func (m *SearchBlocksResult) GetCount() uint64 { +func (m *SearchBlocksResult) GetCount() int64 { if m != nil { return m.Count } return 0 } -func (m *SearchBlocksResult) GetPageNumber() uint64 { +func (m *SearchBlocksResult) GetPageNumber() int64 { if m != nil { return m.PageNumber } return 0 } -func (m *SearchBlocksResult) GetPageTotal() uint64 { +func (m *SearchBlocksResult) GetPageTotal() int64 { if m != nil { return m.PageTotal } return 0 } -func (m *SearchBlocksResult) GetLimit() uint64 { +func (m *SearchBlocksResult) GetLimit() int64 { if m != nil { return m.Limit } @@ -780,75 +778,76 @@ func init() { } var fileDescriptor_4e37629bc7eb0df8 = []byte{ - // 1084 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xf6, 0xda, 0x8e, 0x1d, 0x3f, 0xc7, 0x0d, 0x1a, 0x45, 0xe9, 0x26, 0x80, 0x6d, 0xdc, 0xa2, - 0x5a, 0x48, 0xd8, 0x6a, 0x5a, 0x21, 0xda, 0x0b, 0xad, 0xc3, 0xaf, 0x48, 0x2d, 0x87, 0x8d, 0x0b, - 0x12, 0x17, 0x6b, 0xec, 0x9d, 0xae, 0x57, 0xf1, 0xee, 0xac, 0x76, 0xc6, 0x89, 0x7d, 0xe3, 0x06, - 0x47, 0x4e, 0x9c, 0xb9, 0xc2, 0x5f, 0xd2, 0x03, 0x87, 0x1c, 0x7b, 0x88, 0x02, 0x24, 0x17, 0xc4, - 0x5f, 0x81, 0xde, 0x9b, 0xf1, 0x8f, 0x90, 0xba, 0xf4, 0xc8, 0x29, 0xf3, 0xbe, 0xf7, 0x66, 0x76, - 0xde, 0xf7, 0x7d, 0x6f, 0x62, 0xb8, 0x35, 0x90, 0x2a, 0x92, 0xaa, 0xdd, 0xe7, 0x4a, 0xb4, 0x79, - 0x7f, 0x10, 0xb6, 0x8f, 0xef, 0xf6, 0x85, 0xe6, 0x77, 0x29, 0x68, 0x25, 0xa9, 0xd4, 0x92, 0xb9, - 0xa6, 0xa8, 0x85, 0x45, 0x2d, 0xc2, 0x6d, 0xd1, 0xee, 0x56, 0x20, 0x03, 0x49, 0x45, 0x6d, 0x5c, - 0x99, 0xfa, 0xdd, 0xb7, 0xb5, 0x88, 0x7d, 0x91, 0x46, 0x61, 0xac, 0xcd, 0x99, 0x7a, 0x9a, 0x08, - 0x65, 0x93, 0x3b, 0x81, 0x94, 0xc1, 0x48, 0xb4, 0x29, 0xea, 0x8f, 0x9f, 0xb7, 0x79, 0x3c, 0x35, - 0xa9, 0xc6, 0x6f, 0x39, 0x80, 0xee, 0xc4, 0x13, 0x2a, 0x91, 0xb1, 0x12, 0x6c, 0x1b, 0x0a, 0x43, - 0x11, 0x06, 0x43, 0xed, 0x3a, 0x75, 0xa7, 0x99, 0xf3, 0x6c, 0xc4, 0x1a, 0x50, 0xd0, 0x93, 0x21, - 0x57, 0x43, 0x37, 0x5b, 0x77, 0x9a, 0xa5, 0x0e, 0x5c, 0x9c, 0xd7, 0x0a, 0xdd, 0xc9, 0x97, 0x5c, - 0x0d, 0x3d, 0x9b, 0x61, 0xef, 0x40, 0x69, 0x20, 0x7d, 0xa1, 0x12, 0x3e, 0x10, 0x6e, 0x0e, 0xcb, - 0xbc, 0x05, 0xc0, 0x18, 0xe4, 0x31, 0x70, 0xf3, 0x75, 0xa7, 0x59, 0xf1, 0x68, 0x8d, 0x98, 0xcf, - 0x35, 0x77, 0xd7, 0xa8, 0x98, 0xd6, 0xec, 0x26, 0x14, 0x53, 0x7e, 0xd2, 0x1b, 0xc9, 0xc0, 0x2d, - 0x10, 0x5c, 0x48, 0xf9, 0xc9, 0x13, 0x19, 0xb0, 0x67, 0x90, 0x1f, 0xc9, 0x40, 0xb9, 0xc5, 0x7a, - 0xae, 0x59, 0xde, 0x6b, 0xb6, 0x56, 0x11, 0xd4, 0x7a, 0xdc, 0xd9, 0x3f, 0x78, 0x2a, 0x94, 0xe2, - 0x81, 0x78, 0x22, 0x83, 0xce, 0xcd, 0x17, 0xe7, 0xb5, 0xcc, 0xaf, 0xbf, 0xd7, 0x36, 0xaf, 0xe2, - 0xca, 0xa3, 0xe3, 0xf0, 0x0e, 0x61, 0xfc, 0x5c, 0xba, 0xeb, 0xe6, 0x0e, 0xb8, 0x66, 0xef, 0x02, - 0x04, 0x5c, 0xf5, 0x4e, 0x78, 0xac, 0x85, 0xef, 0x96, 0x88, 0x89, 0x52, 0xc0, 0xd5, 0x37, 0x04, - 0xb0, 0x1d, 0x58, 0xc7, 0xf4, 0x58, 0x09, 0xdf, 0x05, 0x4a, 0x16, 0x03, 0xae, 0x9e, 0x29, 0xe1, - 0xb3, 0xdb, 0x90, 0xd5, 0x13, 0xb7, 0x5c, 0x77, 0x9a, 0xe5, 0xbd, 0xad, 0x96, 0xa1, 0xbd, 0x35, - 0xa3, 0xbd, 0xf5, 0x38, 0x9e, 0x7a, 0x59, 0x3d, 0x41, 0xa6, 0x74, 0x18, 0x09, 0xa5, 0x79, 0x94, - 0xb8, 0x1b, 0x86, 0xa9, 0x39, 0xc0, 0xee, 0x43, 0x41, 0x1c, 0x8b, 0x58, 0x2b, 0xb7, 0x42, 0xad, - 0x6e, 0xb7, 0x16, 0xda, 0x9a, 0x4e, 0x3f, 0xc3, 0x74, 0x27, 0x8f, 0x8d, 0x79, 0xb6, 0xf6, 0x61, - 0xfe, 0x87, 0x9f, 0x6b, 0x99, 0xc6, 0x59, 0x16, 0x2a, 0x9d, 0x91, 0x1c, 0x1c, 0xfd, 0xa7, 0xa2, - 0x0c, 0xf2, 0xf8, 0x49, 0xa3, 0xa7, 0x47, 0x6b, 0x6c, 0x6c, 0x30, 0xe4, 0x61, 0xdc, 0x0b, 0x7d, - 0x2b, 0x60, 0x91, 0xe2, 0x03, 0x9f, 0xd5, 0xa0, 0x3c, 0xe2, 0x4a, 0xf7, 0x06, 0x32, 0x8a, 0x42, - 0x4d, 0x2a, 0x96, 0x3c, 0x40, 0x68, 0x9f, 0x90, 0x57, 0x6a, 0x59, 0x05, 0x38, 0xe6, 0xa3, 0xd0, - 0xe7, 0x5a, 0xa6, 0xca, 0xca, 0xb9, 0x84, 0xb0, 0x3b, 0xb0, 0x19, 0x8b, 0x89, 0xee, 0x2d, 0x15, - 0x15, 0xa9, 0xe8, 0x06, 0xc2, 0x5f, 0x2f, 0x0a, 0xdf, 0x82, 0x1c, 0x4f, 0x12, 0xab, 0x11, 0x2e, - 0x8d, 0xd9, 0x62, 0x25, 0x62, 0x35, 0x56, 0xa4, 0x10, 0x99, 0xcd, 0x02, 0xcc, 0x85, 0x62, 0x2a, - 0xd4, 0x78, 0xa4, 0x15, 0x09, 0x54, 0xf2, 0x66, 0x21, 0xdb, 0x85, 0x75, 0x71, 0x1c, 0xfa, 0x22, - 0x1e, 0x08, 0x92, 0xa9, 0xe4, 0xcd, 0x63, 0xcc, 0x25, 0xa9, 0x4c, 0xa4, 0x12, 0xa9, 0x55, 0x65, - 0x1e, 0x5b, 0x7a, 0x7f, 0x71, 0xe0, 0xc6, 0x55, 0x1b, 0xb1, 0x0f, 0xa0, 0x14, 0xa9, 0xa0, 0x17, - 0xc6, 0xbe, 0x98, 0x10, 0xc5, 0x95, 0x4e, 0xe5, 0xef, 0xf3, 0xda, 0x02, 0xf4, 0xd6, 0x23, 0x15, - 0x1c, 0xe0, 0x0a, 0xdb, 0x40, 0x5f, 0x1b, 0xca, 0x71, 0xc9, 0x0e, 0xe7, 0x5a, 0xe7, 0x48, 0xeb, - 0xf7, 0x57, 0xdb, 0xfa, 0x50, 0xa7, 0x61, 0x1c, 0x18, 0xe9, 0xb7, 0xac, 0xa7, 0x37, 0x96, 0x40, - 0xb5, 0xb0, 0xc2, 0x77, 0x67, 0x75, 0xa7, 0x91, 0x42, 0x79, 0x29, 0x4b, 0x7a, 0x4f, 0x13, 0x41, - 0x57, 0x44, 0xbd, 0xa7, 0x89, 0x60, 0x07, 0x00, 0x5c, 0xeb, 0x34, 0xec, 0x8f, 0xb5, 0x50, 0x6e, - 0x96, 0x6e, 0x70, 0xeb, 0x35, 0x83, 0x35, 0xab, 0xb5, 0xd6, 0x5b, 0xda, 0x6c, 0xbf, 0x79, 0x0f, - 0x4a, 0xf3, 0x22, 0xec, 0xf6, 0x48, 0x4c, 0xed, 0x07, 0x71, 0xc9, 0xb6, 0x60, 0xed, 0x98, 0x8f, - 0xc6, 0x33, 0xd3, 0x99, 0xa0, 0xb1, 0x0f, 0xc5, 0x2f, 0xb8, 0x3a, 0xb8, 0x3e, 0x78, 0xb8, 0x33, - 0xbf, 0x6a, 0xf0, 0xb2, 0x94, 0x9c, 0x0d, 0x1e, 0x2a, 0x53, 0xf0, 0x48, 0x63, 0xb6, 0x6d, 0x9d, - 0x88, 0xdb, 0x37, 0x3a, 0x59, 0xd7, 0xb1, 0x6e, 0xbc, 0xce, 0xfe, 0xfd, 0x7f, 0xb1, 0xff, 0x46, - 0x93, 0xc6, 0x1e, 0x40, 0x05, 0xc5, 0x4d, 0xed, 0x84, 0x29, 0x37, 0x4f, 0x9b, 0x5f, 0x3d, 0xee, - 0x1b, 0x91, 0x0a, 0x66, 0xb3, 0x38, 0x1b, 0xd2, 0x9f, 0x1c, 0x60, 0x87, 0x61, 0x34, 0x1e, 0x71, - 0x1d, 0xca, 0x78, 0x3e, 0xa9, 0x9f, 0x9b, 0xee, 0xe8, 0x35, 0x72, 0xe8, 0x05, 0x79, 0x6f, 0xb5, - 0x16, 0x96, 0xb1, 0xce, 0x3a, 0x5e, 0xed, 0xf4, 0xbc, 0xe6, 0x10, 0x15, 0x44, 0xe2, 0xc7, 0x50, - 0x30, 0x6e, 0xa7, 0x56, 0xcb, 0x7b, 0xf5, 0xd5, 0xa7, 0x18, 0xc6, 0x3c, 0x5b, 0xdf, 0x78, 0x04, - 0xc5, 0xa7, 0x2a, 0xf8, 0x14, 0xc9, 0xda, 0x01, 0xb4, 0x6d, 0x6f, 0xc9, 0x32, 0xc5, 0x48, 0x05, - 0x5d, 0x74, 0xcd, 0x6c, 0xd2, 0xf1, 0xf4, 0x0d, 0xc3, 0xed, 0xc3, 0x02, 0xca, 0xef, 0x3a, 0x8d, - 0xef, 0x1d, 0x28, 0x75, 0x27, 0xb3, 0x43, 0x1e, 0xcc, 0x95, 0xc8, 0xbd, 0xbe, 0x1b, 0xbb, 0x61, - 0x49, 0xac, 0x6b, 0x24, 0x67, 0xdf, 0x9c, 0x64, 0xb2, 0xe2, 0x99, 0x03, 0x9b, 0x87, 0x82, 0xa7, - 0x83, 0x61, 0x77, 0xa2, 0xac, 0x33, 0x6a, 0x50, 0xd6, 0x52, 0xf3, 0x51, 0x6f, 0x20, 0xc7, 0xb1, - 0xb6, 0xfe, 0x02, 0x82, 0xf6, 0x11, 0x41, 0x83, 0x9a, 0x94, 0x71, 0x97, 0x09, 0x70, 0x5b, 0xc2, - 0x03, 0xd1, 0x8b, 0xc7, 0x51, 0x5f, 0xa4, 0xf4, 0x32, 0xe6, 0x3d, 0x40, 0xe8, 0x2b, 0x42, 0xd0, - 0xb6, 0x54, 0x40, 0x27, 0xd1, 0xdb, 0x98, 0xf7, 0x4a, 0x88, 0x74, 0x11, 0xc0, 0x53, 0x47, 0x21, - 0xbe, 0x9a, 0x6b, 0xe6, 0x54, 0x0a, 0xd8, 0x47, 0x90, 0xd3, 0x13, 0x7c, 0x15, 0xb1, 0xaf, 0xdb, - 0xab, 0xb9, 0x59, 0xfc, 0x77, 0xf6, 0x70, 0x83, 0x6d, 0xef, 0x2f, 0xf4, 0x10, 0xb5, 0x47, 0xcf, - 0xfd, 0xff, 0xb2, 0xc3, 0x4f, 0xa0, 0xd0, 0xa7, 0xcb, 0xd9, 0x26, 0xef, 0xac, 0x6e, 0xf2, 0xca, - 0xff, 0x2c, 0xcf, 0x6e, 0x33, 0xad, 0x76, 0x1e, 0xbd, 0xfc, 0xb3, 0x9a, 0x79, 0x71, 0x51, 0x75, - 0x4e, 0x2f, 0xaa, 0xce, 0x1f, 0x17, 0x55, 0xe7, 0xc7, 0xcb, 0x6a, 0xe6, 0xf4, 0xb2, 0x9a, 0x79, - 0x79, 0x59, 0xcd, 0x7c, 0xdb, 0x08, 0x42, 0x3d, 0x1c, 0xf7, 0x5b, 0x03, 0x19, 0xb5, 0xed, 0x0f, - 0x2b, 0xf3, 0xe7, 0x43, 0xe5, 0x1f, 0x99, 0x5f, 0x41, 0xfd, 0x02, 0xb9, 0xe5, 0xde, 0x3f, 0x01, - 0x00, 0x00, 0xff, 0xff, 0xa7, 0x2a, 0xb9, 0x0c, 0x7a, 0x09, 0x00, 0x00, + // 1101 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0x39, 0x6f, 0x1b, 0xc7, + 0x17, 0xe7, 0x72, 0x69, 0x1e, 0x8f, 0xa2, 0xfd, 0xc7, 0x40, 0xb0, 0xd7, 0xfe, 0x27, 0x24, 0x43, + 0x3b, 0x30, 0x11, 0x20, 0x24, 0x7c, 0x20, 0x88, 0xdd, 0xc4, 0xa6, 0x72, 0x09, 0xb0, 0x53, 0xac, + 0xe8, 0x04, 0x48, 0x43, 0x0c, 0xb9, 0xe3, 0xe5, 0x42, 0xdc, 0x9d, 0xc5, 0xce, 0x50, 0x22, 0xbb, + 0x74, 0x49, 0x99, 0x2a, 0x75, 0xda, 0xe4, 0x93, 0xb8, 0x48, 0xa1, 0xd2, 0x85, 0xa1, 0x38, 0x52, + 0x13, 0xe4, 0x53, 0x04, 0xef, 0xcd, 0xf0, 0x50, 0x64, 0xca, 0xae, 0x34, 0xef, 0x98, 0xd9, 0xf9, + 0x1d, 0x6f, 0x44, 0xb8, 0x39, 0x92, 0x2a, 0x96, 0xaa, 0x3b, 0xe4, 0x4a, 0x74, 0xf9, 0x70, 0x14, + 0x75, 0x0f, 0xee, 0x0c, 0x85, 0xe6, 0x77, 0x28, 0xe8, 0xa4, 0x99, 0xd4, 0x92, 0x79, 0xa6, 0xa9, + 0x83, 0x4d, 0x1d, 0xca, 0xdb, 0xa6, 0x1b, 0xdb, 0xa1, 0x0c, 0x25, 0x35, 0x75, 0x71, 0x65, 0xfa, + 0x6f, 0xfc, 0x5f, 0x8b, 0x24, 0x10, 0x59, 0x1c, 0x25, 0xda, 0x9c, 0xa9, 0xe7, 0xa9, 0x50, 0xb6, + 0x78, 0x3d, 0x94, 0x32, 0x9c, 0x88, 0x2e, 0x45, 0xc3, 0xe9, 0xf3, 0x2e, 0x4f, 0xe6, 0xa6, 0xd4, + 0xfa, 0xc3, 0x05, 0xe8, 0xcf, 0x7c, 0xa1, 0x52, 0x99, 0x28, 0xc1, 0xae, 0x42, 0x71, 0x2c, 0xa2, + 0x70, 0xac, 0x3d, 0xa7, 0xe9, 0xb4, 0x5d, 0xdf, 0x46, 0xac, 0x05, 0x45, 0x3d, 0x1b, 0x73, 0x35, + 0xf6, 0xf2, 0x4d, 0xa7, 0x5d, 0xe9, 0xc1, 0xc9, 0x71, 0xa3, 0xd8, 0x9f, 0x7d, 0xcd, 0xd5, 0xd8, + 0xb7, 0x15, 0xf6, 0x1e, 0x54, 0x46, 0x32, 0x10, 0x2a, 0xe5, 0x23, 0xe1, 0xb9, 0xd8, 0xe6, 0xaf, + 0x12, 0x8c, 0x41, 0x01, 0x03, 0xaf, 0xd0, 0x74, 0xda, 0x35, 0x9f, 0xd6, 0x98, 0x0b, 0xb8, 0xe6, + 0xde, 0x25, 0x6a, 0xa6, 0x35, 0xbb, 0x06, 0xa5, 0x8c, 0x1f, 0x0e, 0x26, 0x32, 0xf4, 0x8a, 0x94, + 0x2e, 0x66, 0xfc, 0xf0, 0x89, 0x0c, 0xd9, 0x33, 0x28, 0x4c, 0x64, 0xa8, 0xbc, 0x52, 0xd3, 0x6d, + 0x57, 0xef, 0xb6, 0x3b, 0x9b, 0x08, 0xea, 0x3c, 0xee, 0xed, 0xec, 0x3e, 0x15, 0x4a, 0xf1, 0x50, + 0x3c, 0x91, 0x61, 0xef, 0xda, 0x8b, 0xe3, 0x46, 0xee, 0xf7, 0x3f, 0x1b, 0x57, 0xce, 0xe6, 0x95, + 0x4f, 0xc7, 0xe1, 0x1d, 0xa2, 0xe4, 0xb9, 0xf4, 0xca, 0xe6, 0x0e, 0xb8, 0x66, 0xef, 0x03, 0x84, + 0x5c, 0x0d, 0x0e, 0x79, 0xa2, 0x45, 0xe0, 0x55, 0x88, 0x89, 0x4a, 0xc8, 0xd5, 0x77, 0x94, 0x60, + 0xd7, 0xa1, 0x8c, 0xe5, 0xa9, 0x12, 0x81, 0x07, 0x54, 0x2c, 0x85, 0x5c, 0x3d, 0x53, 0x22, 0x60, + 0xb7, 0x20, 0xaf, 0x67, 0x5e, 0xb5, 0xe9, 0xb4, 0xab, 0x77, 0xb7, 0x3b, 0x86, 0xf6, 0xce, 0x82, + 0xf6, 0xce, 0xe3, 0x64, 0xee, 0xe7, 0xf5, 0x0c, 0x99, 0xd2, 0x51, 0x2c, 0x94, 0xe6, 0x71, 0xea, + 0x6d, 0x19, 0xa6, 0x96, 0x09, 0x76, 0x1f, 0x8a, 0xe2, 0x40, 0x24, 0x5a, 0x79, 0x35, 0x82, 0x7a, + 0xb5, 0xb3, 0xd2, 0xd6, 0x20, 0xfd, 0x02, 0xcb, 0xbd, 0x02, 0x02, 0xf3, 0x6d, 0xef, 0xc3, 0xc2, + 0x4f, 0xbf, 0x36, 0x72, 0xad, 0xd7, 0x79, 0xa8, 0xf5, 0x26, 0x72, 0xb4, 0xff, 0x56, 0x45, 0x19, + 0x14, 0xf0, 0x93, 0x46, 0x4f, 0x9f, 0xd6, 0x08, 0x6c, 0x34, 0xe6, 0x51, 0x32, 0x88, 0x02, 0x2b, + 0x60, 0x89, 0xe2, 0xdd, 0x80, 0x35, 0xa0, 0x3a, 0xe1, 0x4a, 0x0f, 0x46, 0x32, 0x8e, 0x23, 0x4d, + 0x2a, 0x56, 0x7c, 0xc0, 0xd4, 0x0e, 0x65, 0xde, 0xa8, 0x65, 0x1d, 0xe0, 0x80, 0x4f, 0xa2, 0x80, + 0x6b, 0x99, 0x29, 0x2b, 0xe7, 0x5a, 0x86, 0xdd, 0x86, 0x2b, 0x89, 0x98, 0xe9, 0xc1, 0x5a, 0x53, + 0x89, 0x9a, 0x2e, 0x63, 0xfa, 0xdb, 0x55, 0xe3, 0xff, 0xc0, 0xe5, 0x69, 0x6a, 0x35, 0xc2, 0xa5, + 0x31, 0x5b, 0xa2, 0x44, 0xa2, 0xa6, 0x8a, 0x14, 0x22, 0xb3, 0xd9, 0x04, 0xf3, 0xa0, 0x94, 0x09, + 0x35, 0x9d, 0x68, 0x45, 0x02, 0x55, 0xfc, 0x45, 0xc8, 0x6e, 0x40, 0x59, 0x1c, 0x44, 0x81, 0x48, + 0x46, 0x82, 0x64, 0xaa, 0xf8, 0xcb, 0x18, 0x6b, 0x69, 0x26, 0x53, 0xa9, 0x44, 0x66, 0x55, 0x59, + 0xc6, 0x0f, 0xcb, 0x48, 0xef, 0x0f, 0xaf, 0x9a, 0x4e, 0xeb, 0x37, 0x07, 0x2e, 0x9f, 0xb5, 0x12, + 0xfb, 0x08, 0x2a, 0xb1, 0x0a, 0x07, 0x51, 0x12, 0x88, 0x19, 0xd1, 0x5c, 0xeb, 0xd5, 0xfe, 0x39, + 0x6e, 0xac, 0x92, 0x7e, 0x39, 0x56, 0xe1, 0x2e, 0xae, 0x10, 0x0a, 0x7a, 0xdb, 0xd0, 0x8e, 0x4b, + 0xb6, 0xb7, 0xd4, 0xdb, 0x25, 0xbd, 0x3f, 0xdc, 0x6c, 0xed, 0x3d, 0x9d, 0x45, 0x49, 0x68, 0xe4, + 0xdf, 0xb6, 0xbe, 0xde, 0x5a, 0x4b, 0xaa, 0x95, 0x1d, 0xe8, 0xae, 0x19, 0x54, 0xd7, 0xaa, 0xa4, + 0xf9, 0x3c, 0x15, 0x74, 0x45, 0xd4, 0x7c, 0x9e, 0x0a, 0xb6, 0x0b, 0xc0, 0xb5, 0xce, 0xa2, 0xe1, + 0x54, 0x0b, 0xe5, 0xe5, 0xe9, 0x06, 0x37, 0x2f, 0x18, 0xae, 0x45, 0xaf, 0xb5, 0xdf, 0xda, 0x66, + 0xfb, 0xcd, 0x7b, 0x50, 0x59, 0x36, 0x21, 0xda, 0x7d, 0x31, 0xb7, 0x1f, 0xc4, 0x25, 0xdb, 0x86, + 0x4b, 0x07, 0x7c, 0x32, 0x5d, 0x18, 0xcf, 0x04, 0xad, 0x1d, 0x28, 0x7d, 0xc5, 0xd5, 0xee, 0xf9, + 0xe1, 0xc3, 0x9d, 0x85, 0x4d, 0xc3, 0x97, 0xa7, 0xe2, 0x62, 0xf8, 0x50, 0x99, 0xa2, 0x4f, 0x3a, + 0xb3, 0xab, 0xd6, 0x8d, 0xb8, 0x7d, 0xab, 0x97, 0xf7, 0x1c, 0xeb, 0xc8, 0xf3, 0xec, 0xdf, 0xff, + 0x0f, 0xfb, 0xef, 0x34, 0x6d, 0xec, 0x01, 0xd4, 0x50, 0xdc, 0xcc, 0x4e, 0x99, 0xf2, 0x0a, 0xb4, + 0xf9, 0xcd, 0x23, 0xbf, 0x15, 0xab, 0x70, 0x31, 0x8f, 0x8b, 0x41, 0xfd, 0xc5, 0x01, 0xb6, 0x17, + 0xc5, 0xd3, 0x09, 0xd7, 0x91, 0x4c, 0x96, 0xd3, 0xfa, 0xa5, 0x41, 0x47, 0x2f, 0x92, 0x43, 0xaf, + 0xc8, 0x07, 0x9b, 0xb5, 0xb0, 0x8c, 0xf5, 0xca, 0x78, 0xb5, 0xa3, 0xe3, 0x86, 0x43, 0x54, 0x10, + 0x89, 0x9f, 0x42, 0xd1, 0x38, 0x9e, 0xa0, 0x56, 0xef, 0x36, 0x37, 0x9f, 0x62, 0x18, 0xf3, 0x6d, + 0x7f, 0xeb, 0x11, 0x94, 0x9e, 0xaa, 0xf0, 0x73, 0x24, 0xeb, 0x3a, 0xa0, 0x6d, 0x07, 0x6b, 0x96, + 0x29, 0xc5, 0x2a, 0xec, 0xa3, 0x6b, 0x16, 0xd3, 0x8e, 0xa7, 0x6f, 0x19, 0x6e, 0x1f, 0x16, 0x51, + 0x7e, 0xcf, 0x69, 0xfd, 0xe8, 0x40, 0xa5, 0x3f, 0x5b, 0x1c, 0xf2, 0x60, 0xa9, 0x84, 0x7b, 0x31, + 0x1a, 0xbb, 0x61, 0x4d, 0xac, 0x73, 0x24, 0xe7, 0xdf, 0x9d, 0x64, 0xb2, 0xe2, 0x2b, 0x07, 0xae, + 0xec, 0x09, 0x9e, 0x8d, 0xc6, 0xfd, 0x99, 0xb2, 0xce, 0x68, 0x40, 0x55, 0x4b, 0xcd, 0x27, 0x83, + 0x91, 0x9c, 0x26, 0xda, 0xfa, 0x0b, 0x28, 0xb5, 0x83, 0x19, 0x34, 0xa8, 0x29, 0x19, 0x77, 0x99, + 0x00, 0xb7, 0xa5, 0x3c, 0x14, 0x83, 0x64, 0x1a, 0x0f, 0x45, 0x46, 0xaf, 0x63, 0xc1, 0x07, 0x4c, + 0x7d, 0x43, 0x19, 0xb4, 0x2d, 0x35, 0xd0, 0x49, 0xf4, 0x3e, 0x16, 0xfc, 0x0a, 0x66, 0xfa, 0x98, + 0xc0, 0x53, 0x27, 0x11, 0xbe, 0x9c, 0x97, 0xcc, 0xa9, 0x14, 0xb0, 0x4f, 0xc0, 0xd5, 0x33, 0x7c, + 0x19, 0x11, 0xd7, 0xad, 0xcd, 0xdc, 0xac, 0xfe, 0x43, 0xfb, 0xb8, 0xc1, 0xc2, 0xfb, 0x1b, 0x3d, + 0x44, 0xf0, 0xe8, 0xc9, 0xbf, 0x00, 0xa1, 0xbb, 0x19, 0xa1, 0x7b, 0x01, 0x42, 0xf7, 0x2d, 0x08, + 0xdd, 0x8d, 0x08, 0xdd, 0x05, 0xc2, 0xcf, 0xa0, 0x38, 0xa4, 0xcb, 0x59, 0x90, 0xb7, 0x37, 0x83, + 0x3c, 0xf3, 0x7f, 0xcb, 0xb7, 0xdb, 0x0c, 0xd4, 0xde, 0xa3, 0x97, 0x7f, 0xd5, 0x73, 0x2f, 0x4e, + 0xea, 0xce, 0xd1, 0x49, 0xdd, 0x79, 0x7d, 0x52, 0x77, 0x7e, 0x3e, 0xad, 0xe7, 0x8e, 0x4e, 0xeb, + 0xb9, 0x97, 0xa7, 0xf5, 0xdc, 0xf7, 0xad, 0x30, 0xd2, 0xe3, 0xe9, 0xb0, 0x33, 0x92, 0x71, 0xd7, + 0xfe, 0xb8, 0x32, 0x7f, 0x3e, 0x56, 0xc1, 0xbe, 0xf9, 0x25, 0x34, 0x2c, 0x92, 0x5b, 0xee, 0xfd, + 0x1b, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x1d, 0x3b, 0x1e, 0x7e, 0x09, 0x00, 0x00, } func (m *TxResponse) Marshal() (dAtA []byte, err error) { @@ -1915,6 +1914,27 @@ func sovAbci(x uint64) (n int) { func sozAbci(x uint64) (n int) { return sovAbci(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *BlockResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BlockResponse{`, + `Height:` + fmt.Sprintf("%v", this.Height) + `,`, + `Time:` + fmt.Sprintf("%v", this.Time) + `,`, + `ChainId:` + fmt.Sprintf("%v", this.ChainId) + `,`, + `LastCommit:` + fmt.Sprintf("%v", this.LastCommit) + `,`, + `Data:` + fmt.Sprintf("%v", this.Data) + `,`, + `Validators:` + fmt.Sprintf("%v", this.Validators) + `,`, + `NextValidators:` + fmt.Sprintf("%v", this.NextValidators) + `,`, + `App:` + fmt.Sprintf("%v", this.App) + `,`, + `Consensus:` + fmt.Sprintf("%v", this.Consensus) + `,`, + `Results:` + fmt.Sprintf("%v", this.Results) + `,`, + `Evidence:` + fmt.Sprintf("%v", this.Evidence) + `,`, + `Proposer:` + fmt.Sprintf("%v", this.Proposer) + `,`, + `}`, + }, "") + return s +} func (this *ABCIMessageLog) String() string { if this == nil { return "nil" @@ -2006,7 +2026,7 @@ func (this *SearchBlocksResult) String() string { } repeatedStringForBlocks := "[]*BlockResponse{" for _, f := range this.Blocks { - repeatedStringForBlocks += strings.Replace(fmt.Sprintf("%v", f), "BlockResponse", "BlockResponse", 1) + "," + repeatedStringForBlocks += strings.Replace(f.String(), "BlockResponse", "BlockResponse", 1) + "," } repeatedStringForBlocks += "}" s := strings.Join([]string{`&SearchBlocksResult{`, @@ -4083,7 +4103,7 @@ func (m *SearchBlocksResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalCount |= uint64(b&0x7F) << shift + m.TotalCount |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4102,7 +4122,7 @@ func (m *SearchBlocksResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= uint64(b&0x7F) << shift + m.Count |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4121,7 +4141,7 @@ func (m *SearchBlocksResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PageNumber |= uint64(b&0x7F) << shift + m.PageNumber |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4140,7 +4160,7 @@ func (m *SearchBlocksResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PageTotal |= uint64(b&0x7F) << shift + m.PageTotal |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4159,7 +4179,7 @@ func (m *SearchBlocksResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= uint64(b&0x7F) << shift + m.Limit |= int64(b&0x7F) << shift if b < 0x80 { break } diff --git a/types/result.go b/types/result.go index 4f5a2922b41d..fa197bcc32ae 100644 --- a/types/result.go +++ b/types/result.go @@ -144,12 +144,12 @@ func NewSearchTxsResult(totalCount, count, page, limit uint64, txs []*TxResponse } } -func NewSearchBlocksResult(totalCount, count, page, limit uint64, blocks []*BlockResponse) *SearchBlocksResult { +func NewSearchBlocksResult(totalCount, count, page, limit int64, blocks []*BlockResponse) *SearchBlocksResult { return &SearchBlocksResult{ TotalCount: totalCount, Count: count, PageNumber: page, - PageTotal: uint64(math.Ceil(float64(totalCount) / float64(limit))), + PageTotal: int64(math.Ceil(float64(totalCount) / float64(limit))), Limit: limit, Blocks: blocks, } diff --git a/x/auth/block/query.go b/x/auth/block/query.go index cfaafed638cc..898cc60fddfe 100644 --- a/x/auth/block/query.go +++ b/x/auth/block/query.go @@ -51,7 +51,7 @@ func QueryBlocksByEvents(clientCtx client.Context, events []string, page, limit return nil, err } - result := sdk.NewSearchBlocksResult(uint64(resBlocks.TotalCount), uint64(len(blocks)), uint64(page), uint64(limit), blocks) + result := sdk.NewSearchBlocksResult(int64(resBlocks.TotalCount), int64(len(blocks)), int64(page), int64(limit), blocks) return result, nil } diff --git a/x/auth/client/cli/query.go b/x/auth/client/cli/query.go index 13b0cf089539..6681561f4c14 100644 --- a/x/auth/client/cli/query.go +++ b/x/auth/client/cli/query.go @@ -393,8 +393,8 @@ $ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delega flags.AddQueryFlagsToCmd(cmd) cmd.Flags().Int(flags.FlagPage, query.DefaultPage, "Query a specific page of paginated results") - cmd.Flags().Int(flags.FlagLimit, query.DefaultLimit, "Query number of transactions results per page returned") - cmd.Flags().String(flagEvents, "", fmt.Sprintf("list of transaction events in the form of %s", eventFormat)) + cmd.Flags().Int(flags.FlagLimit, query.DefaultLimit, "Query number of block results per page returned") + cmd.Flags().String(flagEvents, "", fmt.Sprintf("list of block events in the form of %s", eventFormat)) cmd.MarkFlagRequired(flagEvents) return cmd @@ -549,7 +549,7 @@ $ %s query block --%s=%s return err } - if output.Empty() { + if output.Time == "" { return fmt.Errorf("no block found with hash %s", args[0]) } @@ -567,7 +567,7 @@ $ %s query block --%s=%s return err } - if output.Empty() { + if output.Time == "" { return fmt.Errorf("no transaction found with hash %s", args[0]) } From 252f354f87db21fca96e71746f3a77f46c322faa Mon Sep 17 00:00:00 2001 From: cipherZ Date: Sat, 21 Jan 2023 19:19:17 -0500 Subject: [PATCH 06/34] fixing int overflow paging calculation --- types/result.go | 32 +++++++++++++++++++++++++++++--- x/auth/client/cli/query.go | 4 ++-- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/types/result.go b/types/result.go index fa197bcc32ae..c350062e6334 100644 --- a/types/result.go +++ b/types/result.go @@ -3,7 +3,6 @@ package types import ( "encoding/hex" "encoding/json" - "math" "strings" "github.com/cosmos/gogoproto/proto" @@ -133,23 +132,50 @@ func (r TxResponse) Empty() bool { return r.TxHash == "" && r.Logs == nil } +// Empty returns true if the response is empty +func (r BlockResponse) Empty() bool { + return r.Time == "" && r.Height == 0 +} + func NewSearchTxsResult(totalCount, count, page, limit uint64, txs []*TxResponse) *SearchTxsResult { + + // calculate total pages in an overflow safe manner + totalPages := uint64(0) + if totalCount != 0 && limit != 0 { + if totalCount%limit > 0 { + totalPages = totalCount/limit + 1 + } else { + totalPages = totalCount / limit + } + } + return &SearchTxsResult{ TotalCount: totalCount, Count: count, PageNumber: page, - PageTotal: uint64(math.Ceil(float64(totalCount) / float64(limit))), + PageTotal: totalPages, Limit: limit, Txs: txs, } } func NewSearchBlocksResult(totalCount, count, page, limit int64, blocks []*BlockResponse) *SearchBlocksResult { + + // calculate total pages in an overflow safe manner + totalPages := int64(0) + if totalCount != 0 && limit != 0 { + if totalCount%limit > 0 { + totalPages = totalCount/limit + 1 + } else { + totalPages = totalCount / limit + } + } + return &SearchBlocksResult{ TotalCount: totalCount, Count: count, PageNumber: page, - PageTotal: int64(math.Ceil(float64(totalCount) / float64(limit))), + PageTotal: totalPages, Limit: limit, Blocks: blocks, } diff --git a/x/auth/client/cli/query.go b/x/auth/client/cli/query.go index 6681561f4c14..ba0b2e70edcd 100644 --- a/x/auth/client/cli/query.go +++ b/x/auth/client/cli/query.go @@ -549,7 +549,7 @@ $ %s query block --%s=%s return err } - if output.Time == "" { + if output.Empty() { return fmt.Errorf("no block found with hash %s", args[0]) } @@ -567,7 +567,7 @@ $ %s query block --%s=%s return err } - if output.Time == "" { + if output.Empty() { return fmt.Errorf("no transaction found with hash %s", args[0]) } From 639120d3902e5c95d3cc9f43fc7ba62d82a1e384 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Sat, 21 Jan 2023 19:30:15 -0500 Subject: [PATCH 07/34] gofumpt --- types/result.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/types/result.go b/types/result.go index c350062e6334..e307e46cd1a1 100644 --- a/types/result.go +++ b/types/result.go @@ -138,7 +138,6 @@ func (r BlockResponse) Empty() bool { } func NewSearchTxsResult(totalCount, count, page, limit uint64, txs []*TxResponse) *SearchTxsResult { - // calculate total pages in an overflow safe manner totalPages := uint64(0) if totalCount != 0 && limit != 0 { @@ -160,7 +159,6 @@ func NewSearchTxsResult(totalCount, count, page, limit uint64, txs []*TxResponse } func NewSearchBlocksResult(totalCount, count, page, limit int64, blocks []*BlockResponse) *SearchBlocksResult { - // calculate total pages in an overflow safe manner totalPages := int64(0) if totalCount != 0 && limit != 0 { From f49240844b31bbdab8d581adf3220d426cf84a72 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Mon, 23 Jan 2023 12:06:47 -0500 Subject: [PATCH 08/34] added tests --- types/result_test.go | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/types/result_test.go b/types/result_test.go index 1823bfd19e62..81139095e2ed 100644 --- a/types/result_test.go +++ b/types/result_test.go @@ -5,6 +5,7 @@ import ( "fmt" "strings" "testing" + "time" "github.com/golang/protobuf/proto" //nolint:staticcheck // grpc-gateway uses deprecated golang/protobuf "github.com/stretchr/testify/require" @@ -12,6 +13,7 @@ import ( abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/bytes" coretypes "github.com/tendermint/tendermint/rpc/core/types" + tmtypes "github.com/tendermint/tendermint/types" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/testutil/testdata" @@ -139,6 +141,39 @@ txhash: "74657374" s.Require().Equal((*sdk.TxResponse)(nil), sdk.NewResponseFormatBroadcastTx(nil)) } +func (s *resultTestSuite) TestNewSearchBlocksResult() { + got := sdk.NewSearchBlocksResult(150, 20, 2, 20, []*sdk.BlockResponse{}) + s.Require().Equal(&sdk.SearchBlocksResult{ + TotalCount: 150, + Count: 20, + PageNumber: 2, + PageTotal: 8, + Limit: 20, + Blocks: []*sdk.BlockResponse{}, + }, got) +} + +func (s *resultTestSuite) TestResponseResultBlock() { + + timestamp := time.Now() + timestamp_str := timestamp.UTC().Format(time.RFC3339) + + // create a block + resultBlock := &coretypes.ResultBlock{Block: &tmtypes.Block{ + Header: tmtypes.Header{ + Height: 10, + Time: timestamp, + }, + }} + + want := &sdk.BlockResponse{ + Height: 10, + Time: timestamp_str, + } + + s.Require().Equal(want, sdk.NewResponseResultBlock(resultBlock, timestamp_str)) +} + func TestWrapServiceResult(t *testing.T) { ctx := sdk.Context{} From 73aad2d48b72cc72f3ed6dac0f24419f633e1b4f Mon Sep 17 00:00:00 2001 From: cipherZ Date: Mon, 23 Jan 2023 12:41:23 -0500 Subject: [PATCH 09/34] gofumpt and lint --- types/result_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/types/result_test.go b/types/result_test.go index 81139095e2ed..159a1aa351e1 100644 --- a/types/result_test.go +++ b/types/result_test.go @@ -154,9 +154,8 @@ func (s *resultTestSuite) TestNewSearchBlocksResult() { } func (s *resultTestSuite) TestResponseResultBlock() { - timestamp := time.Now() - timestamp_str := timestamp.UTC().Format(time.RFC3339) + timestampStr := timestamp.UTC().Format(time.RFC3339) // create a block resultBlock := &coretypes.ResultBlock{Block: &tmtypes.Block{ @@ -168,10 +167,10 @@ func (s *resultTestSuite) TestResponseResultBlock() { want := &sdk.BlockResponse{ Height: 10, - Time: timestamp_str, + Time: timestampStr, } - s.Require().Equal(want, sdk.NewResponseResultBlock(resultBlock, timestamp_str)) + s.Require().Equal(want, sdk.NewResponseResultBlock(resultBlock, timestampStr)) } func TestWrapServiceResult(t *testing.T) { From 984b252dc9ba81d339064ca1f6d775c5cc180533 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Wed, 25 Jan 2023 20:56:45 -0500 Subject: [PATCH 10/34] fixes per review --- simapp/simd/cmd/cmd_test.go | 1 - x/auth/tx/README.md | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/simapp/simd/cmd/cmd_test.go b/simapp/simd/cmd/cmd_test.go index a4330f0b003f..a9c2f8ba537c 100644 --- a/simapp/simd/cmd/cmd_test.go +++ b/simapp/simd/cmd/cmd_test.go @@ -38,6 +38,5 @@ func TestHomeFlagRegistration(t *testing.T) { result, err := rootCmd.Flags().GetString(flags.FlagHome) require.NoError(t, err) - fmt.Println(result, homeDir) require.Equal(t, result, homeDir) } diff --git a/x/auth/tx/README.md b/x/auth/tx/README.md index 45a5fa455283..1286454f729b 100644 --- a/x/auth/tx/README.md +++ b/x/auth/tx/README.md @@ -85,6 +85,32 @@ When querying a transaction given its signature, use the `--type=signature` flag simd query tx --type=signature Ofjvgrqi8twZfqVDmYIhqwRLQjZZ40XbxEamk/veH3gQpRF0hL2PH4ejRaDzAX+2WChnaWNQJQ41ekToIi5Wqw== ``` +When querying a transaction given its events, use the `--type=events` flag: + +```shell +simd query txs --events 'message.sender=cosmos...' --page 1 --limit 30 +``` + +The `x/auth/block` module provides a CLI command to query any block, given its hash, height, or events. + +When querying a block by its hash, use the `--type=hash` flag: + +```shell +simd query block --type=hash DFE87B78A630C0EFDF76C80CD24C997E252792E0317502AE1A02B9809F0D8685 +``` + +When querying a block by its height, use the `--type=height` flag: + +```shell +simd query block --type=height 1357 +``` + +When querying a block by its events, use the `--type=events` flag: + +```shell +simd query blocks --events 'message.sender=cosmos...' --page 1 --limit 30 +``` + #### Transactions The `x/auth/tx` module provides a convinient CLI command for decoding and encoding transactions. From 261ff39b371aa41fa06b980380fc4bb5828ab7d2 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Thu, 26 Jan 2023 10:35:20 -0500 Subject: [PATCH 11/34] refactor based on pr feedback --- api/cosmos/base/abci/v1beta1/abci.pulsar.go | 1679 +++---------------- proto/cosmos/base/abci/v1beta1/abci.proto | 22 +- server/tm_cmds.go | 173 ++ simapp/simd/cmd/root.go | 5 +- types/abci.pb.go | 816 +-------- types/result.go | 33 +- x/auth/block/query.go | 11 +- x/auth/client/cli/query.go | 155 -- 8 files changed, 482 insertions(+), 2412 deletions(-) diff --git a/api/cosmos/base/abci/v1beta1/abci.pulsar.go b/api/cosmos/base/abci/v1beta1/abci.pulsar.go index d04e1cccb986..9b5ea1a430a8 100644 --- a/api/cosmos/base/abci/v1beta1/abci.pulsar.go +++ b/api/cosmos/base/abci/v1beta1/abci.pulsar.go @@ -3,6 +3,7 @@ package abciv1beta1 import ( abci "cosmossdk.io/api/tendermint/abci" + types "cosmossdk.io/api/tendermint/types" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -1302,1114 +1303,6 @@ func (x *fastReflection_TxResponse) ProtoMethods() *protoiface.Methods { } } -var ( - md_BlockResponse protoreflect.MessageDescriptor - fd_BlockResponse_height protoreflect.FieldDescriptor - fd_BlockResponse_time protoreflect.FieldDescriptor - fd_BlockResponse_chain_id protoreflect.FieldDescriptor - fd_BlockResponse_last_commit protoreflect.FieldDescriptor - fd_BlockResponse_data protoreflect.FieldDescriptor - fd_BlockResponse_validators protoreflect.FieldDescriptor - fd_BlockResponse_next_validators protoreflect.FieldDescriptor - fd_BlockResponse_app protoreflect.FieldDescriptor - fd_BlockResponse_consensus protoreflect.FieldDescriptor - fd_BlockResponse_results protoreflect.FieldDescriptor - fd_BlockResponse_evidence protoreflect.FieldDescriptor - fd_BlockResponse_proposer protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_base_abci_v1beta1_abci_proto_init() - md_BlockResponse = File_cosmos_base_abci_v1beta1_abci_proto.Messages().ByName("BlockResponse") - fd_BlockResponse_height = md_BlockResponse.Fields().ByName("height") - fd_BlockResponse_time = md_BlockResponse.Fields().ByName("time") - fd_BlockResponse_chain_id = md_BlockResponse.Fields().ByName("chain_id") - fd_BlockResponse_last_commit = md_BlockResponse.Fields().ByName("last_commit") - fd_BlockResponse_data = md_BlockResponse.Fields().ByName("data") - fd_BlockResponse_validators = md_BlockResponse.Fields().ByName("validators") - fd_BlockResponse_next_validators = md_BlockResponse.Fields().ByName("next_validators") - fd_BlockResponse_app = md_BlockResponse.Fields().ByName("app") - fd_BlockResponse_consensus = md_BlockResponse.Fields().ByName("consensus") - fd_BlockResponse_results = md_BlockResponse.Fields().ByName("results") - fd_BlockResponse_evidence = md_BlockResponse.Fields().ByName("evidence") - fd_BlockResponse_proposer = md_BlockResponse.Fields().ByName("proposer") -} - -var _ protoreflect.Message = (*fastReflection_BlockResponse)(nil) - -type fastReflection_BlockResponse BlockResponse - -func (x *BlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_BlockResponse)(x) -} - -func (x *BlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_BlockResponse_messageType fastReflection_BlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_BlockResponse_messageType{} - -type fastReflection_BlockResponse_messageType struct{} - -func (x fastReflection_BlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_BlockResponse)(nil) -} -func (x fastReflection_BlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_BlockResponse) -} -func (x fastReflection_BlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_BlockResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_BlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_BlockResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_BlockResponse) Type() protoreflect.MessageType { - return _fastReflection_BlockResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_BlockResponse) New() protoreflect.Message { - return new(fastReflection_BlockResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_BlockResponse) Interface() protoreflect.ProtoMessage { - return (*BlockResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_BlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Height != int64(0) { - value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_BlockResponse_height, value) { - return - } - } - if x.Time != "" { - value := protoreflect.ValueOfString(x.Time) - if !f(fd_BlockResponse_time, value) { - return - } - } - if x.ChainId != "" { - value := protoreflect.ValueOfString(x.ChainId) - if !f(fd_BlockResponse_chain_id, value) { - return - } - } - if x.LastCommit != "" { - value := protoreflect.ValueOfString(x.LastCommit) - if !f(fd_BlockResponse_last_commit, value) { - return - } - } - if x.Data != "" { - value := protoreflect.ValueOfString(x.Data) - if !f(fd_BlockResponse_data, value) { - return - } - } - if x.Validators != "" { - value := protoreflect.ValueOfString(x.Validators) - if !f(fd_BlockResponse_validators, value) { - return - } - } - if x.NextValidators != "" { - value := protoreflect.ValueOfString(x.NextValidators) - if !f(fd_BlockResponse_next_validators, value) { - return - } - } - if x.App != "" { - value := protoreflect.ValueOfString(x.App) - if !f(fd_BlockResponse_app, value) { - return - } - } - if x.Consensus != "" { - value := protoreflect.ValueOfString(x.Consensus) - if !f(fd_BlockResponse_consensus, value) { - return - } - } - if x.Results != "" { - value := protoreflect.ValueOfString(x.Results) - if !f(fd_BlockResponse_results, value) { - return - } - } - if x.Evidence != "" { - value := protoreflect.ValueOfString(x.Evidence) - if !f(fd_BlockResponse_evidence, value) { - return - } - } - if x.Proposer != "" { - value := protoreflect.ValueOfString(x.Proposer) - if !f(fd_BlockResponse_proposer, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_BlockResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.BlockResponse.height": - return x.Height != int64(0) - case "cosmos.base.abci.v1beta1.BlockResponse.time": - return x.Time != "" - case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": - return x.ChainId != "" - case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": - return x.LastCommit != "" - case "cosmos.base.abci.v1beta1.BlockResponse.data": - return x.Data != "" - case "cosmos.base.abci.v1beta1.BlockResponse.validators": - return x.Validators != "" - case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": - return x.NextValidators != "" - case "cosmos.base.abci.v1beta1.BlockResponse.app": - return x.App != "" - case "cosmos.base.abci.v1beta1.BlockResponse.consensus": - return x.Consensus != "" - case "cosmos.base.abci.v1beta1.BlockResponse.results": - return x.Results != "" - case "cosmos.base.abci.v1beta1.BlockResponse.evidence": - return x.Evidence != "" - case "cosmos.base.abci.v1beta1.BlockResponse.proposer": - return x.Proposer != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.BlockResponse.height": - x.Height = int64(0) - case "cosmos.base.abci.v1beta1.BlockResponse.time": - x.Time = "" - case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": - x.ChainId = "" - case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": - x.LastCommit = "" - case "cosmos.base.abci.v1beta1.BlockResponse.data": - x.Data = "" - case "cosmos.base.abci.v1beta1.BlockResponse.validators": - x.Validators = "" - case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": - x.NextValidators = "" - case "cosmos.base.abci.v1beta1.BlockResponse.app": - x.App = "" - case "cosmos.base.abci.v1beta1.BlockResponse.consensus": - x.Consensus = "" - case "cosmos.base.abci.v1beta1.BlockResponse.results": - x.Results = "" - case "cosmos.base.abci.v1beta1.BlockResponse.evidence": - x.Evidence = "" - case "cosmos.base.abci.v1beta1.BlockResponse.proposer": - x.Proposer = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_BlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.base.abci.v1beta1.BlockResponse.height": - value := x.Height - return protoreflect.ValueOfInt64(value) - case "cosmos.base.abci.v1beta1.BlockResponse.time": - value := x.Time - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": - value := x.ChainId - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": - value := x.LastCommit - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.BlockResponse.data": - value := x.Data - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.BlockResponse.validators": - value := x.Validators - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": - value := x.NextValidators - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.BlockResponse.app": - value := x.App - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.BlockResponse.consensus": - value := x.Consensus - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.BlockResponse.results": - value := x.Results - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.BlockResponse.evidence": - value := x.Evidence - return protoreflect.ValueOfString(value) - case "cosmos.base.abci.v1beta1.BlockResponse.proposer": - value := x.Proposer - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.BlockResponse.height": - x.Height = value.Int() - case "cosmos.base.abci.v1beta1.BlockResponse.time": - x.Time = value.Interface().(string) - case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": - x.ChainId = value.Interface().(string) - case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": - x.LastCommit = value.Interface().(string) - case "cosmos.base.abci.v1beta1.BlockResponse.data": - x.Data = value.Interface().(string) - case "cosmos.base.abci.v1beta1.BlockResponse.validators": - x.Validators = value.Interface().(string) - case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": - x.NextValidators = value.Interface().(string) - case "cosmos.base.abci.v1beta1.BlockResponse.app": - x.App = value.Interface().(string) - case "cosmos.base.abci.v1beta1.BlockResponse.consensus": - x.Consensus = value.Interface().(string) - case "cosmos.base.abci.v1beta1.BlockResponse.results": - x.Results = value.Interface().(string) - case "cosmos.base.abci.v1beta1.BlockResponse.evidence": - x.Evidence = value.Interface().(string) - case "cosmos.base.abci.v1beta1.BlockResponse.proposer": - x.Proposer = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.BlockResponse.height": - panic(fmt.Errorf("field height of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.time": - panic(fmt.Errorf("field time of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": - panic(fmt.Errorf("field chain_id of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": - panic(fmt.Errorf("field last_commit of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.data": - panic(fmt.Errorf("field data of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.validators": - panic(fmt.Errorf("field validators of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": - panic(fmt.Errorf("field next_validators of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.app": - panic(fmt.Errorf("field app of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.consensus": - panic(fmt.Errorf("field consensus of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.results": - panic(fmt.Errorf("field results of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.evidence": - panic(fmt.Errorf("field evidence of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - case "cosmos.base.abci.v1beta1.BlockResponse.proposer": - panic(fmt.Errorf("field proposer of message cosmos.base.abci.v1beta1.BlockResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_BlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.base.abci.v1beta1.BlockResponse.height": - return protoreflect.ValueOfInt64(int64(0)) - case "cosmos.base.abci.v1beta1.BlockResponse.time": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.BlockResponse.chain_id": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.BlockResponse.last_commit": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.BlockResponse.data": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.BlockResponse.validators": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.BlockResponse.next_validators": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.BlockResponse.app": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.BlockResponse.consensus": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.BlockResponse.results": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.BlockResponse.evidence": - return protoreflect.ValueOfString("") - case "cosmos.base.abci.v1beta1.BlockResponse.proposer": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.abci.v1beta1.BlockResponse")) - } - panic(fmt.Errorf("message cosmos.base.abci.v1beta1.BlockResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_BlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.base.abci.v1beta1.BlockResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_BlockResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_BlockResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_BlockResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*BlockResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Height != 0 { - n += 1 + runtime.Sov(uint64(x.Height)) - } - l = len(x.Time) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ChainId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.LastCommit) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Data) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Validators) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NextValidators) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.App) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Consensus) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Results) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Evidence) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Proposer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*BlockResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Proposer) > 0 { - i -= len(x.Proposer) - copy(dAtA[i:], x.Proposer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) - i-- - dAtA[i] = 0x62 - } - if len(x.Evidence) > 0 { - i -= len(x.Evidence) - copy(dAtA[i:], x.Evidence) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Evidence))) - i-- - dAtA[i] = 0x5a - } - if len(x.Results) > 0 { - i -= len(x.Results) - copy(dAtA[i:], x.Results) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Results))) - i-- - dAtA[i] = 0x52 - } - if len(x.Consensus) > 0 { - i -= len(x.Consensus) - copy(dAtA[i:], x.Consensus) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Consensus))) - i-- - dAtA[i] = 0x4a - } - if len(x.App) > 0 { - i -= len(x.App) - copy(dAtA[i:], x.App) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.App))) - i-- - dAtA[i] = 0x42 - } - if len(x.NextValidators) > 0 { - i -= len(x.NextValidators) - copy(dAtA[i:], x.NextValidators) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NextValidators))) - i-- - dAtA[i] = 0x3a - } - if len(x.Validators) > 0 { - i -= len(x.Validators) - copy(dAtA[i:], x.Validators) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Validators))) - i-- - dAtA[i] = 0x32 - } - if len(x.Data) > 0 { - i -= len(x.Data) - copy(dAtA[i:], x.Data) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data))) - i-- - dAtA[i] = 0x2a - } - if len(x.LastCommit) > 0 { - i -= len(x.LastCommit) - copy(dAtA[i:], x.LastCommit) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LastCommit))) - i-- - dAtA[i] = 0x22 - } - if len(x.ChainId) > 0 { - i -= len(x.ChainId) - copy(dAtA[i:], x.ChainId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChainId))) - i-- - dAtA[i] = 0x1a - } - if len(x.Time) > 0 { - i -= len(x.Time) - copy(dAtA[i:], x.Time) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Time))) - i-- - dAtA[i] = 0x12 - } - if x.Height != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Height)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*BlockResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - x.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Time = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastCommit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.LastCommit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Data = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Validators = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextValidators", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NextValidators = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field App", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.App = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Consensus", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Consensus = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Results = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Evidence = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Proposer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - var _ protoreflect.List = (*_ABCIMessageLog_3_list)(nil) type _ABCIMessageLog_3_list struct { @@ -2485,7 +1378,7 @@ func (x *ABCIMessageLog) ProtoReflect() protoreflect.Message { } func (x *ABCIMessageLog) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3089,7 +1982,7 @@ func (x *StringEvent) ProtoReflect() protoreflect.Message { } func (x *StringEvent) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3596,7 +2489,7 @@ func (x *Attribute) ProtoReflect() protoreflect.Message { } func (x *Attribute) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4080,7 +2973,7 @@ func (x *GasInfo) ProtoReflect() protoreflect.Message { } func (x *GasInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4638,7 +3531,7 @@ func (x *Result) ProtoReflect() protoreflect.Message { } func (x *Result) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5294,7 +4187,7 @@ func (x *SimulationResponse) ProtoReflect() protoreflect.Message { } func (x *SimulationResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5808,7 +4701,7 @@ func (x *MsgData) ProtoReflect() protoreflect.Message { } func (x *MsgData) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6396,7 +5289,7 @@ func (x *TxMsgData) ProtoReflect() protoreflect.Message { } func (x *TxMsgData) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6985,7 +5878,7 @@ func (x *SearchTxsResult) ProtoReflect() protoreflect.Message { } func (x *SearchTxsResult) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7641,7 +6534,7 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { var _ protoreflect.List = (*_SearchBlocksResult_6_list)(nil) type _SearchBlocksResult_6_list struct { - list *[]*BlockResponse + list *[]*types.Block } func (x *_SearchBlocksResult_6_list) Len() int { @@ -7657,18 +6550,18 @@ func (x *_SearchBlocksResult_6_list) Get(i int) protoreflect.Value { func (x *_SearchBlocksResult_6_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*BlockResponse) + concreteValue := valueUnwrapped.Interface().(*types.Block) (*x.list)[i] = concreteValue } func (x *_SearchBlocksResult_6_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*BlockResponse) + concreteValue := valueUnwrapped.Interface().(*types.Block) *x.list = append(*x.list, concreteValue) } func (x *_SearchBlocksResult_6_list) AppendMutable() protoreflect.Value { - v := new(BlockResponse) + v := new(types.Block) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -7681,7 +6574,7 @@ func (x *_SearchBlocksResult_6_list) Truncate(n int) { } func (x *_SearchBlocksResult_6_list) NewElement() protoreflect.Value { - v := new(BlockResponse) + v := new(types.Block) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -7719,7 +6612,7 @@ func (x *SearchBlocksResult) ProtoReflect() protoreflect.Message { } func (x *SearchBlocksResult) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[11] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7959,7 +6852,7 @@ func (x *fastReflection_SearchBlocksResult) Mutable(fd protoreflect.FieldDescrip switch fd.FullName() { case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": if x.Blocks == nil { - x.Blocks = []*BlockResponse{} + x.Blocks = []*types.Block{} } value := &_SearchBlocksResult_6_list{list: &x.Blocks} return protoreflect.ValueOfList(value) @@ -7997,7 +6890,7 @@ func (x *fastReflection_SearchBlocksResult) NewField(fd protoreflect.FieldDescri case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": return protoreflect.ValueOfInt64(int64(0)) case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": - list := []*BlockResponse{} + list := []*types.Block{} return protoreflect.ValueOfList(&_SearchBlocksResult_6_list{list: &list}) default: if fd.IsExtension() { @@ -8332,7 +7225,7 @@ func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Blocks = append(x.Blocks, &BlockResponse{}) + x.Blocks = append(x.Blocks, &types.Block{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Blocks[len(x.Blocks)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -8539,131 +7432,6 @@ func (x *TxResponse) GetEvents() []*abci.Event { return nil } -// BlockResponse -type BlockResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The block height - Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` - Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` - ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - LastCommit string `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"` - Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` - Validators string `protobuf:"bytes,6,opt,name=validators,proto3" json:"validators,omitempty"` - NextValidators string `protobuf:"bytes,7,opt,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"` - App string `protobuf:"bytes,8,opt,name=app,proto3" json:"app,omitempty"` - Consensus string `protobuf:"bytes,9,opt,name=consensus,proto3" json:"consensus,omitempty"` - Results string `protobuf:"bytes,10,opt,name=results,proto3" json:"results,omitempty"` - Evidence string `protobuf:"bytes,11,opt,name=evidence,proto3" json:"evidence,omitempty"` - Proposer string `protobuf:"bytes,12,opt,name=proposer,proto3" json:"proposer,omitempty"` -} - -func (x *BlockResponse) Reset() { - *x = BlockResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BlockResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BlockResponse) ProtoMessage() {} - -// Deprecated: Use BlockResponse.ProtoReflect.Descriptor instead. -func (*BlockResponse) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{1} -} - -func (x *BlockResponse) GetHeight() int64 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *BlockResponse) GetTime() string { - if x != nil { - return x.Time - } - return "" -} - -func (x *BlockResponse) GetChainId() string { - if x != nil { - return x.ChainId - } - return "" -} - -func (x *BlockResponse) GetLastCommit() string { - if x != nil { - return x.LastCommit - } - return "" -} - -func (x *BlockResponse) GetData() string { - if x != nil { - return x.Data - } - return "" -} - -func (x *BlockResponse) GetValidators() string { - if x != nil { - return x.Validators - } - return "" -} - -func (x *BlockResponse) GetNextValidators() string { - if x != nil { - return x.NextValidators - } - return "" -} - -func (x *BlockResponse) GetApp() string { - if x != nil { - return x.App - } - return "" -} - -func (x *BlockResponse) GetConsensus() string { - if x != nil { - return x.Consensus - } - return "" -} - -func (x *BlockResponse) GetResults() string { - if x != nil { - return x.Results - } - return "" -} - -func (x *BlockResponse) GetEvidence() string { - if x != nil { - return x.Evidence - } - return "" -} - -func (x *BlockResponse) GetProposer() string { - if x != nil { - return x.Proposer - } - return "" -} - // ABCIMessageLog defines a structure containing an indexed tx ABCI message log. type ABCIMessageLog struct { state protoimpl.MessageState @@ -8680,7 +7448,7 @@ type ABCIMessageLog struct { func (x *ABCIMessageLog) Reset() { *x = ABCIMessageLog{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8694,7 +7462,7 @@ func (*ABCIMessageLog) ProtoMessage() {} // Deprecated: Use ABCIMessageLog.ProtoReflect.Descriptor instead. func (*ABCIMessageLog) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{2} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{1} } func (x *ABCIMessageLog) GetMsgIndex() uint32 { @@ -8732,7 +7500,7 @@ type StringEvent struct { func (x *StringEvent) Reset() { *x = StringEvent{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8746,7 +7514,7 @@ func (*StringEvent) ProtoMessage() {} // Deprecated: Use StringEvent.ProtoReflect.Descriptor instead. func (*StringEvent) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{3} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{2} } func (x *StringEvent) GetType_() string { @@ -8777,7 +7545,7 @@ type Attribute struct { func (x *Attribute) Reset() { *x = Attribute{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8791,7 +7559,7 @@ func (*Attribute) ProtoMessage() {} // Deprecated: Use Attribute.ProtoReflect.Descriptor instead. func (*Attribute) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{4} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{3} } func (x *Attribute) GetKey() string { @@ -8823,7 +7591,7 @@ type GasInfo struct { func (x *GasInfo) Reset() { *x = GasInfo{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8837,7 +7605,7 @@ func (*GasInfo) ProtoMessage() {} // Deprecated: Use GasInfo.ProtoReflect.Descriptor instead. func (*GasInfo) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{5} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{4} } func (x *GasInfo) GetGasWanted() uint64 { @@ -8881,7 +7649,7 @@ type Result struct { func (x *Result) Reset() { *x = Result{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8895,7 +7663,7 @@ func (*Result) ProtoMessage() {} // Deprecated: Use Result.ProtoReflect.Descriptor instead. func (*Result) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{6} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{5} } // Deprecated: Do not use. @@ -8941,7 +7709,7 @@ type SimulationResponse struct { func (x *SimulationResponse) Reset() { *x = SimulationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8955,7 +7723,7 @@ func (*SimulationResponse) ProtoMessage() {} // Deprecated: Use SimulationResponse.ProtoReflect.Descriptor instead. func (*SimulationResponse) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{7} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{6} } func (x *SimulationResponse) GetGasInfo() *GasInfo { @@ -8988,7 +7756,7 @@ type MsgData struct { func (x *MsgData) Reset() { *x = MsgData{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9002,7 +7770,7 @@ func (*MsgData) ProtoMessage() {} // Deprecated: Use MsgData.ProtoReflect.Descriptor instead. func (*MsgData) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{8} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{7} } func (x *MsgData) GetMsgType() string { @@ -9039,7 +7807,7 @@ type TxMsgData struct { func (x *TxMsgData) Reset() { *x = TxMsgData{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9053,7 +7821,7 @@ func (*TxMsgData) ProtoMessage() {} // Deprecated: Use TxMsgData.ProtoReflect.Descriptor instead. func (*TxMsgData) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{9} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{8} } // Deprecated: Do not use. @@ -9094,7 +7862,7 @@ type SearchTxsResult struct { func (x *SearchTxsResult) Reset() { *x = SearchTxsResult{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9108,7 +7876,7 @@ func (*SearchTxsResult) ProtoMessage() {} // Deprecated: Use SearchTxsResult.ProtoReflect.Descriptor instead. func (*SearchTxsResult) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{10} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{9} } func (x *SearchTxsResult) GetTotalCount() uint64 { @@ -9170,13 +7938,13 @@ type SearchBlocksResult struct { // Max count blocks per page Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` // List of blocks in current page - Blocks []*BlockResponse `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` + Blocks []*types.Block `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` } func (x *SearchBlocksResult) Reset() { *x = SearchBlocksResult{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[11] + mi := &file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9190,7 +7958,7 @@ func (*SearchBlocksResult) ProtoMessage() {} // Deprecated: Use SearchBlocksResult.ProtoReflect.Descriptor instead. func (*SearchBlocksResult) Descriptor() ([]byte, []int) { - return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{11} + return file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP(), []int{10} } func (x *SearchBlocksResult) GetTotalCount() int64 { @@ -9228,7 +7996,7 @@ func (x *SearchBlocksResult) GetLimit() int64 { return 0 } -func (x *SearchBlocksResult) GetBlocks() []*BlockResponse { +func (x *SearchBlocksResult) GetBlocks() []*types.Block { if x != nil { return x.Blocks } @@ -9245,162 +8013,141 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{ 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x03, - 0x0a, 0x0a, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x12, 0x22, 0x0a, 0x06, 0x74, 0x78, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xe2, 0xde, 0x1f, 0x06, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68, - 0x52, 0x06, 0x74, 0x78, 0x68, 0x61, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, - 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x17, - 0x0a, 0x07, 0x72, 0x61, 0x77, 0x5f, 0x6c, 0x6f, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x72, 0x61, 0x77, 0x4c, 0x6f, 0x67, 0x12, 0x55, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, - 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x42, - 0x17, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x0f, 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, - 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, - 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x61, 0x73, 0x55, 0x73, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x02, - 0x74, 0x78, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x02, - 0x74, 0x78, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x12, 0x34, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, - 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xe0, 0x02, 0x0a, - 0x0d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x65, - 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x61, 0x70, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, - 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, - 0x73, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1a, 0x0a, - 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x65, 0x72, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0x80, 0xdc, 0x20, 0x01, 0x22, - 0xa9, 0x01, 0x0a, 0x0e, 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, - 0x6f, 0x67, 0x12, 0x2a, 0x0a, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0d, 0xea, 0xde, 0x1f, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x52, 0x08, 0x6d, 0x73, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, - 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, - 0x12, 0x53, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, - 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x14, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, - 0x0c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x06, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x72, 0x0a, 0x0b, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x49, - 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x61, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, - 0x33, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x22, 0x43, 0x0a, 0x07, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x19, - 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x07, 0x67, 0x61, 0x73, 0x55, 0x73, 0x65, 0x64, 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, - 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x34, - 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, + 0x74, 0x6f, 0x1a, 0x1c, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x03, 0x0a, 0x0a, + 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x12, 0x22, 0x0a, 0x06, 0x74, 0x78, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x0a, 0xe2, 0xde, 0x1f, 0x06, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68, 0x52, 0x06, + 0x74, 0x78, 0x68, 0x61, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, + 0x72, 0x61, 0x77, 0x5f, 0x6c, 0x6f, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, + 0x61, 0x77, 0x4c, 0x6f, 0x67, 0x12, 0x55, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x07, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, + 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x42, 0x17, 0xc8, + 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x0f, 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, + 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, + 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, + 0x19, 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x07, 0x67, 0x61, 0x73, 0x55, 0x73, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x02, 0x74, 0x78, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x02, 0x74, 0x78, + 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34, + 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, + 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xa9, 0x01, 0x0a, 0x0e, 0x41, + 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x2a, 0x0a, + 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x42, 0x0d, 0xea, 0xde, 0x1f, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, + 0x08, 0x6d, 0x73, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x53, 0x0a, 0x06, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x42, 0x14, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x0c, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x72, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x33, 0x0a, 0x09, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0x43, 0x0a, 0x07, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, + 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, + 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x61, 0x73, + 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x61, 0x73, + 0x55, 0x73, 0x65, 0x64, 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, + 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x34, 0x0a, 0x06, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0c, 0x6d, 0x73, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, + 0x22, 0x96, 0x01, 0x0a, 0x12, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x69, + 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x08, 0xc8, 0xde, + 0x1f, 0x00, 0xd0, 0xde, 0x1f, 0x01, 0x52, 0x07, 0x67, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x38, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, + 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x40, 0x0a, 0x07, 0x4d, 0x73, 0x67, + 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x73, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x3a, 0x06, 0x18, 0x01, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x87, 0x01, 0x0a, 0x09, + 0x54, 0x78, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0c, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x3a, - 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x08, - 0x67, 0x61, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, - 0x6f, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0xd0, 0xde, 0x1f, 0x01, 0x52, 0x07, 0x67, 0x61, 0x73, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x38, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x40, - 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x73, 0x67, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x73, 0x67, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x06, 0x18, 0x01, 0x80, 0xdc, 0x20, 0x01, - 0x22, 0x87, 0x01, 0x0a, 0x09, 0x54, 0x78, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, - 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x42, - 0x02, 0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x73, 0x67, - 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0c, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xdc, 0x01, 0x0a, 0x0f, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, - 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, - 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, - 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x36, 0x0a, 0x03, 0x74, - 0x78, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, - 0x74, 0x78, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xe8, 0x01, 0x0a, 0x12, 0x53, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x61, - 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, - 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x3f, 0x0a, - 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x3a, 0x04, - 0x80, 0xdc, 0x20, 0x01, 0x42, 0xe7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x41, 0x62, 0x63, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, - 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x62, - 0x63, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x41, 0xaa, - 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x62, - 0x63, 0x69, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x24, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, + 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xdc, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, + 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x36, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, + 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x74, 0x78, 0x73, 0x3a, 0x04, + 0x80, 0xdc, 0x20, 0x01, 0x22, 0xd8, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, + 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x42, + 0xe7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x42, 0x09, 0x41, 0x62, 0x63, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x61, 0x62, 0x63, 0x69, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x62, 0x63, 0x69, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x41, 0xaa, 0x02, 0x18, 0x43, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x62, 0x63, 0x69, 0x2e, 0x56, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x41, 0x62, 0x63, - 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xd8, 0xe1, 0x1e, 0x00, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0xe2, 0x02, 0x24, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, + 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0xd8, 0xe1, 0x1e, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -9415,37 +8162,37 @@ func file_cosmos_base_abci_v1beta1_abci_proto_rawDescGZIP() []byte { return file_cosmos_base_abci_v1beta1_abci_proto_rawDescData } -var file_cosmos_base_abci_v1beta1_abci_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_cosmos_base_abci_v1beta1_abci_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_cosmos_base_abci_v1beta1_abci_proto_goTypes = []interface{}{ (*TxResponse)(nil), // 0: cosmos.base.abci.v1beta1.TxResponse - (*BlockResponse)(nil), // 1: cosmos.base.abci.v1beta1.BlockResponse - (*ABCIMessageLog)(nil), // 2: cosmos.base.abci.v1beta1.ABCIMessageLog - (*StringEvent)(nil), // 3: cosmos.base.abci.v1beta1.StringEvent - (*Attribute)(nil), // 4: cosmos.base.abci.v1beta1.Attribute - (*GasInfo)(nil), // 5: cosmos.base.abci.v1beta1.GasInfo - (*Result)(nil), // 6: cosmos.base.abci.v1beta1.Result - (*SimulationResponse)(nil), // 7: cosmos.base.abci.v1beta1.SimulationResponse - (*MsgData)(nil), // 8: cosmos.base.abci.v1beta1.MsgData - (*TxMsgData)(nil), // 9: cosmos.base.abci.v1beta1.TxMsgData - (*SearchTxsResult)(nil), // 10: cosmos.base.abci.v1beta1.SearchTxsResult - (*SearchBlocksResult)(nil), // 11: cosmos.base.abci.v1beta1.SearchBlocksResult - (*anypb.Any)(nil), // 12: google.protobuf.Any - (*abci.Event)(nil), // 13: tendermint.abci.Event + (*ABCIMessageLog)(nil), // 1: cosmos.base.abci.v1beta1.ABCIMessageLog + (*StringEvent)(nil), // 2: cosmos.base.abci.v1beta1.StringEvent + (*Attribute)(nil), // 3: cosmos.base.abci.v1beta1.Attribute + (*GasInfo)(nil), // 4: cosmos.base.abci.v1beta1.GasInfo + (*Result)(nil), // 5: cosmos.base.abci.v1beta1.Result + (*SimulationResponse)(nil), // 6: cosmos.base.abci.v1beta1.SimulationResponse + (*MsgData)(nil), // 7: cosmos.base.abci.v1beta1.MsgData + (*TxMsgData)(nil), // 8: cosmos.base.abci.v1beta1.TxMsgData + (*SearchTxsResult)(nil), // 9: cosmos.base.abci.v1beta1.SearchTxsResult + (*SearchBlocksResult)(nil), // 10: cosmos.base.abci.v1beta1.SearchBlocksResult + (*anypb.Any)(nil), // 11: google.protobuf.Any + (*abci.Event)(nil), // 12: tendermint.abci.Event + (*types.Block)(nil), // 13: tendermint.types.Block } var file_cosmos_base_abci_v1beta1_abci_proto_depIdxs = []int32{ - 2, // 0: cosmos.base.abci.v1beta1.TxResponse.logs:type_name -> cosmos.base.abci.v1beta1.ABCIMessageLog - 12, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any - 13, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> tendermint.abci.Event - 3, // 3: cosmos.base.abci.v1beta1.ABCIMessageLog.events:type_name -> cosmos.base.abci.v1beta1.StringEvent - 4, // 4: cosmos.base.abci.v1beta1.StringEvent.attributes:type_name -> cosmos.base.abci.v1beta1.Attribute - 13, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> tendermint.abci.Event - 12, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any - 5, // 7: cosmos.base.abci.v1beta1.SimulationResponse.gas_info:type_name -> cosmos.base.abci.v1beta1.GasInfo - 6, // 8: cosmos.base.abci.v1beta1.SimulationResponse.result:type_name -> cosmos.base.abci.v1beta1.Result - 8, // 9: cosmos.base.abci.v1beta1.TxMsgData.data:type_name -> cosmos.base.abci.v1beta1.MsgData - 12, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any + 1, // 0: cosmos.base.abci.v1beta1.TxResponse.logs:type_name -> cosmos.base.abci.v1beta1.ABCIMessageLog + 11, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any + 12, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> tendermint.abci.Event + 2, // 3: cosmos.base.abci.v1beta1.ABCIMessageLog.events:type_name -> cosmos.base.abci.v1beta1.StringEvent + 3, // 4: cosmos.base.abci.v1beta1.StringEvent.attributes:type_name -> cosmos.base.abci.v1beta1.Attribute + 12, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> tendermint.abci.Event + 11, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any + 4, // 7: cosmos.base.abci.v1beta1.SimulationResponse.gas_info:type_name -> cosmos.base.abci.v1beta1.GasInfo + 5, // 8: cosmos.base.abci.v1beta1.SimulationResponse.result:type_name -> cosmos.base.abci.v1beta1.Result + 7, // 9: cosmos.base.abci.v1beta1.TxMsgData.data:type_name -> cosmos.base.abci.v1beta1.MsgData + 11, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any 0, // 11: cosmos.base.abci.v1beta1.SearchTxsResult.txs:type_name -> cosmos.base.abci.v1beta1.TxResponse - 1, // 12: cosmos.base.abci.v1beta1.SearchBlocksResult.blocks:type_name -> cosmos.base.abci.v1beta1.BlockResponse + 13, // 12: cosmos.base.abci.v1beta1.SearchBlocksResult.blocks:type_name -> tendermint.types.Block 13, // [13:13] is the sub-list for method output_type 13, // [13:13] is the sub-list for method input_type 13, // [13:13] is the sub-list for extension type_name @@ -9472,18 +8219,6 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { } } file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ABCIMessageLog); i { case 0: return &v.state @@ -9495,7 +8230,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StringEvent); i { case 0: return &v.state @@ -9507,7 +8242,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Attribute); i { case 0: return &v.state @@ -9519,7 +8254,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GasInfo); i { case 0: return &v.state @@ -9531,7 +8266,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Result); i { case 0: return &v.state @@ -9543,7 +8278,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SimulationResponse); i { case 0: return &v.state @@ -9555,7 +8290,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgData); i { case 0: return &v.state @@ -9567,7 +8302,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TxMsgData); i { case 0: return &v.state @@ -9579,7 +8314,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SearchTxsResult); i { case 0: return &v.state @@ -9591,7 +8326,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { return nil } } - file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_base_abci_v1beta1_abci_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SearchBlocksResult); i { case 0: return &v.state @@ -9610,7 +8345,7 @@ func file_cosmos_base_abci_v1beta1_abci_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_cosmos_base_abci_v1beta1_abci_proto_rawDesc, NumEnums: 0, - NumMessages: 12, + NumMessages: 11, NumExtensions: 0, NumServices: 0, }, diff --git a/proto/cosmos/base/abci/v1beta1/abci.proto b/proto/cosmos/base/abci/v1beta1/abci.proto index 98d27f5480b5..9e3b4e55dbc7 100644 --- a/proto/cosmos/base/abci/v1beta1/abci.proto +++ b/proto/cosmos/base/abci/v1beta1/abci.proto @@ -3,6 +3,7 @@ package cosmos.base.abci.v1beta1; import "gogoproto/gogo.proto"; import "tendermint/abci/types.proto"; +import "tendermint/types/block.proto"; import "google/protobuf/any.proto"; option go_package = "github.com/cosmos/cosmos-sdk/types"; @@ -48,25 +49,6 @@ message TxResponse { repeated tendermint.abci.Event events = 13 [(gogoproto.nullable) = false]; } -// BlockResponse -message BlockResponse { - option (gogoproto.stringer) = true; - option (gogoproto.goproto_getters) = false; - // The block height - int64 height = 1; - string time = 2; - string chain_id = 3; - string last_commit = 4; - string data = 5; - string validators = 6; - string next_validators = 7; - string app = 8; - string consensus = 9; - string results = 10; - string evidence = 11; - string proposer = 12; -} - // ABCIMessageLog defines a structure containing an indexed tx ABCI message log. message ABCIMessageLog { option (gogoproto.stringer) = true; @@ -191,5 +173,5 @@ message SearchBlocksResult { // Max count blocks per page int64 limit = 5; // List of blocks in current page - repeated BlockResponse blocks = 6; + repeated tendermint.types.Block blocks = 6; } diff --git a/server/tm_cmds.go b/server/tm_cmds.go index ce65b3981ee9..6d498b64293b 100644 --- a/server/tm_cmds.go +++ b/server/tm_cmds.go @@ -2,6 +2,8 @@ package server import ( "fmt" + "strconv" + "strings" "github.com/spf13/cobra" "github.com/tendermint/tendermint/p2p" @@ -10,8 +12,25 @@ import ( "sigs.k8s.io/yaml" "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/cosmos/cosmos-sdk/version" + authblock "github.com/cosmos/cosmos-sdk/x/auth/block" + tmtypes "github.com/tendermint/tendermint/types" +) + +const ( + flagEvents = "events" + flagType = "type" + + typeHash = "hash" + typeAccSeq = "acc_seq" + typeSig = "signature" + typeHeight = "height" + + eventFormat = "{eventType}.{eventAttribute}={value}" ) // ShowNodeIDCmd - ported from Tendermint, dump node ID to stdout @@ -115,3 +134,157 @@ func VersionCmd() *cobra.Command { }, } } + +// QueryBlocksByEventsCmd returns a command to search through blocks by events. +func QueryBlocksByEventsCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "blocks", + Short: "Query for paginated blocks that match a set of events", + Long: strings.TrimSpace( + fmt.Sprintf(` +Search for blocks that match the exact given events where results are paginated. +Each event takes the form of '%s'. Please refer +to each module's documentation for the full set of events to query for. Each module +documents its respective events under 'xx_events.md'. + +Example: +$ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delegator_reward' --page 1 --limit 30 +`, eventFormat, version.AppName, flagEvents), + ), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + eventsRaw, _ := cmd.Flags().GetString(flagEvents) + eventsStr := strings.Trim(eventsRaw, "'") + + var events []string + if strings.Contains(eventsStr, "&") { + events = strings.Split(eventsStr, "&") + } else { + events = append(events, eventsStr) + } + + var tmEvents []string + + for _, event := range events { + if !strings.Contains(event, "=") { + return fmt.Errorf("invalid event; event %s should be of the format: %s", event, eventFormat) + } else if strings.Count(event, "=") > 1 { + return fmt.Errorf("invalid event; event %s should be of the format: %s", event, eventFormat) + } + + tokens := strings.Split(event, "=") + if tokens[0] == tmtypes.TxHeightKey { + event = fmt.Sprintf("%s=%s", tokens[0], tokens[1]) + } else { + event = fmt.Sprintf("%s='%s'", tokens[0], tokens[1]) + } + + tmEvents = append(tmEvents, event) + } + + page, _ := cmd.Flags().GetInt(flags.FlagPage) + limit, _ := cmd.Flags().GetInt(flags.FlagLimit) + + blocks, err := authblock.QueryBlocksByEvents(clientCtx, tmEvents, page, limit, "") + if err != nil { + return err + } + + return clientCtx.PrintProto(blocks) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + cmd.Flags().Int(flags.FlagPage, query.DefaultPage, "Query a specific page of paginated results") + cmd.Flags().Int(flags.FlagLimit, query.DefaultLimit, "Query number of block results per page returned") + cmd.Flags().String(flagEvents, "", fmt.Sprintf("list of block events in the form of %s", eventFormat)) + cmd.MarkFlagRequired(flagEvents) + + return cmd +} + +// QueryBlockCmd implements the default command for a Block query. +func QueryBlockCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "block --type=[height|hash] [height|hash]", + Short: "Query for a committed block by height, hash, or event(s)", + Long: strings.TrimSpace(fmt.Sprintf(` +Example: +$ %s query block --%s=%s +$ %s query block --%s=%s +`, + version.AppName, flagType, typeHeight, + version.AppName, flagType, typeHash)), + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + typ, _ := cmd.Flags().GetString(flagType) + + switch typ { + case typeHeight: + { + if args[0] == "" { + return fmt.Errorf("argument should be a block height") + } + + var height *int64 + + // optional height + if len(args) > 0 { + h, err := strconv.Atoi(args[0]) + if err != nil { + return err + } + if h > 0 { + tmp := int64(h) + height = &tmp + } + } + + output, err := authblock.GetBlockByHeight(clientCtx, height) + if err != nil { + return err + } + + if output.Header.Height == 0 { + return fmt.Errorf("no block found with height %s", args[0]) + } + + return clientCtx.PrintProto(output) + } + case typeHash: + { + if args[0] == "" { + return fmt.Errorf("argument should be a tx hash") + } + + // If hash is given, then query the tx by hash. + output, err := authblock.GetBlockByHash(clientCtx, args[0]) + if err != nil { + return err + } + + if output.Header.AppHash == nil { + return fmt.Errorf("no block found with hash %s", args[0]) + } + + return clientCtx.PrintProto(output) + } + default: + return fmt.Errorf("unknown --%s value %s", flagType, typ) + } + }, + } + + flags.AddQueryFlagsToCmd(cmd) + cmd.Flags().String(flagType, typeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\"", typeHeight, typeHash)) + + return cmd +} diff --git a/simapp/simd/cmd/root.go b/simapp/simd/cmd/root.go index f43bb02695b6..f22f4869820e 100644 --- a/simapp/simd/cmd/root.go +++ b/simapp/simd/cmd/root.go @@ -25,6 +25,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/rpc" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/server" + tmcmd "github.com/cosmos/cosmos-sdk/server" serverconfig "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" @@ -235,9 +236,9 @@ func queryCommand() *cobra.Command { cmd.AddCommand( authcmd.GetAccountCmd(), rpc.ValidatorCommand(), - authcmd.QueryBlockCmd(), + tmcmd.QueryBlockCmd(), authcmd.QueryTxsByEventsCmd(), - authcmd.QueryBlocksByEventsCmd(), + tmcmd.QueryBlocksByEventsCmd(), authcmd.QueryTxCmd(), ) diff --git a/types/abci.pb.go b/types/abci.pb.go index b28bfafcd443..ec64ed132e50 100644 --- a/types/abci.pb.go +++ b/types/abci.pb.go @@ -9,6 +9,7 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" types1 "github.com/tendermint/tendermint/abci/types" + types2 "github.com/tendermint/tendermint/proto/tendermint/types" io "io" math "math" math_bits "math/bits" @@ -98,55 +99,6 @@ func (m *TxResponse) XXX_DiscardUnknown() { var xxx_messageInfo_TxResponse proto.InternalMessageInfo -// BlockResponse -type BlockResponse struct { - // The block height - Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` - Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` - ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - LastCommit string `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"` - Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` - Validators string `protobuf:"bytes,6,opt,name=validators,proto3" json:"validators,omitempty"` - NextValidators string `protobuf:"bytes,7,opt,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"` - App string `protobuf:"bytes,8,opt,name=app,proto3" json:"app,omitempty"` - Consensus string `protobuf:"bytes,9,opt,name=consensus,proto3" json:"consensus,omitempty"` - Results string `protobuf:"bytes,10,opt,name=results,proto3" json:"results,omitempty"` - Evidence string `protobuf:"bytes,11,opt,name=evidence,proto3" json:"evidence,omitempty"` - Proposer string `protobuf:"bytes,12,opt,name=proposer,proto3" json:"proposer,omitempty"` -} - -func (m *BlockResponse) Reset() { *m = BlockResponse{} } -func (*BlockResponse) ProtoMessage() {} -func (*BlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{1} -} -func (m *BlockResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockResponse.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 *BlockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockResponse.Merge(m, src) -} -func (m *BlockResponse) XXX_Size() int { - return m.Size() -} -func (m *BlockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockResponse proto.InternalMessageInfo - // ABCIMessageLog defines a structure containing an indexed tx ABCI message log. type ABCIMessageLog struct { MsgIndex uint32 `protobuf:"varint,1,opt,name=msg_index,json=msgIndex,proto3" json:"msg_index"` @@ -159,7 +111,7 @@ type ABCIMessageLog struct { func (m *ABCIMessageLog) Reset() { *m = ABCIMessageLog{} } func (*ABCIMessageLog) ProtoMessage() {} func (*ABCIMessageLog) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{2} + return fileDescriptor_4e37629bc7eb0df8, []int{1} } func (m *ABCIMessageLog) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -219,7 +171,7 @@ type StringEvent struct { func (m *StringEvent) Reset() { *m = StringEvent{} } func (*StringEvent) ProtoMessage() {} func (*StringEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{3} + return fileDescriptor_4e37629bc7eb0df8, []int{2} } func (m *StringEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -272,7 +224,7 @@ type Attribute struct { func (m *Attribute) Reset() { *m = Attribute{} } func (*Attribute) ProtoMessage() {} func (*Attribute) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{4} + return fileDescriptor_4e37629bc7eb0df8, []int{3} } func (m *Attribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -326,7 +278,7 @@ type GasInfo struct { func (m *GasInfo) Reset() { *m = GasInfo{} } func (*GasInfo) ProtoMessage() {} func (*GasInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{5} + return fileDescriptor_4e37629bc7eb0df8, []int{4} } func (m *GasInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -390,7 +342,7 @@ type Result struct { func (m *Result) Reset() { *m = Result{} } func (*Result) ProtoMessage() {} func (*Result) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{6} + return fileDescriptor_4e37629bc7eb0df8, []int{5} } func (m *Result) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -429,7 +381,7 @@ type SimulationResponse struct { func (m *SimulationResponse) Reset() { *m = SimulationResponse{} } func (*SimulationResponse) ProtoMessage() {} func (*SimulationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{7} + return fileDescriptor_4e37629bc7eb0df8, []int{6} } func (m *SimulationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -477,7 +429,7 @@ type MsgData struct { func (m *MsgData) Reset() { *m = MsgData{} } func (*MsgData) ProtoMessage() {} func (*MsgData) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{8} + return fileDescriptor_4e37629bc7eb0df8, []int{7} } func (m *MsgData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -534,7 +486,7 @@ type TxMsgData struct { func (m *TxMsgData) Reset() { *m = TxMsgData{} } func (*TxMsgData) ProtoMessage() {} func (*TxMsgData) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{9} + return fileDescriptor_4e37629bc7eb0df8, []int{8} } func (m *TxMsgData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -597,7 +549,7 @@ type SearchTxsResult struct { func (m *SearchTxsResult) Reset() { *m = SearchTxsResult{} } func (*SearchTxsResult) ProtoMessage() {} func (*SearchTxsResult) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{10} + return fileDescriptor_4e37629bc7eb0df8, []int{9} } func (m *SearchTxsResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -681,13 +633,13 @@ type SearchBlocksResult struct { // Max count blocks per page Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` // List of blocks in current page - Blocks []*BlockResponse `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` + Blocks []*types2.Block `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` } func (m *SearchBlocksResult) Reset() { *m = SearchBlocksResult{} } func (*SearchBlocksResult) ProtoMessage() {} func (*SearchBlocksResult) Descriptor() ([]byte, []int) { - return fileDescriptor_4e37629bc7eb0df8, []int{11} + return fileDescriptor_4e37629bc7eb0df8, []int{10} } func (m *SearchBlocksResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -751,7 +703,7 @@ func (m *SearchBlocksResult) GetLimit() int64 { return 0 } -func (m *SearchBlocksResult) GetBlocks() []*BlockResponse { +func (m *SearchBlocksResult) GetBlocks() []*types2.Block { if m != nil { return m.Blocks } @@ -760,7 +712,6 @@ func (m *SearchBlocksResult) GetBlocks() []*BlockResponse { func init() { proto.RegisterType((*TxResponse)(nil), "cosmos.base.abci.v1beta1.TxResponse") - proto.RegisterType((*BlockResponse)(nil), "cosmos.base.abci.v1beta1.BlockResponse") proto.RegisterType((*ABCIMessageLog)(nil), "cosmos.base.abci.v1beta1.ABCIMessageLog") proto.RegisterType((*StringEvent)(nil), "cosmos.base.abci.v1beta1.StringEvent") proto.RegisterType((*Attribute)(nil), "cosmos.base.abci.v1beta1.Attribute") @@ -778,76 +729,68 @@ func init() { } var fileDescriptor_4e37629bc7eb0df8 = []byte{ - // 1101 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0x39, 0x6f, 0x1b, 0xc7, - 0x17, 0xe7, 0x72, 0x69, 0x1e, 0x8f, 0xa2, 0xfd, 0xc7, 0x40, 0xb0, 0xd7, 0xfe, 0x27, 0x24, 0x43, - 0x3b, 0x30, 0x11, 0x20, 0x24, 0x7c, 0x20, 0x88, 0xdd, 0xc4, 0xa6, 0x72, 0x09, 0xb0, 0x53, 0xac, - 0xe8, 0x04, 0x48, 0x43, 0x0c, 0xb9, 0xe3, 0xe5, 0x42, 0xdc, 0x9d, 0xc5, 0xce, 0x50, 0x22, 0xbb, - 0x74, 0x49, 0x99, 0x2a, 0x75, 0xda, 0xe4, 0x93, 0xb8, 0x48, 0xa1, 0xd2, 0x85, 0xa1, 0x38, 0x52, - 0x13, 0xe4, 0x53, 0x04, 0xef, 0xcd, 0xf0, 0x50, 0x64, 0xca, 0xae, 0x34, 0xef, 0x98, 0xd9, 0xf9, - 0x1d, 0x6f, 0x44, 0xb8, 0x39, 0x92, 0x2a, 0x96, 0xaa, 0x3b, 0xe4, 0x4a, 0x74, 0xf9, 0x70, 0x14, - 0x75, 0x0f, 0xee, 0x0c, 0x85, 0xe6, 0x77, 0x28, 0xe8, 0xa4, 0x99, 0xd4, 0x92, 0x79, 0xa6, 0xa9, - 0x83, 0x4d, 0x1d, 0xca, 0xdb, 0xa6, 0x1b, 0xdb, 0xa1, 0x0c, 0x25, 0x35, 0x75, 0x71, 0x65, 0xfa, - 0x6f, 0xfc, 0x5f, 0x8b, 0x24, 0x10, 0x59, 0x1c, 0x25, 0xda, 0x9c, 0xa9, 0xe7, 0xa9, 0x50, 0xb6, - 0x78, 0x3d, 0x94, 0x32, 0x9c, 0x88, 0x2e, 0x45, 0xc3, 0xe9, 0xf3, 0x2e, 0x4f, 0xe6, 0xa6, 0xd4, - 0xfa, 0xc3, 0x05, 0xe8, 0xcf, 0x7c, 0xa1, 0x52, 0x99, 0x28, 0xc1, 0xae, 0x42, 0x71, 0x2c, 0xa2, - 0x70, 0xac, 0x3d, 0xa7, 0xe9, 0xb4, 0x5d, 0xdf, 0x46, 0xac, 0x05, 0x45, 0x3d, 0x1b, 0x73, 0x35, - 0xf6, 0xf2, 0x4d, 0xa7, 0x5d, 0xe9, 0xc1, 0xc9, 0x71, 0xa3, 0xd8, 0x9f, 0x7d, 0xcd, 0xd5, 0xd8, - 0xb7, 0x15, 0xf6, 0x1e, 0x54, 0x46, 0x32, 0x10, 0x2a, 0xe5, 0x23, 0xe1, 0xb9, 0xd8, 0xe6, 0xaf, - 0x12, 0x8c, 0x41, 0x01, 0x03, 0xaf, 0xd0, 0x74, 0xda, 0x35, 0x9f, 0xd6, 0x98, 0x0b, 0xb8, 0xe6, - 0xde, 0x25, 0x6a, 0xa6, 0x35, 0xbb, 0x06, 0xa5, 0x8c, 0x1f, 0x0e, 0x26, 0x32, 0xf4, 0x8a, 0x94, - 0x2e, 0x66, 0xfc, 0xf0, 0x89, 0x0c, 0xd9, 0x33, 0x28, 0x4c, 0x64, 0xa8, 0xbc, 0x52, 0xd3, 0x6d, - 0x57, 0xef, 0xb6, 0x3b, 0x9b, 0x08, 0xea, 0x3c, 0xee, 0xed, 0xec, 0x3e, 0x15, 0x4a, 0xf1, 0x50, - 0x3c, 0x91, 0x61, 0xef, 0xda, 0x8b, 0xe3, 0x46, 0xee, 0xf7, 0x3f, 0x1b, 0x57, 0xce, 0xe6, 0x95, - 0x4f, 0xc7, 0xe1, 0x1d, 0xa2, 0xe4, 0xb9, 0xf4, 0xca, 0xe6, 0x0e, 0xb8, 0x66, 0xef, 0x03, 0x84, - 0x5c, 0x0d, 0x0e, 0x79, 0xa2, 0x45, 0xe0, 0x55, 0x88, 0x89, 0x4a, 0xc8, 0xd5, 0x77, 0x94, 0x60, - 0xd7, 0xa1, 0x8c, 0xe5, 0xa9, 0x12, 0x81, 0x07, 0x54, 0x2c, 0x85, 0x5c, 0x3d, 0x53, 0x22, 0x60, - 0xb7, 0x20, 0xaf, 0x67, 0x5e, 0xb5, 0xe9, 0xb4, 0xab, 0x77, 0xb7, 0x3b, 0x86, 0xf6, 0xce, 0x82, - 0xf6, 0xce, 0xe3, 0x64, 0xee, 0xe7, 0xf5, 0x0c, 0x99, 0xd2, 0x51, 0x2c, 0x94, 0xe6, 0x71, 0xea, - 0x6d, 0x19, 0xa6, 0x96, 0x09, 0x76, 0x1f, 0x8a, 0xe2, 0x40, 0x24, 0x5a, 0x79, 0x35, 0x82, 0x7a, - 0xb5, 0xb3, 0xd2, 0xd6, 0x20, 0xfd, 0x02, 0xcb, 0xbd, 0x02, 0x02, 0xf3, 0x6d, 0xef, 0xc3, 0xc2, - 0x4f, 0xbf, 0x36, 0x72, 0xad, 0xd7, 0x79, 0xa8, 0xf5, 0x26, 0x72, 0xb4, 0xff, 0x56, 0x45, 0x19, - 0x14, 0xf0, 0x93, 0x46, 0x4f, 0x9f, 0xd6, 0x08, 0x6c, 0x34, 0xe6, 0x51, 0x32, 0x88, 0x02, 0x2b, - 0x60, 0x89, 0xe2, 0xdd, 0x80, 0x35, 0xa0, 0x3a, 0xe1, 0x4a, 0x0f, 0x46, 0x32, 0x8e, 0x23, 0x4d, - 0x2a, 0x56, 0x7c, 0xc0, 0xd4, 0x0e, 0x65, 0xde, 0xa8, 0x65, 0x1d, 0xe0, 0x80, 0x4f, 0xa2, 0x80, - 0x6b, 0x99, 0x29, 0x2b, 0xe7, 0x5a, 0x86, 0xdd, 0x86, 0x2b, 0x89, 0x98, 0xe9, 0xc1, 0x5a, 0x53, - 0x89, 0x9a, 0x2e, 0x63, 0xfa, 0xdb, 0x55, 0xe3, 0xff, 0xc0, 0xe5, 0x69, 0x6a, 0x35, 0xc2, 0xa5, - 0x31, 0x5b, 0xa2, 0x44, 0xa2, 0xa6, 0x8a, 0x14, 0x22, 0xb3, 0xd9, 0x04, 0xf3, 0xa0, 0x94, 0x09, - 0x35, 0x9d, 0x68, 0x45, 0x02, 0x55, 0xfc, 0x45, 0xc8, 0x6e, 0x40, 0x59, 0x1c, 0x44, 0x81, 0x48, - 0x46, 0x82, 0x64, 0xaa, 0xf8, 0xcb, 0x18, 0x6b, 0x69, 0x26, 0x53, 0xa9, 0x44, 0x66, 0x55, 0x59, - 0xc6, 0x0f, 0xcb, 0x48, 0xef, 0x0f, 0xaf, 0x9a, 0x4e, 0xeb, 0x37, 0x07, 0x2e, 0x9f, 0xb5, 0x12, - 0xfb, 0x08, 0x2a, 0xb1, 0x0a, 0x07, 0x51, 0x12, 0x88, 0x19, 0xd1, 0x5c, 0xeb, 0xd5, 0xfe, 0x39, - 0x6e, 0xac, 0x92, 0x7e, 0x39, 0x56, 0xe1, 0x2e, 0xae, 0x10, 0x0a, 0x7a, 0xdb, 0xd0, 0x8e, 0x4b, - 0xb6, 0xb7, 0xd4, 0xdb, 0x25, 0xbd, 0x3f, 0xdc, 0x6c, 0xed, 0x3d, 0x9d, 0x45, 0x49, 0x68, 0xe4, - 0xdf, 0xb6, 0xbe, 0xde, 0x5a, 0x4b, 0xaa, 0x95, 0x1d, 0xe8, 0xae, 0x19, 0x54, 0xd7, 0xaa, 0xa4, - 0xf9, 0x3c, 0x15, 0x74, 0x45, 0xd4, 0x7c, 0x9e, 0x0a, 0xb6, 0x0b, 0xc0, 0xb5, 0xce, 0xa2, 0xe1, - 0x54, 0x0b, 0xe5, 0xe5, 0xe9, 0x06, 0x37, 0x2f, 0x18, 0xae, 0x45, 0xaf, 0xb5, 0xdf, 0xda, 0x66, - 0xfb, 0xcd, 0x7b, 0x50, 0x59, 0x36, 0x21, 0xda, 0x7d, 0x31, 0xb7, 0x1f, 0xc4, 0x25, 0xdb, 0x86, - 0x4b, 0x07, 0x7c, 0x32, 0x5d, 0x18, 0xcf, 0x04, 0xad, 0x1d, 0x28, 0x7d, 0xc5, 0xd5, 0xee, 0xf9, - 0xe1, 0xc3, 0x9d, 0x85, 0x4d, 0xc3, 0x97, 0xa7, 0xe2, 0x62, 0xf8, 0x50, 0x99, 0xa2, 0x4f, 0x3a, - 0xb3, 0xab, 0xd6, 0x8d, 0xb8, 0x7d, 0xab, 0x97, 0xf7, 0x1c, 0xeb, 0xc8, 0xf3, 0xec, 0xdf, 0xff, - 0x0f, 0xfb, 0xef, 0x34, 0x6d, 0xec, 0x01, 0xd4, 0x50, 0xdc, 0xcc, 0x4e, 0x99, 0xf2, 0x0a, 0xb4, - 0xf9, 0xcd, 0x23, 0xbf, 0x15, 0xab, 0x70, 0x31, 0x8f, 0x8b, 0x41, 0xfd, 0xc5, 0x01, 0xb6, 0x17, - 0xc5, 0xd3, 0x09, 0xd7, 0x91, 0x4c, 0x96, 0xd3, 0xfa, 0xa5, 0x41, 0x47, 0x2f, 0x92, 0x43, 0xaf, - 0xc8, 0x07, 0x9b, 0xb5, 0xb0, 0x8c, 0xf5, 0xca, 0x78, 0xb5, 0xa3, 0xe3, 0x86, 0x43, 0x54, 0x10, - 0x89, 0x9f, 0x42, 0xd1, 0x38, 0x9e, 0xa0, 0x56, 0xef, 0x36, 0x37, 0x9f, 0x62, 0x18, 0xf3, 0x6d, - 0x7f, 0xeb, 0x11, 0x94, 0x9e, 0xaa, 0xf0, 0x73, 0x24, 0xeb, 0x3a, 0xa0, 0x6d, 0x07, 0x6b, 0x96, - 0x29, 0xc5, 0x2a, 0xec, 0xa3, 0x6b, 0x16, 0xd3, 0x8e, 0xa7, 0x6f, 0x19, 0x6e, 0x1f, 0x16, 0x51, - 0x7e, 0xcf, 0x69, 0xfd, 0xe8, 0x40, 0xa5, 0x3f, 0x5b, 0x1c, 0xf2, 0x60, 0xa9, 0x84, 0x7b, 0x31, - 0x1a, 0xbb, 0x61, 0x4d, 0xac, 0x73, 0x24, 0xe7, 0xdf, 0x9d, 0x64, 0xb2, 0xe2, 0x2b, 0x07, 0xae, - 0xec, 0x09, 0x9e, 0x8d, 0xc6, 0xfd, 0x99, 0xb2, 0xce, 0x68, 0x40, 0x55, 0x4b, 0xcd, 0x27, 0x83, - 0x91, 0x9c, 0x26, 0xda, 0xfa, 0x0b, 0x28, 0xb5, 0x83, 0x19, 0x34, 0xa8, 0x29, 0x19, 0x77, 0x99, - 0x00, 0xb7, 0xa5, 0x3c, 0x14, 0x83, 0x64, 0x1a, 0x0f, 0x45, 0x46, 0xaf, 0x63, 0xc1, 0x07, 0x4c, - 0x7d, 0x43, 0x19, 0xb4, 0x2d, 0x35, 0xd0, 0x49, 0xf4, 0x3e, 0x16, 0xfc, 0x0a, 0x66, 0xfa, 0x98, - 0xc0, 0x53, 0x27, 0x11, 0xbe, 0x9c, 0x97, 0xcc, 0xa9, 0x14, 0xb0, 0x4f, 0xc0, 0xd5, 0x33, 0x7c, - 0x19, 0x11, 0xd7, 0xad, 0xcd, 0xdc, 0xac, 0xfe, 0x43, 0xfb, 0xb8, 0xc1, 0xc2, 0xfb, 0x1b, 0x3d, - 0x44, 0xf0, 0xe8, 0xc9, 0xbf, 0x00, 0xa1, 0xbb, 0x19, 0xa1, 0x7b, 0x01, 0x42, 0xf7, 0x2d, 0x08, - 0xdd, 0x8d, 0x08, 0xdd, 0x05, 0xc2, 0xcf, 0xa0, 0x38, 0xa4, 0xcb, 0x59, 0x90, 0xb7, 0x37, 0x83, - 0x3c, 0xf3, 0x7f, 0xcb, 0xb7, 0xdb, 0x0c, 0xd4, 0xde, 0xa3, 0x97, 0x7f, 0xd5, 0x73, 0x2f, 0x4e, - 0xea, 0xce, 0xd1, 0x49, 0xdd, 0x79, 0x7d, 0x52, 0x77, 0x7e, 0x3e, 0xad, 0xe7, 0x8e, 0x4e, 0xeb, - 0xb9, 0x97, 0xa7, 0xf5, 0xdc, 0xf7, 0xad, 0x30, 0xd2, 0xe3, 0xe9, 0xb0, 0x33, 0x92, 0x71, 0xd7, - 0xfe, 0xb8, 0x32, 0x7f, 0x3e, 0x56, 0xc1, 0xbe, 0xf9, 0x25, 0x34, 0x2c, 0x92, 0x5b, 0xee, 0xfd, - 0x1b, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x1d, 0x3b, 0x1e, 0x7e, 0x09, 0x00, 0x00, + // 968 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0x4f, 0x6f, 0x1b, 0xb7, + 0x13, 0xd5, 0x6a, 0x37, 0x2b, 0x8b, 0xb2, 0x7e, 0xf9, 0x81, 0x30, 0x6c, 0x3a, 0x4d, 0x25, 0x55, + 0x49, 0x01, 0xa1, 0x40, 0x57, 0x88, 0x13, 0x14, 0x4d, 0x4e, 0x89, 0xdc, 0x7f, 0x06, 0x92, 0x1e, + 0xd6, 0x0a, 0x0a, 0xf4, 0x22, 0x50, 0x12, 0x43, 0x2d, 0xac, 0x5d, 0x0a, 0x4b, 0xca, 0x96, 0x6f, + 0xbd, 0xb5, 0xc7, 0x9e, 0x7a, 0xee, 0xb5, 0xfd, 0x24, 0x39, 0xf4, 0xe0, 0xa3, 0x0f, 0x81, 0xdb, + 0xda, 0xb7, 0x7e, 0x8a, 0x62, 0x86, 0xd4, 0x9f, 0xd4, 0x95, 0x9b, 0x93, 0x87, 0x6f, 0x86, 0xd4, + 0xbc, 0x37, 0x6f, 0x49, 0x93, 0x7b, 0x03, 0xa5, 0x53, 0xa5, 0xdb, 0x7d, 0xae, 0x45, 0x9b, 0xf7, + 0x07, 0x49, 0xfb, 0xf8, 0x41, 0x5f, 0x18, 0xfe, 0x00, 0x17, 0xd1, 0x24, 0x57, 0x46, 0x51, 0x66, + 0x8b, 0x22, 0x28, 0x8a, 0x10, 0x77, 0x45, 0x77, 0xb6, 0xa4, 0x92, 0x0a, 0x8b, 0xda, 0x10, 0xd9, + 0xfa, 0x3b, 0xef, 0x19, 0x91, 0x0d, 0x45, 0x9e, 0x26, 0x99, 0xb1, 0x67, 0x9a, 0xd3, 0x89, 0xd0, + 0x2e, 0x79, 0x77, 0x25, 0x89, 0x78, 0xbb, 0x3f, 0x56, 0x83, 0x23, 0x97, 0xdd, 0x95, 0x4a, 0xc9, + 0xb1, 0x68, 0xe3, 0xaa, 0x3f, 0x7d, 0xd5, 0xe6, 0xd9, 0xa9, 0x4d, 0x35, 0x7f, 0xf3, 0x09, 0xe9, + 0xce, 0x62, 0xa1, 0x27, 0x2a, 0xd3, 0x82, 0x6e, 0x93, 0x70, 0x24, 0x12, 0x39, 0x32, 0xcc, 0x6b, + 0x78, 0x2d, 0x3f, 0x76, 0x2b, 0xda, 0x24, 0xa1, 0x99, 0x8d, 0xb8, 0x1e, 0xb1, 0x62, 0xc3, 0x6b, + 0x95, 0x3b, 0xe4, 0xf2, 0xa2, 0x1e, 0x76, 0x67, 0x5f, 0x71, 0x3d, 0x8a, 0x5d, 0x86, 0xde, 0x25, + 0xe5, 0x81, 0x1a, 0x0a, 0x3d, 0xe1, 0x03, 0xc1, 0x7c, 0x28, 0x8b, 0x97, 0x00, 0xa5, 0x24, 0x80, + 0x05, 0x0b, 0x1a, 0x5e, 0xab, 0x1a, 0x63, 0x0c, 0xd8, 0x90, 0x1b, 0xce, 0x6e, 0x61, 0x31, 0xc6, + 0x74, 0x87, 0x94, 0x72, 0x7e, 0xd2, 0x1b, 0x2b, 0xc9, 0x42, 0x84, 0xc3, 0x9c, 0x9f, 0x3c, 0x57, + 0x92, 0xbe, 0x24, 0xc1, 0x58, 0x49, 0xcd, 0x4a, 0x0d, 0xbf, 0x55, 0xd9, 0x6b, 0x45, 0xeb, 0xe4, + 0x8b, 0x9e, 0x75, 0xf6, 0x0f, 0x5e, 0x08, 0xad, 0xb9, 0x14, 0xcf, 0x95, 0xec, 0xec, 0xbc, 0xbe, + 0xa8, 0x17, 0x7e, 0xfd, 0xbd, 0x7e, 0xfb, 0x6d, 0x5c, 0xc7, 0x78, 0x1c, 0xf4, 0x90, 0x64, 0xaf, + 0x14, 0xdb, 0xb0, 0x3d, 0x40, 0x4c, 0xdf, 0x27, 0x44, 0x72, 0xdd, 0x3b, 0xe1, 0x99, 0x11, 0x43, + 0x56, 0x46, 0x25, 0xca, 0x92, 0xeb, 0x6f, 0x10, 0xa0, 0xbb, 0x64, 0x03, 0xd2, 0x53, 0x2d, 0x86, + 0x8c, 0x60, 0xb2, 0x24, 0xb9, 0x7e, 0xa9, 0xc5, 0x90, 0xde, 0x27, 0x45, 0x33, 0x63, 0x95, 0x86, + 0xd7, 0xaa, 0xec, 0x6d, 0x45, 0x56, 0xf6, 0x68, 0x2e, 0x7b, 0xf4, 0x2c, 0x3b, 0x8d, 0x8b, 0x66, + 0x06, 0x4a, 0x99, 0x24, 0x15, 0xda, 0xf0, 0x74, 0xc2, 0x36, 0xad, 0x52, 0x0b, 0x80, 0x3e, 0x22, + 0xa1, 0x38, 0x16, 0x99, 0xd1, 0xac, 0x8a, 0x54, 0xb7, 0xa3, 0xe5, 0x70, 0x2d, 0xd3, 0xcf, 0x21, + 0xdd, 0x09, 0x80, 0x58, 0xec, 0x6a, 0x9f, 0x04, 0x3f, 0xfc, 0x5c, 0x2f, 0x34, 0x7f, 0xf1, 0xc8, + 0xff, 0xde, 0xe6, 0x49, 0x3f, 0x22, 0xe5, 0x54, 0xcb, 0x5e, 0x92, 0x0d, 0xc5, 0x0c, 0xa7, 0x5a, + 0xed, 0x54, 0xff, 0xba, 0xa8, 0x2f, 0xc1, 0x78, 0x23, 0xd5, 0xf2, 0x00, 0x22, 0xfa, 0x7f, 0xe2, + 0x83, 0xf0, 0x38, 0xe3, 0x18, 0x42, 0x7a, 0xb8, 0x68, 0xc6, 0xc7, 0x66, 0x3e, 0x5c, 0xaf, 0xfb, + 0xa1, 0xc9, 0x93, 0x4c, 0xda, 0xde, 0xb6, 0x9c, 0xe8, 0x9b, 0x2b, 0xa0, 0x5e, 0xf6, 0xfa, 0xdd, + 0x9b, 0x86, 0xd7, 0xcc, 0x49, 0x65, 0x25, 0x0b, 0x83, 0x00, 0xe7, 0x62, 0x8b, 0xe5, 0x18, 0x63, + 0x7a, 0x40, 0x08, 0x37, 0x26, 0x4f, 0xfa, 0x53, 0x23, 0x34, 0x2b, 0x62, 0x07, 0xf7, 0x6e, 0x98, + 0xfc, 0xbc, 0xd6, 0x69, 0xb3, 0xb2, 0xd9, 0xfd, 0xe6, 0x43, 0x52, 0x5e, 0x14, 0x01, 0xdb, 0x23, + 0x71, 0xea, 0x7e, 0x10, 0x42, 0xba, 0x45, 0x6e, 0x1d, 0xf3, 0xf1, 0x54, 0x38, 0x05, 0xec, 0xa2, + 0xb9, 0x4f, 0x4a, 0x5f, 0x72, 0x7d, 0x70, 0xdd, 0x19, 0xb0, 0x33, 0x58, 0xe7, 0x8c, 0x22, 0x26, + 0xe7, 0xce, 0x80, 0xc9, 0x84, 0xb1, 0xd0, 0xd3, 0xb1, 0xa1, 0xdb, 0xce, 0xf6, 0xb0, 0x7d, 0xb3, + 0x53, 0x64, 0x9e, 0xb3, 0xfe, 0x75, 0xf5, 0x1f, 0xfd, 0x43, 0xfd, 0x77, 0xb2, 0x02, 0x7d, 0x4c, + 0xaa, 0x30, 0xdc, 0xdc, 0x7d, 0xd4, 0x9a, 0x05, 0xb8, 0xf9, 0xdf, 0xfd, 0xb8, 0x99, 0x6a, 0x39, + 0xff, 0xfc, 0xe7, 0x2e, 0xfa, 0xc9, 0x23, 0xf4, 0x30, 0x49, 0xa7, 0x63, 0x6e, 0x12, 0x95, 0x2d, + 0x2e, 0x87, 0x2f, 0x2c, 0x3b, 0xfc, 0x5c, 0x3c, 0xb4, 0xf8, 0x07, 0xeb, 0x67, 0xe1, 0x14, 0xeb, + 0x6c, 0x40, 0x6b, 0x67, 0x17, 0x75, 0x0f, 0xa5, 0x40, 0x11, 0x3f, 0x25, 0x61, 0x8e, 0x4a, 0x20, + 0xd5, 0xca, 0x5e, 0x63, 0xfd, 0x29, 0x56, 0xb1, 0xd8, 0xd5, 0x37, 0x9f, 0x92, 0xd2, 0x0b, 0x2d, + 0x3f, 0x03, 0xb1, 0x76, 0x09, 0xd8, 0xb6, 0xb7, 0x62, 0x99, 0x52, 0xaa, 0x65, 0x17, 0x5c, 0x33, + 0xbf, 0x56, 0xe0, 0xf4, 0x4d, 0xab, 0xed, 0x93, 0x10, 0xc6, 0xcf, 0xbc, 0xe6, 0xf7, 0x1e, 0x29, + 0x77, 0x67, 0xf3, 0x43, 0x1e, 0x2f, 0x26, 0xe1, 0xdf, 0xcc, 0xc6, 0x6d, 0x58, 0x19, 0xd6, 0x35, + 0x91, 0x8b, 0xef, 0x2e, 0x32, 0x5a, 0xf1, 0x8d, 0x47, 0x6e, 0x1f, 0x0a, 0x9e, 0x0f, 0x46, 0xdd, + 0x99, 0x76, 0xce, 0xa8, 0x93, 0x8a, 0x51, 0x86, 0x8f, 0x7b, 0x03, 0x35, 0xcd, 0x8c, 0xf3, 0x17, + 0x41, 0x68, 0x1f, 0x10, 0x30, 0xa8, 0x4d, 0x59, 0x77, 0xd9, 0x05, 0x6c, 0x9b, 0x70, 0x29, 0x7a, + 0xd9, 0x34, 0xed, 0x8b, 0x1c, 0xef, 0xde, 0x20, 0x26, 0x00, 0x7d, 0x8d, 0x08, 0xd8, 0x16, 0x0b, + 0xf0, 0x24, 0xbc, 0x82, 0x83, 0xb8, 0x0c, 0x48, 0x17, 0x00, 0x38, 0x75, 0x9c, 0xa4, 0x89, 0xc1, + 0x8b, 0x38, 0x88, 0xed, 0x82, 0x7e, 0x42, 0x7c, 0x33, 0xd3, 0x2c, 0x44, 0x5e, 0xf7, 0xd7, 0x6b, + 0xb3, 0x7c, 0x3e, 0x62, 0xd8, 0xe0, 0xe8, 0x9d, 0x83, 0x87, 0x90, 0x5e, 0x07, 0x5e, 0xa2, 0x1b, + 0x18, 0xfa, 0xeb, 0x19, 0xfa, 0x37, 0x30, 0xf4, 0xff, 0x83, 0xa1, 0xbf, 0x96, 0xa1, 0x3f, 0x67, + 0xd8, 0x26, 0x21, 0x3e, 0x93, 0x73, 0x92, 0x3b, 0xab, 0x9f, 0x97, 0x7d, 0x5e, 0xb1, 0xf9, 0xd8, + 0x95, 0x59, 0x6a, 0x9d, 0xa7, 0xe7, 0x7f, 0xd6, 0x0a, 0xaf, 0x2f, 0x6b, 0xde, 0xd9, 0x65, 0xcd, + 0xfb, 0xe3, 0xb2, 0xe6, 0xfd, 0x78, 0x55, 0x2b, 0x9c, 0x5d, 0xd5, 0x0a, 0xe7, 0x57, 0xb5, 0xc2, + 0xb7, 0x4d, 0x99, 0x98, 0xd1, 0xb4, 0x1f, 0x0d, 0x54, 0xda, 0x76, 0xff, 0x07, 0xd8, 0x3f, 0x1f, + 0xeb, 0xe1, 0x91, 0x7d, 0x9c, 0xfb, 0x21, 0xba, 0xe3, 0xe1, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x4d, 0x51, 0x55, 0xd9, 0x29, 0x08, 0x00, 0x00, } func (m *TxResponse) Marshal() (dAtA []byte, err error) { @@ -975,111 +918,6 @@ func (m *TxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *BlockResponse) 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 *BlockResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Proposer) > 0 { - i -= len(m.Proposer) - copy(dAtA[i:], m.Proposer) - i = encodeVarintAbci(dAtA, i, uint64(len(m.Proposer))) - i-- - dAtA[i] = 0x62 - } - if len(m.Evidence) > 0 { - i -= len(m.Evidence) - copy(dAtA[i:], m.Evidence) - i = encodeVarintAbci(dAtA, i, uint64(len(m.Evidence))) - i-- - dAtA[i] = 0x5a - } - if len(m.Results) > 0 { - i -= len(m.Results) - copy(dAtA[i:], m.Results) - i = encodeVarintAbci(dAtA, i, uint64(len(m.Results))) - i-- - dAtA[i] = 0x52 - } - if len(m.Consensus) > 0 { - i -= len(m.Consensus) - copy(dAtA[i:], m.Consensus) - i = encodeVarintAbci(dAtA, i, uint64(len(m.Consensus))) - i-- - dAtA[i] = 0x4a - } - if len(m.App) > 0 { - i -= len(m.App) - copy(dAtA[i:], m.App) - i = encodeVarintAbci(dAtA, i, uint64(len(m.App))) - i-- - dAtA[i] = 0x42 - } - if len(m.NextValidators) > 0 { - i -= len(m.NextValidators) - copy(dAtA[i:], m.NextValidators) - i = encodeVarintAbci(dAtA, i, uint64(len(m.NextValidators))) - i-- - dAtA[i] = 0x3a - } - if len(m.Validators) > 0 { - i -= len(m.Validators) - copy(dAtA[i:], m.Validators) - i = encodeVarintAbci(dAtA, i, uint64(len(m.Validators))) - i-- - dAtA[i] = 0x32 - } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintAbci(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x2a - } - if len(m.LastCommit) > 0 { - i -= len(m.LastCommit) - copy(dAtA[i:], m.LastCommit) - i = encodeVarintAbci(dAtA, i, uint64(len(m.LastCommit))) - i-- - dAtA[i] = 0x22 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintAbci(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0x1a - } - if len(m.Time) > 0 { - i -= len(m.Time) - copy(dAtA[i:], m.Time) - i = encodeVarintAbci(dAtA, i, uint64(len(m.Time))) - i-- - dAtA[i] = 0x12 - } - if m.Height != 0 { - i = encodeVarintAbci(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func (m *ABCIMessageLog) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1637,62 +1475,6 @@ func (m *TxResponse) Size() (n int) { return n } -func (m *BlockResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Height != 0 { - n += 1 + sovAbci(uint64(m.Height)) - } - l = len(m.Time) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - l = len(m.LastCommit) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - l = len(m.Validators) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - l = len(m.NextValidators) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - l = len(m.App) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - l = len(m.Consensus) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - l = len(m.Results) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - l = len(m.Evidence) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - l = len(m.Proposer) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } - return n -} - func (m *ABCIMessageLog) Size() (n int) { if m == nil { return 0 @@ -1914,27 +1696,6 @@ func sovAbci(x uint64) (n int) { func sozAbci(x uint64) (n int) { return sovAbci(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (this *BlockResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BlockResponse{`, - `Height:` + fmt.Sprintf("%v", this.Height) + `,`, - `Time:` + fmt.Sprintf("%v", this.Time) + `,`, - `ChainId:` + fmt.Sprintf("%v", this.ChainId) + `,`, - `LastCommit:` + fmt.Sprintf("%v", this.LastCommit) + `,`, - `Data:` + fmt.Sprintf("%v", this.Data) + `,`, - `Validators:` + fmt.Sprintf("%v", this.Validators) + `,`, - `NextValidators:` + fmt.Sprintf("%v", this.NextValidators) + `,`, - `App:` + fmt.Sprintf("%v", this.App) + `,`, - `Consensus:` + fmt.Sprintf("%v", this.Consensus) + `,`, - `Results:` + fmt.Sprintf("%v", this.Results) + `,`, - `Evidence:` + fmt.Sprintf("%v", this.Evidence) + `,`, - `Proposer:` + fmt.Sprintf("%v", this.Proposer) + `,`, - `}`, - }, "") - return s -} func (this *ABCIMessageLog) String() string { if this == nil { return "nil" @@ -2024,9 +1785,9 @@ func (this *SearchBlocksResult) String() string { if this == nil { return "nil" } - repeatedStringForBlocks := "[]*BlockResponse{" + repeatedStringForBlocks := "[]*Block{" for _, f := range this.Blocks { - repeatedStringForBlocks += strings.Replace(f.String(), "BlockResponse", "BlockResponse", 1) + "," + repeatedStringForBlocks += strings.Replace(fmt.Sprintf("%v", f), "Block", "types2.Block", 1) + "," } repeatedStringForBlocks += "}" s := strings.Join([]string{`&SearchBlocksResult{`, @@ -2470,427 +2231,6 @@ func (m *TxResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockResponse) 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 ErrIntOverflowAbci - } - 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: BlockResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Time = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastCommit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LastCommit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Validators = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextValidators", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextValidators = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field App", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.App = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Consensus", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Consensus = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Results = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Evidence = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - 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 ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Proposer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAbci(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAbci - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *ABCIMessageLog) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -4213,7 +3553,7 @@ func (m *SearchBlocksResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Blocks = append(m.Blocks, &BlockResponse{}) + m.Blocks = append(m.Blocks, &types2.Block{}) if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/types/result.go b/types/result.go index e307e46cd1a1..cf79636e0144 100644 --- a/types/result.go +++ b/types/result.go @@ -7,6 +7,7 @@ import ( "github.com/cosmos/gogoproto/proto" abci "github.com/tendermint/tendermint/abci/types" + tm "github.com/tendermint/tendermint/proto/tendermint/types" coretypes "github.com/tendermint/tendermint/rpc/core/types" "github.com/cosmos/cosmos-sdk/codec" @@ -83,24 +84,21 @@ func NewResponseResultTx(res *coretypes.ResultTx, anyTx *codectypes.Any, timesta } // NewResponseResultBlock returns a BlockResponse given a ResultBlock from tendermint -func NewResponseResultBlock(res *coretypes.ResultBlock, timestamp string) *BlockResponse { +func NewResponseResultBlock(res *coretypes.ResultBlock, timestamp string) *tm.Block { if res == nil { return nil } - return &BlockResponse{ - Height: res.Block.Height, - Time: timestamp, - ChainId: res.Block.ChainID, - LastCommit: res.Block.LastCommitHash.String(), - Data: res.Block.DataHash.String(), - Validators: res.Block.ValidatorsHash.String(), - NextValidators: res.Block.NextValidatorsHash.String(), - Consensus: res.Block.ConsensusHash.String(), - App: res.Block.AppHash.String(), - Results: res.Block.LastResultsHash.String(), - Evidence: res.Block.EvidenceHash.String(), - Proposer: res.Block.ProposerAddress.String(), + blk, err := res.Block.ToProto() + if err != nil { + return nil + } + + return &tm.Block{ + Header: blk.Header, + Data: blk.Data, + Evidence: blk.Evidence, + LastCommit: blk.LastCommit, } } @@ -132,11 +130,6 @@ func (r TxResponse) Empty() bool { return r.TxHash == "" && r.Logs == nil } -// Empty returns true if the response is empty -func (r BlockResponse) Empty() bool { - return r.Time == "" && r.Height == 0 -} - func NewSearchTxsResult(totalCount, count, page, limit uint64, txs []*TxResponse) *SearchTxsResult { // calculate total pages in an overflow safe manner totalPages := uint64(0) @@ -158,7 +151,7 @@ func NewSearchTxsResult(totalCount, count, page, limit uint64, txs []*TxResponse } } -func NewSearchBlocksResult(totalCount, count, page, limit int64, blocks []*BlockResponse) *SearchBlocksResult { +func NewSearchBlocksResult(totalCount, count, page, limit int64, blocks []*tm.Block) *SearchBlocksResult { // calculate total pages in an overflow safe manner totalPages := int64(0) if totalCount != 0 && limit != 0 { diff --git a/x/auth/block/query.go b/x/auth/block/query.go index 898cc60fddfe..2fbd89a3ffba 100644 --- a/x/auth/block/query.go +++ b/x/auth/block/query.go @@ -9,6 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" sdk "github.com/cosmos/cosmos-sdk/types" + tm "github.com/tendermint/tendermint/proto/tendermint/types" coretypes "github.com/tendermint/tendermint/rpc/core/types" ) @@ -57,7 +58,7 @@ func QueryBlocksByEvents(clientCtx client.Context, events []string, page, limit } // get block by height -func GetBlockByHeight(clientCtx client.Context, height *int64) (*sdk.BlockResponse, error) { +func GetBlockByHeight(clientCtx client.Context, height *int64) (*tm.Block, error) { // get the node node, err := clientCtx.GetNode() if err != nil { @@ -80,7 +81,7 @@ func GetBlockByHeight(clientCtx client.Context, height *int64) (*sdk.BlockRespon return out, nil } -func GetBlockByHash(clientCtx client.Context, hashHexString string) (*sdk.BlockResponse, error) { +func GetBlockByHash(clientCtx client.Context, hashHexString string) (*tm.Block, error) { hash, err := hex.DecodeString(hashHexString) if err != nil { return nil, err @@ -105,14 +106,14 @@ func GetBlockByHash(clientCtx client.Context, hashHexString string) (*sdk.BlockR return out, nil } -func mkBlockResult(resBlock *coretypes.ResultBlock) (*sdk.BlockResponse, error) { +func mkBlockResult(resBlock *coretypes.ResultBlock) (*tm.Block, error) { return sdk.NewResponseResultBlock(resBlock, resBlock.Block.Time.Format(time.RFC3339)), nil } // formatBlockResults parses the indexed blocks into a slice of BlockResponse objects. -func formatBlockResults(resBlocks []*coretypes.ResultBlock) ([]*sdk.BlockResponse, error) { +func formatBlockResults(resBlocks []*coretypes.ResultBlock) ([]*tm.Block, error) { var err error - out := make([]*sdk.BlockResponse, len(resBlocks)) + out := make([]*tm.Block, len(resBlocks)) for i := range resBlocks { out[i], err = mkBlockResult(resBlocks[i]) if err != nil { diff --git a/x/auth/client/cli/query.go b/x/auth/client/cli/query.go index ba0b2e70edcd..d6e19b6220d1 100644 --- a/x/auth/client/cli/query.go +++ b/x/auth/client/cli/query.go @@ -15,7 +15,6 @@ import ( "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/query" "github.com/cosmos/cosmos-sdk/version" - authblock "github.com/cosmos/cosmos-sdk/x/auth/block" authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" "github.com/cosmos/cosmos-sdk/x/auth/types" ) @@ -329,77 +328,6 @@ $ %s query txs --%s 'message.sender=cosmos1...&message.action=withdraw_delegator return cmd } -// QueryBlocksByEventsCmd returns a command to search through blocks by events. -func QueryBlocksByEventsCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "blocks", - Short: "Query for paginated blocks that match a set of events", - Long: strings.TrimSpace( - fmt.Sprintf(` -Search for blocks that match the exact given events where results are paginated. -Each event takes the form of '%s'. Please refer -to each module's documentation for the full set of events to query for. Each module -documents its respective events under 'xx_events.md'. - -Example: -$ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delegator_reward' --page 1 --limit 30 -`, eventFormat, version.AppName, flagEvents), - ), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - eventsRaw, _ := cmd.Flags().GetString(flagEvents) - eventsStr := strings.Trim(eventsRaw, "'") - - var events []string - if strings.Contains(eventsStr, "&") { - events = strings.Split(eventsStr, "&") - } else { - events = append(events, eventsStr) - } - - var tmEvents []string - - for _, event := range events { - if !strings.Contains(event, "=") { - return fmt.Errorf("invalid event; event %s should be of the format: %s", event, eventFormat) - } else if strings.Count(event, "=") > 1 { - return fmt.Errorf("invalid event; event %s should be of the format: %s", event, eventFormat) - } - - tokens := strings.Split(event, "=") - if tokens[0] == tmtypes.TxHeightKey { - event = fmt.Sprintf("%s=%s", tokens[0], tokens[1]) - } else { - event = fmt.Sprintf("%s='%s'", tokens[0], tokens[1]) - } - - tmEvents = append(tmEvents, event) - } - - page, _ := cmd.Flags().GetInt(flags.FlagPage) - limit, _ := cmd.Flags().GetInt(flags.FlagLimit) - - blocks, err := authblock.QueryBlocksByEvents(clientCtx, tmEvents, page, limit, "") - if err != nil { - return err - } - - return clientCtx.PrintProto(blocks) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - cmd.Flags().Int(flags.FlagPage, query.DefaultPage, "Query a specific page of paginated results") - cmd.Flags().Int(flags.FlagLimit, query.DefaultLimit, "Query number of block results per page returned") - cmd.Flags().String(flagEvents, "", fmt.Sprintf("list of block events in the form of %s", eventFormat)) - cmd.MarkFlagRequired(flagEvents) - - return cmd -} - // QueryTxCmd implements the default command for a tx query. func QueryTxCmd() *cobra.Command { cmd := &cobra.Command{ @@ -502,89 +430,6 @@ $ %s query tx --%s=%s , return cmd } -// QueryBlockCmd implements the default command for a Block query. -func QueryBlockCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "block --type=[height|hash] [height|hash]", - Short: "Query for a committed block by height, hash, or event(s)", - Long: strings.TrimSpace(fmt.Sprintf(` -Example: -$ %s query block --%s=%s -$ %s query block --%s=%s -`, - version.AppName, flagType, typeHeight, - version.AppName, flagType, typeHash)), - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - typ, _ := cmd.Flags().GetString(flagType) - - switch typ { - case typeHeight: - { - if args[0] == "" { - return fmt.Errorf("argument should be a block height") - } - - var height *int64 - - // optional height - if len(args) > 0 { - h, err := strconv.Atoi(args[0]) - if err != nil { - return err - } - if h > 0 { - tmp := int64(h) - height = &tmp - } - } - - output, err := authblock.GetBlockByHeight(clientCtx, height) - if err != nil { - return err - } - - if output.Empty() { - return fmt.Errorf("no block found with hash %s", args[0]) - } - - return clientCtx.PrintProto(output) - } - case typeHash: - { - if args[0] == "" { - return fmt.Errorf("argument should be a tx hash") - } - - // If hash is given, then query the tx by hash. - output, err := authblock.GetBlockByHash(clientCtx, args[0]) - if err != nil { - return err - } - - if output.Empty() { - return fmt.Errorf("no transaction found with hash %s", args[0]) - } - - return clientCtx.PrintProto(output) - } - default: - return fmt.Errorf("unknown --%s value %s", flagType, typ) - } - }, - } - - flags.AddQueryFlagsToCmd(cmd) - cmd.Flags().String(flagType, typeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\"", typeHeight, typeHash)) - - return cmd -} - // ParseSigArgs parses comma-separated signatures from the CLI arguments. func ParseSigArgs(args []string) ([]string, error) { if len(args) != 1 || args[0] == "" { From 1c3083815f5ec93a8ff0d890b6f474992d9b92f7 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Thu, 26 Jan 2023 10:56:05 -0500 Subject: [PATCH 12/34] fix test --- types/result_test.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/types/result_test.go b/types/result_test.go index 159a1aa351e1..0c396dcb1056 100644 --- a/types/result_test.go +++ b/types/result_test.go @@ -18,6 +18,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/testutil/testdata" sdk "github.com/cosmos/cosmos-sdk/types" + tm "github.com/tendermint/tendermint/proto/tendermint/types" ) type resultTestSuite struct { @@ -142,14 +143,14 @@ txhash: "74657374" } func (s *resultTestSuite) TestNewSearchBlocksResult() { - got := sdk.NewSearchBlocksResult(150, 20, 2, 20, []*sdk.BlockResponse{}) + got := sdk.NewSearchBlocksResult(150, 20, 2, 20, []*tm.Block{}) s.Require().Equal(&sdk.SearchBlocksResult{ TotalCount: 150, Count: 20, PageNumber: 2, PageTotal: 8, Limit: 20, - Blocks: []*sdk.BlockResponse{}, + Blocks: []*tm.Block{}, }, got) } @@ -165,9 +166,11 @@ func (s *resultTestSuite) TestResponseResultBlock() { }, }} - want := &sdk.BlockResponse{ - Height: 10, - Time: timestampStr, + blk, err := resultBlock.Block.ToProto() + s.Require().NoError(err) + + want := &tm.Block{ + Header: blk.Header, } s.Require().Equal(want, sdk.NewResponseResultBlock(resultBlock, timestampStr)) From ff7b2903d76d2bacb41c2fdc83e04f090e305ea7 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Fri, 27 Jan 2023 15:45:41 -0500 Subject: [PATCH 13/34] fix test --- types/result_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/result_test.go b/types/result_test.go index 0c396dcb1056..906af03fc169 100644 --- a/types/result_test.go +++ b/types/result_test.go @@ -164,13 +164,17 @@ func (s *resultTestSuite) TestResponseResultBlock() { Height: 10, Time: timestamp, }, + Evidence: tmtypes.EvidenceData{ + Evidence: make(tmtypes.EvidenceList, 0), + }, }} blk, err := resultBlock.Block.ToProto() s.Require().NoError(err) want := &tm.Block{ - Header: blk.Header, + Header: blk.Header, + Evidence: blk.Evidence, } s.Require().Equal(want, sdk.NewResponseResultBlock(resultBlock, timestampStr)) From 22544c30396cc1e02d4ccd5b109f0adb74752d2a Mon Sep 17 00:00:00 2001 From: cipherZ Date: Mon, 30 Jan 2023 14:32:23 -0500 Subject: [PATCH 14/34] moved block query from auth module to tendermint server --- {x/auth/block => server}/query.go | 2 +- server/tm_cmds.go | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) rename {x/auth/block => server}/query.go (99%) diff --git a/x/auth/block/query.go b/server/query.go similarity index 99% rename from x/auth/block/query.go rename to server/query.go index 2fbd89a3ffba..029455c8a076 100644 --- a/x/auth/block/query.go +++ b/server/query.go @@ -1,4 +1,4 @@ -package block +package server import ( "context" diff --git a/server/tm_cmds.go b/server/tm_cmds.go index 6d498b64293b..cbb2c881856d 100644 --- a/server/tm_cmds.go +++ b/server/tm_cmds.go @@ -17,7 +17,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" "github.com/cosmos/cosmos-sdk/version" - authblock "github.com/cosmos/cosmos-sdk/x/auth/block" tmtypes "github.com/tendermint/tendermint/types" ) @@ -188,7 +187,7 @@ $ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delega page, _ := cmd.Flags().GetInt(flags.FlagPage) limit, _ := cmd.Flags().GetInt(flags.FlagLimit) - blocks, err := authblock.QueryBlocksByEvents(clientCtx, tmEvents, page, limit, "") + blocks, err := QueryBlocksByEvents(clientCtx, tmEvents, page, limit, "") if err != nil { return err } @@ -248,7 +247,7 @@ $ %s query block --%s=%s } } - output, err := authblock.GetBlockByHeight(clientCtx, height) + output, err := GetBlockByHeight(clientCtx, height) if err != nil { return err } @@ -266,7 +265,7 @@ $ %s query block --%s=%s } // If hash is given, then query the tx by hash. - output, err := authblock.GetBlockByHash(clientCtx, args[0]) + output, err := GetBlockByHash(clientCtx, args[0]) if err != nil { return err } From ec412d4b1b04cfd6e54b9703ac0a3eb667d4a005 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Tue, 31 Jan 2023 10:05:54 -0500 Subject: [PATCH 15/34] fixes per PR --- server/query.go | 6 ++++-- server/tm_cmds.go | 33 +++++++++++++-------------------- x/auth/client/cli/query.go | 36 ++++++++++++++++++------------------ 3 files changed, 35 insertions(+), 40 deletions(-) diff --git a/server/query.go b/server/query.go index 029455c8a076..a7379f5a5b19 100644 --- a/server/query.go +++ b/server/query.go @@ -4,6 +4,7 @@ import ( "context" "encoding/hex" "errors" + "fmt" "strings" "time" @@ -94,8 +95,9 @@ func GetBlockByHash(clientCtx client.Context, hashHexString string) (*tm.Block, } resBlock, err := node.BlockByHash(context.Background(), hash) - if err != nil { - return nil, err + + if err != nil || resBlock.Block == nil { + return nil, fmt.Errorf("block not found with Hash: %s with Error: %s", hashHexString, err) } out, err := mkBlockResult(resBlock) diff --git a/server/tm_cmds.go b/server/tm_cmds.go index cbb2c881856d..94add6884ec5 100644 --- a/server/tm_cmds.go +++ b/server/tm_cmds.go @@ -17,19 +17,12 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" "github.com/cosmos/cosmos-sdk/version" + auth "github.com/cosmos/cosmos-sdk/x/auth/client/cli" tmtypes "github.com/tendermint/tendermint/types" ) const ( - flagEvents = "events" - flagType = "type" - - typeHash = "hash" - typeAccSeq = "acc_seq" - typeSig = "signature" - typeHeight = "height" - - eventFormat = "{eventType}.{eventAttribute}={value}" + flagType = "type" ) // ShowNodeIDCmd - ported from Tendermint, dump node ID to stdout @@ -148,14 +141,14 @@ documents its respective events under 'xx_events.md'. Example: $ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delegator_reward' --page 1 --limit 30 -`, eventFormat, version.AppName, flagEvents), +`, auth.EventFormat, version.AppName, auth.FlagEvents), ), RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { return err } - eventsRaw, _ := cmd.Flags().GetString(flagEvents) + eventsRaw, _ := cmd.Flags().GetString(auth.FlagEvents) eventsStr := strings.Trim(eventsRaw, "'") var events []string @@ -169,9 +162,9 @@ $ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delega for _, event := range events { if !strings.Contains(event, "=") { - return fmt.Errorf("invalid event; event %s should be of the format: %s", event, eventFormat) + return fmt.Errorf("invalid event; event %s should be of the format: %s", event, auth.EventFormat) } else if strings.Count(event, "=") > 1 { - return fmt.Errorf("invalid event; event %s should be of the format: %s", event, eventFormat) + return fmt.Errorf("invalid event; event %s should be of the format: %s", event, auth.EventFormat) } tokens := strings.Split(event, "=") @@ -199,8 +192,8 @@ $ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delega flags.AddQueryFlagsToCmd(cmd) cmd.Flags().Int(flags.FlagPage, query.DefaultPage, "Query a specific page of paginated results") cmd.Flags().Int(flags.FlagLimit, query.DefaultLimit, "Query number of block results per page returned") - cmd.Flags().String(flagEvents, "", fmt.Sprintf("list of block events in the form of %s", eventFormat)) - cmd.MarkFlagRequired(flagEvents) + cmd.Flags().String(auth.FlagEvents, "", fmt.Sprintf("list of block events in the form of %s", auth.EventFormat)) + cmd.MarkFlagRequired(auth.FlagEvents) return cmd } @@ -215,8 +208,8 @@ Example: $ %s query block --%s=%s $ %s query block --%s=%s `, - version.AppName, flagType, typeHeight, - version.AppName, flagType, typeHash)), + version.AppName, flagType, auth.TypeHeight, + version.AppName, flagType, auth.TypeHash)), Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientQueryContext(cmd) @@ -227,7 +220,7 @@ $ %s query block --%s=%s typ, _ := cmd.Flags().GetString(flagType) switch typ { - case typeHeight: + case auth.TypeHeight: { if args[0] == "" { return fmt.Errorf("argument should be a block height") @@ -258,7 +251,7 @@ $ %s query block --%s=%s return clientCtx.PrintProto(output) } - case typeHash: + case auth.TypeHash: { if args[0] == "" { return fmt.Errorf("argument should be a tx hash") @@ -283,7 +276,7 @@ $ %s query block --%s=%s } flags.AddQueryFlagsToCmd(cmd) - cmd.Flags().String(flagType, typeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\"", typeHeight, typeHash)) + cmd.Flags().String(flagType, auth.TypeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\"", auth.TypeHeight, auth.TypeHash)) return cmd } diff --git a/x/auth/client/cli/query.go b/x/auth/client/cli/query.go index d6e19b6220d1..cb22f742c8ce 100644 --- a/x/auth/client/cli/query.go +++ b/x/auth/client/cli/query.go @@ -20,15 +20,15 @@ import ( ) const ( - flagEvents = "events" + FlagEvents = "events" flagType = "type" - typeHash = "hash" - typeAccSeq = "acc_seq" - typeSig = "signature" - typeHeight = "height" + TypeHash = "hash" + TypeAccSeq = "acc_seq" + TypeSig = "signature" + TypeHeight = "height" - eventFormat = "{eventType}.{eventAttribute}={value}" + EventFormat = "{eventType}.{eventAttribute}={value}" ) // GetQueryCmd returns the transaction commands for this module @@ -271,14 +271,14 @@ documents its respective events under 'xx_events.md'. Example: $ %s query txs --%s 'message.sender=cosmos1...&message.action=withdraw_delegator_reward' --page 1 --limit 30 -`, eventFormat, version.AppName, flagEvents), +`, EventFormat, version.AppName, FlagEvents), ), RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { return err } - eventsRaw, _ := cmd.Flags().GetString(flagEvents) + eventsRaw, _ := cmd.Flags().GetString(FlagEvents) eventsStr := strings.Trim(eventsRaw, "'") var events []string @@ -292,9 +292,9 @@ $ %s query txs --%s 'message.sender=cosmos1...&message.action=withdraw_delegator for _, event := range events { if !strings.Contains(event, "=") { - return fmt.Errorf("invalid event; event %s should be of the format: %s", event, eventFormat) + return fmt.Errorf("invalid event; event %s should be of the format: %s", event, EventFormat) } else if strings.Count(event, "=") > 1 { - return fmt.Errorf("invalid event; event %s should be of the format: %s", event, eventFormat) + return fmt.Errorf("invalid event; event %s should be of the format: %s", event, EventFormat) } tokens := strings.Split(event, "=") @@ -322,8 +322,8 @@ $ %s query txs --%s 'message.sender=cosmos1...&message.action=withdraw_delegator flags.AddQueryFlagsToCmd(cmd) cmd.Flags().Int(flags.FlagPage, query.DefaultPage, "Query a specific page of paginated results") cmd.Flags().Int(flags.FlagLimit, query.DefaultLimit, "Query number of transactions results per page returned") - cmd.Flags().String(flagEvents, "", fmt.Sprintf("list of transaction events in the form of %s", eventFormat)) - cmd.MarkFlagRequired(flagEvents) + cmd.Flags().String(FlagEvents, "", fmt.Sprintf("list of transaction events in the form of %s", EventFormat)) + cmd.MarkFlagRequired(FlagEvents) return cmd } @@ -340,8 +340,8 @@ $ %s query tx --%s=%s / $ %s query tx --%s=%s , `, version.AppName, - version.AppName, flagType, typeAccSeq, - version.AppName, flagType, typeSig)), + version.AppName, flagType, TypeAccSeq, + version.AppName, flagType, TypeSig)), Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientQueryContext(cmd) @@ -352,7 +352,7 @@ $ %s query tx --%s=%s , typ, _ := cmd.Flags().GetString(flagType) switch typ { - case typeHash: + case TypeHash: { if args[0] == "" { return fmt.Errorf("argument should be a tx hash") @@ -370,7 +370,7 @@ $ %s query tx --%s=%s , return clientCtx.PrintProto(output) } - case typeSig: + case TypeSig: { sigParts, err := ParseSigArgs(args) if err != nil { @@ -395,7 +395,7 @@ $ %s query tx --%s=%s , return clientCtx.PrintProto(txs.Txs[0]) } - case typeAccSeq: + case TypeAccSeq: { if args[0] == "" { return fmt.Errorf("`acc_seq` type takes an argument '/'") @@ -425,7 +425,7 @@ $ %s query tx --%s=%s , } flags.AddQueryFlagsToCmd(cmd) - cmd.Flags().String(flagType, typeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\", \"%s\"", typeHash, typeAccSeq, typeSig)) + cmd.Flags().String(flagType, TypeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\", \"%s\"", TypeHash, TypeAccSeq, TypeSig)) return cmd } From 1845a2164f6af737968f72018b557843969e5db0 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Tue, 31 Jan 2023 10:46:09 -0500 Subject: [PATCH 16/34] extracted to method --- types/result.go | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/types/result.go b/types/result.go index cf79636e0144..05aa7bd50c6f 100644 --- a/types/result.go +++ b/types/result.go @@ -131,36 +131,20 @@ func (r TxResponse) Empty() bool { } func NewSearchTxsResult(totalCount, count, page, limit uint64, txs []*TxResponse) *SearchTxsResult { - // calculate total pages in an overflow safe manner - totalPages := uint64(0) - if totalCount != 0 && limit != 0 { - if totalCount%limit > 0 { - totalPages = totalCount/limit + 1 - } else { - totalPages = totalCount / limit - } - } + totalPages := calcTotalPages(int64(totalCount), int64(limit)) return &SearchTxsResult{ TotalCount: totalCount, Count: count, PageNumber: page, - PageTotal: totalPages, + PageTotal: uint64(totalPages), Limit: limit, Txs: txs, } } func NewSearchBlocksResult(totalCount, count, page, limit int64, blocks []*tm.Block) *SearchBlocksResult { - // calculate total pages in an overflow safe manner - totalPages := int64(0) - if totalCount != 0 && limit != 0 { - if totalCount%limit > 0 { - totalPages = totalCount/limit + 1 - } else { - totalPages = totalCount / limit - } - } + totalPages := calcTotalPages(totalCount, limit) return &SearchBlocksResult{ TotalCount: totalCount, @@ -244,3 +228,16 @@ func WrapServiceResult(ctx Context, res proto.Message, err error) (*Result, erro MsgResponses: []*codectypes.Any{any}, }, nil } + +// calculate total pages in an overflow safe manner +func calcTotalPages(totalCount int64, limit int64) int64 { + totalPages := int64(0) + if totalCount != 0 && limit != 0 { + if totalCount%limit > 0 { + totalPages = totalCount/limit + 1 + } else { + totalPages = totalCount / limit + } + } + return totalPages +} From 5488e945559a89f189313f214e4f91465f570685 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Tue, 31 Jan 2023 11:43:55 -0500 Subject: [PATCH 17/34] fixes per pr feedback --- client/rpc/block.go | 163 ++++++++++++++++++++++++++++++-------------- server/query.go | 127 ---------------------------------- server/tm_cmds.go | 7 +- 3 files changed, 114 insertions(+), 183 deletions(-) delete mode 100644 server/query.go diff --git a/client/rpc/block.go b/client/rpc/block.go index 1594fe9e669e..c70260e8aac3 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -2,57 +2,81 @@ package rpc import ( "context" + "encoding/hex" + "errors" "fmt" - "strconv" - - "github.com/spf13/cobra" + "strings" + "time" "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/codec/legacy" + + sdk "github.com/cosmos/cosmos-sdk/types" + tm "github.com/tendermint/tendermint/proto/tendermint/types" + coretypes "github.com/tendermint/tendermint/rpc/core/types" ) -// BlockCommand returns the verified block data for a given heights -func BlockCommand() *cobra.Command { - cmd := &cobra.Command{ - Use: "block [height]", - Short: "Get verified data for the block at given height", - Args: cobra.MaximumNArgs(1), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - var height *int64 - - // optional height - if len(args) > 0 { - h, err := strconv.Atoi(args[0]) - if err != nil { - return err - } - if h > 0 { - tmp := int64(h) - height = &tmp - } - } - - output, err := getBlock(clientCtx, height) - if err != nil { - return err - } - - fmt.Println(string(output)) - return nil - }, - } - - cmd.Flags().StringP(flags.FlagNode, "n", "tcp://localhost:26657", "Node to connect to") - - return cmd +// get the current blockchain height +func GetChainHeight(clientCtx client.Context) (int64, error) { + node, err := clientCtx.GetNode() + if err != nil { + return -1, err + } + + status, err := node.Status(context.Background()) + if err != nil { + return -1, err + } + + height := status.SyncInfo.LatestBlockHeight + return height, nil +} + +// QueryBlocksByEvents performs a search for blocks for a given set of events +// via the Tendermint RPC. An event takes the form of: +// "{eventAttribute}.{attributeKey} = '{attributeValue}'". Each event is +// concatenated with an 'AND' operand. It returns a slice of Info object +// containing blocks and metadata. An error is returned if the query fails. +// If an empty string is provided it will order blocks by asc +func QueryBlocksByEvents(clientCtx client.Context, events []string, page, limit int, orderBy string) (*sdk.SearchBlocksResult, error) { + if len(events) == 0 { + return nil, errors.New("must declare at least one event to search") + } + + if page <= 0 { + return nil, errors.New("page must be greater than 0") + } + + if limit <= 0 { + return nil, errors.New("limit must be greater than 0") + } + + // XXX: implement ANY + query := strings.Join(events, " AND ") + + node, err := clientCtx.GetNode() + if err != nil { + return nil, err + } + + // TODO: this may not always need to be proven + // https://github.com/cosmos/cosmos-sdk/issues/6807 + resBlocks, err := node.BlockSearch(context.Background(), query, &page, &limit, orderBy) + if err != nil { + return nil, err + } + + blocks, err := formatBlockResults(resBlocks.Blocks) + if err != nil { + return nil, err + } + + result := sdk.NewSearchBlocksResult(int64(resBlocks.TotalCount), int64(len(blocks)), int64(page), int64(limit), blocks) + + return result, nil } -func getBlock(clientCtx client.Context, height *int64) ([]byte, error) { +// get block by height +func GetBlockByHeight(clientCtx client.Context, height *int64) (*tm.Block, error) { // get the node node, err := clientCtx.GetNode() if err != nil { @@ -62,26 +86,59 @@ func getBlock(clientCtx client.Context, height *int64) ([]byte, error) { // header -> BlockchainInfo // header, tx -> Block // results -> BlockResults - res, err := node.Block(context.Background(), height) + resBlock, err := node.Block(context.Background(), height) if err != nil { return nil, err } - return legacy.Cdc.MarshalJSON(res) + out, err := mkBlockResult(resBlock) + if err != nil { + return out, err + } + + return out, nil } -// get the current blockchain height -func GetChainHeight(clientCtx client.Context) (int64, error) { +func GetBlockByHash(clientCtx client.Context, hashHexString string) (*tm.Block, error) { + hash, err := hex.DecodeString(hashHexString) + if err != nil { + return nil, err + } + + // get the node node, err := clientCtx.GetNode() if err != nil { - return -1, err + return nil, err } - status, err := node.Status(context.Background()) + resBlock, err := node.BlockByHash(context.Background(), hash) + + if err != nil || resBlock.Block == nil { + return nil, fmt.Errorf("block not found with Hash: %s with Error: %s", hashHexString, err) + } + + out, err := mkBlockResult(resBlock) if err != nil { - return -1, err + return out, err } - height := status.SyncInfo.LatestBlockHeight - return height, nil + return out, nil +} + +func mkBlockResult(resBlock *coretypes.ResultBlock) (*tm.Block, error) { + return sdk.NewResponseResultBlock(resBlock, resBlock.Block.Time.Format(time.RFC3339)), nil +} + +// formatBlockResults parses the indexed blocks into a slice of BlockResponse objects. +func formatBlockResults(resBlocks []*coretypes.ResultBlock) ([]*tm.Block, error) { + var err error + out := make([]*tm.Block, len(resBlocks)) + for i := range resBlocks { + out[i], err = mkBlockResult(resBlocks[i]) + if err != nil { + return nil, err + } + } + + return out, nil } diff --git a/server/query.go b/server/query.go deleted file mode 100644 index a7379f5a5b19..000000000000 --- a/server/query.go +++ /dev/null @@ -1,127 +0,0 @@ -package server - -import ( - "context" - "encoding/hex" - "errors" - "fmt" - "strings" - "time" - - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - tm "github.com/tendermint/tendermint/proto/tendermint/types" - coretypes "github.com/tendermint/tendermint/rpc/core/types" -) - -// QueryBlocksByEvents performs a search for blocks for a given set of events -// via the Tendermint RPC. An event takes the form of: -// "{eventAttribute}.{attributeKey} = '{attributeValue}'". Each event is -// concatenated with an 'AND' operand. It returns a slice of Info object -// containing blocks and metadata. An error is returned if the query fails. -// If an empty string is provided it will order blocks by asc -func QueryBlocksByEvents(clientCtx client.Context, events []string, page, limit int, orderBy string) (*sdk.SearchBlocksResult, error) { - if len(events) == 0 { - return nil, errors.New("must declare at least one event to search") - } - - if page <= 0 { - return nil, errors.New("page must be greater than 0") - } - - if limit <= 0 { - return nil, errors.New("limit must be greater than 0") - } - - // XXX: implement ANY - query := strings.Join(events, " AND ") - - node, err := clientCtx.GetNode() - if err != nil { - return nil, err - } - - // TODO: this may not always need to be proven - // https://github.com/cosmos/cosmos-sdk/issues/6807 - resBlocks, err := node.BlockSearch(context.Background(), query, &page, &limit, orderBy) - if err != nil { - return nil, err - } - - blocks, err := formatBlockResults(resBlocks.Blocks) - if err != nil { - return nil, err - } - - result := sdk.NewSearchBlocksResult(int64(resBlocks.TotalCount), int64(len(blocks)), int64(page), int64(limit), blocks) - - return result, nil -} - -// get block by height -func GetBlockByHeight(clientCtx client.Context, height *int64) (*tm.Block, error) { - // get the node - node, err := clientCtx.GetNode() - if err != nil { - return nil, err - } - - // header -> BlockchainInfo - // header, tx -> Block - // results -> BlockResults - resBlock, err := node.Block(context.Background(), height) - if err != nil { - return nil, err - } - - out, err := mkBlockResult(resBlock) - if err != nil { - return out, err - } - - return out, nil -} - -func GetBlockByHash(clientCtx client.Context, hashHexString string) (*tm.Block, error) { - hash, err := hex.DecodeString(hashHexString) - if err != nil { - return nil, err - } - - // get the node - node, err := clientCtx.GetNode() - if err != nil { - return nil, err - } - - resBlock, err := node.BlockByHash(context.Background(), hash) - - if err != nil || resBlock.Block == nil { - return nil, fmt.Errorf("block not found with Hash: %s with Error: %s", hashHexString, err) - } - - out, err := mkBlockResult(resBlock) - if err != nil { - return out, err - } - - return out, nil -} - -func mkBlockResult(resBlock *coretypes.ResultBlock) (*tm.Block, error) { - return sdk.NewResponseResultBlock(resBlock, resBlock.Block.Time.Format(time.RFC3339)), nil -} - -// formatBlockResults parses the indexed blocks into a slice of BlockResponse objects. -func formatBlockResults(resBlocks []*coretypes.ResultBlock) ([]*tm.Block, error) { - var err error - out := make([]*tm.Block, len(resBlocks)) - for i := range resBlocks { - out[i], err = mkBlockResult(resBlocks[i]) - if err != nil { - return nil, err - } - } - - return out, nil -} diff --git a/server/tm_cmds.go b/server/tm_cmds.go index 94add6884ec5..3cd1c703d267 100644 --- a/server/tm_cmds.go +++ b/server/tm_cmds.go @@ -13,6 +13,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" + rpc "github.com/cosmos/cosmos-sdk/client/rpc" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" @@ -180,7 +181,7 @@ $ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delega page, _ := cmd.Flags().GetInt(flags.FlagPage) limit, _ := cmd.Flags().GetInt(flags.FlagLimit) - blocks, err := QueryBlocksByEvents(clientCtx, tmEvents, page, limit, "") + blocks, err := rpc.QueryBlocksByEvents(clientCtx, tmEvents, page, limit, "") if err != nil { return err } @@ -240,7 +241,7 @@ $ %s query block --%s=%s } } - output, err := GetBlockByHeight(clientCtx, height) + output, err := rpc.GetBlockByHeight(clientCtx, height) if err != nil { return err } @@ -258,7 +259,7 @@ $ %s query block --%s=%s } // If hash is given, then query the tx by hash. - output, err := GetBlockByHash(clientCtx, args[0]) + output, err := rpc.GetBlockByHash(clientCtx, args[0]) if err != nil { return err } From 5bcad2a0bafd3846e89ff01b1303ec28d7c4f4c5 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Tue, 31 Jan 2023 12:18:22 -0500 Subject: [PATCH 18/34] pass query directly to Tendermint --- client/rpc/block.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/client/rpc/block.go b/client/rpc/block.go index c70260e8aac3..b4922d06b087 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -3,7 +3,6 @@ package rpc import ( "context" "encoding/hex" - "errors" "fmt" "strings" "time" @@ -38,17 +37,6 @@ func GetChainHeight(clientCtx client.Context) (int64, error) { // containing blocks and metadata. An error is returned if the query fails. // If an empty string is provided it will order blocks by asc func QueryBlocksByEvents(clientCtx client.Context, events []string, page, limit int, orderBy string) (*sdk.SearchBlocksResult, error) { - if len(events) == 0 { - return nil, errors.New("must declare at least one event to search") - } - - if page <= 0 { - return nil, errors.New("page must be greater than 0") - } - - if limit <= 0 { - return nil, errors.New("limit must be greater than 0") - } // XXX: implement ANY query := strings.Join(events, " AND ") From 8288c388c824adb0f75820c774c6eed27a02023f Mon Sep 17 00:00:00 2001 From: cipherZ Date: Tue, 31 Jan 2023 13:53:30 -0500 Subject: [PATCH 19/34] fumpt --- client/rpc/block.go | 1 - 1 file changed, 1 deletion(-) diff --git a/client/rpc/block.go b/client/rpc/block.go index b4922d06b087..7018ba8b3ecd 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -37,7 +37,6 @@ func GetChainHeight(clientCtx client.Context) (int64, error) { // containing blocks and metadata. An error is returned if the query fails. // If an empty string is provided it will order blocks by asc func QueryBlocksByEvents(clientCtx client.Context, events []string, page, limit int, orderBy string) (*sdk.SearchBlocksResult, error) { - // XXX: implement ANY query := strings.Join(events, " AND ") From b197b7bd2b632f820dbb9634b4b1f2b3bf56bb49 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Wed, 1 Feb 2023 19:31:25 -0500 Subject: [PATCH 20/34] Update client/rpc/block.go Co-authored-by: Aleksandr Bezobchuk --- client/rpc/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/rpc/block.go b/client/rpc/block.go index 7018ba8b3ecd..be3190417e12 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -14,7 +14,7 @@ import ( coretypes "github.com/tendermint/tendermint/rpc/core/types" ) -// get the current blockchain height +// GetChainHeight returns the current blockchain height. func GetChainHeight(clientCtx client.Context) (int64, error) { node, err := clientCtx.GetNode() if err != nil { From 266803ed20dbdf493cc4e688b003336993e421cb Mon Sep 17 00:00:00 2001 From: cipherZ Date: Fri, 3 Feb 2023 15:55:31 -0500 Subject: [PATCH 21/34] changes per PR feedback --- CHANGELOG.md | 3 +- client/rpc/block.go | 8 +---- server/tm_cmds.go | 74 +++++++++++--------------------------- x/auth/client/cli/query.go | 16 +++++---- 4 files changed, 33 insertions(+), 68 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f326524405f4..8cc0b52af13c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,7 +39,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Features -* (cli) [#14659](https://github.com/cosmos/cosmos-sdk/pull/14659) Added ability to query blocks by either height/hash `simd q block --type=height|hash `. Also added ability to query blocks by events similar to the existing tx query `simd q blocks --events 'message.sender=cosmos...' --page 1 --limit 30` +* (cli) [#14659](https://github.com/cosmos/cosmos-sdk/pull/14659) Added ability to query blocks by events with queries directly passed to Tendermint, which will allow for full query operator support, e.g. `>`. * (x/gov) [#14720](https://github.com/cosmos/cosmos-sdk/pull/14720) Upstream expedited proposals from Osmosis. * (x/auth) [#14650](https://github.com/cosmos/cosmos-sdk/pull/14650) Add Textual SignModeHandler. It is however **NOT** enabled by default, and should only be used for **TESTING** purposes until `SIGN_MODE_TEXTUAL` is fully released. * (cli) [#14655](https://github.com/cosmos/cosmos-sdk/pull/14655) Add a new command to list supported algos. @@ -78,6 +78,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Improvements +* (cli) [#14659](https://github.com/cosmos/cosmos-sdk/pull/14659) Added ability to query blocks by either height/hash `simd q block --type=height|hash `. * (store) [#14410](https://github.com/cosmos/cosmos-sdk/pull/14410) `rootmulti.Store.loadVersion` has validation to check if all the module stores' height is correct, it will error if any module store has incorrect height. * (x/evidence) [#14757](https://github.com/cosmos/cosmos-sdk/pull/14757) Evidence messages do not need to implement a `.Type()` anymore. * (x/auth/tx) [#14751](https://github.com/cosmos/cosmos-sdk/pull/14751) Remove `.Type()` and `Route()` methods from all msgs and `legacytx.LegacyMsg` interface. diff --git a/client/rpc/block.go b/client/rpc/block.go index be3190417e12..7bb81cabe100 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -4,7 +4,6 @@ import ( "context" "encoding/hex" "fmt" - "strings" "time" "github.com/cosmos/cosmos-sdk/client" @@ -36,17 +35,12 @@ func GetChainHeight(clientCtx client.Context) (int64, error) { // concatenated with an 'AND' operand. It returns a slice of Info object // containing blocks and metadata. An error is returned if the query fails. // If an empty string is provided it will order blocks by asc -func QueryBlocksByEvents(clientCtx client.Context, events []string, page, limit int, orderBy string) (*sdk.SearchBlocksResult, error) { - // XXX: implement ANY - query := strings.Join(events, " AND ") - +func QueryBlocksByEvents(clientCtx client.Context, page, limit int, query string, orderBy string) (*sdk.SearchBlocksResult, error) { node, err := clientCtx.GetNode() if err != nil { return nil, err } - // TODO: this may not always need to be proven - // https://github.com/cosmos/cosmos-sdk/issues/6807 resBlocks, err := node.BlockSearch(context.Background(), query, &page, &limit, orderBy) if err != nil { return nil, err diff --git a/server/tm_cmds.go b/server/tm_cmds.go index 3cd1c703d267..ea6f215fd675 100644 --- a/server/tm_cmds.go +++ b/server/tm_cmds.go @@ -19,11 +19,6 @@ import ( "github.com/cosmos/cosmos-sdk/types/query" "github.com/cosmos/cosmos-sdk/version" auth "github.com/cosmos/cosmos-sdk/x/auth/client/cli" - tmtypes "github.com/tendermint/tendermint/types" -) - -const ( - flagType = "type" ) // ShowNodeIDCmd - ported from Tendermint, dump node ID to stdout @@ -133,55 +128,27 @@ func QueryBlocksByEventsCmd() *cobra.Command { cmd := &cobra.Command{ Use: "blocks", Short: "Query for paginated blocks that match a set of events", - Long: strings.TrimSpace( - fmt.Sprintf(` -Search for blocks that match the exact given events where results are paginated. -Each event takes the form of '%s'. Please refer -to each module's documentation for the full set of events to query for. Each module -documents its respective events under 'xx_events.md'. - -Example: -$ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delegator_reward' --page 1 --limit 30 -`, auth.EventFormat, version.AppName, auth.FlagEvents), + Long: `Search for blocks that match the exact given events where results are paginated. +The events query is directly passed to Tendermint's RPC BlockSearch method and must +conform to Tendermint's query syntax. +Please refer to each module's documentation for the full set of events to query +for. Each module documents its respective events under 'xx_events.md'. +`, + Example: fmt.Sprintf( + "$ %s query blocks --query \"message.sender='cosmos1...' AND block.height > 7\" --page 1 --limit 30 --order-by ASC", + version.AppName, ), RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { return err } - eventsRaw, _ := cmd.Flags().GetString(auth.FlagEvents) - eventsStr := strings.Trim(eventsRaw, "'") - - var events []string - if strings.Contains(eventsStr, "&") { - events = strings.Split(eventsStr, "&") - } else { - events = append(events, eventsStr) - } - - var tmEvents []string - - for _, event := range events { - if !strings.Contains(event, "=") { - return fmt.Errorf("invalid event; event %s should be of the format: %s", event, auth.EventFormat) - } else if strings.Count(event, "=") > 1 { - return fmt.Errorf("invalid event; event %s should be of the format: %s", event, auth.EventFormat) - } - - tokens := strings.Split(event, "=") - if tokens[0] == tmtypes.TxHeightKey { - event = fmt.Sprintf("%s=%s", tokens[0], tokens[1]) - } else { - event = fmt.Sprintf("%s='%s'", tokens[0], tokens[1]) - } - - tmEvents = append(tmEvents, event) - } - + query, _ := cmd.Flags().GetString(auth.FlagQuery) page, _ := cmd.Flags().GetInt(flags.FlagPage) limit, _ := cmd.Flags().GetInt(flags.FlagLimit) + orderBy, _ := cmd.Flags().GetString(auth.FlagOrderBy) - blocks, err := rpc.QueryBlocksByEvents(clientCtx, tmEvents, page, limit, "") + blocks, err := rpc.QueryBlocksByEvents(clientCtx, page, limit, query, orderBy) if err != nil { return err } @@ -192,9 +159,10 @@ $ %s query blocks --%s 'message.sender=cosmos1...&message.action=withdraw_delega flags.AddQueryFlagsToCmd(cmd) cmd.Flags().Int(flags.FlagPage, query.DefaultPage, "Query a specific page of paginated results") - cmd.Flags().Int(flags.FlagLimit, query.DefaultLimit, "Query number of block results per page returned") - cmd.Flags().String(auth.FlagEvents, "", fmt.Sprintf("list of block events in the form of %s", auth.EventFormat)) - cmd.MarkFlagRequired(auth.FlagEvents) + cmd.Flags().Int(flags.FlagLimit, query.DefaultLimit, "Query number of transactions results per page returned") + cmd.Flags().String(auth.FlagQuery, "", "The blocks events query per Tendermint's query semantics") + cmd.Flags().String(auth.FlagOrderBy, "", "The ordering semantics (asc|dsc)") + _ = cmd.MarkFlagRequired(auth.FlagQuery) return cmd } @@ -209,8 +177,8 @@ Example: $ %s query block --%s=%s $ %s query block --%s=%s `, - version.AppName, flagType, auth.TypeHeight, - version.AppName, flagType, auth.TypeHash)), + version.AppName, auth.FlagType, auth.TypeHeight, + version.AppName, auth.FlagType, auth.TypeHash)), Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientQueryContext(cmd) @@ -218,7 +186,7 @@ $ %s query block --%s=%s return err } - typ, _ := cmd.Flags().GetString(flagType) + typ, _ := cmd.Flags().GetString(auth.FlagType) switch typ { case auth.TypeHeight: @@ -271,13 +239,13 @@ $ %s query block --%s=%s return clientCtx.PrintProto(output) } default: - return fmt.Errorf("unknown --%s value %s", flagType, typ) + return fmt.Errorf("unknown --%s value %s", auth.FlagType, typ) } }, } flags.AddQueryFlagsToCmd(cmd) - cmd.Flags().String(flagType, auth.TypeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\"", auth.TypeHeight, auth.TypeHash)) + cmd.Flags().String(auth.FlagType, auth.TypeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\"", auth.TypeHeight, auth.TypeHash)) return cmd } diff --git a/x/auth/client/cli/query.go b/x/auth/client/cli/query.go index cb22f742c8ce..a06f50d1689c 100644 --- a/x/auth/client/cli/query.go +++ b/x/auth/client/cli/query.go @@ -20,8 +20,10 @@ import ( ) const ( - FlagEvents = "events" - flagType = "type" + FlagEvents = "events" // TODO: Remove when #14758 is merged + FlagQuery = "query" + FlagType = "type" + FlagOrderBy = "order_by" TypeHash = "hash" TypeAccSeq = "acc_seq" @@ -340,8 +342,8 @@ $ %s query tx --%s=%s / $ %s query tx --%s=%s , `, version.AppName, - version.AppName, flagType, TypeAccSeq, - version.AppName, flagType, TypeSig)), + version.AppName, FlagType, TypeAccSeq, + version.AppName, FlagType, TypeSig)), Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientQueryContext(cmd) @@ -349,7 +351,7 @@ $ %s query tx --%s=%s , return err } - typ, _ := cmd.Flags().GetString(flagType) + typ, _ := cmd.Flags().GetString(FlagType) switch typ { case TypeHash: @@ -419,13 +421,13 @@ $ %s query tx --%s=%s , return clientCtx.PrintProto(txs.Txs[0]) } default: - return fmt.Errorf("unknown --%s value %s", flagType, typ) + return fmt.Errorf("unknown --%s value %s", FlagType, typ) } }, } flags.AddQueryFlagsToCmd(cmd) - cmd.Flags().String(flagType, TypeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\", \"%s\"", TypeHash, TypeAccSeq, TypeSig)) + cmd.Flags().String(FlagType, TypeHash, fmt.Sprintf("The type to be used when querying tx, can be one of \"%s\", \"%s\", \"%s\"", TypeHash, TypeAccSeq, TypeSig)) return cmd } From 8c4e000d1cb123a6b45cdbf9ff1857bf49ec788d Mon Sep 17 00:00:00 2001 From: cipherZ Date: Fri, 3 Feb 2023 21:13:46 -0500 Subject: [PATCH 22/34] Update client/rpc/block.go Co-authored-by: Julien Robert --- client/rpc/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/rpc/block.go b/client/rpc/block.go index 7bb81cabe100..12dde539cc54 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -95,7 +95,7 @@ func GetBlockByHash(clientCtx client.Context, hashHexString string) (*tm.Block, resBlock, err := node.BlockByHash(context.Background(), hash) if err != nil || resBlock.Block == nil { - return nil, fmt.Errorf("block not found with Hash: %s with Error: %s", hashHexString, err) + return nil, fmt.Errorf("block not found with hash: %s with error: %s", hashHexString, err) } out, err := mkBlockResult(resBlock) From 4c27245cd851cf41582b9bb9a43c0e0074633e28 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Sat, 4 Feb 2023 06:48:00 -0500 Subject: [PATCH 23/34] differentiate errors --- client/rpc/block.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/rpc/block.go b/client/rpc/block.go index 7bb81cabe100..27d520f79399 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -94,8 +94,10 @@ func GetBlockByHash(clientCtx client.Context, hashHexString string) (*tm.Block, resBlock, err := node.BlockByHash(context.Background(), hash) - if err != nil || resBlock.Block == nil { - return nil, fmt.Errorf("block not found with Hash: %s with Error: %s", hashHexString, err) + if err != nil { + return nil, err + } else if resBlock.Block == nil { + return nil, fmt.Errorf("block not found with hash: %s", hashHexString) } out, err := mkBlockResult(resBlock) From d8d513620ad35b632fae0ecec5d4809694c68d64 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Tue, 7 Feb 2023 11:51:07 -0500 Subject: [PATCH 24/34] changes per PR review --- server/tm_cmds.go | 74 +++++++++++++++++++++++------------------------ 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/server/tm_cmds.go b/server/tm_cmds.go index ea6f215fd675..085363a017fc 100644 --- a/server/tm_cmds.go +++ b/server/tm_cmds.go @@ -172,8 +172,8 @@ func QueryBlockCmd() *cobra.Command { cmd := &cobra.Command{ Use: "block --type=[height|hash] [height|hash]", Short: "Query for a committed block by height, hash, or event(s)", - Long: strings.TrimSpace(fmt.Sprintf(` -Example: + Long: "Query for a specific committed block using the TenderMint RPC `block` and `block_by_hash` method", + Example: strings.TrimSpace(fmt.Sprintf(` $ %s query block --%s=%s $ %s query block --%s=%s `, @@ -190,54 +190,54 @@ $ %s query block --%s=%s switch typ { case auth.TypeHeight: - { - if args[0] == "" { - return fmt.Errorf("argument should be a block height") - } - var height *int64 - - // optional height - if len(args) > 0 { - h, err := strconv.Atoi(args[0]) - if err != nil { - return err - } - if h > 0 { - tmp := int64(h) - height = &tmp - } - } + if args[0] == "" { + return fmt.Errorf("argument should be a block height") + } - output, err := rpc.GetBlockByHeight(clientCtx, height) + var height *int64 + + // optional height + if len(args) > 0 { + h, err := strconv.Atoi(args[0]) if err != nil { return err } - - if output.Header.Height == 0 { - return fmt.Errorf("no block found with height %s", args[0]) + if h > 0 { + tmp := int64(h) + height = &tmp } + } + + output, err := rpc.GetBlockByHeight(clientCtx, height) + if err != nil { + return err + } - return clientCtx.PrintProto(output) + if output.Header.Height == 0 { + return fmt.Errorf("no block found with height %s", args[0]) } + + return clientCtx.PrintProto(output) + case auth.TypeHash: - { - if args[0] == "" { - return fmt.Errorf("argument should be a tx hash") - } - // If hash is given, then query the tx by hash. - output, err := rpc.GetBlockByHash(clientCtx, args[0]) - if err != nil { - return err - } + if args[0] == "" { + return fmt.Errorf("argument should be a tx hash") + } - if output.Header.AppHash == nil { - return fmt.Errorf("no block found with hash %s", args[0]) - } + // If hash is given, then query the tx by hash. + output, err := rpc.GetBlockByHash(clientCtx, args[0]) + if err != nil { + return err + } - return clientCtx.PrintProto(output) + if output.Header.AppHash == nil { + return fmt.Errorf("no block found with hash %s", args[0]) } + + return clientCtx.PrintProto(output) + default: return fmt.Errorf("unknown --%s value %s", auth.FlagType, typ) } From cbff045837018ec359676208547304d5ebb2e6ae Mon Sep 17 00:00:00 2001 From: cipherZ Date: Tue, 7 Feb 2023 15:27:16 -0500 Subject: [PATCH 25/34] fixed test --- types/result_test.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/types/result_test.go b/types/result_test.go index caf51446846b..bd1276975dff 100644 --- a/types/result_test.go +++ b/types/result_test.go @@ -14,7 +14,8 @@ import ( "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - tm "github.com/cometbft/cometbft/proto/tendermint/types" + cmtt "github.com/cometbft/cometbft/proto/tendermint/types" + cmt "github.com/cometbft/cometbft/types" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/testutil/testdata" sdk "github.com/cosmos/cosmos-sdk/types" @@ -142,14 +143,14 @@ txhash: "74657374" } func (s *resultTestSuite) TestNewSearchBlocksResult() { - got := sdk.NewSearchBlocksResult(150, 20, 2, 20, []*tm.Block{}) + got := sdk.NewSearchBlocksResult(150, 20, 2, 20, []*cmtt.Block{}) s.Require().Equal(&sdk.SearchBlocksResult{ TotalCount: 150, Count: 20, PageNumber: 2, PageTotal: 8, Limit: 20, - Blocks: []*tm.Block{}, + Blocks: []*cmtt.Block{}, }, got) } @@ -158,20 +159,20 @@ func (s *resultTestSuite) TestResponseResultBlock() { timestampStr := timestamp.UTC().Format(time.RFC3339) // create a block - resultBlock := &coretypes.ResultBlock{Block: &tmtypes.Block{ - Header: tmtypes.Header{ + resultBlock := &coretypes.ResultBlock{Block: &cmt.Block{ + Header: cmt.Header{ Height: 10, Time: timestamp, }, - Evidence: tmtypes.EvidenceData{ - Evidence: make(tmtypes.EvidenceList, 0), + Evidence: cmt.EvidenceData{ + Evidence: make(cmt.EvidenceList, 0), }, }} blk, err := resultBlock.Block.ToProto() s.Require().NoError(err) - want := &tm.Block{ + want := &cmtt.Block{ Header: blk.Header, Evidence: blk.Evidence, } From 4bea8b38df9911eef82bb3b07db6e1099e627899 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Wed, 8 Feb 2023 21:11:59 -0500 Subject: [PATCH 26/34] Update types/result.go Co-authored-by: Julien Robert --- types/result.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/result.go b/types/result.go index 40a8673dfda8..f0806d20d3e9 100644 --- a/types/result.go +++ b/types/result.go @@ -83,7 +83,7 @@ func NewResponseResultTx(res *coretypes.ResultTx, anyTx *codectypes.Any, timesta } } -// NewResponseResultBlock returns a BlockResponse given a ResultBlock from tendermint +// NewResponseResultBlock returns a BlockResponse given a ResultBlock from CometBFT func NewResponseResultBlock(res *coretypes.ResultBlock, timestamp string) *cmt.Block { if res == nil { return nil From 4310491e78070a80f577853f4107e235f65be9ee Mon Sep 17 00:00:00 2001 From: cipherZ Date: Wed, 8 Feb 2023 21:12:17 -0500 Subject: [PATCH 27/34] Update client/rpc/block.go Co-authored-by: Julien Robert --- client/rpc/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/rpc/block.go b/client/rpc/block.go index 399ed05bbd05..566ebc12a440 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -30,7 +30,7 @@ func GetChainHeight(clientCtx client.Context) (int64, error) { } // QueryBlocksByEvents performs a search for blocks for a given set of events -// via the Tendermint RPC. An event takes the form of: +// via the CometBFT RPC. An event takes the form of: // "{eventAttribute}.{attributeKey} = '{attributeValue}'". Each event is // concatenated with an 'AND' operand. It returns a slice of Info object // containing blocks and metadata. An error is returned if the query fails. From bedce2d012036c9c50bf1edeb50025052e1ba83b Mon Sep 17 00:00:00 2001 From: cipherZ Date: Wed, 8 Feb 2023 21:12:44 -0500 Subject: [PATCH 28/34] Update server/cmt_cmds.go Co-authored-by: Julien Robert --- server/cmt_cmds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cmt_cmds.go b/server/cmt_cmds.go index 2761f2f31fb0..c7f053b0682c 100644 --- a/server/cmt_cmds.go +++ b/server/cmt_cmds.go @@ -129,7 +129,7 @@ func QueryBlocksByEventsCmd() *cobra.Command { Use: "blocks", Short: "Query for paginated blocks that match a set of events", Long: `Search for blocks that match the exact given events where results are paginated. -The events query is directly passed to Tendermint's RPC BlockSearch method and must +The events query is directly passed to CometBFT's RPC BlockSearch method and must conform to Tendermint's query syntax. Please refer to each module's documentation for the full set of events to query for. Each module documents its respective events under 'xx_events.md'. From 01bdbe3962263b00e63c892ee6cbda72cc3f9cd9 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Wed, 8 Feb 2023 21:13:01 -0500 Subject: [PATCH 29/34] Update server/cmt_cmds.go Co-authored-by: Julien Robert --- server/cmt_cmds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cmt_cmds.go b/server/cmt_cmds.go index c7f053b0682c..f5a2cb5b430e 100644 --- a/server/cmt_cmds.go +++ b/server/cmt_cmds.go @@ -130,7 +130,7 @@ func QueryBlocksByEventsCmd() *cobra.Command { Short: "Query for paginated blocks that match a set of events", Long: `Search for blocks that match the exact given events where results are paginated. The events query is directly passed to CometBFT's RPC BlockSearch method and must -conform to Tendermint's query syntax. +conform to CometBFT's query syntax. Please refer to each module's documentation for the full set of events to query for. Each module documents its respective events under 'xx_events.md'. `, From 4af57607c08b0d255e623acfcc4f4d7cc32b5468 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Wed, 8 Feb 2023 21:13:13 -0500 Subject: [PATCH 30/34] Update server/cmt_cmds.go Co-authored-by: Julien Robert --- server/cmt_cmds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cmt_cmds.go b/server/cmt_cmds.go index f5a2cb5b430e..623c5edd01c5 100644 --- a/server/cmt_cmds.go +++ b/server/cmt_cmds.go @@ -160,7 +160,7 @@ for. Each module documents its respective events under 'xx_events.md'. flags.AddQueryFlagsToCmd(cmd) cmd.Flags().Int(flags.FlagPage, query.DefaultPage, "Query a specific page of paginated results") cmd.Flags().Int(flags.FlagLimit, query.DefaultLimit, "Query number of transactions results per page returned") - cmd.Flags().String(auth.FlagQuery, "", "The blocks events query per Tendermint's query semantics") + cmd.Flags().String(auth.FlagQuery, "", "The blocks events query per CometBFT's query semantics") cmd.Flags().String(auth.FlagOrderBy, "", "The ordering semantics (asc|dsc)") _ = cmd.MarkFlagRequired(auth.FlagQuery) From fb5857da2b45d0a145b74cae5487716849d86758 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Wed, 8 Feb 2023 21:13:26 -0500 Subject: [PATCH 31/34] Update server/cmt_cmds.go Co-authored-by: Julien Robert --- server/cmt_cmds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cmt_cmds.go b/server/cmt_cmds.go index 623c5edd01c5..4c7ec0be17c7 100644 --- a/server/cmt_cmds.go +++ b/server/cmt_cmds.go @@ -172,7 +172,7 @@ func QueryBlockCmd() *cobra.Command { cmd := &cobra.Command{ Use: "block --type=[height|hash] [height|hash]", Short: "Query for a committed block by height, hash, or event(s)", - Long: "Query for a specific committed block using the TenderMint RPC `block` and `block_by_hash` method", + Long: "Query for a specific committed block using the CometBFT RPC `block` and `block_by_hash` method", Example: strings.TrimSpace(fmt.Sprintf(` $ %s query block --%s=%s $ %s query block --%s=%s From 1b3eb73dc395fb6757f17750b69f62970216ad25 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Wed, 8 Feb 2023 21:16:55 -0500 Subject: [PATCH 32/34] updates per pr feedback --- client/rpc/block.go | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/client/rpc/block.go b/client/rpc/block.go index 399ed05bbd05..40dcc24acec4 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -72,9 +72,9 @@ func GetBlockByHeight(clientCtx client.Context, height *int64) (*cmt.Block, erro return nil, err } - out, err := mkBlockResult(resBlock) - if err != nil { - return out, err + out := sdk.NewResponseResultBlock(resBlock, resBlock.Block.Time.Format(time.RFC3339)) + if out == nil { + return nil, fmt.Errorf("unable to create response block from comet result block: %v", resBlock) } return out, nil @@ -100,26 +100,21 @@ func GetBlockByHash(clientCtx client.Context, hashHexString string) (*cmt.Block, return nil, fmt.Errorf("block not found with hash: %s", hashHexString) } - out, err := mkBlockResult(resBlock) - if err != nil { - return out, err + out := sdk.NewResponseResultBlock(resBlock, resBlock.Block.Time.Format(time.RFC3339)) + if out == nil { + return nil, fmt.Errorf("Unable to create response block from comet result block: %v", resBlock) } return out, nil } -func mkBlockResult(resBlock *coretypes.ResultBlock) (*cmt.Block, error) { - return sdk.NewResponseResultBlock(resBlock, resBlock.Block.Time.Format(time.RFC3339)), nil -} - // formatBlockResults parses the indexed blocks into a slice of BlockResponse objects. func formatBlockResults(resBlocks []*coretypes.ResultBlock) ([]*cmt.Block, error) { - var err error out := make([]*cmt.Block, len(resBlocks)) for i := range resBlocks { - out[i], err = mkBlockResult(resBlocks[i]) - if err != nil { - return nil, err + out[i] = sdk.NewResponseResultBlock(resBlocks[i], resBlocks[i].Block.Time.Format(time.RFC3339)) + if out[i] == nil { + return nil, fmt.Errorf("unable to create response block from comet result block: %v", resBlocks[i]) } } From 35669ab538d71b7cd74d67a22cb05a8fa1752b87 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Wed, 8 Feb 2023 22:01:54 -0500 Subject: [PATCH 33/34] updates per PR feedback --- client/rpc/block.go | 28 ++++++++++++++++++++-------- server/cmt_cmds.go | 6 +++--- simapp/simd/cmd/root.go | 2 +- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/client/rpc/block.go b/client/rpc/block.go index d10d19f74fd6..5b7540f6df14 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -29,13 +29,25 @@ func GetChainHeight(clientCtx client.Context) (int64, error) { return height, nil } -// QueryBlocksByEvents performs a search for blocks for a given set of events -// via the CometBFT RPC. An event takes the form of: -// "{eventAttribute}.{attributeKey} = '{attributeValue}'". Each event is -// concatenated with an 'AND' operand. It returns a slice of Info object -// containing blocks and metadata. An error is returned if the query fails. -// If an empty string is provided it will order blocks by asc -func QueryBlocksByEvents(clientCtx client.Context, page, limit int, query string, orderBy string) (*sdk.SearchBlocksResult, error) { +// QueryBlocks performs a search for blocks based on BeginBlock and EndBlock +// events via the CometBFT RPC. A custom query may be passed as described below: +// +// To tell which events you want, you need to provide a query. query is a +// string, which has a form: "condition AND condition ..." (no OR at the +// moment). condition has a form: "key operation operand". key is a string with +// a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed). +// operation can be "=", "<", "<=", ">", ">=", "CONTAINS" AND "EXISTS". operand +// can be a string (escaped with single quotes), number, date or time. + +// Examples: +// tm.event = 'NewBlock' # new blocks +// tm.event = 'CompleteProposal' # node got a complete proposal +// tm.event = 'Tx' AND tx.hash = 'XYZ' # single transaction +// tm.event = 'Tx' AND tx.height = 5 # all txs of the fifth block +// tx.height = 5 # all txs of the fifth block +// +// For more information, see the /subscribe CometBFT RPC endpoint documentation +func QueryBlocks(clientCtx client.Context, page, limit int, query string, orderBy string) (*sdk.SearchBlocksResult, error) { node, err := clientCtx.GetNode() if err != nil { return nil, err @@ -102,7 +114,7 @@ func GetBlockByHash(clientCtx client.Context, hashHexString string) (*cmt.Block, out := sdk.NewResponseResultBlock(resBlock, resBlock.Block.Time.Format(time.RFC3339)) if out == nil { - return nil, fmt.Errorf("Unable to create response block from comet result block: %v", resBlock) + return nil, fmt.Errorf("unable to create response block from comet result block: %v", resBlock) } return out, nil diff --git a/server/cmt_cmds.go b/server/cmt_cmds.go index 86427b4f1f5a..a37cc53173d9 100644 --- a/server/cmt_cmds.go +++ b/server/cmt_cmds.go @@ -123,8 +123,8 @@ func VersionCmd() *cobra.Command { } } -// QueryBlocksByEventsCmd returns a command to search through blocks by events. -func QueryBlocksByEventsCmd() *cobra.Command { +// QueryBlocksCmd returns a command to search through blocks by events. +func QueryBlocksCmd() *cobra.Command { cmd := &cobra.Command{ Use: "blocks", Short: "Query for paginated blocks that match a set of events", @@ -148,7 +148,7 @@ for. Each module documents its respective events under 'xx_events.md'. limit, _ := cmd.Flags().GetInt(flags.FlagLimit) orderBy, _ := cmd.Flags().GetString(auth.FlagOrderBy) - blocks, err := rpc.QueryBlocksByEvents(clientCtx, page, limit, query, orderBy) + blocks, err := rpc.QueryBlocks(clientCtx, page, limit, query, orderBy) if err != nil { return err } diff --git a/simapp/simd/cmd/root.go b/simapp/simd/cmd/root.go index 3d8b9cbcc912..e4265b566cc8 100644 --- a/simapp/simd/cmd/root.go +++ b/simapp/simd/cmd/root.go @@ -238,7 +238,7 @@ func queryCommand() *cobra.Command { rpc.ValidatorCommand(), tmcmd.QueryBlockCmd(), authcmd.QueryTxsByEventsCmd(), - tmcmd.QueryBlocksByEventsCmd(), + tmcmd.QueryBlocksCmd(), authcmd.QueryTxCmd(), ) From 12d51da9c8f37fc7d858139b1bdee594f800f993 Mon Sep 17 00:00:00 2001 From: cipherZ Date: Tue, 14 Feb 2023 12:14:40 -0500 Subject: [PATCH 34/34] implemented PR change requests --- simapp/simd/cmd/root.go | 5 ++--- types/result.go | 8 ++++---- x/auth/tx/README.md | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/simapp/simd/cmd/root.go b/simapp/simd/cmd/root.go index e4265b566cc8..f572b81545f7 100644 --- a/simapp/simd/cmd/root.go +++ b/simapp/simd/cmd/root.go @@ -25,7 +25,6 @@ import ( "github.com/cosmos/cosmos-sdk/client/rpc" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/server" - tmcmd "github.com/cosmos/cosmos-sdk/server" serverconfig "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" @@ -236,9 +235,9 @@ func queryCommand() *cobra.Command { cmd.AddCommand( authcmd.GetAccountCmd(), rpc.ValidatorCommand(), - tmcmd.QueryBlockCmd(), + server.QueryBlockCmd(), authcmd.QueryTxsByEventsCmd(), - tmcmd.QueryBlocksCmd(), + server.QueryBlocksCmd(), authcmd.QueryTxCmd(), ) diff --git a/types/result.go b/types/result.go index f0806d20d3e9..3d5e20080e4a 100644 --- a/types/result.go +++ b/types/result.go @@ -9,7 +9,7 @@ import ( coretypes "github.com/cometbft/cometbft/rpc/core/types" "github.com/cosmos/gogoproto/proto" - cmt "github.com/cometbft/cometbft/proto/tendermint/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" ) @@ -84,7 +84,7 @@ func NewResponseResultTx(res *coretypes.ResultTx, anyTx *codectypes.Any, timesta } // NewResponseResultBlock returns a BlockResponse given a ResultBlock from CometBFT -func NewResponseResultBlock(res *coretypes.ResultBlock, timestamp string) *cmt.Block { +func NewResponseResultBlock(res *coretypes.ResultBlock, timestamp string) *cmtproto.Block { if res == nil { return nil } @@ -94,7 +94,7 @@ func NewResponseResultBlock(res *coretypes.ResultBlock, timestamp string) *cmt.B return nil } - return &cmt.Block{ + return &cmtproto.Block{ Header: blk.Header, Data: blk.Data, Evidence: blk.Evidence, @@ -143,7 +143,7 @@ func NewSearchTxsResult(totalCount, count, page, limit uint64, txs []*TxResponse } } -func NewSearchBlocksResult(totalCount, count, page, limit int64, blocks []*cmt.Block) *SearchBlocksResult { +func NewSearchBlocksResult(totalCount, count, page, limit int64, blocks []*cmtproto.Block) *SearchBlocksResult { totalPages := calcTotalPages(totalCount, limit) return &SearchBlocksResult{ diff --git a/x/auth/tx/README.md b/x/auth/tx/README.md index 1286454f729b..0460f69d8b6c 100644 --- a/x/auth/tx/README.md +++ b/x/auth/tx/README.md @@ -105,10 +105,10 @@ When querying a block by its height, use the `--type=height` flag: simd query block --type=height 1357 ``` -When querying a block by its events, use the `--type=events` flag: +When querying a block by its events, use the `--query` flag: ```shell -simd query blocks --events 'message.sender=cosmos...' --page 1 --limit 30 +simd query blocks --query 'message.sender=cosmos...' --page 1 --limit 30 ``` #### Transactions