From 3c6032f817a268779d4fbe3722150e58c628ce50 Mon Sep 17 00:00:00 2001 From: dongsam Date: Wed, 3 Jan 2024 19:23:14 +0900 Subject: [PATCH] feat: WIP add proto dependency for bls, epoching modules --- api/cosmos/bls/v1/bls_key.pulsar.go | 2385 +++++ api/cosmos/bls/v1/checkpoint.pulsar.go | 3031 +++++++ api/cosmos/bls/v1/events.pulsar.go | 3639 ++++++++ api/cosmos/bls/v1/genesis.pulsar.go | 1311 +++ api/cosmos/bls/v1/query.pulsar.go | 7849 +++++++++++++++++ api/cosmos/bls/v1/query_grpc.pb.go | 351 + api/cosmos/bls/v1/tx.pulsar.go | 2080 +++++ api/cosmos/bls/v1/tx_grpc.pb.go | 150 + api/cosmos/epoching/v1/epoching.pulsar.go | 5949 +++++++++++++ api/cosmos/epoching/v1/events.pulsar.go | 4911 +++++++++++ api/cosmos/epoching/v1/genesis.pulsar.go | 594 ++ api/cosmos/epoching/v1/params.pulsar.go | 559 ++ api/cosmos/epoching/v1/query.pulsar.go | 9756 +++++++++++++++++++++ api/cosmos/epoching/v1/query_grpc.pb.go | 429 + api/cosmos/epoching/v1/tx.pulsar.go | 3792 ++++++++ api/cosmos/epoching/v1/tx_grpc.pb.go | 234 + proto/cosmos/bls/v1/bls_key.proto | 39 + proto/cosmos/bls/v1/checkpoint.proto | 86 + proto/cosmos/bls/v1/events.proto | 49 + proto/cosmos/bls/v1/genesis.proto | 25 + proto/cosmos/bls/v1/query.proto | 159 + proto/cosmos/bls/v1/tx.proto | 52 + proto/cosmos/epoching/v1/epoching.proto | 110 + proto/cosmos/epoching/v1/events.proto | 68 + proto/cosmos/epoching/v1/genesis.proto | 12 + proto/cosmos/epoching/v1/params.proto | 14 + proto/cosmos/epoching/v1/query.proto | 186 + proto/cosmos/epoching/v1/tx.proto | 86 + x/bls/types/bls_key.pb.go | 91 +- x/bls/types/checkpoint.pb.go | 146 +- x/bls/types/events.pb.go | 84 +- x/bls/types/genesis.pb.go | 61 +- x/bls/types/query.pb.go | 229 +- x/bls/types/query.pb.gw.go | 16 +- x/bls/types/tx.pb.go | 100 +- x/epoching/testepoching/helper.go | 2 +- x/epoching/types/epoching.pb.go | 164 +- x/epoching/types/events.pb.go | 121 +- x/epoching/types/genesis.pb.go | 38 +- x/epoching/types/params.pb.go | 38 +- x/epoching/types/query.pb.go | 258 +- x/epoching/types/query.pb.gw.go | 20 +- x/epoching/types/tx.pb.go | 131 +- 43 files changed, 48649 insertions(+), 756 deletions(-) create mode 100644 api/cosmos/bls/v1/bls_key.pulsar.go create mode 100644 api/cosmos/bls/v1/checkpoint.pulsar.go create mode 100644 api/cosmos/bls/v1/events.pulsar.go create mode 100644 api/cosmos/bls/v1/genesis.pulsar.go create mode 100644 api/cosmos/bls/v1/query.pulsar.go create mode 100644 api/cosmos/bls/v1/query_grpc.pb.go create mode 100644 api/cosmos/bls/v1/tx.pulsar.go create mode 100644 api/cosmos/bls/v1/tx_grpc.pb.go create mode 100644 api/cosmos/epoching/v1/epoching.pulsar.go create mode 100644 api/cosmos/epoching/v1/events.pulsar.go create mode 100644 api/cosmos/epoching/v1/genesis.pulsar.go create mode 100644 api/cosmos/epoching/v1/params.pulsar.go create mode 100644 api/cosmos/epoching/v1/query.pulsar.go create mode 100644 api/cosmos/epoching/v1/query_grpc.pb.go create mode 100644 api/cosmos/epoching/v1/tx.pulsar.go create mode 100644 api/cosmos/epoching/v1/tx_grpc.pb.go create mode 100644 proto/cosmos/bls/v1/bls_key.proto create mode 100644 proto/cosmos/bls/v1/checkpoint.proto create mode 100644 proto/cosmos/bls/v1/events.proto create mode 100644 proto/cosmos/bls/v1/genesis.proto create mode 100644 proto/cosmos/bls/v1/query.proto create mode 100644 proto/cosmos/bls/v1/tx.proto create mode 100644 proto/cosmos/epoching/v1/epoching.proto create mode 100644 proto/cosmos/epoching/v1/events.proto create mode 100644 proto/cosmos/epoching/v1/genesis.proto create mode 100644 proto/cosmos/epoching/v1/params.proto create mode 100644 proto/cosmos/epoching/v1/query.proto create mode 100644 proto/cosmos/epoching/v1/tx.proto diff --git a/api/cosmos/bls/v1/bls_key.pulsar.go b/api/cosmos/bls/v1/bls_key.pulsar.go new file mode 100644 index 00000000000..b3dd22200d4 --- /dev/null +++ b/api/cosmos/bls/v1/bls_key.pulsar.go @@ -0,0 +1,2385 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package blsv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_BlsKey protoreflect.MessageDescriptor + fd_BlsKey_pubkey protoreflect.FieldDescriptor + fd_BlsKey_pop protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_bls_key_proto_init() + md_BlsKey = File_cosmos_bls_v1_bls_key_proto.Messages().ByName("BlsKey") + fd_BlsKey_pubkey = md_BlsKey.Fields().ByName("pubkey") + fd_BlsKey_pop = md_BlsKey.Fields().ByName("pop") +} + +var _ protoreflect.Message = (*fastReflection_BlsKey)(nil) + +type fastReflection_BlsKey BlsKey + +func (x *BlsKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_BlsKey)(x) +} + +func (x *BlsKey) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_bls_key_proto_msgTypes[0] + 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_BlsKey_messageType fastReflection_BlsKey_messageType +var _ protoreflect.MessageType = fastReflection_BlsKey_messageType{} + +type fastReflection_BlsKey_messageType struct{} + +func (x fastReflection_BlsKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_BlsKey)(nil) +} +func (x fastReflection_BlsKey_messageType) New() protoreflect.Message { + return new(fastReflection_BlsKey) +} +func (x fastReflection_BlsKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BlsKey +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BlsKey) Descriptor() protoreflect.MessageDescriptor { + return md_BlsKey +} + +// 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_BlsKey) Type() protoreflect.MessageType { + return _fastReflection_BlsKey_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BlsKey) New() protoreflect.Message { + return new(fastReflection_BlsKey) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BlsKey) Interface() protoreflect.ProtoMessage { + return (*BlsKey)(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_BlsKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Pubkey) != 0 { + value := protoreflect.ValueOfBytes(x.Pubkey) + if !f(fd_BlsKey_pubkey, value) { + return + } + } + if x.Pop != nil { + value := protoreflect.ValueOfMessage(x.Pop.ProtoReflect()) + if !f(fd_BlsKey_pop, 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_BlsKey) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.BlsKey.pubkey": + return len(x.Pubkey) != 0 + case "cosmos.bls.v1.BlsKey.pop": + return x.Pop != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsKey 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_BlsKey) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.BlsKey.pubkey": + x.Pubkey = nil + case "cosmos.bls.v1.BlsKey.pop": + x.Pop = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsKey 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_BlsKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.BlsKey.pubkey": + value := x.Pubkey + return protoreflect.ValueOfBytes(value) + case "cosmos.bls.v1.BlsKey.pop": + value := x.Pop + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsKey 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_BlsKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.BlsKey.pubkey": + x.Pubkey = value.Bytes() + case "cosmos.bls.v1.BlsKey.pop": + x.Pop = value.Message().Interface().(*ProofOfPossession) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsKey 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_BlsKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.BlsKey.pop": + if x.Pop == nil { + x.Pop = new(ProofOfPossession) + } + return protoreflect.ValueOfMessage(x.Pop.ProtoReflect()) + case "cosmos.bls.v1.BlsKey.pubkey": + panic(fmt.Errorf("field pubkey of message cosmos.bls.v1.BlsKey is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsKey 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_BlsKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.BlsKey.pubkey": + return protoreflect.ValueOfBytes(nil) + case "cosmos.bls.v1.BlsKey.pop": + m := new(ProofOfPossession) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsKey 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_BlsKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.BlsKey", 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_BlsKey) 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_BlsKey) 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_BlsKey) 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_BlsKey) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BlsKey) + 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.Pubkey) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pop != nil { + l = options.Size(x.Pop) + 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().(*BlsKey) + 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.Pop != nil { + encoded, err := options.Marshal(x.Pop) + 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.Pubkey) > 0 { + i -= len(x.Pubkey) + copy(dAtA[i:], x.Pubkey) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Pubkey))) + i-- + dAtA[i] = 0x12 + } + 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().(*BlsKey) + 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: BlsKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlsKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pubkey", 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.Pubkey = append(x.Pubkey[:0], dAtA[iNdEx:postIndex]...) + if x.Pubkey == nil { + x.Pubkey = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pop", 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.Pop == nil { + x.Pop = &ProofOfPossession{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pop); 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_ProofOfPossession protoreflect.MessageDescriptor + fd_ProofOfPossession_ed25519_sig protoreflect.FieldDescriptor + fd_ProofOfPossession_bls_sig protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_bls_key_proto_init() + md_ProofOfPossession = File_cosmos_bls_v1_bls_key_proto.Messages().ByName("ProofOfPossession") + fd_ProofOfPossession_ed25519_sig = md_ProofOfPossession.Fields().ByName("ed25519_sig") + fd_ProofOfPossession_bls_sig = md_ProofOfPossession.Fields().ByName("bls_sig") +} + +var _ protoreflect.Message = (*fastReflection_ProofOfPossession)(nil) + +type fastReflection_ProofOfPossession ProofOfPossession + +func (x *ProofOfPossession) ProtoReflect() protoreflect.Message { + return (*fastReflection_ProofOfPossession)(x) +} + +func (x *ProofOfPossession) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_bls_key_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_ProofOfPossession_messageType fastReflection_ProofOfPossession_messageType +var _ protoreflect.MessageType = fastReflection_ProofOfPossession_messageType{} + +type fastReflection_ProofOfPossession_messageType struct{} + +func (x fastReflection_ProofOfPossession_messageType) Zero() protoreflect.Message { + return (*fastReflection_ProofOfPossession)(nil) +} +func (x fastReflection_ProofOfPossession_messageType) New() protoreflect.Message { + return new(fastReflection_ProofOfPossession) +} +func (x fastReflection_ProofOfPossession_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ProofOfPossession +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ProofOfPossession) Descriptor() protoreflect.MessageDescriptor { + return md_ProofOfPossession +} + +// 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_ProofOfPossession) Type() protoreflect.MessageType { + return _fastReflection_ProofOfPossession_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ProofOfPossession) New() protoreflect.Message { + return new(fastReflection_ProofOfPossession) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ProofOfPossession) Interface() protoreflect.ProtoMessage { + return (*ProofOfPossession)(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_ProofOfPossession) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Ed25519Sig) != 0 { + value := protoreflect.ValueOfBytes(x.Ed25519Sig) + if !f(fd_ProofOfPossession_ed25519_sig, value) { + return + } + } + if len(x.BlsSig) != 0 { + value := protoreflect.ValueOfBytes(x.BlsSig) + if !f(fd_ProofOfPossession_bls_sig, 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_ProofOfPossession) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.ProofOfPossession.ed25519_sig": + return len(x.Ed25519Sig) != 0 + case "cosmos.bls.v1.ProofOfPossession.bls_sig": + return len(x.BlsSig) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ProofOfPossession")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ProofOfPossession 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_ProofOfPossession) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.ProofOfPossession.ed25519_sig": + x.Ed25519Sig = nil + case "cosmos.bls.v1.ProofOfPossession.bls_sig": + x.BlsSig = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ProofOfPossession")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ProofOfPossession 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_ProofOfPossession) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.ProofOfPossession.ed25519_sig": + value := x.Ed25519Sig + return protoreflect.ValueOfBytes(value) + case "cosmos.bls.v1.ProofOfPossession.bls_sig": + value := x.BlsSig + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ProofOfPossession")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ProofOfPossession 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_ProofOfPossession) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.ProofOfPossession.ed25519_sig": + x.Ed25519Sig = value.Bytes() + case "cosmos.bls.v1.ProofOfPossession.bls_sig": + x.BlsSig = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ProofOfPossession")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ProofOfPossession 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_ProofOfPossession) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.ProofOfPossession.ed25519_sig": + panic(fmt.Errorf("field ed25519_sig of message cosmos.bls.v1.ProofOfPossession is not mutable")) + case "cosmos.bls.v1.ProofOfPossession.bls_sig": + panic(fmt.Errorf("field bls_sig of message cosmos.bls.v1.ProofOfPossession is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ProofOfPossession")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ProofOfPossession 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_ProofOfPossession) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.ProofOfPossession.ed25519_sig": + return protoreflect.ValueOfBytes(nil) + case "cosmos.bls.v1.ProofOfPossession.bls_sig": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ProofOfPossession")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ProofOfPossession 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_ProofOfPossession) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.ProofOfPossession", 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_ProofOfPossession) 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_ProofOfPossession) 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_ProofOfPossession) 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_ProofOfPossession) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ProofOfPossession) + 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.Ed25519Sig) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BlsSig) + 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().(*ProofOfPossession) + 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.BlsSig) > 0 { + i -= len(x.BlsSig) + copy(dAtA[i:], x.BlsSig) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BlsSig))) + i-- + dAtA[i] = 0x1a + } + if len(x.Ed25519Sig) > 0 { + i -= len(x.Ed25519Sig) + copy(dAtA[i:], x.Ed25519Sig) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Ed25519Sig))) + i-- + dAtA[i] = 0x12 + } + 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().(*ProofOfPossession) + 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: ProofOfPossession: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ProofOfPossession: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Ed25519Sig", 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.Ed25519Sig = append(x.Ed25519Sig[:0], dAtA[iNdEx:postIndex]...) + if x.Ed25519Sig == nil { + x.Ed25519Sig = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlsSig", 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.BlsSig = append(x.BlsSig[:0], dAtA[iNdEx:postIndex]...) + if x.BlsSig == nil { + x.BlsSig = []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, + } +} + +var _ protoreflect.List = (*_ValidatorWithBlsKeySet_1_list)(nil) + +type _ValidatorWithBlsKeySet_1_list struct { + list *[]*ValidatorWithBlsKey +} + +func (x *_ValidatorWithBlsKeySet_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ValidatorWithBlsKeySet_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ValidatorWithBlsKeySet_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ValidatorWithBlsKey) + (*x.list)[i] = concreteValue +} + +func (x *_ValidatorWithBlsKeySet_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ValidatorWithBlsKey) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ValidatorWithBlsKeySet_1_list) AppendMutable() protoreflect.Value { + v := new(ValidatorWithBlsKey) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValidatorWithBlsKeySet_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ValidatorWithBlsKeySet_1_list) NewElement() protoreflect.Value { + v := new(ValidatorWithBlsKey) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValidatorWithBlsKeySet_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_ValidatorWithBlsKeySet protoreflect.MessageDescriptor + fd_ValidatorWithBlsKeySet_val_set protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_bls_key_proto_init() + md_ValidatorWithBlsKeySet = File_cosmos_bls_v1_bls_key_proto.Messages().ByName("ValidatorWithBlsKeySet") + fd_ValidatorWithBlsKeySet_val_set = md_ValidatorWithBlsKeySet.Fields().ByName("val_set") +} + +var _ protoreflect.Message = (*fastReflection_ValidatorWithBlsKeySet)(nil) + +type fastReflection_ValidatorWithBlsKeySet ValidatorWithBlsKeySet + +func (x *ValidatorWithBlsKeySet) ProtoReflect() protoreflect.Message { + return (*fastReflection_ValidatorWithBlsKeySet)(x) +} + +func (x *ValidatorWithBlsKeySet) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_bls_key_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_ValidatorWithBlsKeySet_messageType fastReflection_ValidatorWithBlsKeySet_messageType +var _ protoreflect.MessageType = fastReflection_ValidatorWithBlsKeySet_messageType{} + +type fastReflection_ValidatorWithBlsKeySet_messageType struct{} + +func (x fastReflection_ValidatorWithBlsKeySet_messageType) Zero() protoreflect.Message { + return (*fastReflection_ValidatorWithBlsKeySet)(nil) +} +func (x fastReflection_ValidatorWithBlsKeySet_messageType) New() protoreflect.Message { + return new(fastReflection_ValidatorWithBlsKeySet) +} +func (x fastReflection_ValidatorWithBlsKeySet_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ValidatorWithBlsKeySet +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ValidatorWithBlsKeySet) Descriptor() protoreflect.MessageDescriptor { + return md_ValidatorWithBlsKeySet +} + +// 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_ValidatorWithBlsKeySet) Type() protoreflect.MessageType { + return _fastReflection_ValidatorWithBlsKeySet_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ValidatorWithBlsKeySet) New() protoreflect.Message { + return new(fastReflection_ValidatorWithBlsKeySet) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ValidatorWithBlsKeySet) Interface() protoreflect.ProtoMessage { + return (*ValidatorWithBlsKeySet)(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_ValidatorWithBlsKeySet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.ValSet) != 0 { + value := protoreflect.ValueOfList(&_ValidatorWithBlsKeySet_1_list{list: &x.ValSet}) + if !f(fd_ValidatorWithBlsKeySet_val_set, 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_ValidatorWithBlsKeySet) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKeySet.val_set": + return len(x.ValSet) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKeySet")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKeySet 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_ValidatorWithBlsKeySet) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKeySet.val_set": + x.ValSet = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKeySet")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKeySet 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_ValidatorWithBlsKeySet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKeySet.val_set": + if len(x.ValSet) == 0 { + return protoreflect.ValueOfList(&_ValidatorWithBlsKeySet_1_list{}) + } + listValue := &_ValidatorWithBlsKeySet_1_list{list: &x.ValSet} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKeySet")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKeySet 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_ValidatorWithBlsKeySet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKeySet.val_set": + lv := value.List() + clv := lv.(*_ValidatorWithBlsKeySet_1_list) + x.ValSet = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKeySet")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKeySet 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_ValidatorWithBlsKeySet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKeySet.val_set": + if x.ValSet == nil { + x.ValSet = []*ValidatorWithBlsKey{} + } + value := &_ValidatorWithBlsKeySet_1_list{list: &x.ValSet} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKeySet")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKeySet 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_ValidatorWithBlsKeySet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKeySet.val_set": + list := []*ValidatorWithBlsKey{} + return protoreflect.ValueOfList(&_ValidatorWithBlsKeySet_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKeySet")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKeySet 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_ValidatorWithBlsKeySet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.ValidatorWithBlsKeySet", 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_ValidatorWithBlsKeySet) 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_ValidatorWithBlsKeySet) 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_ValidatorWithBlsKeySet) 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_ValidatorWithBlsKeySet) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ValidatorWithBlsKeySet) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.ValSet) > 0 { + for _, e := range x.ValSet { + 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().(*ValidatorWithBlsKeySet) + 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.ValSet) > 0 { + for iNdEx := len(x.ValSet) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ValSet[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...) + } 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().(*ValidatorWithBlsKeySet) + 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: ValidatorWithBlsKeySet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorWithBlsKeySet: 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 ValSet", 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.ValSet = append(x.ValSet, &ValidatorWithBlsKey{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ValSet[len(x.ValSet)-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_ValidatorWithBlsKey protoreflect.MessageDescriptor + fd_ValidatorWithBlsKey_validator_address protoreflect.FieldDescriptor + fd_ValidatorWithBlsKey_bls_pub_key protoreflect.FieldDescriptor + fd_ValidatorWithBlsKey_voting_power protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_bls_key_proto_init() + md_ValidatorWithBlsKey = File_cosmos_bls_v1_bls_key_proto.Messages().ByName("ValidatorWithBlsKey") + fd_ValidatorWithBlsKey_validator_address = md_ValidatorWithBlsKey.Fields().ByName("validator_address") + fd_ValidatorWithBlsKey_bls_pub_key = md_ValidatorWithBlsKey.Fields().ByName("bls_pub_key") + fd_ValidatorWithBlsKey_voting_power = md_ValidatorWithBlsKey.Fields().ByName("voting_power") +} + +var _ protoreflect.Message = (*fastReflection_ValidatorWithBlsKey)(nil) + +type fastReflection_ValidatorWithBlsKey ValidatorWithBlsKey + +func (x *ValidatorWithBlsKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_ValidatorWithBlsKey)(x) +} + +func (x *ValidatorWithBlsKey) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_bls_key_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_ValidatorWithBlsKey_messageType fastReflection_ValidatorWithBlsKey_messageType +var _ protoreflect.MessageType = fastReflection_ValidatorWithBlsKey_messageType{} + +type fastReflection_ValidatorWithBlsKey_messageType struct{} + +func (x fastReflection_ValidatorWithBlsKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_ValidatorWithBlsKey)(nil) +} +func (x fastReflection_ValidatorWithBlsKey_messageType) New() protoreflect.Message { + return new(fastReflection_ValidatorWithBlsKey) +} +func (x fastReflection_ValidatorWithBlsKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ValidatorWithBlsKey +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ValidatorWithBlsKey) Descriptor() protoreflect.MessageDescriptor { + return md_ValidatorWithBlsKey +} + +// 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_ValidatorWithBlsKey) Type() protoreflect.MessageType { + return _fastReflection_ValidatorWithBlsKey_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ValidatorWithBlsKey) New() protoreflect.Message { + return new(fastReflection_ValidatorWithBlsKey) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ValidatorWithBlsKey) Interface() protoreflect.ProtoMessage { + return (*ValidatorWithBlsKey)(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_ValidatorWithBlsKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ValidatorAddress != "" { + value := protoreflect.ValueOfString(x.ValidatorAddress) + if !f(fd_ValidatorWithBlsKey_validator_address, value) { + return + } + } + if len(x.BlsPubKey) != 0 { + value := protoreflect.ValueOfBytes(x.BlsPubKey) + if !f(fd_ValidatorWithBlsKey_bls_pub_key, value) { + return + } + } + if x.VotingPower != uint64(0) { + value := protoreflect.ValueOfUint64(x.VotingPower) + if !f(fd_ValidatorWithBlsKey_voting_power, 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_ValidatorWithBlsKey) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKey.validator_address": + return x.ValidatorAddress != "" + case "cosmos.bls.v1.ValidatorWithBlsKey.bls_pub_key": + return len(x.BlsPubKey) != 0 + case "cosmos.bls.v1.ValidatorWithBlsKey.voting_power": + return x.VotingPower != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKey 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_ValidatorWithBlsKey) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKey.validator_address": + x.ValidatorAddress = "" + case "cosmos.bls.v1.ValidatorWithBlsKey.bls_pub_key": + x.BlsPubKey = nil + case "cosmos.bls.v1.ValidatorWithBlsKey.voting_power": + x.VotingPower = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKey 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_ValidatorWithBlsKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKey.validator_address": + value := x.ValidatorAddress + return protoreflect.ValueOfString(value) + case "cosmos.bls.v1.ValidatorWithBlsKey.bls_pub_key": + value := x.BlsPubKey + return protoreflect.ValueOfBytes(value) + case "cosmos.bls.v1.ValidatorWithBlsKey.voting_power": + value := x.VotingPower + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKey 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_ValidatorWithBlsKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKey.validator_address": + x.ValidatorAddress = value.Interface().(string) + case "cosmos.bls.v1.ValidatorWithBlsKey.bls_pub_key": + x.BlsPubKey = value.Bytes() + case "cosmos.bls.v1.ValidatorWithBlsKey.voting_power": + x.VotingPower = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKey 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_ValidatorWithBlsKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKey.validator_address": + panic(fmt.Errorf("field validator_address of message cosmos.bls.v1.ValidatorWithBlsKey is not mutable")) + case "cosmos.bls.v1.ValidatorWithBlsKey.bls_pub_key": + panic(fmt.Errorf("field bls_pub_key of message cosmos.bls.v1.ValidatorWithBlsKey is not mutable")) + case "cosmos.bls.v1.ValidatorWithBlsKey.voting_power": + panic(fmt.Errorf("field voting_power of message cosmos.bls.v1.ValidatorWithBlsKey is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKey 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_ValidatorWithBlsKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.ValidatorWithBlsKey.validator_address": + return protoreflect.ValueOfString("") + case "cosmos.bls.v1.ValidatorWithBlsKey.bls_pub_key": + return protoreflect.ValueOfBytes(nil) + case "cosmos.bls.v1.ValidatorWithBlsKey.voting_power": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.ValidatorWithBlsKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.ValidatorWithBlsKey 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_ValidatorWithBlsKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.ValidatorWithBlsKey", 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_ValidatorWithBlsKey) 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_ValidatorWithBlsKey) 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_ValidatorWithBlsKey) 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_ValidatorWithBlsKey) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ValidatorWithBlsKey) + 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.ValidatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BlsPubKey) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.VotingPower != 0 { + n += 1 + runtime.Sov(uint64(x.VotingPower)) + } + 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().(*ValidatorWithBlsKey) + 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.VotingPower != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.VotingPower)) + i-- + dAtA[i] = 0x18 + } + if len(x.BlsPubKey) > 0 { + i -= len(x.BlsPubKey) + copy(dAtA[i:], x.BlsPubKey) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BlsPubKey))) + i-- + dAtA[i] = 0x12 + } + if len(x.ValidatorAddress) > 0 { + i -= len(x.ValidatorAddress) + copy(dAtA[i:], x.ValidatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ValidatorAddress))) + 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().(*ValidatorWithBlsKey) + 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: ValidatorWithBlsKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorWithBlsKey: 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 ValidatorAddress", 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.ValidatorAddress = 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 BlsPubKey", 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.BlsPubKey = append(x.BlsPubKey[:0], dAtA[iNdEx:postIndex]...) + if x.BlsPubKey == nil { + x.BlsPubKey = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotingPower", wireType) + } + x.VotingPower = 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.VotingPower |= 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cosmos/bls/v1/bls_key.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// BlsKey wraps BLS public key with PoP +type BlsKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // pubkey is the BLS public key of a validator + Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + // pop is the proof-of-possession of the BLS key + Pop *ProofOfPossession `protobuf:"bytes,3,opt,name=pop,proto3" json:"pop,omitempty"` +} + +func (x *BlsKey) Reset() { + *x = BlsKey{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_bls_key_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlsKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlsKey) ProtoMessage() {} + +// Deprecated: Use BlsKey.ProtoReflect.Descriptor instead. +func (*BlsKey) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_bls_key_proto_rawDescGZIP(), []int{0} +} + +func (x *BlsKey) GetPubkey() []byte { + if x != nil { + return x.Pubkey + } + return nil +} + +func (x *BlsKey) GetPop() *ProofOfPossession { + if x != nil { + return x.Pop + } + return nil +} + +// ProofOfPossession defines proof for the ownership of Ed25519 and BLS private +// keys +type ProofOfPossession struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ed25519_sig is used for verification, ed25519_sig = sign(key = Ed25519_sk, + // data = BLS_pk) + Ed25519Sig []byte `protobuf:"bytes,2,opt,name=ed25519_sig,json=ed25519Sig,proto3" json:"ed25519_sig,omitempty"` + // bls_sig is the result of PoP, bls_sig = sign(key = BLS_sk, data = + // ed25519_sig) + BlsSig []byte `protobuf:"bytes,3,opt,name=bls_sig,json=blsSig,proto3" json:"bls_sig,omitempty"` +} + +func (x *ProofOfPossession) Reset() { + *x = ProofOfPossession{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_bls_key_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProofOfPossession) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProofOfPossession) ProtoMessage() {} + +// Deprecated: Use ProofOfPossession.ProtoReflect.Descriptor instead. +func (*ProofOfPossession) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_bls_key_proto_rawDescGZIP(), []int{1} +} + +func (x *ProofOfPossession) GetEd25519Sig() []byte { + if x != nil { + return x.Ed25519Sig + } + return nil +} + +func (x *ProofOfPossession) GetBlsSig() []byte { + if x != nil { + return x.BlsSig + } + return nil +} + +// ValidatorWithBLSSet defines a set of validators with their BLS public keys +type ValidatorWithBlsKeySet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ValSet []*ValidatorWithBlsKey `protobuf:"bytes,1,rep,name=val_set,json=valSet,proto3" json:"val_set,omitempty"` +} + +func (x *ValidatorWithBlsKeySet) Reset() { + *x = ValidatorWithBlsKeySet{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_bls_key_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidatorWithBlsKeySet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidatorWithBlsKeySet) ProtoMessage() {} + +// Deprecated: Use ValidatorWithBlsKeySet.ProtoReflect.Descriptor instead. +func (*ValidatorWithBlsKeySet) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_bls_key_proto_rawDescGZIP(), []int{2} +} + +func (x *ValidatorWithBlsKeySet) GetValSet() []*ValidatorWithBlsKey { + if x != nil { + return x.ValSet + } + return nil +} + +// ValidatorWithBlsKey couples validator address, voting power, and its bls +// public key +type ValidatorWithBlsKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + BlsPubKey []byte `protobuf:"bytes,2,opt,name=bls_pub_key,json=blsPubKey,proto3" json:"bls_pub_key,omitempty"` + VotingPower uint64 `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` +} + +func (x *ValidatorWithBlsKey) Reset() { + *x = ValidatorWithBlsKey{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_bls_key_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidatorWithBlsKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidatorWithBlsKey) ProtoMessage() {} + +// Deprecated: Use ValidatorWithBlsKey.ProtoReflect.Descriptor instead. +func (*ValidatorWithBlsKey) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_bls_key_proto_rawDescGZIP(), []int{3} +} + +func (x *ValidatorWithBlsKey) GetValidatorAddress() string { + if x != nil { + return x.ValidatorAddress + } + return "" +} + +func (x *ValidatorWithBlsKey) GetBlsPubKey() []byte { + if x != nil { + return x.BlsPubKey + } + return nil +} + +func (x *ValidatorWithBlsKey) GetVotingPower() uint64 { + if x != nil { + return x.VotingPower + } + return 0 +} + +var File_cosmos_bls_v1_bls_key_proto protoreflect.FileDescriptor + +var file_cosmos_bls_v1_bls_key_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x62, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, + 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x95, 0x01, 0x0a, 0x06, 0x42, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x57, 0x0a, + 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x3f, 0xda, + 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x31, + 0x32, 0x33, 0x38, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x06, + 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x03, 0x70, 0x6f, 0x70, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x66, 0x50, 0x6f, 0x73, 0x73, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x70, 0x6f, 0x70, 0x22, 0x8e, 0x01, 0x0a, 0x11, 0x50, + 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x66, 0x50, 0x6f, 0x73, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x5f, 0x73, 0x69, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x53, 0x69, + 0x67, 0x12, 0x58, 0x0a, 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x42, 0x3f, 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x2f, 0x62, 0x6c, 0x73, 0x31, 0x32, 0x33, 0x38, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x52, 0x06, 0x62, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x22, 0x55, 0x0a, 0x16, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x42, 0x6c, 0x73, 0x4b, + 0x65, 0x79, 0x53, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x07, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x74, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x57, 0x69, 0x74, 0x68, 0x42, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x53, + 0x65, 0x74, 0x22, 0x85, 0x01, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x57, 0x69, 0x74, 0x68, 0x42, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x62, 0x6c, 0x73, 0x5f, 0x70, + 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, + 0x73, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x6f, 0x74, 0x69, 0x6e, + 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x76, + 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x42, 0x9c, 0x01, 0x0a, 0x11, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, + 0x42, 0x0b, 0x42, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x24, 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, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x3b, + 0x62, 0x6c, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x6c, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x3a, 0x3a, 0x42, 0x6c, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_cosmos_bls_v1_bls_key_proto_rawDescOnce sync.Once + file_cosmos_bls_v1_bls_key_proto_rawDescData = file_cosmos_bls_v1_bls_key_proto_rawDesc +) + +func file_cosmos_bls_v1_bls_key_proto_rawDescGZIP() []byte { + file_cosmos_bls_v1_bls_key_proto_rawDescOnce.Do(func() { + file_cosmos_bls_v1_bls_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_bls_v1_bls_key_proto_rawDescData) + }) + return file_cosmos_bls_v1_bls_key_proto_rawDescData +} + +var file_cosmos_bls_v1_bls_key_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_cosmos_bls_v1_bls_key_proto_goTypes = []interface{}{ + (*BlsKey)(nil), // 0: cosmos.bls.v1.BlsKey + (*ProofOfPossession)(nil), // 1: cosmos.bls.v1.ProofOfPossession + (*ValidatorWithBlsKeySet)(nil), // 2: cosmos.bls.v1.ValidatorWithBlsKeySet + (*ValidatorWithBlsKey)(nil), // 3: cosmos.bls.v1.ValidatorWithBlsKey +} +var file_cosmos_bls_v1_bls_key_proto_depIdxs = []int32{ + 1, // 0: cosmos.bls.v1.BlsKey.pop:type_name -> cosmos.bls.v1.ProofOfPossession + 3, // 1: cosmos.bls.v1.ValidatorWithBlsKeySet.val_set:type_name -> cosmos.bls.v1.ValidatorWithBlsKey + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_cosmos_bls_v1_bls_key_proto_init() } +func file_cosmos_bls_v1_bls_key_proto_init() { + if File_cosmos_bls_v1_bls_key_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cosmos_bls_v1_bls_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlsKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_bls_key_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProofOfPossession); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_bls_key_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidatorWithBlsKeySet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_bls_key_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidatorWithBlsKey); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_bls_v1_bls_key_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cosmos_bls_v1_bls_key_proto_goTypes, + DependencyIndexes: file_cosmos_bls_v1_bls_key_proto_depIdxs, + MessageInfos: file_cosmos_bls_v1_bls_key_proto_msgTypes, + }.Build() + File_cosmos_bls_v1_bls_key_proto = out.File + file_cosmos_bls_v1_bls_key_proto_rawDesc = nil + file_cosmos_bls_v1_bls_key_proto_goTypes = nil + file_cosmos_bls_v1_bls_key_proto_depIdxs = nil +} diff --git a/api/cosmos/bls/v1/checkpoint.pulsar.go b/api/cosmos/bls/v1/checkpoint.pulsar.go new file mode 100644 index 00000000000..74589c34326 --- /dev/null +++ b/api/cosmos/bls/v1/checkpoint.pulsar.go @@ -0,0 +1,3031 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package blsv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_RawCheckpoint protoreflect.MessageDescriptor + fd_RawCheckpoint_epoch_num protoreflect.FieldDescriptor + fd_RawCheckpoint_last_commit_hash protoreflect.FieldDescriptor + fd_RawCheckpoint_bitmap protoreflect.FieldDescriptor + fd_RawCheckpoint_bls_multi_sig protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_checkpoint_proto_init() + md_RawCheckpoint = File_cosmos_bls_v1_checkpoint_proto.Messages().ByName("RawCheckpoint") + fd_RawCheckpoint_epoch_num = md_RawCheckpoint.Fields().ByName("epoch_num") + fd_RawCheckpoint_last_commit_hash = md_RawCheckpoint.Fields().ByName("last_commit_hash") + fd_RawCheckpoint_bitmap = md_RawCheckpoint.Fields().ByName("bitmap") + fd_RawCheckpoint_bls_multi_sig = md_RawCheckpoint.Fields().ByName("bls_multi_sig") +} + +var _ protoreflect.Message = (*fastReflection_RawCheckpoint)(nil) + +type fastReflection_RawCheckpoint RawCheckpoint + +func (x *RawCheckpoint) ProtoReflect() protoreflect.Message { + return (*fastReflection_RawCheckpoint)(x) +} + +func (x *RawCheckpoint) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_checkpoint_proto_msgTypes[0] + 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_RawCheckpoint_messageType fastReflection_RawCheckpoint_messageType +var _ protoreflect.MessageType = fastReflection_RawCheckpoint_messageType{} + +type fastReflection_RawCheckpoint_messageType struct{} + +func (x fastReflection_RawCheckpoint_messageType) Zero() protoreflect.Message { + return (*fastReflection_RawCheckpoint)(nil) +} +func (x fastReflection_RawCheckpoint_messageType) New() protoreflect.Message { + return new(fastReflection_RawCheckpoint) +} +func (x fastReflection_RawCheckpoint_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RawCheckpoint +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_RawCheckpoint) Descriptor() protoreflect.MessageDescriptor { + return md_RawCheckpoint +} + +// 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_RawCheckpoint) Type() protoreflect.MessageType { + return _fastReflection_RawCheckpoint_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_RawCheckpoint) New() protoreflect.Message { + return new(fastReflection_RawCheckpoint) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_RawCheckpoint) Interface() protoreflect.ProtoMessage { + return (*RawCheckpoint)(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_RawCheckpoint) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNum != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNum) + if !f(fd_RawCheckpoint_epoch_num, value) { + return + } + } + if len(x.LastCommitHash) != 0 { + value := protoreflect.ValueOfBytes(x.LastCommitHash) + if !f(fd_RawCheckpoint_last_commit_hash, value) { + return + } + } + if len(x.Bitmap) != 0 { + value := protoreflect.ValueOfBytes(x.Bitmap) + if !f(fd_RawCheckpoint_bitmap, value) { + return + } + } + if len(x.BlsMultiSig) != 0 { + value := protoreflect.ValueOfBytes(x.BlsMultiSig) + if !f(fd_RawCheckpoint_bls_multi_sig, 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_RawCheckpoint) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.RawCheckpoint.epoch_num": + return x.EpochNum != uint64(0) + case "cosmos.bls.v1.RawCheckpoint.last_commit_hash": + return len(x.LastCommitHash) != 0 + case "cosmos.bls.v1.RawCheckpoint.bitmap": + return len(x.Bitmap) != 0 + case "cosmos.bls.v1.RawCheckpoint.bls_multi_sig": + return len(x.BlsMultiSig) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpoint 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_RawCheckpoint) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.RawCheckpoint.epoch_num": + x.EpochNum = uint64(0) + case "cosmos.bls.v1.RawCheckpoint.last_commit_hash": + x.LastCommitHash = nil + case "cosmos.bls.v1.RawCheckpoint.bitmap": + x.Bitmap = nil + case "cosmos.bls.v1.RawCheckpoint.bls_multi_sig": + x.BlsMultiSig = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpoint 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_RawCheckpoint) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.RawCheckpoint.epoch_num": + value := x.EpochNum + return protoreflect.ValueOfUint64(value) + case "cosmos.bls.v1.RawCheckpoint.last_commit_hash": + value := x.LastCommitHash + return protoreflect.ValueOfBytes(value) + case "cosmos.bls.v1.RawCheckpoint.bitmap": + value := x.Bitmap + return protoreflect.ValueOfBytes(value) + case "cosmos.bls.v1.RawCheckpoint.bls_multi_sig": + value := x.BlsMultiSig + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpoint 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_RawCheckpoint) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.RawCheckpoint.epoch_num": + x.EpochNum = value.Uint() + case "cosmos.bls.v1.RawCheckpoint.last_commit_hash": + x.LastCommitHash = value.Bytes() + case "cosmos.bls.v1.RawCheckpoint.bitmap": + x.Bitmap = value.Bytes() + case "cosmos.bls.v1.RawCheckpoint.bls_multi_sig": + x.BlsMultiSig = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpoint 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_RawCheckpoint) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.RawCheckpoint.epoch_num": + panic(fmt.Errorf("field epoch_num of message cosmos.bls.v1.RawCheckpoint is not mutable")) + case "cosmos.bls.v1.RawCheckpoint.last_commit_hash": + panic(fmt.Errorf("field last_commit_hash of message cosmos.bls.v1.RawCheckpoint is not mutable")) + case "cosmos.bls.v1.RawCheckpoint.bitmap": + panic(fmt.Errorf("field bitmap of message cosmos.bls.v1.RawCheckpoint is not mutable")) + case "cosmos.bls.v1.RawCheckpoint.bls_multi_sig": + panic(fmt.Errorf("field bls_multi_sig of message cosmos.bls.v1.RawCheckpoint is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpoint 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_RawCheckpoint) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.RawCheckpoint.epoch_num": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.bls.v1.RawCheckpoint.last_commit_hash": + return protoreflect.ValueOfBytes(nil) + case "cosmos.bls.v1.RawCheckpoint.bitmap": + return protoreflect.ValueOfBytes(nil) + case "cosmos.bls.v1.RawCheckpoint.bls_multi_sig": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpoint 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_RawCheckpoint) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.RawCheckpoint", 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_RawCheckpoint) 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_RawCheckpoint) 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_RawCheckpoint) 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_RawCheckpoint) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*RawCheckpoint) + 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.EpochNum != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNum)) + } + l = len(x.LastCommitHash) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Bitmap) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BlsMultiSig) + 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().(*RawCheckpoint) + 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.BlsMultiSig) > 0 { + i -= len(x.BlsMultiSig) + copy(dAtA[i:], x.BlsMultiSig) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BlsMultiSig))) + i-- + dAtA[i] = 0x22 + } + if len(x.Bitmap) > 0 { + i -= len(x.Bitmap) + copy(dAtA[i:], x.Bitmap) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bitmap))) + i-- + dAtA[i] = 0x1a + } + if len(x.LastCommitHash) > 0 { + i -= len(x.LastCommitHash) + copy(dAtA[i:], x.LastCommitHash) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LastCommitHash))) + i-- + dAtA[i] = 0x12 + } + if x.EpochNum != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNum)) + 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().(*RawCheckpoint) + 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: RawCheckpoint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RawCheckpoint: 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 EpochNum", wireType) + } + x.EpochNum = 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.EpochNum |= 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 LastCommitHash", 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.LastCommitHash = append(x.LastCommitHash[:0], dAtA[iNdEx:postIndex]...) + if x.LastCommitHash == nil { + x.LastCommitHash = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bitmap", 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.Bitmap = append(x.Bitmap[:0], dAtA[iNdEx:postIndex]...) + if x.Bitmap == nil { + x.Bitmap = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlsMultiSig", 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.BlsMultiSig = append(x.BlsMultiSig[:0], dAtA[iNdEx:postIndex]...) + if x.BlsMultiSig == nil { + x.BlsMultiSig = []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, + } +} + +var _ protoreflect.List = (*_RawCheckpointWithMeta_5_list)(nil) + +type _RawCheckpointWithMeta_5_list struct { + list *[]*CheckpointStateUpdate +} + +func (x *_RawCheckpointWithMeta_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_RawCheckpointWithMeta_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_RawCheckpointWithMeta_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*CheckpointStateUpdate) + (*x.list)[i] = concreteValue +} + +func (x *_RawCheckpointWithMeta_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*CheckpointStateUpdate) + *x.list = append(*x.list, concreteValue) +} + +func (x *_RawCheckpointWithMeta_5_list) AppendMutable() protoreflect.Value { + v := new(CheckpointStateUpdate) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_RawCheckpointWithMeta_5_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_RawCheckpointWithMeta_5_list) NewElement() protoreflect.Value { + v := new(CheckpointStateUpdate) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_RawCheckpointWithMeta_5_list) IsValid() bool { + return x.list != nil +} + +var ( + md_RawCheckpointWithMeta protoreflect.MessageDescriptor + fd_RawCheckpointWithMeta_ckpt protoreflect.FieldDescriptor + fd_RawCheckpointWithMeta_status protoreflect.FieldDescriptor + fd_RawCheckpointWithMeta_bls_aggr_pk protoreflect.FieldDescriptor + fd_RawCheckpointWithMeta_power_sum protoreflect.FieldDescriptor + fd_RawCheckpointWithMeta_lifecycle protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_checkpoint_proto_init() + md_RawCheckpointWithMeta = File_cosmos_bls_v1_checkpoint_proto.Messages().ByName("RawCheckpointWithMeta") + fd_RawCheckpointWithMeta_ckpt = md_RawCheckpointWithMeta.Fields().ByName("ckpt") + fd_RawCheckpointWithMeta_status = md_RawCheckpointWithMeta.Fields().ByName("status") + fd_RawCheckpointWithMeta_bls_aggr_pk = md_RawCheckpointWithMeta.Fields().ByName("bls_aggr_pk") + fd_RawCheckpointWithMeta_power_sum = md_RawCheckpointWithMeta.Fields().ByName("power_sum") + fd_RawCheckpointWithMeta_lifecycle = md_RawCheckpointWithMeta.Fields().ByName("lifecycle") +} + +var _ protoreflect.Message = (*fastReflection_RawCheckpointWithMeta)(nil) + +type fastReflection_RawCheckpointWithMeta RawCheckpointWithMeta + +func (x *RawCheckpointWithMeta) ProtoReflect() protoreflect.Message { + return (*fastReflection_RawCheckpointWithMeta)(x) +} + +func (x *RawCheckpointWithMeta) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_checkpoint_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_RawCheckpointWithMeta_messageType fastReflection_RawCheckpointWithMeta_messageType +var _ protoreflect.MessageType = fastReflection_RawCheckpointWithMeta_messageType{} + +type fastReflection_RawCheckpointWithMeta_messageType struct{} + +func (x fastReflection_RawCheckpointWithMeta_messageType) Zero() protoreflect.Message { + return (*fastReflection_RawCheckpointWithMeta)(nil) +} +func (x fastReflection_RawCheckpointWithMeta_messageType) New() protoreflect.Message { + return new(fastReflection_RawCheckpointWithMeta) +} +func (x fastReflection_RawCheckpointWithMeta_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RawCheckpointWithMeta +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_RawCheckpointWithMeta) Descriptor() protoreflect.MessageDescriptor { + return md_RawCheckpointWithMeta +} + +// 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_RawCheckpointWithMeta) Type() protoreflect.MessageType { + return _fastReflection_RawCheckpointWithMeta_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_RawCheckpointWithMeta) New() protoreflect.Message { + return new(fastReflection_RawCheckpointWithMeta) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_RawCheckpointWithMeta) Interface() protoreflect.ProtoMessage { + return (*RawCheckpointWithMeta)(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_RawCheckpointWithMeta) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Ckpt != nil { + value := protoreflect.ValueOfMessage(x.Ckpt.ProtoReflect()) + if !f(fd_RawCheckpointWithMeta_ckpt, value) { + return + } + } + if x.Status != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) + if !f(fd_RawCheckpointWithMeta_status, value) { + return + } + } + if len(x.BlsAggrPk) != 0 { + value := protoreflect.ValueOfBytes(x.BlsAggrPk) + if !f(fd_RawCheckpointWithMeta_bls_aggr_pk, value) { + return + } + } + if x.PowerSum != uint64(0) { + value := protoreflect.ValueOfUint64(x.PowerSum) + if !f(fd_RawCheckpointWithMeta_power_sum, value) { + return + } + } + if len(x.Lifecycle) != 0 { + value := protoreflect.ValueOfList(&_RawCheckpointWithMeta_5_list{list: &x.Lifecycle}) + if !f(fd_RawCheckpointWithMeta_lifecycle, 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_RawCheckpointWithMeta) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.RawCheckpointWithMeta.ckpt": + return x.Ckpt != nil + case "cosmos.bls.v1.RawCheckpointWithMeta.status": + return x.Status != 0 + case "cosmos.bls.v1.RawCheckpointWithMeta.bls_aggr_pk": + return len(x.BlsAggrPk) != 0 + case "cosmos.bls.v1.RawCheckpointWithMeta.power_sum": + return x.PowerSum != uint64(0) + case "cosmos.bls.v1.RawCheckpointWithMeta.lifecycle": + return len(x.Lifecycle) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpointWithMeta")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpointWithMeta 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_RawCheckpointWithMeta) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.RawCheckpointWithMeta.ckpt": + x.Ckpt = nil + case "cosmos.bls.v1.RawCheckpointWithMeta.status": + x.Status = 0 + case "cosmos.bls.v1.RawCheckpointWithMeta.bls_aggr_pk": + x.BlsAggrPk = nil + case "cosmos.bls.v1.RawCheckpointWithMeta.power_sum": + x.PowerSum = uint64(0) + case "cosmos.bls.v1.RawCheckpointWithMeta.lifecycle": + x.Lifecycle = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpointWithMeta")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpointWithMeta 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_RawCheckpointWithMeta) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.RawCheckpointWithMeta.ckpt": + value := x.Ckpt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.bls.v1.RawCheckpointWithMeta.status": + value := x.Status + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "cosmos.bls.v1.RawCheckpointWithMeta.bls_aggr_pk": + value := x.BlsAggrPk + return protoreflect.ValueOfBytes(value) + case "cosmos.bls.v1.RawCheckpointWithMeta.power_sum": + value := x.PowerSum + return protoreflect.ValueOfUint64(value) + case "cosmos.bls.v1.RawCheckpointWithMeta.lifecycle": + if len(x.Lifecycle) == 0 { + return protoreflect.ValueOfList(&_RawCheckpointWithMeta_5_list{}) + } + listValue := &_RawCheckpointWithMeta_5_list{list: &x.Lifecycle} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpointWithMeta")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpointWithMeta 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_RawCheckpointWithMeta) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.RawCheckpointWithMeta.ckpt": + x.Ckpt = value.Message().Interface().(*RawCheckpoint) + case "cosmos.bls.v1.RawCheckpointWithMeta.status": + x.Status = (CheckpointStatus)(value.Enum()) + case "cosmos.bls.v1.RawCheckpointWithMeta.bls_aggr_pk": + x.BlsAggrPk = value.Bytes() + case "cosmos.bls.v1.RawCheckpointWithMeta.power_sum": + x.PowerSum = value.Uint() + case "cosmos.bls.v1.RawCheckpointWithMeta.lifecycle": + lv := value.List() + clv := lv.(*_RawCheckpointWithMeta_5_list) + x.Lifecycle = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpointWithMeta")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpointWithMeta 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_RawCheckpointWithMeta) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.RawCheckpointWithMeta.ckpt": + if x.Ckpt == nil { + x.Ckpt = new(RawCheckpoint) + } + return protoreflect.ValueOfMessage(x.Ckpt.ProtoReflect()) + case "cosmos.bls.v1.RawCheckpointWithMeta.lifecycle": + if x.Lifecycle == nil { + x.Lifecycle = []*CheckpointStateUpdate{} + } + value := &_RawCheckpointWithMeta_5_list{list: &x.Lifecycle} + return protoreflect.ValueOfList(value) + case "cosmos.bls.v1.RawCheckpointWithMeta.status": + panic(fmt.Errorf("field status of message cosmos.bls.v1.RawCheckpointWithMeta is not mutable")) + case "cosmos.bls.v1.RawCheckpointWithMeta.bls_aggr_pk": + panic(fmt.Errorf("field bls_aggr_pk of message cosmos.bls.v1.RawCheckpointWithMeta is not mutable")) + case "cosmos.bls.v1.RawCheckpointWithMeta.power_sum": + panic(fmt.Errorf("field power_sum of message cosmos.bls.v1.RawCheckpointWithMeta is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpointWithMeta")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpointWithMeta 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_RawCheckpointWithMeta) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.RawCheckpointWithMeta.ckpt": + m := new(RawCheckpoint) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "cosmos.bls.v1.RawCheckpointWithMeta.status": + return protoreflect.ValueOfEnum(0) + case "cosmos.bls.v1.RawCheckpointWithMeta.bls_aggr_pk": + return protoreflect.ValueOfBytes(nil) + case "cosmos.bls.v1.RawCheckpointWithMeta.power_sum": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.bls.v1.RawCheckpointWithMeta.lifecycle": + list := []*CheckpointStateUpdate{} + return protoreflect.ValueOfList(&_RawCheckpointWithMeta_5_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.RawCheckpointWithMeta")) + } + panic(fmt.Errorf("message cosmos.bls.v1.RawCheckpointWithMeta 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_RawCheckpointWithMeta) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.RawCheckpointWithMeta", 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_RawCheckpointWithMeta) 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_RawCheckpointWithMeta) 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_RawCheckpointWithMeta) 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_RawCheckpointWithMeta) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*RawCheckpointWithMeta) + 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.Ckpt != nil { + l = options.Size(x.Ckpt) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Status != 0 { + n += 1 + runtime.Sov(uint64(x.Status)) + } + l = len(x.BlsAggrPk) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PowerSum != 0 { + n += 1 + runtime.Sov(uint64(x.PowerSum)) + } + if len(x.Lifecycle) > 0 { + for _, e := range x.Lifecycle { + 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().(*RawCheckpointWithMeta) + 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.Lifecycle) > 0 { + for iNdEx := len(x.Lifecycle) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Lifecycle[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] = 0x2a + } + } + if x.PowerSum != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PowerSum)) + i-- + dAtA[i] = 0x20 + } + if len(x.BlsAggrPk) > 0 { + i -= len(x.BlsAggrPk) + copy(dAtA[i:], x.BlsAggrPk) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BlsAggrPk))) + i-- + dAtA[i] = 0x1a + } + if x.Status != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) + i-- + dAtA[i] = 0x10 + } + if x.Ckpt != nil { + encoded, err := options.Marshal(x.Ckpt) + 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...) + } 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().(*RawCheckpointWithMeta) + 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: RawCheckpointWithMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RawCheckpointWithMeta: 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 Ckpt", 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.Ckpt == nil { + x.Ckpt = &RawCheckpoint{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Ckpt); 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 Status", wireType) + } + x.Status = 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.Status |= CheckpointStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlsAggrPk", 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.BlsAggrPk = append(x.BlsAggrPk[:0], dAtA[iNdEx:postIndex]...) + if x.BlsAggrPk == nil { + x.BlsAggrPk = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PowerSum", wireType) + } + x.PowerSum = 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.PowerSum |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Lifecycle", 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.Lifecycle = append(x.Lifecycle, &CheckpointStateUpdate{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Lifecycle[len(x.Lifecycle)-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_CheckpointStateUpdate protoreflect.MessageDescriptor + fd_CheckpointStateUpdate_state protoreflect.FieldDescriptor + fd_CheckpointStateUpdate_block_height protoreflect.FieldDescriptor + fd_CheckpointStateUpdate_block_time protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_checkpoint_proto_init() + md_CheckpointStateUpdate = File_cosmos_bls_v1_checkpoint_proto.Messages().ByName("CheckpointStateUpdate") + fd_CheckpointStateUpdate_state = md_CheckpointStateUpdate.Fields().ByName("state") + fd_CheckpointStateUpdate_block_height = md_CheckpointStateUpdate.Fields().ByName("block_height") + fd_CheckpointStateUpdate_block_time = md_CheckpointStateUpdate.Fields().ByName("block_time") +} + +var _ protoreflect.Message = (*fastReflection_CheckpointStateUpdate)(nil) + +type fastReflection_CheckpointStateUpdate CheckpointStateUpdate + +func (x *CheckpointStateUpdate) ProtoReflect() protoreflect.Message { + return (*fastReflection_CheckpointStateUpdate)(x) +} + +func (x *CheckpointStateUpdate) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_checkpoint_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_CheckpointStateUpdate_messageType fastReflection_CheckpointStateUpdate_messageType +var _ protoreflect.MessageType = fastReflection_CheckpointStateUpdate_messageType{} + +type fastReflection_CheckpointStateUpdate_messageType struct{} + +func (x fastReflection_CheckpointStateUpdate_messageType) Zero() protoreflect.Message { + return (*fastReflection_CheckpointStateUpdate)(nil) +} +func (x fastReflection_CheckpointStateUpdate_messageType) New() protoreflect.Message { + return new(fastReflection_CheckpointStateUpdate) +} +func (x fastReflection_CheckpointStateUpdate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_CheckpointStateUpdate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_CheckpointStateUpdate) Descriptor() protoreflect.MessageDescriptor { + return md_CheckpointStateUpdate +} + +// 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_CheckpointStateUpdate) Type() protoreflect.MessageType { + return _fastReflection_CheckpointStateUpdate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_CheckpointStateUpdate) New() protoreflect.Message { + return new(fastReflection_CheckpointStateUpdate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_CheckpointStateUpdate) Interface() protoreflect.ProtoMessage { + return (*CheckpointStateUpdate)(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_CheckpointStateUpdate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.State != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.State)) + if !f(fd_CheckpointStateUpdate_state, value) { + return + } + } + if x.BlockHeight != uint64(0) { + value := protoreflect.ValueOfUint64(x.BlockHeight) + if !f(fd_CheckpointStateUpdate_block_height, value) { + return + } + } + if x.BlockTime != nil { + value := protoreflect.ValueOfMessage(x.BlockTime.ProtoReflect()) + if !f(fd_CheckpointStateUpdate_block_time, 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_CheckpointStateUpdate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.CheckpointStateUpdate.state": + return x.State != 0 + case "cosmos.bls.v1.CheckpointStateUpdate.block_height": + return x.BlockHeight != uint64(0) + case "cosmos.bls.v1.CheckpointStateUpdate.block_time": + return x.BlockTime != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.CheckpointStateUpdate")) + } + panic(fmt.Errorf("message cosmos.bls.v1.CheckpointStateUpdate 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_CheckpointStateUpdate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.CheckpointStateUpdate.state": + x.State = 0 + case "cosmos.bls.v1.CheckpointStateUpdate.block_height": + x.BlockHeight = uint64(0) + case "cosmos.bls.v1.CheckpointStateUpdate.block_time": + x.BlockTime = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.CheckpointStateUpdate")) + } + panic(fmt.Errorf("message cosmos.bls.v1.CheckpointStateUpdate 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_CheckpointStateUpdate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.CheckpointStateUpdate.state": + value := x.State + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "cosmos.bls.v1.CheckpointStateUpdate.block_height": + value := x.BlockHeight + return protoreflect.ValueOfUint64(value) + case "cosmos.bls.v1.CheckpointStateUpdate.block_time": + value := x.BlockTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.CheckpointStateUpdate")) + } + panic(fmt.Errorf("message cosmos.bls.v1.CheckpointStateUpdate 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_CheckpointStateUpdate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.CheckpointStateUpdate.state": + x.State = (CheckpointStatus)(value.Enum()) + case "cosmos.bls.v1.CheckpointStateUpdate.block_height": + x.BlockHeight = value.Uint() + case "cosmos.bls.v1.CheckpointStateUpdate.block_time": + x.BlockTime = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.CheckpointStateUpdate")) + } + panic(fmt.Errorf("message cosmos.bls.v1.CheckpointStateUpdate 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_CheckpointStateUpdate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.CheckpointStateUpdate.block_time": + if x.BlockTime == nil { + x.BlockTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.BlockTime.ProtoReflect()) + case "cosmos.bls.v1.CheckpointStateUpdate.state": + panic(fmt.Errorf("field state of message cosmos.bls.v1.CheckpointStateUpdate is not mutable")) + case "cosmos.bls.v1.CheckpointStateUpdate.block_height": + panic(fmt.Errorf("field block_height of message cosmos.bls.v1.CheckpointStateUpdate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.CheckpointStateUpdate")) + } + panic(fmt.Errorf("message cosmos.bls.v1.CheckpointStateUpdate 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_CheckpointStateUpdate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.CheckpointStateUpdate.state": + return protoreflect.ValueOfEnum(0) + case "cosmos.bls.v1.CheckpointStateUpdate.block_height": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.bls.v1.CheckpointStateUpdate.block_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.CheckpointStateUpdate")) + } + panic(fmt.Errorf("message cosmos.bls.v1.CheckpointStateUpdate 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_CheckpointStateUpdate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.CheckpointStateUpdate", 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_CheckpointStateUpdate) 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_CheckpointStateUpdate) 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_CheckpointStateUpdate) 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_CheckpointStateUpdate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*CheckpointStateUpdate) + 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.State != 0 { + n += 1 + runtime.Sov(uint64(x.State)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.BlockTime != nil { + l = options.Size(x.BlockTime) + 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().(*CheckpointStateUpdate) + 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.BlockTime != nil { + encoded, err := options.Marshal(x.BlockTime) + 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.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if x.State != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.State)) + 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().(*CheckpointStateUpdate) + 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: CheckpointStateUpdate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CheckpointStateUpdate: 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 State", wireType) + } + x.State = 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.State |= CheckpointStatus(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 BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockTime", 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.BlockTime == nil { + x.BlockTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockTime); 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_BlsSig protoreflect.MessageDescriptor + fd_BlsSig_epoch_num protoreflect.FieldDescriptor + fd_BlsSig_last_commit_hash protoreflect.FieldDescriptor + fd_BlsSig_bls_sig protoreflect.FieldDescriptor + fd_BlsSig_signer_address protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_checkpoint_proto_init() + md_BlsSig = File_cosmos_bls_v1_checkpoint_proto.Messages().ByName("BlsSig") + fd_BlsSig_epoch_num = md_BlsSig.Fields().ByName("epoch_num") + fd_BlsSig_last_commit_hash = md_BlsSig.Fields().ByName("last_commit_hash") + fd_BlsSig_bls_sig = md_BlsSig.Fields().ByName("bls_sig") + fd_BlsSig_signer_address = md_BlsSig.Fields().ByName("signer_address") +} + +var _ protoreflect.Message = (*fastReflection_BlsSig)(nil) + +type fastReflection_BlsSig BlsSig + +func (x *BlsSig) ProtoReflect() protoreflect.Message { + return (*fastReflection_BlsSig)(x) +} + +func (x *BlsSig) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_checkpoint_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_BlsSig_messageType fastReflection_BlsSig_messageType +var _ protoreflect.MessageType = fastReflection_BlsSig_messageType{} + +type fastReflection_BlsSig_messageType struct{} + +func (x fastReflection_BlsSig_messageType) Zero() protoreflect.Message { + return (*fastReflection_BlsSig)(nil) +} +func (x fastReflection_BlsSig_messageType) New() protoreflect.Message { + return new(fastReflection_BlsSig) +} +func (x fastReflection_BlsSig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BlsSig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BlsSig) Descriptor() protoreflect.MessageDescriptor { + return md_BlsSig +} + +// 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_BlsSig) Type() protoreflect.MessageType { + return _fastReflection_BlsSig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BlsSig) New() protoreflect.Message { + return new(fastReflection_BlsSig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BlsSig) Interface() protoreflect.ProtoMessage { + return (*BlsSig)(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_BlsSig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNum != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNum) + if !f(fd_BlsSig_epoch_num, value) { + return + } + } + if len(x.LastCommitHash) != 0 { + value := protoreflect.ValueOfBytes(x.LastCommitHash) + if !f(fd_BlsSig_last_commit_hash, value) { + return + } + } + if len(x.BlsSig) != 0 { + value := protoreflect.ValueOfBytes(x.BlsSig) + if !f(fd_BlsSig_bls_sig, value) { + return + } + } + if x.SignerAddress != "" { + value := protoreflect.ValueOfString(x.SignerAddress) + if !f(fd_BlsSig_signer_address, 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_BlsSig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.BlsSig.epoch_num": + return x.EpochNum != uint64(0) + case "cosmos.bls.v1.BlsSig.last_commit_hash": + return len(x.LastCommitHash) != 0 + case "cosmos.bls.v1.BlsSig.bls_sig": + return len(x.BlsSig) != 0 + case "cosmos.bls.v1.BlsSig.signer_address": + return x.SignerAddress != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsSig 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_BlsSig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.BlsSig.epoch_num": + x.EpochNum = uint64(0) + case "cosmos.bls.v1.BlsSig.last_commit_hash": + x.LastCommitHash = nil + case "cosmos.bls.v1.BlsSig.bls_sig": + x.BlsSig = nil + case "cosmos.bls.v1.BlsSig.signer_address": + x.SignerAddress = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsSig 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_BlsSig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.BlsSig.epoch_num": + value := x.EpochNum + return protoreflect.ValueOfUint64(value) + case "cosmos.bls.v1.BlsSig.last_commit_hash": + value := x.LastCommitHash + return protoreflect.ValueOfBytes(value) + case "cosmos.bls.v1.BlsSig.bls_sig": + value := x.BlsSig + return protoreflect.ValueOfBytes(value) + case "cosmos.bls.v1.BlsSig.signer_address": + value := x.SignerAddress + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsSig 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_BlsSig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.BlsSig.epoch_num": + x.EpochNum = value.Uint() + case "cosmos.bls.v1.BlsSig.last_commit_hash": + x.LastCommitHash = value.Bytes() + case "cosmos.bls.v1.BlsSig.bls_sig": + x.BlsSig = value.Bytes() + case "cosmos.bls.v1.BlsSig.signer_address": + x.SignerAddress = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsSig 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_BlsSig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.BlsSig.epoch_num": + panic(fmt.Errorf("field epoch_num of message cosmos.bls.v1.BlsSig is not mutable")) + case "cosmos.bls.v1.BlsSig.last_commit_hash": + panic(fmt.Errorf("field last_commit_hash of message cosmos.bls.v1.BlsSig is not mutable")) + case "cosmos.bls.v1.BlsSig.bls_sig": + panic(fmt.Errorf("field bls_sig of message cosmos.bls.v1.BlsSig is not mutable")) + case "cosmos.bls.v1.BlsSig.signer_address": + panic(fmt.Errorf("field signer_address of message cosmos.bls.v1.BlsSig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsSig 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_BlsSig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.BlsSig.epoch_num": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.bls.v1.BlsSig.last_commit_hash": + return protoreflect.ValueOfBytes(nil) + case "cosmos.bls.v1.BlsSig.bls_sig": + return protoreflect.ValueOfBytes(nil) + case "cosmos.bls.v1.BlsSig.signer_address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.BlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.BlsSig 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_BlsSig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.BlsSig", 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_BlsSig) 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_BlsSig) 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_BlsSig) 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_BlsSig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BlsSig) + 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.EpochNum != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNum)) + } + l = len(x.LastCommitHash) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BlsSig) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SignerAddress) + 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().(*BlsSig) + 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.SignerAddress) > 0 { + i -= len(x.SignerAddress) + copy(dAtA[i:], x.SignerAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SignerAddress))) + i-- + dAtA[i] = 0x22 + } + if len(x.BlsSig) > 0 { + i -= len(x.BlsSig) + copy(dAtA[i:], x.BlsSig) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BlsSig))) + i-- + dAtA[i] = 0x1a + } + if len(x.LastCommitHash) > 0 { + i -= len(x.LastCommitHash) + copy(dAtA[i:], x.LastCommitHash) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LastCommitHash))) + i-- + dAtA[i] = 0x12 + } + if x.EpochNum != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNum)) + 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().(*BlsSig) + 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: BlsSig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlsSig: 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 EpochNum", wireType) + } + x.EpochNum = 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.EpochNum |= 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 LastCommitHash", 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.LastCommitHash = append(x.LastCommitHash[:0], dAtA[iNdEx:postIndex]...) + if x.LastCommitHash == nil { + x.LastCommitHash = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlsSig", 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.BlsSig = append(x.BlsSig[:0], dAtA[iNdEx:postIndex]...) + if x.BlsSig == nil { + x.BlsSig = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignerAddress", 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.SignerAddress = 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cosmos/bls/v1/checkpoint.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// CheckpointStatus is the status of a checkpoint. +type CheckpointStatus int32 + +const ( + // ACCUMULATING defines a checkpoint that is awaiting for BLS signatures. + CheckpointStatus_CKPT_STATUS_ACCUMULATING CheckpointStatus = 0 + // SEALED defines a checkpoint that has accumulated sufficient BLS signatures. + CheckpointStatus_CKPT_STATUS_SEALED CheckpointStatus = 1 + // SUBMITTED defines a checkpoint that is included on BTC. + CheckpointStatus_CKPT_STATUS_SUBMITTED CheckpointStatus = 2 + // CONFIRMED defines a checkpoint that is k-deep on BTC. + CheckpointStatus_CKPT_STATUS_CONFIRMED CheckpointStatus = 3 + // FINALIZED defines a checkpoint that is w-deep on BTC. + CheckpointStatus_CKPT_STATUS_FINALIZED CheckpointStatus = 4 +) + +// Enum value maps for CheckpointStatus. +var ( + CheckpointStatus_name = map[int32]string{ + 0: "CKPT_STATUS_ACCUMULATING", + 1: "CKPT_STATUS_SEALED", + 2: "CKPT_STATUS_SUBMITTED", + 3: "CKPT_STATUS_CONFIRMED", + 4: "CKPT_STATUS_FINALIZED", + } + CheckpointStatus_value = map[string]int32{ + "CKPT_STATUS_ACCUMULATING": 0, + "CKPT_STATUS_SEALED": 1, + "CKPT_STATUS_SUBMITTED": 2, + "CKPT_STATUS_CONFIRMED": 3, + "CKPT_STATUS_FINALIZED": 4, + } +) + +func (x CheckpointStatus) Enum() *CheckpointStatus { + p := new(CheckpointStatus) + *p = x + return p +} + +func (x CheckpointStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CheckpointStatus) Descriptor() protoreflect.EnumDescriptor { + return file_cosmos_bls_v1_checkpoint_proto_enumTypes[0].Descriptor() +} + +func (CheckpointStatus) Type() protoreflect.EnumType { + return &file_cosmos_bls_v1_checkpoint_proto_enumTypes[0] +} + +func (x CheckpointStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CheckpointStatus.Descriptor instead. +func (CheckpointStatus) EnumDescriptor() ([]byte, []int) { + return file_cosmos_bls_v1_checkpoint_proto_rawDescGZIP(), []int{0} +} + +// RawCheckpoint wraps the BLS multi sig with meta data +type RawCheckpoint struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // epoch_num defines the epoch number the raw checkpoint is for + EpochNum uint64 `protobuf:"varint,1,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"` + // last_commit_hash defines the 'LastCommitHash' that individual BLS sigs are + // signed on + LastCommitHash []byte `protobuf:"bytes,2,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` + // bitmap defines the bitmap that indicates the signers of the BLS multi sig + Bitmap []byte `protobuf:"bytes,3,opt,name=bitmap,proto3" json:"bitmap,omitempty"` + // bls_multi_sig defines the multi sig that is aggregated from individual BLS + // sigs + BlsMultiSig []byte `protobuf:"bytes,4,opt,name=bls_multi_sig,json=blsMultiSig,proto3" json:"bls_multi_sig,omitempty"` +} + +func (x *RawCheckpoint) Reset() { + *x = RawCheckpoint{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_checkpoint_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RawCheckpoint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RawCheckpoint) ProtoMessage() {} + +// Deprecated: Use RawCheckpoint.ProtoReflect.Descriptor instead. +func (*RawCheckpoint) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_checkpoint_proto_rawDescGZIP(), []int{0} +} + +func (x *RawCheckpoint) GetEpochNum() uint64 { + if x != nil { + return x.EpochNum + } + return 0 +} + +func (x *RawCheckpoint) GetLastCommitHash() []byte { + if x != nil { + return x.LastCommitHash + } + return nil +} + +func (x *RawCheckpoint) GetBitmap() []byte { + if x != nil { + return x.Bitmap + } + return nil +} + +func (x *RawCheckpoint) GetBlsMultiSig() []byte { + if x != nil { + return x.BlsMultiSig + } + return nil +} + +// RawCheckpointWithMeta wraps the raw checkpoint with meta data. +type RawCheckpointWithMeta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ckpt *RawCheckpoint `protobuf:"bytes,1,opt,name=ckpt,proto3" json:"ckpt,omitempty"` + // status defines the status of the checkpoint + Status CheckpointStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cosmos.bls.v1.CheckpointStatus" json:"status,omitempty"` + // bls_aggr_pk defines the aggregated BLS public key + BlsAggrPk []byte `protobuf:"bytes,3,opt,name=bls_aggr_pk,json=blsAggrPk,proto3" json:"bls_aggr_pk,omitempty"` + // power_sum defines the accumulated voting power for the checkpoint + PowerSum uint64 `protobuf:"varint,4,opt,name=power_sum,json=powerSum,proto3" json:"power_sum,omitempty"` + // lifecycle defines the lifecycle of this checkpoint, i.e., each state + // transition and the time (in both timestamp and block height) of this + // transition. + Lifecycle []*CheckpointStateUpdate `protobuf:"bytes,5,rep,name=lifecycle,proto3" json:"lifecycle,omitempty"` +} + +func (x *RawCheckpointWithMeta) Reset() { + *x = RawCheckpointWithMeta{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_checkpoint_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RawCheckpointWithMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RawCheckpointWithMeta) ProtoMessage() {} + +// Deprecated: Use RawCheckpointWithMeta.ProtoReflect.Descriptor instead. +func (*RawCheckpointWithMeta) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_checkpoint_proto_rawDescGZIP(), []int{1} +} + +func (x *RawCheckpointWithMeta) GetCkpt() *RawCheckpoint { + if x != nil { + return x.Ckpt + } + return nil +} + +func (x *RawCheckpointWithMeta) GetStatus() CheckpointStatus { + if x != nil { + return x.Status + } + return CheckpointStatus_CKPT_STATUS_ACCUMULATING +} + +func (x *RawCheckpointWithMeta) GetBlsAggrPk() []byte { + if x != nil { + return x.BlsAggrPk + } + return nil +} + +func (x *RawCheckpointWithMeta) GetPowerSum() uint64 { + if x != nil { + return x.PowerSum + } + return 0 +} + +func (x *RawCheckpointWithMeta) GetLifecycle() []*CheckpointStateUpdate { + if x != nil { + return x.Lifecycle + } + return nil +} + +// CheckpointStateUpdate defines a state transition on the checkpoint. +type CheckpointStateUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // state defines the event of a state transition towards this state + State CheckpointStatus `protobuf:"varint,1,opt,name=state,proto3,enum=cosmos.bls.v1.CheckpointStatus" json:"state,omitempty"` + // block_height is the height of the Babylon block that triggers the state + // update + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // block_time is the timestamp in the Babylon block that triggers the state + // update + BlockTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` +} + +func (x *CheckpointStateUpdate) Reset() { + *x = CheckpointStateUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_checkpoint_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckpointStateUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckpointStateUpdate) ProtoMessage() {} + +// Deprecated: Use CheckpointStateUpdate.ProtoReflect.Descriptor instead. +func (*CheckpointStateUpdate) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_checkpoint_proto_rawDescGZIP(), []int{2} +} + +func (x *CheckpointStateUpdate) GetState() CheckpointStatus { + if x != nil { + return x.State + } + return CheckpointStatus_CKPT_STATUS_ACCUMULATING +} + +func (x *CheckpointStateUpdate) GetBlockHeight() uint64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *CheckpointStateUpdate) GetBlockTime() *timestamppb.Timestamp { + if x != nil { + return x.BlockTime + } + return nil +} + +// BlsSig wraps the BLS sig with meta data. +type BlsSig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // epoch_num defines the epoch number that the BLS sig is signed on + EpochNum uint64 `protobuf:"varint,1,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"` + // last_commit_hash defines the 'LastCommitHash' that the BLS sig is signed on + LastCommitHash []byte `protobuf:"bytes,2,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` + BlsSig []byte `protobuf:"bytes,3,opt,name=bls_sig,json=blsSig,proto3" json:"bls_sig,omitempty"` + // can't find cosmos_proto.scalar when compiling due to cosmos v0.45.4 does + // not support scalar string signer_address = 4 [(cosmos_proto.scalar) = + // "cosmos.AddressString"]; the signer_address defines the address of the + // signer + SignerAddress string `protobuf:"bytes,4,opt,name=signer_address,json=signerAddress,proto3" json:"signer_address,omitempty"` +} + +func (x *BlsSig) Reset() { + *x = BlsSig{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_checkpoint_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlsSig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlsSig) ProtoMessage() {} + +// Deprecated: Use BlsSig.ProtoReflect.Descriptor instead. +func (*BlsSig) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_checkpoint_proto_rawDescGZIP(), []int{3} +} + +func (x *BlsSig) GetEpochNum() uint64 { + if x != nil { + return x.EpochNum + } + return 0 +} + +func (x *BlsSig) GetLastCommitHash() []byte { + if x != nil { + return x.LastCommitHash + } + return nil +} + +func (x *BlsSig) GetBlsSig() []byte { + if x != nil { + return x.BlsSig + } + return nil +} + +func (x *BlsSig) GetSignerAddress() string { + if x != nil { + return x.SignerAddress + } + return "" +} + +var File_cosmos_bls_v1_checkpoint_proto protoreflect.FileDescriptor + +var file_cosmos_bls_v1_checkpoint_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xed, 0x01, 0x0a, 0x0d, 0x52, 0x61, 0x77, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x12, 0x3c, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, + 0x12, 0xda, 0xde, 0x1f, 0x0e, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, + 0x61, 0x73, 0x68, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, + 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x69, 0x74, 0x6d, 0x61, 0x70, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x69, 0x74, 0x6d, 0x61, 0x70, 0x12, 0x63, 0x0a, 0x0d, 0x62, + 0x6c, 0x73, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x42, 0x3f, 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x2f, 0x62, 0x6c, 0x73, 0x31, 0x32, 0x33, 0x38, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x52, 0x0b, 0x62, 0x6c, 0x73, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x53, 0x69, 0x67, + 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xca, 0x02, 0x0a, 0x15, 0x52, 0x61, 0x77, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, + 0x12, 0x30, 0x0a, 0x04, 0x63, 0x6b, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x63, 0x6b, + 0x70, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x5f, 0x0a, 0x0b, 0x62, + 0x6c, 0x73, 0x5f, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x70, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, + 0x42, 0x3f, 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, + 0x64, 0x6b, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x62, + 0x6c, 0x73, 0x31, 0x32, 0x33, 0x38, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, + 0x79, 0x52, 0x09, 0x62, 0x6c, 0x73, 0x41, 0x67, 0x67, 0x72, 0x50, 0x6b, 0x12, 0x1b, 0x0a, 0x09, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x08, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x75, 0x6d, 0x12, 0x42, 0x0a, 0x09, 0x6c, 0x69, 0x66, + 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x09, 0x6c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x3a, 0x04, 0xe8, + 0xa0, 0x1f, 0x01, 0x22, 0xb8, 0x01, 0x0a, 0x15, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3f, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xea, + 0x01, 0x0a, 0x06, 0x42, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x12, 0x3c, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x42, 0x12, 0xda, 0xde, 0x1f, 0x0e, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x48, 0x61, 0x73, 0x68, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x48, 0x61, 0x73, 0x68, 0x12, 0x58, 0x0a, 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x73, 0x69, 0x67, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x3f, 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x6b, + 0x65, 0x79, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x31, 0x32, 0x33, 0x38, 0x31, 0x2e, 0x53, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x06, 0x62, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x12, 0x25, + 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x00, 0x2a, 0xea, 0x01, 0x0a, 0x10, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x2e, 0x0a, 0x18, 0x43, 0x4b, 0x50, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x41, 0x43, 0x43, 0x55, 0x4d, 0x55, 0x4c, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x1a, 0x10, + 0x8a, 0x9d, 0x20, 0x0c, 0x41, 0x63, 0x63, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x12, 0x22, 0x0a, 0x12, 0x43, 0x4b, 0x50, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x53, 0x45, 0x41, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x1a, 0x0a, 0x8a, 0x9d, 0x20, 0x06, 0x53, 0x65, + 0x61, 0x6c, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x15, 0x43, 0x4b, 0x50, 0x54, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x42, 0x4d, 0x49, 0x54, 0x54, 0x45, 0x44, 0x10, 0x02, 0x1a, + 0x0d, 0x8a, 0x9d, 0x20, 0x09, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x12, 0x28, + 0x0a, 0x15, 0x43, 0x4b, 0x50, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, + 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, 0x10, 0x03, 0x1a, 0x0d, 0x8a, 0x9d, 0x20, 0x09, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x15, 0x43, 0x4b, 0x50, 0x54, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x5a, 0x45, + 0x44, 0x10, 0x04, 0x1a, 0x0d, 0x8a, 0x9d, 0x20, 0x09, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, + 0x65, 0x64, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x42, 0xa0, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0f, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x24, 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, 0x6c, 0x73, 0x2f, 0x76, + 0x31, 0x3b, 0x62, 0x6c, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x58, 0xaa, 0x02, 0x0d, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x6c, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x6c, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_cosmos_bls_v1_checkpoint_proto_rawDescOnce sync.Once + file_cosmos_bls_v1_checkpoint_proto_rawDescData = file_cosmos_bls_v1_checkpoint_proto_rawDesc +) + +func file_cosmos_bls_v1_checkpoint_proto_rawDescGZIP() []byte { + file_cosmos_bls_v1_checkpoint_proto_rawDescOnce.Do(func() { + file_cosmos_bls_v1_checkpoint_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_bls_v1_checkpoint_proto_rawDescData) + }) + return file_cosmos_bls_v1_checkpoint_proto_rawDescData +} + +var file_cosmos_bls_v1_checkpoint_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cosmos_bls_v1_checkpoint_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_cosmos_bls_v1_checkpoint_proto_goTypes = []interface{}{ + (CheckpointStatus)(0), // 0: cosmos.bls.v1.CheckpointStatus + (*RawCheckpoint)(nil), // 1: cosmos.bls.v1.RawCheckpoint + (*RawCheckpointWithMeta)(nil), // 2: cosmos.bls.v1.RawCheckpointWithMeta + (*CheckpointStateUpdate)(nil), // 3: cosmos.bls.v1.CheckpointStateUpdate + (*BlsSig)(nil), // 4: cosmos.bls.v1.BlsSig + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp +} +var file_cosmos_bls_v1_checkpoint_proto_depIdxs = []int32{ + 1, // 0: cosmos.bls.v1.RawCheckpointWithMeta.ckpt:type_name -> cosmos.bls.v1.RawCheckpoint + 0, // 1: cosmos.bls.v1.RawCheckpointWithMeta.status:type_name -> cosmos.bls.v1.CheckpointStatus + 3, // 2: cosmos.bls.v1.RawCheckpointWithMeta.lifecycle:type_name -> cosmos.bls.v1.CheckpointStateUpdate + 0, // 3: cosmos.bls.v1.CheckpointStateUpdate.state:type_name -> cosmos.bls.v1.CheckpointStatus + 5, // 4: cosmos.bls.v1.CheckpointStateUpdate.block_time:type_name -> google.protobuf.Timestamp + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_cosmos_bls_v1_checkpoint_proto_init() } +func file_cosmos_bls_v1_checkpoint_proto_init() { + if File_cosmos_bls_v1_checkpoint_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cosmos_bls_v1_checkpoint_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RawCheckpoint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_checkpoint_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RawCheckpointWithMeta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_checkpoint_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckpointStateUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_checkpoint_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlsSig); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_bls_v1_checkpoint_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cosmos_bls_v1_checkpoint_proto_goTypes, + DependencyIndexes: file_cosmos_bls_v1_checkpoint_proto_depIdxs, + EnumInfos: file_cosmos_bls_v1_checkpoint_proto_enumTypes, + MessageInfos: file_cosmos_bls_v1_checkpoint_proto_msgTypes, + }.Build() + File_cosmos_bls_v1_checkpoint_proto = out.File + file_cosmos_bls_v1_checkpoint_proto_rawDesc = nil + file_cosmos_bls_v1_checkpoint_proto_goTypes = nil + file_cosmos_bls_v1_checkpoint_proto_depIdxs = nil +} diff --git a/api/cosmos/bls/v1/events.pulsar.go b/api/cosmos/bls/v1/events.pulsar.go new file mode 100644 index 00000000000..2bcea5f68d5 --- /dev/null +++ b/api/cosmos/bls/v1/events.pulsar.go @@ -0,0 +1,3639 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package blsv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_EventCheckpointAccumulating protoreflect.MessageDescriptor + fd_EventCheckpointAccumulating_checkpoint protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_events_proto_init() + md_EventCheckpointAccumulating = File_cosmos_bls_v1_events_proto.Messages().ByName("EventCheckpointAccumulating") + fd_EventCheckpointAccumulating_checkpoint = md_EventCheckpointAccumulating.Fields().ByName("checkpoint") +} + +var _ protoreflect.Message = (*fastReflection_EventCheckpointAccumulating)(nil) + +type fastReflection_EventCheckpointAccumulating EventCheckpointAccumulating + +func (x *EventCheckpointAccumulating) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventCheckpointAccumulating)(x) +} + +func (x *EventCheckpointAccumulating) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_events_proto_msgTypes[0] + 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_EventCheckpointAccumulating_messageType fastReflection_EventCheckpointAccumulating_messageType +var _ protoreflect.MessageType = fastReflection_EventCheckpointAccumulating_messageType{} + +type fastReflection_EventCheckpointAccumulating_messageType struct{} + +func (x fastReflection_EventCheckpointAccumulating_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventCheckpointAccumulating)(nil) +} +func (x fastReflection_EventCheckpointAccumulating_messageType) New() protoreflect.Message { + return new(fastReflection_EventCheckpointAccumulating) +} +func (x fastReflection_EventCheckpointAccumulating_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointAccumulating +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventCheckpointAccumulating) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointAccumulating +} + +// 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_EventCheckpointAccumulating) Type() protoreflect.MessageType { + return _fastReflection_EventCheckpointAccumulating_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventCheckpointAccumulating) New() protoreflect.Message { + return new(fastReflection_EventCheckpointAccumulating) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventCheckpointAccumulating) Interface() protoreflect.ProtoMessage { + return (*EventCheckpointAccumulating)(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_EventCheckpointAccumulating) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Checkpoint != nil { + value := protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + if !f(fd_EventCheckpointAccumulating_checkpoint, 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_EventCheckpointAccumulating) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointAccumulating.checkpoint": + return x.Checkpoint != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointAccumulating")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointAccumulating 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_EventCheckpointAccumulating) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointAccumulating.checkpoint": + x.Checkpoint = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointAccumulating")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointAccumulating 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_EventCheckpointAccumulating) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.EventCheckpointAccumulating.checkpoint": + value := x.Checkpoint + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointAccumulating")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointAccumulating 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_EventCheckpointAccumulating) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointAccumulating.checkpoint": + x.Checkpoint = value.Message().Interface().(*RawCheckpointWithMeta) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointAccumulating")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointAccumulating 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_EventCheckpointAccumulating) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointAccumulating.checkpoint": + if x.Checkpoint == nil { + x.Checkpoint = new(RawCheckpointWithMeta) + } + return protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointAccumulating")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointAccumulating 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_EventCheckpointAccumulating) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointAccumulating.checkpoint": + m := new(RawCheckpointWithMeta) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointAccumulating")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointAccumulating 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_EventCheckpointAccumulating) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.EventCheckpointAccumulating", 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_EventCheckpointAccumulating) 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_EventCheckpointAccumulating) 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_EventCheckpointAccumulating) 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_EventCheckpointAccumulating) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventCheckpointAccumulating) + 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.Checkpoint != nil { + l = options.Size(x.Checkpoint) + 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().(*EventCheckpointAccumulating) + 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.Checkpoint != nil { + encoded, err := options.Marshal(x.Checkpoint) + 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...) + } 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().(*EventCheckpointAccumulating) + 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: EventCheckpointAccumulating: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCheckpointAccumulating: 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 Checkpoint", 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.Checkpoint == nil { + x.Checkpoint = &RawCheckpointWithMeta{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Checkpoint); 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_EventCheckpointSealed protoreflect.MessageDescriptor + fd_EventCheckpointSealed_checkpoint protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_events_proto_init() + md_EventCheckpointSealed = File_cosmos_bls_v1_events_proto.Messages().ByName("EventCheckpointSealed") + fd_EventCheckpointSealed_checkpoint = md_EventCheckpointSealed.Fields().ByName("checkpoint") +} + +var _ protoreflect.Message = (*fastReflection_EventCheckpointSealed)(nil) + +type fastReflection_EventCheckpointSealed EventCheckpointSealed + +func (x *EventCheckpointSealed) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventCheckpointSealed)(x) +} + +func (x *EventCheckpointSealed) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_events_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_EventCheckpointSealed_messageType fastReflection_EventCheckpointSealed_messageType +var _ protoreflect.MessageType = fastReflection_EventCheckpointSealed_messageType{} + +type fastReflection_EventCheckpointSealed_messageType struct{} + +func (x fastReflection_EventCheckpointSealed_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventCheckpointSealed)(nil) +} +func (x fastReflection_EventCheckpointSealed_messageType) New() protoreflect.Message { + return new(fastReflection_EventCheckpointSealed) +} +func (x fastReflection_EventCheckpointSealed_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointSealed +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventCheckpointSealed) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointSealed +} + +// 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_EventCheckpointSealed) Type() protoreflect.MessageType { + return _fastReflection_EventCheckpointSealed_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventCheckpointSealed) New() protoreflect.Message { + return new(fastReflection_EventCheckpointSealed) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventCheckpointSealed) Interface() protoreflect.ProtoMessage { + return (*EventCheckpointSealed)(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_EventCheckpointSealed) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Checkpoint != nil { + value := protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + if !f(fd_EventCheckpointSealed_checkpoint, 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_EventCheckpointSealed) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointSealed.checkpoint": + return x.Checkpoint != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSealed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSealed 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_EventCheckpointSealed) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointSealed.checkpoint": + x.Checkpoint = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSealed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSealed 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_EventCheckpointSealed) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.EventCheckpointSealed.checkpoint": + value := x.Checkpoint + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSealed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSealed 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_EventCheckpointSealed) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointSealed.checkpoint": + x.Checkpoint = value.Message().Interface().(*RawCheckpointWithMeta) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSealed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSealed 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_EventCheckpointSealed) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointSealed.checkpoint": + if x.Checkpoint == nil { + x.Checkpoint = new(RawCheckpointWithMeta) + } + return protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSealed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSealed 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_EventCheckpointSealed) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointSealed.checkpoint": + m := new(RawCheckpointWithMeta) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSealed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSealed 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_EventCheckpointSealed) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.EventCheckpointSealed", 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_EventCheckpointSealed) 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_EventCheckpointSealed) 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_EventCheckpointSealed) 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_EventCheckpointSealed) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventCheckpointSealed) + 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.Checkpoint != nil { + l = options.Size(x.Checkpoint) + 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().(*EventCheckpointSealed) + 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.Checkpoint != nil { + encoded, err := options.Marshal(x.Checkpoint) + 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...) + } 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().(*EventCheckpointSealed) + 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: EventCheckpointSealed: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCheckpointSealed: 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 Checkpoint", 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.Checkpoint == nil { + x.Checkpoint = &RawCheckpointWithMeta{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Checkpoint); 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_EventCheckpointSubmitted protoreflect.MessageDescriptor + fd_EventCheckpointSubmitted_checkpoint protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_events_proto_init() + md_EventCheckpointSubmitted = File_cosmos_bls_v1_events_proto.Messages().ByName("EventCheckpointSubmitted") + fd_EventCheckpointSubmitted_checkpoint = md_EventCheckpointSubmitted.Fields().ByName("checkpoint") +} + +var _ protoreflect.Message = (*fastReflection_EventCheckpointSubmitted)(nil) + +type fastReflection_EventCheckpointSubmitted EventCheckpointSubmitted + +func (x *EventCheckpointSubmitted) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventCheckpointSubmitted)(x) +} + +func (x *EventCheckpointSubmitted) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_events_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_EventCheckpointSubmitted_messageType fastReflection_EventCheckpointSubmitted_messageType +var _ protoreflect.MessageType = fastReflection_EventCheckpointSubmitted_messageType{} + +type fastReflection_EventCheckpointSubmitted_messageType struct{} + +func (x fastReflection_EventCheckpointSubmitted_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventCheckpointSubmitted)(nil) +} +func (x fastReflection_EventCheckpointSubmitted_messageType) New() protoreflect.Message { + return new(fastReflection_EventCheckpointSubmitted) +} +func (x fastReflection_EventCheckpointSubmitted_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointSubmitted +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventCheckpointSubmitted) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointSubmitted +} + +// 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_EventCheckpointSubmitted) Type() protoreflect.MessageType { + return _fastReflection_EventCheckpointSubmitted_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventCheckpointSubmitted) New() protoreflect.Message { + return new(fastReflection_EventCheckpointSubmitted) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventCheckpointSubmitted) Interface() protoreflect.ProtoMessage { + return (*EventCheckpointSubmitted)(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_EventCheckpointSubmitted) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Checkpoint != nil { + value := protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + if !f(fd_EventCheckpointSubmitted_checkpoint, 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_EventCheckpointSubmitted) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointSubmitted.checkpoint": + return x.Checkpoint != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSubmitted")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSubmitted 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_EventCheckpointSubmitted) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointSubmitted.checkpoint": + x.Checkpoint = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSubmitted")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSubmitted 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_EventCheckpointSubmitted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.EventCheckpointSubmitted.checkpoint": + value := x.Checkpoint + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSubmitted")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSubmitted 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_EventCheckpointSubmitted) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointSubmitted.checkpoint": + x.Checkpoint = value.Message().Interface().(*RawCheckpointWithMeta) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSubmitted")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSubmitted 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_EventCheckpointSubmitted) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointSubmitted.checkpoint": + if x.Checkpoint == nil { + x.Checkpoint = new(RawCheckpointWithMeta) + } + return protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSubmitted")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSubmitted 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_EventCheckpointSubmitted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointSubmitted.checkpoint": + m := new(RawCheckpointWithMeta) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointSubmitted")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointSubmitted 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_EventCheckpointSubmitted) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.EventCheckpointSubmitted", 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_EventCheckpointSubmitted) 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_EventCheckpointSubmitted) 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_EventCheckpointSubmitted) 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_EventCheckpointSubmitted) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventCheckpointSubmitted) + 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.Checkpoint != nil { + l = options.Size(x.Checkpoint) + 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().(*EventCheckpointSubmitted) + 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.Checkpoint != nil { + encoded, err := options.Marshal(x.Checkpoint) + 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...) + } 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().(*EventCheckpointSubmitted) + 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: EventCheckpointSubmitted: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCheckpointSubmitted: 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 Checkpoint", 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.Checkpoint == nil { + x.Checkpoint = &RawCheckpointWithMeta{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Checkpoint); 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_EventCheckpointConfirmed protoreflect.MessageDescriptor + fd_EventCheckpointConfirmed_checkpoint protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_events_proto_init() + md_EventCheckpointConfirmed = File_cosmos_bls_v1_events_proto.Messages().ByName("EventCheckpointConfirmed") + fd_EventCheckpointConfirmed_checkpoint = md_EventCheckpointConfirmed.Fields().ByName("checkpoint") +} + +var _ protoreflect.Message = (*fastReflection_EventCheckpointConfirmed)(nil) + +type fastReflection_EventCheckpointConfirmed EventCheckpointConfirmed + +func (x *EventCheckpointConfirmed) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventCheckpointConfirmed)(x) +} + +func (x *EventCheckpointConfirmed) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_events_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_EventCheckpointConfirmed_messageType fastReflection_EventCheckpointConfirmed_messageType +var _ protoreflect.MessageType = fastReflection_EventCheckpointConfirmed_messageType{} + +type fastReflection_EventCheckpointConfirmed_messageType struct{} + +func (x fastReflection_EventCheckpointConfirmed_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventCheckpointConfirmed)(nil) +} +func (x fastReflection_EventCheckpointConfirmed_messageType) New() protoreflect.Message { + return new(fastReflection_EventCheckpointConfirmed) +} +func (x fastReflection_EventCheckpointConfirmed_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointConfirmed +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventCheckpointConfirmed) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointConfirmed +} + +// 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_EventCheckpointConfirmed) Type() protoreflect.MessageType { + return _fastReflection_EventCheckpointConfirmed_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventCheckpointConfirmed) New() protoreflect.Message { + return new(fastReflection_EventCheckpointConfirmed) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventCheckpointConfirmed) Interface() protoreflect.ProtoMessage { + return (*EventCheckpointConfirmed)(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_EventCheckpointConfirmed) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Checkpoint != nil { + value := protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + if !f(fd_EventCheckpointConfirmed_checkpoint, 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_EventCheckpointConfirmed) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointConfirmed.checkpoint": + return x.Checkpoint != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointConfirmed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointConfirmed 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_EventCheckpointConfirmed) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointConfirmed.checkpoint": + x.Checkpoint = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointConfirmed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointConfirmed 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_EventCheckpointConfirmed) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.EventCheckpointConfirmed.checkpoint": + value := x.Checkpoint + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointConfirmed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointConfirmed 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_EventCheckpointConfirmed) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointConfirmed.checkpoint": + x.Checkpoint = value.Message().Interface().(*RawCheckpointWithMeta) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointConfirmed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointConfirmed 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_EventCheckpointConfirmed) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointConfirmed.checkpoint": + if x.Checkpoint == nil { + x.Checkpoint = new(RawCheckpointWithMeta) + } + return protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointConfirmed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointConfirmed 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_EventCheckpointConfirmed) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointConfirmed.checkpoint": + m := new(RawCheckpointWithMeta) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointConfirmed")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointConfirmed 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_EventCheckpointConfirmed) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.EventCheckpointConfirmed", 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_EventCheckpointConfirmed) 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_EventCheckpointConfirmed) 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_EventCheckpointConfirmed) 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_EventCheckpointConfirmed) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventCheckpointConfirmed) + 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.Checkpoint != nil { + l = options.Size(x.Checkpoint) + 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().(*EventCheckpointConfirmed) + 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.Checkpoint != nil { + encoded, err := options.Marshal(x.Checkpoint) + 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...) + } 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().(*EventCheckpointConfirmed) + 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: EventCheckpointConfirmed: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCheckpointConfirmed: 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 Checkpoint", 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.Checkpoint == nil { + x.Checkpoint = &RawCheckpointWithMeta{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Checkpoint); 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_EventCheckpointFinalized protoreflect.MessageDescriptor + fd_EventCheckpointFinalized_checkpoint protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_events_proto_init() + md_EventCheckpointFinalized = File_cosmos_bls_v1_events_proto.Messages().ByName("EventCheckpointFinalized") + fd_EventCheckpointFinalized_checkpoint = md_EventCheckpointFinalized.Fields().ByName("checkpoint") +} + +var _ protoreflect.Message = (*fastReflection_EventCheckpointFinalized)(nil) + +type fastReflection_EventCheckpointFinalized EventCheckpointFinalized + +func (x *EventCheckpointFinalized) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventCheckpointFinalized)(x) +} + +func (x *EventCheckpointFinalized) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_events_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_EventCheckpointFinalized_messageType fastReflection_EventCheckpointFinalized_messageType +var _ protoreflect.MessageType = fastReflection_EventCheckpointFinalized_messageType{} + +type fastReflection_EventCheckpointFinalized_messageType struct{} + +func (x fastReflection_EventCheckpointFinalized_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventCheckpointFinalized)(nil) +} +func (x fastReflection_EventCheckpointFinalized_messageType) New() protoreflect.Message { + return new(fastReflection_EventCheckpointFinalized) +} +func (x fastReflection_EventCheckpointFinalized_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointFinalized +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventCheckpointFinalized) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointFinalized +} + +// 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_EventCheckpointFinalized) Type() protoreflect.MessageType { + return _fastReflection_EventCheckpointFinalized_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventCheckpointFinalized) New() protoreflect.Message { + return new(fastReflection_EventCheckpointFinalized) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventCheckpointFinalized) Interface() protoreflect.ProtoMessage { + return (*EventCheckpointFinalized)(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_EventCheckpointFinalized) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Checkpoint != nil { + value := protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + if !f(fd_EventCheckpointFinalized_checkpoint, 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_EventCheckpointFinalized) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointFinalized.checkpoint": + return x.Checkpoint != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointFinalized")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointFinalized 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_EventCheckpointFinalized) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointFinalized.checkpoint": + x.Checkpoint = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointFinalized")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointFinalized 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_EventCheckpointFinalized) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.EventCheckpointFinalized.checkpoint": + value := x.Checkpoint + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointFinalized")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointFinalized 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_EventCheckpointFinalized) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointFinalized.checkpoint": + x.Checkpoint = value.Message().Interface().(*RawCheckpointWithMeta) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointFinalized")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointFinalized 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_EventCheckpointFinalized) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointFinalized.checkpoint": + if x.Checkpoint == nil { + x.Checkpoint = new(RawCheckpointWithMeta) + } + return protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointFinalized")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointFinalized 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_EventCheckpointFinalized) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointFinalized.checkpoint": + m := new(RawCheckpointWithMeta) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointFinalized")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointFinalized 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_EventCheckpointFinalized) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.EventCheckpointFinalized", 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_EventCheckpointFinalized) 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_EventCheckpointFinalized) 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_EventCheckpointFinalized) 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_EventCheckpointFinalized) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventCheckpointFinalized) + 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.Checkpoint != nil { + l = options.Size(x.Checkpoint) + 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().(*EventCheckpointFinalized) + 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.Checkpoint != nil { + encoded, err := options.Marshal(x.Checkpoint) + 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...) + } 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().(*EventCheckpointFinalized) + 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: EventCheckpointFinalized: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCheckpointFinalized: 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 Checkpoint", 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.Checkpoint == nil { + x.Checkpoint = &RawCheckpointWithMeta{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Checkpoint); 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_EventCheckpointForgotten protoreflect.MessageDescriptor + fd_EventCheckpointForgotten_checkpoint protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_events_proto_init() + md_EventCheckpointForgotten = File_cosmos_bls_v1_events_proto.Messages().ByName("EventCheckpointForgotten") + fd_EventCheckpointForgotten_checkpoint = md_EventCheckpointForgotten.Fields().ByName("checkpoint") +} + +var _ protoreflect.Message = (*fastReflection_EventCheckpointForgotten)(nil) + +type fastReflection_EventCheckpointForgotten EventCheckpointForgotten + +func (x *EventCheckpointForgotten) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventCheckpointForgotten)(x) +} + +func (x *EventCheckpointForgotten) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_events_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_EventCheckpointForgotten_messageType fastReflection_EventCheckpointForgotten_messageType +var _ protoreflect.MessageType = fastReflection_EventCheckpointForgotten_messageType{} + +type fastReflection_EventCheckpointForgotten_messageType struct{} + +func (x fastReflection_EventCheckpointForgotten_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventCheckpointForgotten)(nil) +} +func (x fastReflection_EventCheckpointForgotten_messageType) New() protoreflect.Message { + return new(fastReflection_EventCheckpointForgotten) +} +func (x fastReflection_EventCheckpointForgotten_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointForgotten +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventCheckpointForgotten) Descriptor() protoreflect.MessageDescriptor { + return md_EventCheckpointForgotten +} + +// 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_EventCheckpointForgotten) Type() protoreflect.MessageType { + return _fastReflection_EventCheckpointForgotten_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventCheckpointForgotten) New() protoreflect.Message { + return new(fastReflection_EventCheckpointForgotten) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventCheckpointForgotten) Interface() protoreflect.ProtoMessage { + return (*EventCheckpointForgotten)(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_EventCheckpointForgotten) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Checkpoint != nil { + value := protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + if !f(fd_EventCheckpointForgotten_checkpoint, 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_EventCheckpointForgotten) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointForgotten.checkpoint": + return x.Checkpoint != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointForgotten")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointForgotten 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_EventCheckpointForgotten) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointForgotten.checkpoint": + x.Checkpoint = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointForgotten")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointForgotten 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_EventCheckpointForgotten) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.EventCheckpointForgotten.checkpoint": + value := x.Checkpoint + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointForgotten")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointForgotten 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_EventCheckpointForgotten) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointForgotten.checkpoint": + x.Checkpoint = value.Message().Interface().(*RawCheckpointWithMeta) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointForgotten")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointForgotten 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_EventCheckpointForgotten) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointForgotten.checkpoint": + if x.Checkpoint == nil { + x.Checkpoint = new(RawCheckpointWithMeta) + } + return protoreflect.ValueOfMessage(x.Checkpoint.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointForgotten")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointForgotten 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_EventCheckpointForgotten) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventCheckpointForgotten.checkpoint": + m := new(RawCheckpointWithMeta) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventCheckpointForgotten")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventCheckpointForgotten 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_EventCheckpointForgotten) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.EventCheckpointForgotten", 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_EventCheckpointForgotten) 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_EventCheckpointForgotten) 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_EventCheckpointForgotten) 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_EventCheckpointForgotten) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventCheckpointForgotten) + 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.Checkpoint != nil { + l = options.Size(x.Checkpoint) + 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().(*EventCheckpointForgotten) + 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.Checkpoint != nil { + encoded, err := options.Marshal(x.Checkpoint) + 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...) + } 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().(*EventCheckpointForgotten) + 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: EventCheckpointForgotten: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCheckpointForgotten: 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 Checkpoint", 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.Checkpoint == nil { + x.Checkpoint = &RawCheckpointWithMeta{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Checkpoint); 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_EventConflictingCheckpoint protoreflect.MessageDescriptor + fd_EventConflictingCheckpoint_conflicting_checkpoint protoreflect.FieldDescriptor + fd_EventConflictingCheckpoint_local_checkpoint protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_events_proto_init() + md_EventConflictingCheckpoint = File_cosmos_bls_v1_events_proto.Messages().ByName("EventConflictingCheckpoint") + fd_EventConflictingCheckpoint_conflicting_checkpoint = md_EventConflictingCheckpoint.Fields().ByName("conflicting_checkpoint") + fd_EventConflictingCheckpoint_local_checkpoint = md_EventConflictingCheckpoint.Fields().ByName("local_checkpoint") +} + +var _ protoreflect.Message = (*fastReflection_EventConflictingCheckpoint)(nil) + +type fastReflection_EventConflictingCheckpoint EventConflictingCheckpoint + +func (x *EventConflictingCheckpoint) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventConflictingCheckpoint)(x) +} + +func (x *EventConflictingCheckpoint) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_events_proto_msgTypes[6] + 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_EventConflictingCheckpoint_messageType fastReflection_EventConflictingCheckpoint_messageType +var _ protoreflect.MessageType = fastReflection_EventConflictingCheckpoint_messageType{} + +type fastReflection_EventConflictingCheckpoint_messageType struct{} + +func (x fastReflection_EventConflictingCheckpoint_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventConflictingCheckpoint)(nil) +} +func (x fastReflection_EventConflictingCheckpoint_messageType) New() protoreflect.Message { + return new(fastReflection_EventConflictingCheckpoint) +} +func (x fastReflection_EventConflictingCheckpoint_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventConflictingCheckpoint +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventConflictingCheckpoint) Descriptor() protoreflect.MessageDescriptor { + return md_EventConflictingCheckpoint +} + +// 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_EventConflictingCheckpoint) Type() protoreflect.MessageType { + return _fastReflection_EventConflictingCheckpoint_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventConflictingCheckpoint) New() protoreflect.Message { + return new(fastReflection_EventConflictingCheckpoint) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventConflictingCheckpoint) Interface() protoreflect.ProtoMessage { + return (*EventConflictingCheckpoint)(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_EventConflictingCheckpoint) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ConflictingCheckpoint != nil { + value := protoreflect.ValueOfMessage(x.ConflictingCheckpoint.ProtoReflect()) + if !f(fd_EventConflictingCheckpoint_conflicting_checkpoint, value) { + return + } + } + if x.LocalCheckpoint != nil { + value := protoreflect.ValueOfMessage(x.LocalCheckpoint.ProtoReflect()) + if !f(fd_EventConflictingCheckpoint_local_checkpoint, 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_EventConflictingCheckpoint) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.EventConflictingCheckpoint.conflicting_checkpoint": + return x.ConflictingCheckpoint != nil + case "cosmos.bls.v1.EventConflictingCheckpoint.local_checkpoint": + return x.LocalCheckpoint != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventConflictingCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventConflictingCheckpoint 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_EventConflictingCheckpoint) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.EventConflictingCheckpoint.conflicting_checkpoint": + x.ConflictingCheckpoint = nil + case "cosmos.bls.v1.EventConflictingCheckpoint.local_checkpoint": + x.LocalCheckpoint = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventConflictingCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventConflictingCheckpoint 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_EventConflictingCheckpoint) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.EventConflictingCheckpoint.conflicting_checkpoint": + value := x.ConflictingCheckpoint + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.bls.v1.EventConflictingCheckpoint.local_checkpoint": + value := x.LocalCheckpoint + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventConflictingCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventConflictingCheckpoint 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_EventConflictingCheckpoint) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.EventConflictingCheckpoint.conflicting_checkpoint": + x.ConflictingCheckpoint = value.Message().Interface().(*RawCheckpoint) + case "cosmos.bls.v1.EventConflictingCheckpoint.local_checkpoint": + x.LocalCheckpoint = value.Message().Interface().(*RawCheckpointWithMeta) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventConflictingCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventConflictingCheckpoint 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_EventConflictingCheckpoint) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventConflictingCheckpoint.conflicting_checkpoint": + if x.ConflictingCheckpoint == nil { + x.ConflictingCheckpoint = new(RawCheckpoint) + } + return protoreflect.ValueOfMessage(x.ConflictingCheckpoint.ProtoReflect()) + case "cosmos.bls.v1.EventConflictingCheckpoint.local_checkpoint": + if x.LocalCheckpoint == nil { + x.LocalCheckpoint = new(RawCheckpointWithMeta) + } + return protoreflect.ValueOfMessage(x.LocalCheckpoint.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventConflictingCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventConflictingCheckpoint 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_EventConflictingCheckpoint) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.EventConflictingCheckpoint.conflicting_checkpoint": + m := new(RawCheckpoint) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "cosmos.bls.v1.EventConflictingCheckpoint.local_checkpoint": + m := new(RawCheckpointWithMeta) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.EventConflictingCheckpoint")) + } + panic(fmt.Errorf("message cosmos.bls.v1.EventConflictingCheckpoint 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_EventConflictingCheckpoint) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.EventConflictingCheckpoint", 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_EventConflictingCheckpoint) 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_EventConflictingCheckpoint) 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_EventConflictingCheckpoint) 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_EventConflictingCheckpoint) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventConflictingCheckpoint) + 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.ConflictingCheckpoint != nil { + l = options.Size(x.ConflictingCheckpoint) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LocalCheckpoint != nil { + l = options.Size(x.LocalCheckpoint) + 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().(*EventConflictingCheckpoint) + 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.LocalCheckpoint != nil { + encoded, err := options.Marshal(x.LocalCheckpoint) + 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.ConflictingCheckpoint != nil { + encoded, err := options.Marshal(x.ConflictingCheckpoint) + 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...) + } 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().(*EventConflictingCheckpoint) + 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: EventConflictingCheckpoint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventConflictingCheckpoint: 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 ConflictingCheckpoint", 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.ConflictingCheckpoint == nil { + x.ConflictingCheckpoint = &RawCheckpoint{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ConflictingCheckpoint); 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 LocalCheckpoint", 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.LocalCheckpoint == nil { + x.LocalCheckpoint = &RawCheckpointWithMeta{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LocalCheckpoint); 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cosmos/bls/v1/events.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// EventCheckpointAccumulating is emitted when a checkpoint reaches the +// `Accumulating` state. +type EventCheckpointAccumulating struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Checkpoint *RawCheckpointWithMeta `protobuf:"bytes,1,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` +} + +func (x *EventCheckpointAccumulating) Reset() { + *x = EventCheckpointAccumulating{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventCheckpointAccumulating) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventCheckpointAccumulating) ProtoMessage() {} + +// Deprecated: Use EventCheckpointAccumulating.ProtoReflect.Descriptor instead. +func (*EventCheckpointAccumulating) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_events_proto_rawDescGZIP(), []int{0} +} + +func (x *EventCheckpointAccumulating) GetCheckpoint() *RawCheckpointWithMeta { + if x != nil { + return x.Checkpoint + } + return nil +} + +// EventCheckpointSealed is emitted when a checkpoint reaches the `Sealed` +// state. +type EventCheckpointSealed struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Checkpoint *RawCheckpointWithMeta `protobuf:"bytes,1,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` +} + +func (x *EventCheckpointSealed) Reset() { + *x = EventCheckpointSealed{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventCheckpointSealed) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventCheckpointSealed) ProtoMessage() {} + +// Deprecated: Use EventCheckpointSealed.ProtoReflect.Descriptor instead. +func (*EventCheckpointSealed) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_events_proto_rawDescGZIP(), []int{1} +} + +func (x *EventCheckpointSealed) GetCheckpoint() *RawCheckpointWithMeta { + if x != nil { + return x.Checkpoint + } + return nil +} + +// EventCheckpointSubmitted is emitted when a checkpoint reaches the `Submitted` +// state. +type EventCheckpointSubmitted struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Checkpoint *RawCheckpointWithMeta `protobuf:"bytes,1,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` +} + +func (x *EventCheckpointSubmitted) Reset() { + *x = EventCheckpointSubmitted{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventCheckpointSubmitted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventCheckpointSubmitted) ProtoMessage() {} + +// Deprecated: Use EventCheckpointSubmitted.ProtoReflect.Descriptor instead. +func (*EventCheckpointSubmitted) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_events_proto_rawDescGZIP(), []int{2} +} + +func (x *EventCheckpointSubmitted) GetCheckpoint() *RawCheckpointWithMeta { + if x != nil { + return x.Checkpoint + } + return nil +} + +// EventCheckpointConfirmed is emitted when a checkpoint reaches the `Confirmed` +// state. +type EventCheckpointConfirmed struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Checkpoint *RawCheckpointWithMeta `protobuf:"bytes,1,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` +} + +func (x *EventCheckpointConfirmed) Reset() { + *x = EventCheckpointConfirmed{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventCheckpointConfirmed) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventCheckpointConfirmed) ProtoMessage() {} + +// Deprecated: Use EventCheckpointConfirmed.ProtoReflect.Descriptor instead. +func (*EventCheckpointConfirmed) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_events_proto_rawDescGZIP(), []int{3} +} + +func (x *EventCheckpointConfirmed) GetCheckpoint() *RawCheckpointWithMeta { + if x != nil { + return x.Checkpoint + } + return nil +} + +// EventCheckpointFinalized is emitted when a checkpoint reaches the `Finalized` +// state. +type EventCheckpointFinalized struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Checkpoint *RawCheckpointWithMeta `protobuf:"bytes,1,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` +} + +func (x *EventCheckpointFinalized) Reset() { + *x = EventCheckpointFinalized{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_events_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventCheckpointFinalized) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventCheckpointFinalized) ProtoMessage() {} + +// Deprecated: Use EventCheckpointFinalized.ProtoReflect.Descriptor instead. +func (*EventCheckpointFinalized) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_events_proto_rawDescGZIP(), []int{4} +} + +func (x *EventCheckpointFinalized) GetCheckpoint() *RawCheckpointWithMeta { + if x != nil { + return x.Checkpoint + } + return nil +} + +// EventCheckpointForgotten is emitted when a checkpoint switches to a +// `Forgotten` state. +type EventCheckpointForgotten struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Checkpoint *RawCheckpointWithMeta `protobuf:"bytes,1,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` +} + +func (x *EventCheckpointForgotten) Reset() { + *x = EventCheckpointForgotten{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_events_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventCheckpointForgotten) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventCheckpointForgotten) ProtoMessage() {} + +// Deprecated: Use EventCheckpointForgotten.ProtoReflect.Descriptor instead. +func (*EventCheckpointForgotten) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_events_proto_rawDescGZIP(), []int{5} +} + +func (x *EventCheckpointForgotten) GetCheckpoint() *RawCheckpointWithMeta { + if x != nil { + return x.Checkpoint + } + return nil +} + +// EventConflictingCheckpoint is emitted when two conflicting checkpoints are +// found. +type EventConflictingCheckpoint struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConflictingCheckpoint *RawCheckpoint `protobuf:"bytes,1,opt,name=conflicting_checkpoint,json=conflictingCheckpoint,proto3" json:"conflicting_checkpoint,omitempty"` + LocalCheckpoint *RawCheckpointWithMeta `protobuf:"bytes,2,opt,name=local_checkpoint,json=localCheckpoint,proto3" json:"local_checkpoint,omitempty"` +} + +func (x *EventConflictingCheckpoint) Reset() { + *x = EventConflictingCheckpoint{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_events_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventConflictingCheckpoint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventConflictingCheckpoint) ProtoMessage() {} + +// Deprecated: Use EventConflictingCheckpoint.ProtoReflect.Descriptor instead. +func (*EventConflictingCheckpoint) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_events_proto_rawDescGZIP(), []int{6} +} + +func (x *EventConflictingCheckpoint) GetConflictingCheckpoint() *RawCheckpoint { + if x != nil { + return x.ConflictingCheckpoint + } + return nil +} + +func (x *EventConflictingCheckpoint) GetLocalCheckpoint() *RawCheckpointWithMeta { + if x != nil { + return x.LocalCheckpoint + } + return nil +} + +var File_cosmos_bls_v1_events_proto protoreflect.FileDescriptor + +var file_cosmos_bls_v1_events_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x1b, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x41, 0x63, + 0x63, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x44, 0x0a, 0x0a, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, + 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x22, 0x5d, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x0a, 0x63, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, + 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, + 0x65, 0x74, 0x61, 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, + 0x60, 0x0a, 0x18, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x0a, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x57, 0x69, 0x74, + 0x68, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x22, 0x60, 0x0a, 0x18, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x44, 0x0a, + 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x57, + 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x18, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x12, + 0x44, 0x0a, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x18, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x6f, 0x72, 0x67, 0x6f, 0x74, 0x74, 0x65, + 0x6e, 0x12, 0x44, 0x0a, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x63, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0xc2, 0x01, 0x0a, 0x1a, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x16, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, + 0x63, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x15, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x69, 0x6e, + 0x67, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x4f, 0x0a, 0x10, 0x6c, + 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0f, 0x6c, 0x6f, 0x63, + 0x61, 0x6c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x9c, 0x01, 0x0a, + 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, + 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x24, 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, 0x6c, 0x73, 0x2f, 0x76, + 0x31, 0x3b, 0x62, 0x6c, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x58, 0xaa, 0x02, 0x0d, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x6c, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x6c, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_cosmos_bls_v1_events_proto_rawDescOnce sync.Once + file_cosmos_bls_v1_events_proto_rawDescData = file_cosmos_bls_v1_events_proto_rawDesc +) + +func file_cosmos_bls_v1_events_proto_rawDescGZIP() []byte { + file_cosmos_bls_v1_events_proto_rawDescOnce.Do(func() { + file_cosmos_bls_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_bls_v1_events_proto_rawDescData) + }) + return file_cosmos_bls_v1_events_proto_rawDescData +} + +var file_cosmos_bls_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_cosmos_bls_v1_events_proto_goTypes = []interface{}{ + (*EventCheckpointAccumulating)(nil), // 0: cosmos.bls.v1.EventCheckpointAccumulating + (*EventCheckpointSealed)(nil), // 1: cosmos.bls.v1.EventCheckpointSealed + (*EventCheckpointSubmitted)(nil), // 2: cosmos.bls.v1.EventCheckpointSubmitted + (*EventCheckpointConfirmed)(nil), // 3: cosmos.bls.v1.EventCheckpointConfirmed + (*EventCheckpointFinalized)(nil), // 4: cosmos.bls.v1.EventCheckpointFinalized + (*EventCheckpointForgotten)(nil), // 5: cosmos.bls.v1.EventCheckpointForgotten + (*EventConflictingCheckpoint)(nil), // 6: cosmos.bls.v1.EventConflictingCheckpoint + (*RawCheckpointWithMeta)(nil), // 7: cosmos.bls.v1.RawCheckpointWithMeta + (*RawCheckpoint)(nil), // 8: cosmos.bls.v1.RawCheckpoint +} +var file_cosmos_bls_v1_events_proto_depIdxs = []int32{ + 7, // 0: cosmos.bls.v1.EventCheckpointAccumulating.checkpoint:type_name -> cosmos.bls.v1.RawCheckpointWithMeta + 7, // 1: cosmos.bls.v1.EventCheckpointSealed.checkpoint:type_name -> cosmos.bls.v1.RawCheckpointWithMeta + 7, // 2: cosmos.bls.v1.EventCheckpointSubmitted.checkpoint:type_name -> cosmos.bls.v1.RawCheckpointWithMeta + 7, // 3: cosmos.bls.v1.EventCheckpointConfirmed.checkpoint:type_name -> cosmos.bls.v1.RawCheckpointWithMeta + 7, // 4: cosmos.bls.v1.EventCheckpointFinalized.checkpoint:type_name -> cosmos.bls.v1.RawCheckpointWithMeta + 7, // 5: cosmos.bls.v1.EventCheckpointForgotten.checkpoint:type_name -> cosmos.bls.v1.RawCheckpointWithMeta + 8, // 6: cosmos.bls.v1.EventConflictingCheckpoint.conflicting_checkpoint:type_name -> cosmos.bls.v1.RawCheckpoint + 7, // 7: cosmos.bls.v1.EventConflictingCheckpoint.local_checkpoint:type_name -> cosmos.bls.v1.RawCheckpointWithMeta + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_cosmos_bls_v1_events_proto_init() } +func file_cosmos_bls_v1_events_proto_init() { + if File_cosmos_bls_v1_events_proto != nil { + return + } + file_cosmos_bls_v1_checkpoint_proto_init() + if !protoimpl.UnsafeEnabled { + file_cosmos_bls_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventCheckpointAccumulating); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventCheckpointSealed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventCheckpointSubmitted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventCheckpointConfirmed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventCheckpointFinalized); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventCheckpointForgotten); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventConflictingCheckpoint); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_bls_v1_events_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cosmos_bls_v1_events_proto_goTypes, + DependencyIndexes: file_cosmos_bls_v1_events_proto_depIdxs, + MessageInfos: file_cosmos_bls_v1_events_proto_msgTypes, + }.Build() + File_cosmos_bls_v1_events_proto = out.File + file_cosmos_bls_v1_events_proto_rawDesc = nil + file_cosmos_bls_v1_events_proto_goTypes = nil + file_cosmos_bls_v1_events_proto_depIdxs = nil +} diff --git a/api/cosmos/bls/v1/genesis.pulsar.go b/api/cosmos/bls/v1/genesis.pulsar.go new file mode 100644 index 00000000000..936cf1952de --- /dev/null +++ b/api/cosmos/bls/v1/genesis.pulsar.go @@ -0,0 +1,1311 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package blsv1 + +import ( + ed25519 "cosmossdk.io/api/cosmos/crypto/ed25519" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var _ protoreflect.List = (*_GenesisState_1_list)(nil) + +type _GenesisState_1_list struct { + list *[]*GenesisKey +} + +func (x *_GenesisState_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*GenesisKey) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*GenesisKey) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_1_list) AppendMutable() protoreflect.Value { + v := new(GenesisKey) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_1_list) NewElement() protoreflect.Value { + v := new(GenesisKey) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_genesis_keys protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_genesis_proto_init() + md_GenesisState = File_cosmos_bls_v1_genesis_proto.Messages().ByName("GenesisState") + fd_GenesisState_genesis_keys = md_GenesisState.Fields().ByName("genesis_keys") +} + +var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) + +type fastReflection_GenesisState GenesisState + +func (x *GenesisState) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisState)(x) +} + +func (x *GenesisState) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_genesis_proto_msgTypes[0] + 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_GenesisState_messageType fastReflection_GenesisState_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} + +type fastReflection_GenesisState_messageType struct{} + +func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState)(nil) +} +func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} +func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// 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_GenesisState) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { + return (*GenesisState)(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_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.GenesisKeys) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_1_list{list: &x.GenesisKeys}) + if !f(fd_GenesisState_genesis_keys, 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_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.GenesisState.genesis_keys": + return len(x.GenesisKeys) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisState 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_GenesisState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.GenesisState.genesis_keys": + x.GenesisKeys = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisState 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_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.GenesisState.genesis_keys": + if len(x.GenesisKeys) == 0 { + return protoreflect.ValueOfList(&_GenesisState_1_list{}) + } + listValue := &_GenesisState_1_list{list: &x.GenesisKeys} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisState 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_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.GenesisState.genesis_keys": + lv := value.List() + clv := lv.(*_GenesisState_1_list) + x.GenesisKeys = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisState 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_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.GenesisState.genesis_keys": + if x.GenesisKeys == nil { + x.GenesisKeys = []*GenesisKey{} + } + value := &_GenesisState_1_list{list: &x.GenesisKeys} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisState 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_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.GenesisState.genesis_keys": + list := []*GenesisKey{} + return protoreflect.ValueOfList(&_GenesisState_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisState 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_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.GenesisState", 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_GenesisState) 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_GenesisState) 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_GenesisState) 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_GenesisState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.GenesisKeys) > 0 { + for _, e := range x.GenesisKeys { + 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().(*GenesisState) + 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.GenesisKeys) > 0 { + for iNdEx := len(x.GenesisKeys) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.GenesisKeys[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...) + } 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().(*GenesisState) + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: 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 GenesisKeys", 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.GenesisKeys = append(x.GenesisKeys, &GenesisKey{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GenesisKeys[len(x.GenesisKeys)-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_GenesisKey protoreflect.MessageDescriptor + fd_GenesisKey_validator_address protoreflect.FieldDescriptor + fd_GenesisKey_bls_key protoreflect.FieldDescriptor + fd_GenesisKey_val_pubkey protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_genesis_proto_init() + md_GenesisKey = File_cosmos_bls_v1_genesis_proto.Messages().ByName("GenesisKey") + fd_GenesisKey_validator_address = md_GenesisKey.Fields().ByName("validator_address") + fd_GenesisKey_bls_key = md_GenesisKey.Fields().ByName("bls_key") + fd_GenesisKey_val_pubkey = md_GenesisKey.Fields().ByName("val_pubkey") +} + +var _ protoreflect.Message = (*fastReflection_GenesisKey)(nil) + +type fastReflection_GenesisKey GenesisKey + +func (x *GenesisKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisKey)(x) +} + +func (x *GenesisKey) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_genesis_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_GenesisKey_messageType fastReflection_GenesisKey_messageType +var _ protoreflect.MessageType = fastReflection_GenesisKey_messageType{} + +type fastReflection_GenesisKey_messageType struct{} + +func (x fastReflection_GenesisKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisKey)(nil) +} +func (x fastReflection_GenesisKey_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisKey) +} +func (x fastReflection_GenesisKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisKey +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisKey) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisKey +} + +// 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_GenesisKey) Type() protoreflect.MessageType { + return _fastReflection_GenesisKey_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisKey) New() protoreflect.Message { + return new(fastReflection_GenesisKey) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisKey) Interface() protoreflect.ProtoMessage { + return (*GenesisKey)(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_GenesisKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ValidatorAddress != "" { + value := protoreflect.ValueOfString(x.ValidatorAddress) + if !f(fd_GenesisKey_validator_address, value) { + return + } + } + if x.BlsKey != nil { + value := protoreflect.ValueOfMessage(x.BlsKey.ProtoReflect()) + if !f(fd_GenesisKey_bls_key, value) { + return + } + } + if x.ValPubkey != nil { + value := protoreflect.ValueOfMessage(x.ValPubkey.ProtoReflect()) + if !f(fd_GenesisKey_val_pubkey, 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_GenesisKey) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.GenesisKey.validator_address": + return x.ValidatorAddress != "" + case "cosmos.bls.v1.GenesisKey.bls_key": + return x.BlsKey != nil + case "cosmos.bls.v1.GenesisKey.val_pubkey": + return x.ValPubkey != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisKey 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_GenesisKey) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.GenesisKey.validator_address": + x.ValidatorAddress = "" + case "cosmos.bls.v1.GenesisKey.bls_key": + x.BlsKey = nil + case "cosmos.bls.v1.GenesisKey.val_pubkey": + x.ValPubkey = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisKey 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_GenesisKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.GenesisKey.validator_address": + value := x.ValidatorAddress + return protoreflect.ValueOfString(value) + case "cosmos.bls.v1.GenesisKey.bls_key": + value := x.BlsKey + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.bls.v1.GenesisKey.val_pubkey": + value := x.ValPubkey + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisKey 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_GenesisKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.GenesisKey.validator_address": + x.ValidatorAddress = value.Interface().(string) + case "cosmos.bls.v1.GenesisKey.bls_key": + x.BlsKey = value.Message().Interface().(*BlsKey) + case "cosmos.bls.v1.GenesisKey.val_pubkey": + x.ValPubkey = value.Message().Interface().(*ed25519.PubKey) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisKey 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_GenesisKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.GenesisKey.bls_key": + if x.BlsKey == nil { + x.BlsKey = new(BlsKey) + } + return protoreflect.ValueOfMessage(x.BlsKey.ProtoReflect()) + case "cosmos.bls.v1.GenesisKey.val_pubkey": + if x.ValPubkey == nil { + x.ValPubkey = new(ed25519.PubKey) + } + return protoreflect.ValueOfMessage(x.ValPubkey.ProtoReflect()) + case "cosmos.bls.v1.GenesisKey.validator_address": + panic(fmt.Errorf("field validator_address of message cosmos.bls.v1.GenesisKey is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisKey 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_GenesisKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.GenesisKey.validator_address": + return protoreflect.ValueOfString("") + case "cosmos.bls.v1.GenesisKey.bls_key": + m := new(BlsKey) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "cosmos.bls.v1.GenesisKey.val_pubkey": + m := new(ed25519.PubKey) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.GenesisKey")) + } + panic(fmt.Errorf("message cosmos.bls.v1.GenesisKey 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_GenesisKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.GenesisKey", 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_GenesisKey) 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_GenesisKey) 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_GenesisKey) 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_GenesisKey) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisKey) + 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.ValidatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlsKey != nil { + l = options.Size(x.BlsKey) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ValPubkey != nil { + l = options.Size(x.ValPubkey) + 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().(*GenesisKey) + 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.ValPubkey != nil { + encoded, err := options.Marshal(x.ValPubkey) + 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.BlsKey != nil { + encoded, err := options.Marshal(x.BlsKey) + 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.ValidatorAddress) > 0 { + i -= len(x.ValidatorAddress) + copy(dAtA[i:], x.ValidatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ValidatorAddress))) + 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().(*GenesisKey) + 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: GenesisKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisKey: 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 ValidatorAddress", 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.ValidatorAddress = 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 BlsKey", 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.BlsKey == nil { + x.BlsKey = &BlsKey{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlsKey); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValPubkey", 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.ValPubkey == nil { + x.ValPubkey = &ed25519.PubKey{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ValPubkey); 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cosmos/bls/v1/genesis.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// GenesisState defines the bls module's genesis state. +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // genesis_keys defines the public keys for the genesis validators + GenesisKeys []*GenesisKey `protobuf:"bytes,1,rep,name=genesis_keys,json=genesisKeys,proto3" json:"genesis_keys,omitempty"` +} + +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_genesis_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState) ProtoMessage() {} + +// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. +func (*GenesisState) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_genesis_proto_rawDescGZIP(), []int{0} +} + +func (x *GenesisState) GetGenesisKeys() []*GenesisKey { + if x != nil { + return x.GenesisKeys + } + return nil +} + +// GenesisKey defines public key information about the genesis validators +type GenesisKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // validator_address is the address corresponding to a validator + ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + // bls_key defines the BLS key of the validator at genesis + BlsKey *BlsKey `protobuf:"bytes,2,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` + // val_pubkey defines the ed25519 public key of the validator at genesis + ValPubkey *ed25519.PubKey `protobuf:"bytes,3,opt,name=val_pubkey,json=valPubkey,proto3" json:"val_pubkey,omitempty"` +} + +func (x *GenesisKey) Reset() { + *x = GenesisKey{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_genesis_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisKey) ProtoMessage() {} + +// Deprecated: Use GenesisKey.ProtoReflect.Descriptor instead. +func (*GenesisKey) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_genesis_proto_rawDescGZIP(), []int{1} +} + +func (x *GenesisKey) GetValidatorAddress() string { + if x != nil { + return x.ValidatorAddress + } + return "" +} + +func (x *GenesisKey) GetBlsKey() *BlsKey { + if x != nil { + return x.BlsKey + } + return nil +} + +func (x *GenesisKey) GetValPubkey() *ed25519.PubKey { + if x != nil { + return x.ValPubkey + } + return nil +} + +var File_cosmos_bls_v1_genesis_proto protoreflect.FileDescriptor + +var file_cosmos_bls_v1_genesis_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x65, 0x64, 0x32, 0x35, + 0x35, 0x31, 0x39, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6c, + 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4c, 0x0a, 0x0c, 0x47, + 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x67, + 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x4b, 0x65, 0x79, 0x52, 0x0b, 0x67, 0x65, + 0x6e, 0x65, 0x73, 0x69, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x22, 0xa7, 0x01, 0x0a, 0x0a, 0x47, 0x65, + 0x6e, 0x65, 0x73, 0x69, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x0a, 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x62, + 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x3c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x5f, 0x70, 0x75, 0x62, + 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31, + 0x39, 0x2e, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x50, 0x75, 0x62, + 0x6b, 0x65, 0x79, 0x42, 0x9d, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, + 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 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, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x6c, 0x73, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x43, 0x42, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, + 0x6c, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, + 0x6c, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, + 0x6c, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x6c, 0x73, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cosmos_bls_v1_genesis_proto_rawDescOnce sync.Once + file_cosmos_bls_v1_genesis_proto_rawDescData = file_cosmos_bls_v1_genesis_proto_rawDesc +) + +func file_cosmos_bls_v1_genesis_proto_rawDescGZIP() []byte { + file_cosmos_bls_v1_genesis_proto_rawDescOnce.Do(func() { + file_cosmos_bls_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_bls_v1_genesis_proto_rawDescData) + }) + return file_cosmos_bls_v1_genesis_proto_rawDescData +} + +var file_cosmos_bls_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_cosmos_bls_v1_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: cosmos.bls.v1.GenesisState + (*GenesisKey)(nil), // 1: cosmos.bls.v1.GenesisKey + (*BlsKey)(nil), // 2: cosmos.bls.v1.BlsKey + (*ed25519.PubKey)(nil), // 3: cosmos.crypto.ed25519.PubKey +} +var file_cosmos_bls_v1_genesis_proto_depIdxs = []int32{ + 1, // 0: cosmos.bls.v1.GenesisState.genesis_keys:type_name -> cosmos.bls.v1.GenesisKey + 2, // 1: cosmos.bls.v1.GenesisKey.bls_key:type_name -> cosmos.bls.v1.BlsKey + 3, // 2: cosmos.bls.v1.GenesisKey.val_pubkey:type_name -> cosmos.crypto.ed25519.PubKey + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_cosmos_bls_v1_genesis_proto_init() } +func file_cosmos_bls_v1_genesis_proto_init() { + if File_cosmos_bls_v1_genesis_proto != nil { + return + } + file_cosmos_bls_v1_bls_key_proto_init() + if !protoimpl.UnsafeEnabled { + file_cosmos_bls_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisKey); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_bls_v1_genesis_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cosmos_bls_v1_genesis_proto_goTypes, + DependencyIndexes: file_cosmos_bls_v1_genesis_proto_depIdxs, + MessageInfos: file_cosmos_bls_v1_genesis_proto_msgTypes, + }.Build() + File_cosmos_bls_v1_genesis_proto = out.File + file_cosmos_bls_v1_genesis_proto_rawDesc = nil + file_cosmos_bls_v1_genesis_proto_goTypes = nil + file_cosmos_bls_v1_genesis_proto_depIdxs = nil +} diff --git a/api/cosmos/bls/v1/query.pulsar.go b/api/cosmos/bls/v1/query.pulsar.go new file mode 100644 index 00000000000..c09879ab709 --- /dev/null +++ b/api/cosmos/bls/v1/query.pulsar.go @@ -0,0 +1,7849 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package blsv1 + +import ( + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sort "sort" + sync "sync" +) + +var ( + md_QueryRawCheckpointListRequest protoreflect.MessageDescriptor + fd_QueryRawCheckpointListRequest_status protoreflect.FieldDescriptor + fd_QueryRawCheckpointListRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryRawCheckpointListRequest = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryRawCheckpointListRequest") + fd_QueryRawCheckpointListRequest_status = md_QueryRawCheckpointListRequest.Fields().ByName("status") + fd_QueryRawCheckpointListRequest_pagination = md_QueryRawCheckpointListRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryRawCheckpointListRequest)(nil) + +type fastReflection_QueryRawCheckpointListRequest QueryRawCheckpointListRequest + +func (x *QueryRawCheckpointListRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointListRequest)(x) +} + +func (x *QueryRawCheckpointListRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[0] + 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_QueryRawCheckpointListRequest_messageType fastReflection_QueryRawCheckpointListRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRawCheckpointListRequest_messageType{} + +type fastReflection_QueryRawCheckpointListRequest_messageType struct{} + +func (x fastReflection_QueryRawCheckpointListRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointListRequest)(nil) +} +func (x fastReflection_QueryRawCheckpointListRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointListRequest) +} +func (x fastReflection_QueryRawCheckpointListRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointListRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRawCheckpointListRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointListRequest +} + +// 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_QueryRawCheckpointListRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRawCheckpointListRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRawCheckpointListRequest) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointListRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRawCheckpointListRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRawCheckpointListRequest)(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_QueryRawCheckpointListRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Status != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) + if !f(fd_QueryRawCheckpointListRequest_status, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryRawCheckpointListRequest_pagination, 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_QueryRawCheckpointListRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListRequest.status": + return x.Status != 0 + case "cosmos.bls.v1.QueryRawCheckpointListRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListRequest 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_QueryRawCheckpointListRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListRequest.status": + x.Status = 0 + case "cosmos.bls.v1.QueryRawCheckpointListRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListRequest 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_QueryRawCheckpointListRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListRequest.status": + value := x.Status + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "cosmos.bls.v1.QueryRawCheckpointListRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListRequest 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_QueryRawCheckpointListRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListRequest.status": + x.Status = (CheckpointStatus)(value.Enum()) + case "cosmos.bls.v1.QueryRawCheckpointListRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListRequest 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_QueryRawCheckpointListRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "cosmos.bls.v1.QueryRawCheckpointListRequest.status": + panic(fmt.Errorf("field status of message cosmos.bls.v1.QueryRawCheckpointListRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListRequest 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_QueryRawCheckpointListRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListRequest.status": + return protoreflect.ValueOfEnum(0) + case "cosmos.bls.v1.QueryRawCheckpointListRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListRequest 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_QueryRawCheckpointListRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryRawCheckpointListRequest", 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_QueryRawCheckpointListRequest) 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_QueryRawCheckpointListRequest) 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_QueryRawCheckpointListRequest) 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_QueryRawCheckpointListRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRawCheckpointListRequest) + 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.Status != 0 { + n += 1 + runtime.Sov(uint64(x.Status)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryRawCheckpointListRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.Status != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) + 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().(*QueryRawCheckpointListRequest) + 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: QueryRawCheckpointListRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRawCheckpointListRequest: 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 Status", wireType) + } + x.Status = 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.Status |= CheckpointStatus(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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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 = (*_QueryRawCheckpointListResponse_1_list)(nil) + +type _QueryRawCheckpointListResponse_1_list struct { + list *[]*RawCheckpointWithMeta +} + +func (x *_QueryRawCheckpointListResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryRawCheckpointListResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryRawCheckpointListResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RawCheckpointWithMeta) + (*x.list)[i] = concreteValue +} + +func (x *_QueryRawCheckpointListResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RawCheckpointWithMeta) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryRawCheckpointListResponse_1_list) AppendMutable() protoreflect.Value { + v := new(RawCheckpointWithMeta) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryRawCheckpointListResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryRawCheckpointListResponse_1_list) NewElement() protoreflect.Value { + v := new(RawCheckpointWithMeta) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryRawCheckpointListResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryRawCheckpointListResponse protoreflect.MessageDescriptor + fd_QueryRawCheckpointListResponse_raw_checkpoints protoreflect.FieldDescriptor + fd_QueryRawCheckpointListResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryRawCheckpointListResponse = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryRawCheckpointListResponse") + fd_QueryRawCheckpointListResponse_raw_checkpoints = md_QueryRawCheckpointListResponse.Fields().ByName("raw_checkpoints") + fd_QueryRawCheckpointListResponse_pagination = md_QueryRawCheckpointListResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryRawCheckpointListResponse)(nil) + +type fastReflection_QueryRawCheckpointListResponse QueryRawCheckpointListResponse + +func (x *QueryRawCheckpointListResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointListResponse)(x) +} + +func (x *QueryRawCheckpointListResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_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_QueryRawCheckpointListResponse_messageType fastReflection_QueryRawCheckpointListResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRawCheckpointListResponse_messageType{} + +type fastReflection_QueryRawCheckpointListResponse_messageType struct{} + +func (x fastReflection_QueryRawCheckpointListResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointListResponse)(nil) +} +func (x fastReflection_QueryRawCheckpointListResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointListResponse) +} +func (x fastReflection_QueryRawCheckpointListResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointListResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRawCheckpointListResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointListResponse +} + +// 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_QueryRawCheckpointListResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRawCheckpointListResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRawCheckpointListResponse) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointListResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRawCheckpointListResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRawCheckpointListResponse)(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_QueryRawCheckpointListResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.RawCheckpoints) != 0 { + value := protoreflect.ValueOfList(&_QueryRawCheckpointListResponse_1_list{list: &x.RawCheckpoints}) + if !f(fd_QueryRawCheckpointListResponse_raw_checkpoints, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryRawCheckpointListResponse_pagination, 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_QueryRawCheckpointListResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListResponse.raw_checkpoints": + return len(x.RawCheckpoints) != 0 + case "cosmos.bls.v1.QueryRawCheckpointListResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListResponse 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_QueryRawCheckpointListResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListResponse.raw_checkpoints": + x.RawCheckpoints = nil + case "cosmos.bls.v1.QueryRawCheckpointListResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListResponse 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_QueryRawCheckpointListResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListResponse.raw_checkpoints": + if len(x.RawCheckpoints) == 0 { + return protoreflect.ValueOfList(&_QueryRawCheckpointListResponse_1_list{}) + } + listValue := &_QueryRawCheckpointListResponse_1_list{list: &x.RawCheckpoints} + return protoreflect.ValueOfList(listValue) + case "cosmos.bls.v1.QueryRawCheckpointListResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListResponse 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_QueryRawCheckpointListResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListResponse.raw_checkpoints": + lv := value.List() + clv := lv.(*_QueryRawCheckpointListResponse_1_list) + x.RawCheckpoints = *clv.list + case "cosmos.bls.v1.QueryRawCheckpointListResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListResponse 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_QueryRawCheckpointListResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListResponse.raw_checkpoints": + if x.RawCheckpoints == nil { + x.RawCheckpoints = []*RawCheckpointWithMeta{} + } + value := &_QueryRawCheckpointListResponse_1_list{list: &x.RawCheckpoints} + return protoreflect.ValueOfList(value) + case "cosmos.bls.v1.QueryRawCheckpointListResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListResponse 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_QueryRawCheckpointListResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointListResponse.raw_checkpoints": + list := []*RawCheckpointWithMeta{} + return protoreflect.ValueOfList(&_QueryRawCheckpointListResponse_1_list{list: &list}) + case "cosmos.bls.v1.QueryRawCheckpointListResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointListResponse 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_QueryRawCheckpointListResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryRawCheckpointListResponse", 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_QueryRawCheckpointListResponse) 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_QueryRawCheckpointListResponse) 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_QueryRawCheckpointListResponse) 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_QueryRawCheckpointListResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRawCheckpointListResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.RawCheckpoints) > 0 { + for _, e := range x.RawCheckpoints { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryRawCheckpointListResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.RawCheckpoints) > 0 { + for iNdEx := len(x.RawCheckpoints) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.RawCheckpoints[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...) + } 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().(*QueryRawCheckpointListResponse) + 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: QueryRawCheckpointListResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRawCheckpointListResponse: 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 RawCheckpoints", 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.RawCheckpoints = append(x.RawCheckpoints, &RawCheckpointWithMeta{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RawCheckpoints[len(x.RawCheckpoints)-1]); 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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_QueryRawCheckpointRequest protoreflect.MessageDescriptor + fd_QueryRawCheckpointRequest_epoch_num protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryRawCheckpointRequest = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryRawCheckpointRequest") + fd_QueryRawCheckpointRequest_epoch_num = md_QueryRawCheckpointRequest.Fields().ByName("epoch_num") +} + +var _ protoreflect.Message = (*fastReflection_QueryRawCheckpointRequest)(nil) + +type fastReflection_QueryRawCheckpointRequest QueryRawCheckpointRequest + +func (x *QueryRawCheckpointRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointRequest)(x) +} + +func (x *QueryRawCheckpointRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_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_QueryRawCheckpointRequest_messageType fastReflection_QueryRawCheckpointRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRawCheckpointRequest_messageType{} + +type fastReflection_QueryRawCheckpointRequest_messageType struct{} + +func (x fastReflection_QueryRawCheckpointRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointRequest)(nil) +} +func (x fastReflection_QueryRawCheckpointRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointRequest) +} +func (x fastReflection_QueryRawCheckpointRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRawCheckpointRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointRequest +} + +// 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_QueryRawCheckpointRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRawCheckpointRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRawCheckpointRequest) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRawCheckpointRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRawCheckpointRequest)(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_QueryRawCheckpointRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNum != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNum) + if !f(fd_QueryRawCheckpointRequest_epoch_num, 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_QueryRawCheckpointRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointRequest.epoch_num": + return x.EpochNum != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointRequest 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_QueryRawCheckpointRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointRequest.epoch_num": + x.EpochNum = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointRequest 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_QueryRawCheckpointRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointRequest.epoch_num": + value := x.EpochNum + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointRequest 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_QueryRawCheckpointRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointRequest.epoch_num": + x.EpochNum = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointRequest 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_QueryRawCheckpointRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointRequest.epoch_num": + panic(fmt.Errorf("field epoch_num of message cosmos.bls.v1.QueryRawCheckpointRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointRequest 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_QueryRawCheckpointRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointRequest.epoch_num": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointRequest 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_QueryRawCheckpointRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryRawCheckpointRequest", 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_QueryRawCheckpointRequest) 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_QueryRawCheckpointRequest) 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_QueryRawCheckpointRequest) 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_QueryRawCheckpointRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRawCheckpointRequest) + 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.EpochNum != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNum)) + } + 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().(*QueryRawCheckpointRequest) + 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.EpochNum != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNum)) + 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().(*QueryRawCheckpointRequest) + 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: QueryRawCheckpointRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRawCheckpointRequest: 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 EpochNum", wireType) + } + x.EpochNum = 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.EpochNum |= 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_QueryRawCheckpointResponse protoreflect.MessageDescriptor + fd_QueryRawCheckpointResponse_raw_checkpoint protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryRawCheckpointResponse = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryRawCheckpointResponse") + fd_QueryRawCheckpointResponse_raw_checkpoint = md_QueryRawCheckpointResponse.Fields().ByName("raw_checkpoint") +} + +var _ protoreflect.Message = (*fastReflection_QueryRawCheckpointResponse)(nil) + +type fastReflection_QueryRawCheckpointResponse QueryRawCheckpointResponse + +func (x *QueryRawCheckpointResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointResponse)(x) +} + +func (x *QueryRawCheckpointResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_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_QueryRawCheckpointResponse_messageType fastReflection_QueryRawCheckpointResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRawCheckpointResponse_messageType{} + +type fastReflection_QueryRawCheckpointResponse_messageType struct{} + +func (x fastReflection_QueryRawCheckpointResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointResponse)(nil) +} +func (x fastReflection_QueryRawCheckpointResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointResponse) +} +func (x fastReflection_QueryRawCheckpointResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRawCheckpointResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointResponse +} + +// 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_QueryRawCheckpointResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRawCheckpointResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRawCheckpointResponse) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRawCheckpointResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRawCheckpointResponse)(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_QueryRawCheckpointResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RawCheckpoint != nil { + value := protoreflect.ValueOfMessage(x.RawCheckpoint.ProtoReflect()) + if !f(fd_QueryRawCheckpointResponse_raw_checkpoint, 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_QueryRawCheckpointResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointResponse.raw_checkpoint": + return x.RawCheckpoint != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointResponse 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_QueryRawCheckpointResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointResponse.raw_checkpoint": + x.RawCheckpoint = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointResponse 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_QueryRawCheckpointResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointResponse.raw_checkpoint": + value := x.RawCheckpoint + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointResponse 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_QueryRawCheckpointResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointResponse.raw_checkpoint": + x.RawCheckpoint = value.Message().Interface().(*RawCheckpointWithMeta) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointResponse 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_QueryRawCheckpointResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointResponse.raw_checkpoint": + if x.RawCheckpoint == nil { + x.RawCheckpoint = new(RawCheckpointWithMeta) + } + return protoreflect.ValueOfMessage(x.RawCheckpoint.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointResponse 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_QueryRawCheckpointResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointResponse.raw_checkpoint": + m := new(RawCheckpointWithMeta) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointResponse 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_QueryRawCheckpointResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryRawCheckpointResponse", 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_QueryRawCheckpointResponse) 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_QueryRawCheckpointResponse) 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_QueryRawCheckpointResponse) 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_QueryRawCheckpointResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRawCheckpointResponse) + 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.RawCheckpoint != nil { + l = options.Size(x.RawCheckpoint) + 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().(*QueryRawCheckpointResponse) + 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.RawCheckpoint != nil { + encoded, err := options.Marshal(x.RawCheckpoint) + 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...) + } 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().(*QueryRawCheckpointResponse) + 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: QueryRawCheckpointResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRawCheckpointResponse: 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 RawCheckpoint", 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.RawCheckpoint == nil { + x.RawCheckpoint = &RawCheckpointWithMeta{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RawCheckpoint); 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_QueryRawCheckpointsRequest protoreflect.MessageDescriptor + fd_QueryRawCheckpointsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryRawCheckpointsRequest = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryRawCheckpointsRequest") + fd_QueryRawCheckpointsRequest_pagination = md_QueryRawCheckpointsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryRawCheckpointsRequest)(nil) + +type fastReflection_QueryRawCheckpointsRequest QueryRawCheckpointsRequest + +func (x *QueryRawCheckpointsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointsRequest)(x) +} + +func (x *QueryRawCheckpointsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_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_QueryRawCheckpointsRequest_messageType fastReflection_QueryRawCheckpointsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRawCheckpointsRequest_messageType{} + +type fastReflection_QueryRawCheckpointsRequest_messageType struct{} + +func (x fastReflection_QueryRawCheckpointsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointsRequest)(nil) +} +func (x fastReflection_QueryRawCheckpointsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointsRequest) +} +func (x fastReflection_QueryRawCheckpointsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRawCheckpointsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointsRequest +} + +// 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_QueryRawCheckpointsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRawCheckpointsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRawCheckpointsRequest) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRawCheckpointsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRawCheckpointsRequest)(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_QueryRawCheckpointsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryRawCheckpointsRequest_pagination, 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_QueryRawCheckpointsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsRequest 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_QueryRawCheckpointsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsRequest 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_QueryRawCheckpointsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsRequest 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_QueryRawCheckpointsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsRequest 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_QueryRawCheckpointsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsRequest 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_QueryRawCheckpointsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsRequest 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_QueryRawCheckpointsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryRawCheckpointsRequest", 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_QueryRawCheckpointsRequest) 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_QueryRawCheckpointsRequest) 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_QueryRawCheckpointsRequest) 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_QueryRawCheckpointsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRawCheckpointsRequest) + 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.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryRawCheckpointsRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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...) + } 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().(*QueryRawCheckpointsRequest) + 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: QueryRawCheckpointsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRawCheckpointsRequest: 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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 = (*_QueryRawCheckpointsResponse_1_list)(nil) + +type _QueryRawCheckpointsResponse_1_list struct { + list *[]*RawCheckpointWithMeta +} + +func (x *_QueryRawCheckpointsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryRawCheckpointsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryRawCheckpointsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RawCheckpointWithMeta) + (*x.list)[i] = concreteValue +} + +func (x *_QueryRawCheckpointsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RawCheckpointWithMeta) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryRawCheckpointsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(RawCheckpointWithMeta) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryRawCheckpointsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryRawCheckpointsResponse_1_list) NewElement() protoreflect.Value { + v := new(RawCheckpointWithMeta) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryRawCheckpointsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryRawCheckpointsResponse protoreflect.MessageDescriptor + fd_QueryRawCheckpointsResponse_raw_checkpoints protoreflect.FieldDescriptor + fd_QueryRawCheckpointsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryRawCheckpointsResponse = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryRawCheckpointsResponse") + fd_QueryRawCheckpointsResponse_raw_checkpoints = md_QueryRawCheckpointsResponse.Fields().ByName("raw_checkpoints") + fd_QueryRawCheckpointsResponse_pagination = md_QueryRawCheckpointsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryRawCheckpointsResponse)(nil) + +type fastReflection_QueryRawCheckpointsResponse QueryRawCheckpointsResponse + +func (x *QueryRawCheckpointsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointsResponse)(x) +} + +func (x *QueryRawCheckpointsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_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_QueryRawCheckpointsResponse_messageType fastReflection_QueryRawCheckpointsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRawCheckpointsResponse_messageType{} + +type fastReflection_QueryRawCheckpointsResponse_messageType struct{} + +func (x fastReflection_QueryRawCheckpointsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRawCheckpointsResponse)(nil) +} +func (x fastReflection_QueryRawCheckpointsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointsResponse) +} +func (x fastReflection_QueryRawCheckpointsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRawCheckpointsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRawCheckpointsResponse +} + +// 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_QueryRawCheckpointsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRawCheckpointsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRawCheckpointsResponse) New() protoreflect.Message { + return new(fastReflection_QueryRawCheckpointsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRawCheckpointsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRawCheckpointsResponse)(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_QueryRawCheckpointsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.RawCheckpoints) != 0 { + value := protoreflect.ValueOfList(&_QueryRawCheckpointsResponse_1_list{list: &x.RawCheckpoints}) + if !f(fd_QueryRawCheckpointsResponse_raw_checkpoints, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryRawCheckpointsResponse_pagination, 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_QueryRawCheckpointsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsResponse.raw_checkpoints": + return len(x.RawCheckpoints) != 0 + case "cosmos.bls.v1.QueryRawCheckpointsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsResponse 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_QueryRawCheckpointsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsResponse.raw_checkpoints": + x.RawCheckpoints = nil + case "cosmos.bls.v1.QueryRawCheckpointsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsResponse 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_QueryRawCheckpointsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsResponse.raw_checkpoints": + if len(x.RawCheckpoints) == 0 { + return protoreflect.ValueOfList(&_QueryRawCheckpointsResponse_1_list{}) + } + listValue := &_QueryRawCheckpointsResponse_1_list{list: &x.RawCheckpoints} + return protoreflect.ValueOfList(listValue) + case "cosmos.bls.v1.QueryRawCheckpointsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsResponse 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_QueryRawCheckpointsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsResponse.raw_checkpoints": + lv := value.List() + clv := lv.(*_QueryRawCheckpointsResponse_1_list) + x.RawCheckpoints = *clv.list + case "cosmos.bls.v1.QueryRawCheckpointsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsResponse 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_QueryRawCheckpointsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsResponse.raw_checkpoints": + if x.RawCheckpoints == nil { + x.RawCheckpoints = []*RawCheckpointWithMeta{} + } + value := &_QueryRawCheckpointsResponse_1_list{list: &x.RawCheckpoints} + return protoreflect.ValueOfList(value) + case "cosmos.bls.v1.QueryRawCheckpointsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsResponse 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_QueryRawCheckpointsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRawCheckpointsResponse.raw_checkpoints": + list := []*RawCheckpointWithMeta{} + return protoreflect.ValueOfList(&_QueryRawCheckpointsResponse_1_list{list: &list}) + case "cosmos.bls.v1.QueryRawCheckpointsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRawCheckpointsResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRawCheckpointsResponse 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_QueryRawCheckpointsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryRawCheckpointsResponse", 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_QueryRawCheckpointsResponse) 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_QueryRawCheckpointsResponse) 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_QueryRawCheckpointsResponse) 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_QueryRawCheckpointsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRawCheckpointsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.RawCheckpoints) > 0 { + for _, e := range x.RawCheckpoints { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryRawCheckpointsResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.RawCheckpoints) > 0 { + for iNdEx := len(x.RawCheckpoints) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.RawCheckpoints[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...) + } 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().(*QueryRawCheckpointsResponse) + 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: QueryRawCheckpointsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRawCheckpointsResponse: 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 RawCheckpoints", 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.RawCheckpoints = append(x.RawCheckpoints, &RawCheckpointWithMeta{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RawCheckpoints[len(x.RawCheckpoints)-1]); 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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_QueryBlsPublicKeyListRequest protoreflect.MessageDescriptor + fd_QueryBlsPublicKeyListRequest_epoch_num protoreflect.FieldDescriptor + fd_QueryBlsPublicKeyListRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryBlsPublicKeyListRequest = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryBlsPublicKeyListRequest") + fd_QueryBlsPublicKeyListRequest_epoch_num = md_QueryBlsPublicKeyListRequest.Fields().ByName("epoch_num") + fd_QueryBlsPublicKeyListRequest_pagination = md_QueryBlsPublicKeyListRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryBlsPublicKeyListRequest)(nil) + +type fastReflection_QueryBlsPublicKeyListRequest QueryBlsPublicKeyListRequest + +func (x *QueryBlsPublicKeyListRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryBlsPublicKeyListRequest)(x) +} + +func (x *QueryBlsPublicKeyListRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[6] + 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_QueryBlsPublicKeyListRequest_messageType fastReflection_QueryBlsPublicKeyListRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryBlsPublicKeyListRequest_messageType{} + +type fastReflection_QueryBlsPublicKeyListRequest_messageType struct{} + +func (x fastReflection_QueryBlsPublicKeyListRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryBlsPublicKeyListRequest)(nil) +} +func (x fastReflection_QueryBlsPublicKeyListRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryBlsPublicKeyListRequest) +} +func (x fastReflection_QueryBlsPublicKeyListRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBlsPublicKeyListRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryBlsPublicKeyListRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBlsPublicKeyListRequest +} + +// 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_QueryBlsPublicKeyListRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryBlsPublicKeyListRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryBlsPublicKeyListRequest) New() protoreflect.Message { + return new(fastReflection_QueryBlsPublicKeyListRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryBlsPublicKeyListRequest) Interface() protoreflect.ProtoMessage { + return (*QueryBlsPublicKeyListRequest)(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_QueryBlsPublicKeyListRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNum != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNum) + if !f(fd_QueryBlsPublicKeyListRequest_epoch_num, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryBlsPublicKeyListRequest_pagination, 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_QueryBlsPublicKeyListRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.epoch_num": + return x.EpochNum != uint64(0) + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListRequest 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_QueryBlsPublicKeyListRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.epoch_num": + x.EpochNum = uint64(0) + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListRequest 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_QueryBlsPublicKeyListRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.epoch_num": + value := x.EpochNum + return protoreflect.ValueOfUint64(value) + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListRequest 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_QueryBlsPublicKeyListRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.epoch_num": + x.EpochNum = value.Uint() + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListRequest 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_QueryBlsPublicKeyListRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.epoch_num": + panic(fmt.Errorf("field epoch_num of message cosmos.bls.v1.QueryBlsPublicKeyListRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListRequest 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_QueryBlsPublicKeyListRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.epoch_num": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.bls.v1.QueryBlsPublicKeyListRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListRequest 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_QueryBlsPublicKeyListRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryBlsPublicKeyListRequest", 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_QueryBlsPublicKeyListRequest) 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_QueryBlsPublicKeyListRequest) 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_QueryBlsPublicKeyListRequest) 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_QueryBlsPublicKeyListRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryBlsPublicKeyListRequest) + 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.EpochNum != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNum)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryBlsPublicKeyListRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.EpochNum != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNum)) + 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().(*QueryBlsPublicKeyListRequest) + 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: QueryBlsPublicKeyListRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryBlsPublicKeyListRequest: 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 EpochNum", wireType) + } + x.EpochNum = 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.EpochNum |= 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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 = (*_QueryBlsPublicKeyListResponse_1_list)(nil) + +type _QueryBlsPublicKeyListResponse_1_list struct { + list *[]*ValidatorWithBlsKey +} + +func (x *_QueryBlsPublicKeyListResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryBlsPublicKeyListResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryBlsPublicKeyListResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ValidatorWithBlsKey) + (*x.list)[i] = concreteValue +} + +func (x *_QueryBlsPublicKeyListResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ValidatorWithBlsKey) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryBlsPublicKeyListResponse_1_list) AppendMutable() protoreflect.Value { + v := new(ValidatorWithBlsKey) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryBlsPublicKeyListResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryBlsPublicKeyListResponse_1_list) NewElement() protoreflect.Value { + v := new(ValidatorWithBlsKey) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryBlsPublicKeyListResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryBlsPublicKeyListResponse protoreflect.MessageDescriptor + fd_QueryBlsPublicKeyListResponse_validator_with_bls_keys protoreflect.FieldDescriptor + fd_QueryBlsPublicKeyListResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryBlsPublicKeyListResponse = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryBlsPublicKeyListResponse") + fd_QueryBlsPublicKeyListResponse_validator_with_bls_keys = md_QueryBlsPublicKeyListResponse.Fields().ByName("validator_with_bls_keys") + fd_QueryBlsPublicKeyListResponse_pagination = md_QueryBlsPublicKeyListResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryBlsPublicKeyListResponse)(nil) + +type fastReflection_QueryBlsPublicKeyListResponse QueryBlsPublicKeyListResponse + +func (x *QueryBlsPublicKeyListResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryBlsPublicKeyListResponse)(x) +} + +func (x *QueryBlsPublicKeyListResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[7] + 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_QueryBlsPublicKeyListResponse_messageType fastReflection_QueryBlsPublicKeyListResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryBlsPublicKeyListResponse_messageType{} + +type fastReflection_QueryBlsPublicKeyListResponse_messageType struct{} + +func (x fastReflection_QueryBlsPublicKeyListResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryBlsPublicKeyListResponse)(nil) +} +func (x fastReflection_QueryBlsPublicKeyListResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryBlsPublicKeyListResponse) +} +func (x fastReflection_QueryBlsPublicKeyListResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBlsPublicKeyListResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryBlsPublicKeyListResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBlsPublicKeyListResponse +} + +// 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_QueryBlsPublicKeyListResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryBlsPublicKeyListResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryBlsPublicKeyListResponse) New() protoreflect.Message { + return new(fastReflection_QueryBlsPublicKeyListResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryBlsPublicKeyListResponse) Interface() protoreflect.ProtoMessage { + return (*QueryBlsPublicKeyListResponse)(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_QueryBlsPublicKeyListResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.ValidatorWithBlsKeys) != 0 { + value := protoreflect.ValueOfList(&_QueryBlsPublicKeyListResponse_1_list{list: &x.ValidatorWithBlsKeys}) + if !f(fd_QueryBlsPublicKeyListResponse_validator_with_bls_keys, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryBlsPublicKeyListResponse_pagination, 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_QueryBlsPublicKeyListResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.validator_with_bls_keys": + return len(x.ValidatorWithBlsKeys) != 0 + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListResponse 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_QueryBlsPublicKeyListResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.validator_with_bls_keys": + x.ValidatorWithBlsKeys = nil + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListResponse 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_QueryBlsPublicKeyListResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.validator_with_bls_keys": + if len(x.ValidatorWithBlsKeys) == 0 { + return protoreflect.ValueOfList(&_QueryBlsPublicKeyListResponse_1_list{}) + } + listValue := &_QueryBlsPublicKeyListResponse_1_list{list: &x.ValidatorWithBlsKeys} + return protoreflect.ValueOfList(listValue) + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListResponse 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_QueryBlsPublicKeyListResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.validator_with_bls_keys": + lv := value.List() + clv := lv.(*_QueryBlsPublicKeyListResponse_1_list) + x.ValidatorWithBlsKeys = *clv.list + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListResponse 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_QueryBlsPublicKeyListResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.validator_with_bls_keys": + if x.ValidatorWithBlsKeys == nil { + x.ValidatorWithBlsKeys = []*ValidatorWithBlsKey{} + } + value := &_QueryBlsPublicKeyListResponse_1_list{list: &x.ValidatorWithBlsKeys} + return protoreflect.ValueOfList(value) + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListResponse 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_QueryBlsPublicKeyListResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.validator_with_bls_keys": + list := []*ValidatorWithBlsKey{} + return protoreflect.ValueOfList(&_QueryBlsPublicKeyListResponse_1_list{list: &list}) + case "cosmos.bls.v1.QueryBlsPublicKeyListResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryBlsPublicKeyListResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryBlsPublicKeyListResponse 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_QueryBlsPublicKeyListResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryBlsPublicKeyListResponse", 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_QueryBlsPublicKeyListResponse) 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_QueryBlsPublicKeyListResponse) 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_QueryBlsPublicKeyListResponse) 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_QueryBlsPublicKeyListResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryBlsPublicKeyListResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.ValidatorWithBlsKeys) > 0 { + for _, e := range x.ValidatorWithBlsKeys { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryBlsPublicKeyListResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.ValidatorWithBlsKeys) > 0 { + for iNdEx := len(x.ValidatorWithBlsKeys) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ValidatorWithBlsKeys[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...) + } 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().(*QueryBlsPublicKeyListResponse) + 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: QueryBlsPublicKeyListResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryBlsPublicKeyListResponse: 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 ValidatorWithBlsKeys", 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.ValidatorWithBlsKeys = append(x.ValidatorWithBlsKeys, &ValidatorWithBlsKey{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ValidatorWithBlsKeys[len(x.ValidatorWithBlsKeys)-1]); 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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_QueryEpochStatusRequest protoreflect.MessageDescriptor + fd_QueryEpochStatusRequest_epoch_num protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryEpochStatusRequest = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryEpochStatusRequest") + fd_QueryEpochStatusRequest_epoch_num = md_QueryEpochStatusRequest.Fields().ByName("epoch_num") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochStatusRequest)(nil) + +type fastReflection_QueryEpochStatusRequest QueryEpochStatusRequest + +func (x *QueryEpochStatusRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochStatusRequest)(x) +} + +func (x *QueryEpochStatusRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[8] + 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_QueryEpochStatusRequest_messageType fastReflection_QueryEpochStatusRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochStatusRequest_messageType{} + +type fastReflection_QueryEpochStatusRequest_messageType struct{} + +func (x fastReflection_QueryEpochStatusRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochStatusRequest)(nil) +} +func (x fastReflection_QueryEpochStatusRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochStatusRequest) +} +func (x fastReflection_QueryEpochStatusRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochStatusRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEpochStatusRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochStatusRequest +} + +// 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_QueryEpochStatusRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochStatusRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEpochStatusRequest) New() protoreflect.Message { + return new(fastReflection_QueryEpochStatusRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEpochStatusRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEpochStatusRequest)(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_QueryEpochStatusRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNum != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNum) + if !f(fd_QueryEpochStatusRequest_epoch_num, 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_QueryEpochStatusRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryEpochStatusRequest.epoch_num": + return x.EpochNum != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusRequest 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_QueryEpochStatusRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryEpochStatusRequest.epoch_num": + x.EpochNum = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusRequest 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_QueryEpochStatusRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryEpochStatusRequest.epoch_num": + value := x.EpochNum + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusRequest 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_QueryEpochStatusRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryEpochStatusRequest.epoch_num": + x.EpochNum = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusRequest 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_QueryEpochStatusRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryEpochStatusRequest.epoch_num": + panic(fmt.Errorf("field epoch_num of message cosmos.bls.v1.QueryEpochStatusRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusRequest 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_QueryEpochStatusRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryEpochStatusRequest.epoch_num": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusRequest 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_QueryEpochStatusRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryEpochStatusRequest", 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_QueryEpochStatusRequest) 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_QueryEpochStatusRequest) 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_QueryEpochStatusRequest) 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_QueryEpochStatusRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochStatusRequest) + 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.EpochNum != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNum)) + } + 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().(*QueryEpochStatusRequest) + 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.EpochNum != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNum)) + 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().(*QueryEpochStatusRequest) + 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: QueryEpochStatusRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochStatusRequest: 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 EpochNum", wireType) + } + x.EpochNum = 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.EpochNum |= 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_QueryEpochStatusResponse protoreflect.MessageDescriptor + fd_QueryEpochStatusResponse_status protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryEpochStatusResponse = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryEpochStatusResponse") + fd_QueryEpochStatusResponse_status = md_QueryEpochStatusResponse.Fields().ByName("status") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochStatusResponse)(nil) + +type fastReflection_QueryEpochStatusResponse QueryEpochStatusResponse + +func (x *QueryEpochStatusResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochStatusResponse)(x) +} + +func (x *QueryEpochStatusResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[9] + 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_QueryEpochStatusResponse_messageType fastReflection_QueryEpochStatusResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochStatusResponse_messageType{} + +type fastReflection_QueryEpochStatusResponse_messageType struct{} + +func (x fastReflection_QueryEpochStatusResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochStatusResponse)(nil) +} +func (x fastReflection_QueryEpochStatusResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochStatusResponse) +} +func (x fastReflection_QueryEpochStatusResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochStatusResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEpochStatusResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochStatusResponse +} + +// 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_QueryEpochStatusResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochStatusResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEpochStatusResponse) New() protoreflect.Message { + return new(fastReflection_QueryEpochStatusResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEpochStatusResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEpochStatusResponse)(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_QueryEpochStatusResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Status != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) + if !f(fd_QueryEpochStatusResponse_status, 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_QueryEpochStatusResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryEpochStatusResponse.status": + return x.Status != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusResponse 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_QueryEpochStatusResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryEpochStatusResponse.status": + x.Status = 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusResponse 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_QueryEpochStatusResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryEpochStatusResponse.status": + value := x.Status + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusResponse 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_QueryEpochStatusResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryEpochStatusResponse.status": + x.Status = (CheckpointStatus)(value.Enum()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusResponse 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_QueryEpochStatusResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryEpochStatusResponse.status": + panic(fmt.Errorf("field status of message cosmos.bls.v1.QueryEpochStatusResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusResponse 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_QueryEpochStatusResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryEpochStatusResponse.status": + return protoreflect.ValueOfEnum(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryEpochStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryEpochStatusResponse 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_QueryEpochStatusResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryEpochStatusResponse", 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_QueryEpochStatusResponse) 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_QueryEpochStatusResponse) 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_QueryEpochStatusResponse) 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_QueryEpochStatusResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochStatusResponse) + 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.Status != 0 { + n += 1 + runtime.Sov(uint64(x.Status)) + } + 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().(*QueryEpochStatusResponse) + 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.Status != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) + 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().(*QueryEpochStatusResponse) + 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: QueryEpochStatusResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochStatusResponse: 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 Status", wireType) + } + x.Status = 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.Status |= CheckpointStatus(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_QueryRecentEpochStatusCountRequest protoreflect.MessageDescriptor + fd_QueryRecentEpochStatusCountRequest_epoch_count protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryRecentEpochStatusCountRequest = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryRecentEpochStatusCountRequest") + fd_QueryRecentEpochStatusCountRequest_epoch_count = md_QueryRecentEpochStatusCountRequest.Fields().ByName("epoch_count") +} + +var _ protoreflect.Message = (*fastReflection_QueryRecentEpochStatusCountRequest)(nil) + +type fastReflection_QueryRecentEpochStatusCountRequest QueryRecentEpochStatusCountRequest + +func (x *QueryRecentEpochStatusCountRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRecentEpochStatusCountRequest)(x) +} + +func (x *QueryRecentEpochStatusCountRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[10] + 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_QueryRecentEpochStatusCountRequest_messageType fastReflection_QueryRecentEpochStatusCountRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRecentEpochStatusCountRequest_messageType{} + +type fastReflection_QueryRecentEpochStatusCountRequest_messageType struct{} + +func (x fastReflection_QueryRecentEpochStatusCountRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRecentEpochStatusCountRequest)(nil) +} +func (x fastReflection_QueryRecentEpochStatusCountRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRecentEpochStatusCountRequest) +} +func (x fastReflection_QueryRecentEpochStatusCountRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRecentEpochStatusCountRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRecentEpochStatusCountRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRecentEpochStatusCountRequest +} + +// 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_QueryRecentEpochStatusCountRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRecentEpochStatusCountRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRecentEpochStatusCountRequest) New() protoreflect.Message { + return new(fastReflection_QueryRecentEpochStatusCountRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRecentEpochStatusCountRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRecentEpochStatusCountRequest)(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_QueryRecentEpochStatusCountRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochCount != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochCount) + if !f(fd_QueryRecentEpochStatusCountRequest_epoch_count, 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_QueryRecentEpochStatusCountRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountRequest.epoch_count": + return x.EpochCount != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountRequest 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_QueryRecentEpochStatusCountRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountRequest.epoch_count": + x.EpochCount = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountRequest 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_QueryRecentEpochStatusCountRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountRequest.epoch_count": + value := x.EpochCount + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountRequest 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_QueryRecentEpochStatusCountRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountRequest.epoch_count": + x.EpochCount = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountRequest 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_QueryRecentEpochStatusCountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountRequest.epoch_count": + panic(fmt.Errorf("field epoch_count of message cosmos.bls.v1.QueryRecentEpochStatusCountRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountRequest 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_QueryRecentEpochStatusCountRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountRequest.epoch_count": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountRequest 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_QueryRecentEpochStatusCountRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryRecentEpochStatusCountRequest", 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_QueryRecentEpochStatusCountRequest) 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_QueryRecentEpochStatusCountRequest) 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_QueryRecentEpochStatusCountRequest) 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_QueryRecentEpochStatusCountRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRecentEpochStatusCountRequest) + 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.EpochCount != 0 { + n += 1 + runtime.Sov(uint64(x.EpochCount)) + } + 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().(*QueryRecentEpochStatusCountRequest) + 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.EpochCount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochCount)) + 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().(*QueryRecentEpochStatusCountRequest) + 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: QueryRecentEpochStatusCountRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecentEpochStatusCountRequest: 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 EpochCount", wireType) + } + x.EpochCount = 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.EpochCount |= 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.Map = (*_QueryRecentEpochStatusCountResponse_3_map)(nil) + +type _QueryRecentEpochStatusCountResponse_3_map struct { + m *map[string]uint64 +} + +func (x *_QueryRecentEpochStatusCountResponse_3_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_QueryRecentEpochStatusCountResponse_3_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) + mapValue := protoreflect.ValueOfUint64(v) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_QueryRecentEpochStatusCountResponse_3_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.String() + concreteValue := keyUnwrapped + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_QueryRecentEpochStatusCountResponse_3_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + delete(*x.m, concreteKey) +} + +func (x *_QueryRecentEpochStatusCountResponse_3_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfUint64(v) +} + +func (x *_QueryRecentEpochStatusCountResponse_3_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + (*x.m)[concreteKey] = concreteValue +} + +func (x *_QueryRecentEpochStatusCountResponse_3_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") +} + +func (x *_QueryRecentEpochStatusCountResponse_3_map) NewValue() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) +} + +func (x *_QueryRecentEpochStatusCountResponse_3_map) IsValid() bool { + return x.m != nil +} + +var ( + md_QueryRecentEpochStatusCountResponse protoreflect.MessageDescriptor + fd_QueryRecentEpochStatusCountResponse_tip_epoch protoreflect.FieldDescriptor + fd_QueryRecentEpochStatusCountResponse_epoch_count protoreflect.FieldDescriptor + fd_QueryRecentEpochStatusCountResponse_status_count protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryRecentEpochStatusCountResponse = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryRecentEpochStatusCountResponse") + fd_QueryRecentEpochStatusCountResponse_tip_epoch = md_QueryRecentEpochStatusCountResponse.Fields().ByName("tip_epoch") + fd_QueryRecentEpochStatusCountResponse_epoch_count = md_QueryRecentEpochStatusCountResponse.Fields().ByName("epoch_count") + fd_QueryRecentEpochStatusCountResponse_status_count = md_QueryRecentEpochStatusCountResponse.Fields().ByName("status_count") +} + +var _ protoreflect.Message = (*fastReflection_QueryRecentEpochStatusCountResponse)(nil) + +type fastReflection_QueryRecentEpochStatusCountResponse QueryRecentEpochStatusCountResponse + +func (x *QueryRecentEpochStatusCountResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRecentEpochStatusCountResponse)(x) +} + +func (x *QueryRecentEpochStatusCountResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[11] + 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_QueryRecentEpochStatusCountResponse_messageType fastReflection_QueryRecentEpochStatusCountResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRecentEpochStatusCountResponse_messageType{} + +type fastReflection_QueryRecentEpochStatusCountResponse_messageType struct{} + +func (x fastReflection_QueryRecentEpochStatusCountResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRecentEpochStatusCountResponse)(nil) +} +func (x fastReflection_QueryRecentEpochStatusCountResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRecentEpochStatusCountResponse) +} +func (x fastReflection_QueryRecentEpochStatusCountResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRecentEpochStatusCountResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRecentEpochStatusCountResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRecentEpochStatusCountResponse +} + +// 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_QueryRecentEpochStatusCountResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRecentEpochStatusCountResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRecentEpochStatusCountResponse) New() protoreflect.Message { + return new(fastReflection_QueryRecentEpochStatusCountResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRecentEpochStatusCountResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRecentEpochStatusCountResponse)(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_QueryRecentEpochStatusCountResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TipEpoch != uint64(0) { + value := protoreflect.ValueOfUint64(x.TipEpoch) + if !f(fd_QueryRecentEpochStatusCountResponse_tip_epoch, value) { + return + } + } + if x.EpochCount != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochCount) + if !f(fd_QueryRecentEpochStatusCountResponse_epoch_count, value) { + return + } + } + if len(x.StatusCount) != 0 { + value := protoreflect.ValueOfMap(&_QueryRecentEpochStatusCountResponse_3_map{m: &x.StatusCount}) + if !f(fd_QueryRecentEpochStatusCountResponse_status_count, 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_QueryRecentEpochStatusCountResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.tip_epoch": + return x.TipEpoch != uint64(0) + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.epoch_count": + return x.EpochCount != uint64(0) + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.status_count": + return len(x.StatusCount) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountResponse 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_QueryRecentEpochStatusCountResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.tip_epoch": + x.TipEpoch = uint64(0) + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.epoch_count": + x.EpochCount = uint64(0) + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.status_count": + x.StatusCount = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountResponse 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_QueryRecentEpochStatusCountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.tip_epoch": + value := x.TipEpoch + return protoreflect.ValueOfUint64(value) + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.epoch_count": + value := x.EpochCount + return protoreflect.ValueOfUint64(value) + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.status_count": + if len(x.StatusCount) == 0 { + return protoreflect.ValueOfMap(&_QueryRecentEpochStatusCountResponse_3_map{}) + } + mapValue := &_QueryRecentEpochStatusCountResponse_3_map{m: &x.StatusCount} + return protoreflect.ValueOfMap(mapValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountResponse 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_QueryRecentEpochStatusCountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.tip_epoch": + x.TipEpoch = value.Uint() + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.epoch_count": + x.EpochCount = value.Uint() + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.status_count": + mv := value.Map() + cmv := mv.(*_QueryRecentEpochStatusCountResponse_3_map) + x.StatusCount = *cmv.m + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountResponse 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_QueryRecentEpochStatusCountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.status_count": + if x.StatusCount == nil { + x.StatusCount = make(map[string]uint64) + } + value := &_QueryRecentEpochStatusCountResponse_3_map{m: &x.StatusCount} + return protoreflect.ValueOfMap(value) + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.tip_epoch": + panic(fmt.Errorf("field tip_epoch of message cosmos.bls.v1.QueryRecentEpochStatusCountResponse is not mutable")) + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.epoch_count": + panic(fmt.Errorf("field epoch_count of message cosmos.bls.v1.QueryRecentEpochStatusCountResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountResponse 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_QueryRecentEpochStatusCountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.tip_epoch": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.epoch_count": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.status_count": + m := make(map[string]uint64) + return protoreflect.ValueOfMap(&_QueryRecentEpochStatusCountResponse_3_map{m: &m}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryRecentEpochStatusCountResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryRecentEpochStatusCountResponse 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_QueryRecentEpochStatusCountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryRecentEpochStatusCountResponse", 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_QueryRecentEpochStatusCountResponse) 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_QueryRecentEpochStatusCountResponse) 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_QueryRecentEpochStatusCountResponse) 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_QueryRecentEpochStatusCountResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRecentEpochStatusCountResponse) + 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.TipEpoch != 0 { + n += 1 + runtime.Sov(uint64(x.TipEpoch)) + } + if x.EpochCount != 0 { + n += 1 + runtime.Sov(uint64(x.EpochCount)) + } + if len(x.StatusCount) > 0 { + SiZeMaP := func(k string, v uint64) { + mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + runtime.Sov(uint64(v)) + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]string, 0, len(x.StatusCount)) + for k := range x.StatusCount { + sortme = append(sortme, k) + } + sort.Strings(sortme) + for _, k := range sortme { + v := x.StatusCount[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.StatusCount { + SiZeMaP(k, v) + } + } + } + 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().(*QueryRecentEpochStatusCountResponse) + 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.StatusCount) > 0 { + MaRsHaLmAp := func(k string, v uint64) (protoiface.MarshalOutput, error) { + baseI := i + i = runtime.EncodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + i -= len(k) + copy(dAtA[i:], k) + i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForStatusCount := make([]string, 0, len(x.StatusCount)) + for k := range x.StatusCount { + keysForStatusCount = append(keysForStatusCount, string(k)) + } + sort.Slice(keysForStatusCount, func(i, j int) bool { + return keysForStatusCount[i] < keysForStatusCount[j] + }) + for iNdEx := len(keysForStatusCount) - 1; iNdEx >= 0; iNdEx-- { + v := x.StatusCount[string(keysForStatusCount[iNdEx])] + out, err := MaRsHaLmAp(keysForStatusCount[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.StatusCount { + v := x.StatusCount[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + if x.EpochCount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochCount)) + i-- + dAtA[i] = 0x10 + } + if x.TipEpoch != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TipEpoch)) + 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().(*QueryRecentEpochStatusCountResponse) + 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: QueryRecentEpochStatusCountResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecentEpochStatusCountResponse: 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 TipEpoch", wireType) + } + x.TipEpoch = 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.TipEpoch |= 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 EpochCount", wireType) + } + x.EpochCount = 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.EpochCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StatusCount", 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.StatusCount == nil { + x.StatusCount = make(map[string]uint64) + } + var mapkey string + var mapvalue uint64 + for iNdEx < postIndex { + entryPreIndex := 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) + if fieldNum == 1 { + var stringLenmapkey 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++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapkey > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + 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++ + mapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + 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) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.StatusCount[mapkey] = mapvalue + 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_QueryLastCheckpointWithStatusRequest protoreflect.MessageDescriptor + fd_QueryLastCheckpointWithStatusRequest_status protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryLastCheckpointWithStatusRequest = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryLastCheckpointWithStatusRequest") + fd_QueryLastCheckpointWithStatusRequest_status = md_QueryLastCheckpointWithStatusRequest.Fields().ByName("status") +} + +var _ protoreflect.Message = (*fastReflection_QueryLastCheckpointWithStatusRequest)(nil) + +type fastReflection_QueryLastCheckpointWithStatusRequest QueryLastCheckpointWithStatusRequest + +func (x *QueryLastCheckpointWithStatusRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLastCheckpointWithStatusRequest)(x) +} + +func (x *QueryLastCheckpointWithStatusRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_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_QueryLastCheckpointWithStatusRequest_messageType fastReflection_QueryLastCheckpointWithStatusRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryLastCheckpointWithStatusRequest_messageType{} + +type fastReflection_QueryLastCheckpointWithStatusRequest_messageType struct{} + +func (x fastReflection_QueryLastCheckpointWithStatusRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLastCheckpointWithStatusRequest)(nil) +} +func (x fastReflection_QueryLastCheckpointWithStatusRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLastCheckpointWithStatusRequest) +} +func (x fastReflection_QueryLastCheckpointWithStatusRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLastCheckpointWithStatusRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryLastCheckpointWithStatusRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLastCheckpointWithStatusRequest +} + +// 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_QueryLastCheckpointWithStatusRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryLastCheckpointWithStatusRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryLastCheckpointWithStatusRequest) New() protoreflect.Message { + return new(fastReflection_QueryLastCheckpointWithStatusRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryLastCheckpointWithStatusRequest) Interface() protoreflect.ProtoMessage { + return (*QueryLastCheckpointWithStatusRequest)(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_QueryLastCheckpointWithStatusRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Status != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) + if !f(fd_QueryLastCheckpointWithStatusRequest_status, 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_QueryLastCheckpointWithStatusRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusRequest.status": + return x.Status != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusRequest 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_QueryLastCheckpointWithStatusRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusRequest.status": + x.Status = 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusRequest 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_QueryLastCheckpointWithStatusRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusRequest.status": + value := x.Status + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusRequest 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_QueryLastCheckpointWithStatusRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusRequest.status": + x.Status = (CheckpointStatus)(value.Enum()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusRequest 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_QueryLastCheckpointWithStatusRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusRequest.status": + panic(fmt.Errorf("field status of message cosmos.bls.v1.QueryLastCheckpointWithStatusRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusRequest 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_QueryLastCheckpointWithStatusRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusRequest.status": + return protoreflect.ValueOfEnum(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusRequest")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusRequest 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_QueryLastCheckpointWithStatusRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryLastCheckpointWithStatusRequest", 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_QueryLastCheckpointWithStatusRequest) 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_QueryLastCheckpointWithStatusRequest) 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_QueryLastCheckpointWithStatusRequest) 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_QueryLastCheckpointWithStatusRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryLastCheckpointWithStatusRequest) + 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.Status != 0 { + n += 1 + runtime.Sov(uint64(x.Status)) + } + 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().(*QueryLastCheckpointWithStatusRequest) + 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.Status != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) + 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().(*QueryLastCheckpointWithStatusRequest) + 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: QueryLastCheckpointWithStatusRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLastCheckpointWithStatusRequest: 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 Status", wireType) + } + x.Status = 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.Status |= CheckpointStatus(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_QueryLastCheckpointWithStatusResponse protoreflect.MessageDescriptor + fd_QueryLastCheckpointWithStatusResponse_raw_checkpoint protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_query_proto_init() + md_QueryLastCheckpointWithStatusResponse = File_cosmos_bls_v1_query_proto.Messages().ByName("QueryLastCheckpointWithStatusResponse") + fd_QueryLastCheckpointWithStatusResponse_raw_checkpoint = md_QueryLastCheckpointWithStatusResponse.Fields().ByName("raw_checkpoint") +} + +var _ protoreflect.Message = (*fastReflection_QueryLastCheckpointWithStatusResponse)(nil) + +type fastReflection_QueryLastCheckpointWithStatusResponse QueryLastCheckpointWithStatusResponse + +func (x *QueryLastCheckpointWithStatusResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLastCheckpointWithStatusResponse)(x) +} + +func (x *QueryLastCheckpointWithStatusResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_query_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_QueryLastCheckpointWithStatusResponse_messageType fastReflection_QueryLastCheckpointWithStatusResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryLastCheckpointWithStatusResponse_messageType{} + +type fastReflection_QueryLastCheckpointWithStatusResponse_messageType struct{} + +func (x fastReflection_QueryLastCheckpointWithStatusResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLastCheckpointWithStatusResponse)(nil) +} +func (x fastReflection_QueryLastCheckpointWithStatusResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLastCheckpointWithStatusResponse) +} +func (x fastReflection_QueryLastCheckpointWithStatusResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLastCheckpointWithStatusResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryLastCheckpointWithStatusResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLastCheckpointWithStatusResponse +} + +// 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_QueryLastCheckpointWithStatusResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryLastCheckpointWithStatusResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryLastCheckpointWithStatusResponse) New() protoreflect.Message { + return new(fastReflection_QueryLastCheckpointWithStatusResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryLastCheckpointWithStatusResponse) Interface() protoreflect.ProtoMessage { + return (*QueryLastCheckpointWithStatusResponse)(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_QueryLastCheckpointWithStatusResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RawCheckpoint != nil { + value := protoreflect.ValueOfMessage(x.RawCheckpoint.ProtoReflect()) + if !f(fd_QueryLastCheckpointWithStatusResponse_raw_checkpoint, 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_QueryLastCheckpointWithStatusResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusResponse.raw_checkpoint": + return x.RawCheckpoint != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusResponse 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_QueryLastCheckpointWithStatusResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusResponse.raw_checkpoint": + x.RawCheckpoint = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusResponse 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_QueryLastCheckpointWithStatusResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusResponse.raw_checkpoint": + value := x.RawCheckpoint + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusResponse 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_QueryLastCheckpointWithStatusResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusResponse.raw_checkpoint": + x.RawCheckpoint = value.Message().Interface().(*RawCheckpoint) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusResponse 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_QueryLastCheckpointWithStatusResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusResponse.raw_checkpoint": + if x.RawCheckpoint == nil { + x.RawCheckpoint = new(RawCheckpoint) + } + return protoreflect.ValueOfMessage(x.RawCheckpoint.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusResponse 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_QueryLastCheckpointWithStatusResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.QueryLastCheckpointWithStatusResponse.raw_checkpoint": + m := new(RawCheckpoint) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.QueryLastCheckpointWithStatusResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.QueryLastCheckpointWithStatusResponse 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_QueryLastCheckpointWithStatusResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.QueryLastCheckpointWithStatusResponse", 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_QueryLastCheckpointWithStatusResponse) 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_QueryLastCheckpointWithStatusResponse) 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_QueryLastCheckpointWithStatusResponse) 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_QueryLastCheckpointWithStatusResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryLastCheckpointWithStatusResponse) + 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.RawCheckpoint != nil { + l = options.Size(x.RawCheckpoint) + 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().(*QueryLastCheckpointWithStatusResponse) + 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.RawCheckpoint != nil { + encoded, err := options.Marshal(x.RawCheckpoint) + 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...) + } 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().(*QueryLastCheckpointWithStatusResponse) + 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: QueryLastCheckpointWithStatusResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLastCheckpointWithStatusResponse: 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 RawCheckpoint", 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.RawCheckpoint == nil { + x.RawCheckpoint = &RawCheckpoint{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RawCheckpoint); 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cosmos/bls/v1/query.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// QueryRawCheckpointListRequest is the request type for the +// Query/RawCheckpoints RPC method. +type QueryRawCheckpointListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // status defines the status of the raw checkpoints of the query + Status CheckpointStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cosmos.bls.v1.CheckpointStatus" json:"status,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryRawCheckpointListRequest) Reset() { + *x = QueryRawCheckpointListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRawCheckpointListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRawCheckpointListRequest) ProtoMessage() {} + +// Deprecated: Use QueryRawCheckpointListRequest.ProtoReflect.Descriptor instead. +func (*QueryRawCheckpointListRequest) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{0} +} + +func (x *QueryRawCheckpointListRequest) GetStatus() CheckpointStatus { + if x != nil { + return x.Status + } + return CheckpointStatus_CKPT_STATUS_ACCUMULATING +} + +func (x *QueryRawCheckpointListRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryRawCheckpointListResponse is the response type for the +// Query/RawCheckpoints RPC method. +type QueryRawCheckpointListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the order is going from the newest to oldest based on the epoch number + RawCheckpoints []*RawCheckpointWithMeta `protobuf:"bytes,1,rep,name=raw_checkpoints,json=rawCheckpoints,proto3" json:"raw_checkpoints,omitempty"` + // pagination defines the pagination in the response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryRawCheckpointListResponse) Reset() { + *x = QueryRawCheckpointListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRawCheckpointListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRawCheckpointListResponse) ProtoMessage() {} + +// Deprecated: Use QueryRawCheckpointListResponse.ProtoReflect.Descriptor instead. +func (*QueryRawCheckpointListResponse) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryRawCheckpointListResponse) GetRawCheckpoints() []*RawCheckpointWithMeta { + if x != nil { + return x.RawCheckpoints + } + return nil +} + +func (x *QueryRawCheckpointListResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryRawCheckpointRequest is the request type for the Query/RawCheckpoint +// RPC method. +type QueryRawCheckpointRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // epoch_num defines the epoch for the queried checkpoint + EpochNum uint64 `protobuf:"varint,1,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"` +} + +func (x *QueryRawCheckpointRequest) Reset() { + *x = QueryRawCheckpointRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRawCheckpointRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRawCheckpointRequest) ProtoMessage() {} + +// Deprecated: Use QueryRawCheckpointRequest.ProtoReflect.Descriptor instead. +func (*QueryRawCheckpointRequest) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryRawCheckpointRequest) GetEpochNum() uint64 { + if x != nil { + return x.EpochNum + } + return 0 +} + +// QueryRawCheckpointResponse is the response type for the Query/RawCheckpoint +// RPC method. +type QueryRawCheckpointResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RawCheckpoint *RawCheckpointWithMeta `protobuf:"bytes,1,opt,name=raw_checkpoint,json=rawCheckpoint,proto3" json:"raw_checkpoint,omitempty"` +} + +func (x *QueryRawCheckpointResponse) Reset() { + *x = QueryRawCheckpointResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRawCheckpointResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRawCheckpointResponse) ProtoMessage() {} + +// Deprecated: Use QueryRawCheckpointResponse.ProtoReflect.Descriptor instead. +func (*QueryRawCheckpointResponse) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryRawCheckpointResponse) GetRawCheckpoint() *RawCheckpointWithMeta { + if x != nil { + return x.RawCheckpoint + } + return nil +} + +// QueryRawCheckpointsRequest is the request type for the Query/RawCheckpoints +// RPC method. +type QueryRawCheckpointsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // pagination defines whether to have the pagination in the request + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryRawCheckpointsRequest) Reset() { + *x = QueryRawCheckpointsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRawCheckpointsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRawCheckpointsRequest) ProtoMessage() {} + +// Deprecated: Use QueryRawCheckpointsRequest.ProtoReflect.Descriptor instead. +func (*QueryRawCheckpointsRequest) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{4} +} + +func (x *QueryRawCheckpointsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryRawCheckpointsResponse is the response type for the Query/RawCheckpoints +// RPC method. +type QueryRawCheckpointsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the order is going from the newest to oldest based on the epoch number + RawCheckpoints []*RawCheckpointWithMeta `protobuf:"bytes,1,rep,name=raw_checkpoints,json=rawCheckpoints,proto3" json:"raw_checkpoints,omitempty"` + // pagination defines the pagination in the response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryRawCheckpointsResponse) Reset() { + *x = QueryRawCheckpointsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRawCheckpointsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRawCheckpointsResponse) ProtoMessage() {} + +// Deprecated: Use QueryRawCheckpointsResponse.ProtoReflect.Descriptor instead. +func (*QueryRawCheckpointsResponse) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryRawCheckpointsResponse) GetRawCheckpoints() []*RawCheckpointWithMeta { + if x != nil { + return x.RawCheckpoints + } + return nil +} + +func (x *QueryRawCheckpointsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryBlsPublicKeyListRequest is the request type for the Query/BlsPublicKeys +// RPC method. +type QueryBlsPublicKeyListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // epoch_num defines the epoch for the queried bls public keys + EpochNum uint64 `protobuf:"varint,1,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryBlsPublicKeyListRequest) Reset() { + *x = QueryBlsPublicKeyListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryBlsPublicKeyListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryBlsPublicKeyListRequest) ProtoMessage() {} + +// Deprecated: Use QueryBlsPublicKeyListRequest.ProtoReflect.Descriptor instead. +func (*QueryBlsPublicKeyListRequest) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{6} +} + +func (x *QueryBlsPublicKeyListRequest) GetEpochNum() uint64 { + if x != nil { + return x.EpochNum + } + return 0 +} + +func (x *QueryBlsPublicKeyListRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryBlsPublicKeyListResponse is the response type for the +// Query/BlsPublicKeys RPC method. +type QueryBlsPublicKeyListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ValidatorWithBlsKeys []*ValidatorWithBlsKey `protobuf:"bytes,1,rep,name=validator_with_bls_keys,json=validatorWithBlsKeys,proto3" json:"validator_with_bls_keys,omitempty"` + // pagination defines the pagination in the response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryBlsPublicKeyListResponse) Reset() { + *x = QueryBlsPublicKeyListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryBlsPublicKeyListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryBlsPublicKeyListResponse) ProtoMessage() {} + +// Deprecated: Use QueryBlsPublicKeyListResponse.ProtoReflect.Descriptor instead. +func (*QueryBlsPublicKeyListResponse) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{7} +} + +func (x *QueryBlsPublicKeyListResponse) GetValidatorWithBlsKeys() []*ValidatorWithBlsKey { + if x != nil { + return x.ValidatorWithBlsKeys + } + return nil +} + +func (x *QueryBlsPublicKeyListResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryEpochStatusRequest is the request type for the Query/EpochStatus +// RPC method. +type QueryEpochStatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EpochNum uint64 `protobuf:"varint,1,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"` +} + +func (x *QueryEpochStatusRequest) Reset() { + *x = QueryEpochStatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochStatusRequest) ProtoMessage() {} + +// Deprecated: Use QueryEpochStatusRequest.ProtoReflect.Descriptor instead. +func (*QueryEpochStatusRequest) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{8} +} + +func (x *QueryEpochStatusRequest) GetEpochNum() uint64 { + if x != nil { + return x.EpochNum + } + return 0 +} + +// QueryEpochStatusResponse is the response type for the Query/EpochStatus +// RPC method. +type QueryEpochStatusResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status CheckpointStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cosmos.bls.v1.CheckpointStatus" json:"status,omitempty"` +} + +func (x *QueryEpochStatusResponse) Reset() { + *x = QueryEpochStatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochStatusResponse) ProtoMessage() {} + +// Deprecated: Use QueryEpochStatusResponse.ProtoReflect.Descriptor instead. +func (*QueryEpochStatusResponse) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryEpochStatusResponse) GetStatus() CheckpointStatus { + if x != nil { + return x.Status + } + return CheckpointStatus_CKPT_STATUS_ACCUMULATING +} + +// QueryRecentEpochStatusCountRequest is the request type for the +// Query/EpochStatusCount RPC method. +type QueryRecentEpochStatusCountRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // epoch_count is the number of the most recent epochs to include in the + // aggregation + EpochCount uint64 `protobuf:"varint,1,opt,name=epoch_count,json=epochCount,proto3" json:"epoch_count,omitempty"` +} + +func (x *QueryRecentEpochStatusCountRequest) Reset() { + *x = QueryRecentEpochStatusCountRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRecentEpochStatusCountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRecentEpochStatusCountRequest) ProtoMessage() {} + +// Deprecated: Use QueryRecentEpochStatusCountRequest.ProtoReflect.Descriptor instead. +func (*QueryRecentEpochStatusCountRequest) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{10} +} + +func (x *QueryRecentEpochStatusCountRequest) GetEpochCount() uint64 { + if x != nil { + return x.EpochCount + } + return 0 +} + +// QueryRecentEpochStatusCountResponse is the response type for the +// Query/EpochStatusCount RPC method. +type QueryRecentEpochStatusCountResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TipEpoch uint64 `protobuf:"varint,1,opt,name=tip_epoch,json=tipEpoch,proto3" json:"tip_epoch,omitempty"` + EpochCount uint64 `protobuf:"varint,2,opt,name=epoch_count,json=epochCount,proto3" json:"epoch_count,omitempty"` + StatusCount map[string]uint64 `protobuf:"bytes,3,rep,name=status_count,json=statusCount,proto3" json:"status_count,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` +} + +func (x *QueryRecentEpochStatusCountResponse) Reset() { + *x = QueryRecentEpochStatusCountResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRecentEpochStatusCountResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRecentEpochStatusCountResponse) ProtoMessage() {} + +// Deprecated: Use QueryRecentEpochStatusCountResponse.ProtoReflect.Descriptor instead. +func (*QueryRecentEpochStatusCountResponse) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{11} +} + +func (x *QueryRecentEpochStatusCountResponse) GetTipEpoch() uint64 { + if x != nil { + return x.TipEpoch + } + return 0 +} + +func (x *QueryRecentEpochStatusCountResponse) GetEpochCount() uint64 { + if x != nil { + return x.EpochCount + } + return 0 +} + +func (x *QueryRecentEpochStatusCountResponse) GetStatusCount() map[string]uint64 { + if x != nil { + return x.StatusCount + } + return nil +} + +// QueryLastCheckpointWithStatusRequest is the request type for the +// Query/LastCheckpointWithStatus RPC method. +type QueryLastCheckpointWithStatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status CheckpointStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cosmos.bls.v1.CheckpointStatus" json:"status,omitempty"` +} + +func (x *QueryLastCheckpointWithStatusRequest) Reset() { + *x = QueryLastCheckpointWithStatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryLastCheckpointWithStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryLastCheckpointWithStatusRequest) ProtoMessage() {} + +// Deprecated: Use QueryLastCheckpointWithStatusRequest.ProtoReflect.Descriptor instead. +func (*QueryLastCheckpointWithStatusRequest) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{12} +} + +func (x *QueryLastCheckpointWithStatusRequest) GetStatus() CheckpointStatus { + if x != nil { + return x.Status + } + return CheckpointStatus_CKPT_STATUS_ACCUMULATING +} + +// QueryLastCheckpointWithStatusResponse is the response type for the +// Query/LastCheckpointWithStatus RPC method. +type QueryLastCheckpointWithStatusResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RawCheckpoint *RawCheckpoint `protobuf:"bytes,1,opt,name=raw_checkpoint,json=rawCheckpoint,proto3" json:"raw_checkpoint,omitempty"` +} + +func (x *QueryLastCheckpointWithStatusResponse) Reset() { + *x = QueryLastCheckpointWithStatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_query_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryLastCheckpointWithStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryLastCheckpointWithStatusResponse) ProtoMessage() {} + +// Deprecated: Use QueryLastCheckpointWithStatusResponse.ProtoReflect.Descriptor instead. +func (*QueryLastCheckpointWithStatusResponse) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_query_proto_rawDescGZIP(), []int{13} +} + +func (x *QueryLastCheckpointWithStatusResponse) GetRawCheckpoint() *RawCheckpoint { + if x != nil { + return x.RawCheckpoint + } + return nil +} + +var File_cosmos_bls_v1_query_proto protoreflect.FileDescriptor + +var file_cosmos_bls_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6c, 0x73, 0x5f, 0x6b, 0x65, + 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, + 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xa0, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x61, 0x77, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x46, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb8, 0x01, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x61, + 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0f, 0x72, 0x61, 0x77, 0x5f, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x57, 0x69, + 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0e, 0x72, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x38, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x08, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x22, 0x69, 0x0a, 0x1a, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x72, 0x61, 0x77, 0x5f, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x57, 0x69, 0x74, + 0x68, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0d, 0x72, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x64, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x61, 0x77, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb5, 0x01, 0x0a, 0x1b, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0f, 0x72, 0x61, + 0x77, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0e, 0x72, 0x61, 0x77, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x83, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x6c, 0x73, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, + 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc3, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x42, 0x6c, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x17, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x62, 0x6c, 0x73, + 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x42, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x52, + 0x14, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x42, 0x6c, + 0x73, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x36, + 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x22, 0x53, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x45, 0x0a, 0x22, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0x8b, 0x02, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x65, + 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x69, + 0x70, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x74, + 0x69, 0x70, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x66, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x1a, 0x3e, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x45, + 0x6e, 0x74, 0x72, 0x79, 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, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0x5f, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x22, 0x6c, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0e, 0x72, 0x61, + 0x77, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x52, 0x0d, 0x72, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x32, + 0xf9, 0x08, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0xa1, 0x01, 0x0a, 0x11, 0x52, 0x61, + 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, + 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x61, 0x77, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x7d, 0x12, 0x97, 0x01, + 0x0a, 0x0d, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, + 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x61, 0x77, + 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x7b, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x7d, 0x12, 0x8f, 0x01, 0x0a, 0x0e, 0x52, 0x61, 0x77, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x61, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x61, 0x77, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x61, 0x77, 0x5f, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0xa1, 0x01, 0x0a, 0x10, 0x42, 0x6c, + 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x42, 0x6c, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x42, 0x6c, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x2c, 0x12, 0x2a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, + 0x31, 0x2f, 0x62, 0x6c, 0x73, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, + 0x73, 0x2f, 0x7b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x7d, 0x12, 0x90, 0x01, + 0x0a, 0x0b, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x7b, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x7d, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0xab, 0x01, 0x0a, 0x16, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x31, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x73, 0x3a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0xba, + 0x01, 0x0a, 0x18, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x33, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x57, + 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x34, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, + 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x72, 0x61, 0x77, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x2f, 0x7b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x7d, 0x42, 0x9b, 0x01, 0x0a, 0x11, + 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, + 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x24, 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, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x3b, + 0x62, 0x6c, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x6c, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x3a, 0x3a, 0x42, 0x6c, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_cosmos_bls_v1_query_proto_rawDescOnce sync.Once + file_cosmos_bls_v1_query_proto_rawDescData = file_cosmos_bls_v1_query_proto_rawDesc +) + +func file_cosmos_bls_v1_query_proto_rawDescGZIP() []byte { + file_cosmos_bls_v1_query_proto_rawDescOnce.Do(func() { + file_cosmos_bls_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_bls_v1_query_proto_rawDescData) + }) + return file_cosmos_bls_v1_query_proto_rawDescData +} + +var file_cosmos_bls_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_cosmos_bls_v1_query_proto_goTypes = []interface{}{ + (*QueryRawCheckpointListRequest)(nil), // 0: cosmos.bls.v1.QueryRawCheckpointListRequest + (*QueryRawCheckpointListResponse)(nil), // 1: cosmos.bls.v1.QueryRawCheckpointListResponse + (*QueryRawCheckpointRequest)(nil), // 2: cosmos.bls.v1.QueryRawCheckpointRequest + (*QueryRawCheckpointResponse)(nil), // 3: cosmos.bls.v1.QueryRawCheckpointResponse + (*QueryRawCheckpointsRequest)(nil), // 4: cosmos.bls.v1.QueryRawCheckpointsRequest + (*QueryRawCheckpointsResponse)(nil), // 5: cosmos.bls.v1.QueryRawCheckpointsResponse + (*QueryBlsPublicKeyListRequest)(nil), // 6: cosmos.bls.v1.QueryBlsPublicKeyListRequest + (*QueryBlsPublicKeyListResponse)(nil), // 7: cosmos.bls.v1.QueryBlsPublicKeyListResponse + (*QueryEpochStatusRequest)(nil), // 8: cosmos.bls.v1.QueryEpochStatusRequest + (*QueryEpochStatusResponse)(nil), // 9: cosmos.bls.v1.QueryEpochStatusResponse + (*QueryRecentEpochStatusCountRequest)(nil), // 10: cosmos.bls.v1.QueryRecentEpochStatusCountRequest + (*QueryRecentEpochStatusCountResponse)(nil), // 11: cosmos.bls.v1.QueryRecentEpochStatusCountResponse + (*QueryLastCheckpointWithStatusRequest)(nil), // 12: cosmos.bls.v1.QueryLastCheckpointWithStatusRequest + (*QueryLastCheckpointWithStatusResponse)(nil), // 13: cosmos.bls.v1.QueryLastCheckpointWithStatusResponse + nil, // 14: cosmos.bls.v1.QueryRecentEpochStatusCountResponse.StatusCountEntry + (CheckpointStatus)(0), // 15: cosmos.bls.v1.CheckpointStatus + (*v1beta1.PageRequest)(nil), // 16: cosmos.base.query.v1beta1.PageRequest + (*RawCheckpointWithMeta)(nil), // 17: cosmos.bls.v1.RawCheckpointWithMeta + (*v1beta1.PageResponse)(nil), // 18: cosmos.base.query.v1beta1.PageResponse + (*ValidatorWithBlsKey)(nil), // 19: cosmos.bls.v1.ValidatorWithBlsKey + (*RawCheckpoint)(nil), // 20: cosmos.bls.v1.RawCheckpoint +} +var file_cosmos_bls_v1_query_proto_depIdxs = []int32{ + 15, // 0: cosmos.bls.v1.QueryRawCheckpointListRequest.status:type_name -> cosmos.bls.v1.CheckpointStatus + 16, // 1: cosmos.bls.v1.QueryRawCheckpointListRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 17, // 2: cosmos.bls.v1.QueryRawCheckpointListResponse.raw_checkpoints:type_name -> cosmos.bls.v1.RawCheckpointWithMeta + 18, // 3: cosmos.bls.v1.QueryRawCheckpointListResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 17, // 4: cosmos.bls.v1.QueryRawCheckpointResponse.raw_checkpoint:type_name -> cosmos.bls.v1.RawCheckpointWithMeta + 16, // 5: cosmos.bls.v1.QueryRawCheckpointsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 17, // 6: cosmos.bls.v1.QueryRawCheckpointsResponse.raw_checkpoints:type_name -> cosmos.bls.v1.RawCheckpointWithMeta + 18, // 7: cosmos.bls.v1.QueryRawCheckpointsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 16, // 8: cosmos.bls.v1.QueryBlsPublicKeyListRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 19, // 9: cosmos.bls.v1.QueryBlsPublicKeyListResponse.validator_with_bls_keys:type_name -> cosmos.bls.v1.ValidatorWithBlsKey + 18, // 10: cosmos.bls.v1.QueryBlsPublicKeyListResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 15, // 11: cosmos.bls.v1.QueryEpochStatusResponse.status:type_name -> cosmos.bls.v1.CheckpointStatus + 14, // 12: cosmos.bls.v1.QueryRecentEpochStatusCountResponse.status_count:type_name -> cosmos.bls.v1.QueryRecentEpochStatusCountResponse.StatusCountEntry + 15, // 13: cosmos.bls.v1.QueryLastCheckpointWithStatusRequest.status:type_name -> cosmos.bls.v1.CheckpointStatus + 20, // 14: cosmos.bls.v1.QueryLastCheckpointWithStatusResponse.raw_checkpoint:type_name -> cosmos.bls.v1.RawCheckpoint + 0, // 15: cosmos.bls.v1.Query.RawCheckpointList:input_type -> cosmos.bls.v1.QueryRawCheckpointListRequest + 2, // 16: cosmos.bls.v1.Query.RawCheckpoint:input_type -> cosmos.bls.v1.QueryRawCheckpointRequest + 4, // 17: cosmos.bls.v1.Query.RawCheckpoints:input_type -> cosmos.bls.v1.QueryRawCheckpointsRequest + 6, // 18: cosmos.bls.v1.Query.BlsPublicKeyList:input_type -> cosmos.bls.v1.QueryBlsPublicKeyListRequest + 8, // 19: cosmos.bls.v1.Query.EpochStatus:input_type -> cosmos.bls.v1.QueryEpochStatusRequest + 10, // 20: cosmos.bls.v1.Query.RecentEpochStatusCount:input_type -> cosmos.bls.v1.QueryRecentEpochStatusCountRequest + 12, // 21: cosmos.bls.v1.Query.LastCheckpointWithStatus:input_type -> cosmos.bls.v1.QueryLastCheckpointWithStatusRequest + 1, // 22: cosmos.bls.v1.Query.RawCheckpointList:output_type -> cosmos.bls.v1.QueryRawCheckpointListResponse + 3, // 23: cosmos.bls.v1.Query.RawCheckpoint:output_type -> cosmos.bls.v1.QueryRawCheckpointResponse + 5, // 24: cosmos.bls.v1.Query.RawCheckpoints:output_type -> cosmos.bls.v1.QueryRawCheckpointsResponse + 7, // 25: cosmos.bls.v1.Query.BlsPublicKeyList:output_type -> cosmos.bls.v1.QueryBlsPublicKeyListResponse + 9, // 26: cosmos.bls.v1.Query.EpochStatus:output_type -> cosmos.bls.v1.QueryEpochStatusResponse + 11, // 27: cosmos.bls.v1.Query.RecentEpochStatusCount:output_type -> cosmos.bls.v1.QueryRecentEpochStatusCountResponse + 13, // 28: cosmos.bls.v1.Query.LastCheckpointWithStatus:output_type -> cosmos.bls.v1.QueryLastCheckpointWithStatusResponse + 22, // [22:29] is the sub-list for method output_type + 15, // [15:22] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_cosmos_bls_v1_query_proto_init() } +func file_cosmos_bls_v1_query_proto_init() { + if File_cosmos_bls_v1_query_proto != nil { + return + } + file_cosmos_bls_v1_bls_key_proto_init() + file_cosmos_bls_v1_checkpoint_proto_init() + if !protoimpl.UnsafeEnabled { + file_cosmos_bls_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRawCheckpointListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRawCheckpointListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRawCheckpointRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRawCheckpointResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRawCheckpointsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRawCheckpointsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryBlsPublicKeyListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryBlsPublicKeyListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochStatusRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochStatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRecentEpochStatusCountRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRecentEpochStatusCountResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLastCheckpointWithStatusRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLastCheckpointWithStatusResponse); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_bls_v1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 15, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cosmos_bls_v1_query_proto_goTypes, + DependencyIndexes: file_cosmos_bls_v1_query_proto_depIdxs, + MessageInfos: file_cosmos_bls_v1_query_proto_msgTypes, + }.Build() + File_cosmos_bls_v1_query_proto = out.File + file_cosmos_bls_v1_query_proto_rawDesc = nil + file_cosmos_bls_v1_query_proto_goTypes = nil + file_cosmos_bls_v1_query_proto_depIdxs = nil +} diff --git a/api/cosmos/bls/v1/query_grpc.pb.go b/api/cosmos/bls/v1/query_grpc.pb.go new file mode 100644 index 00000000000..83114267bec --- /dev/null +++ b/api/cosmos/bls/v1/query_grpc.pb.go @@ -0,0 +1,351 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: cosmos/bls/v1/query.proto + +package blsv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Query_RawCheckpointList_FullMethodName = "/cosmos.bls.v1.Query/RawCheckpointList" + Query_RawCheckpoint_FullMethodName = "/cosmos.bls.v1.Query/RawCheckpoint" + Query_RawCheckpoints_FullMethodName = "/cosmos.bls.v1.Query/RawCheckpoints" + Query_BlsPublicKeyList_FullMethodName = "/cosmos.bls.v1.Query/BlsPublicKeyList" + Query_EpochStatus_FullMethodName = "/cosmos.bls.v1.Query/EpochStatus" + Query_RecentEpochStatusCount_FullMethodName = "/cosmos.bls.v1.Query/RecentEpochStatusCount" + Query_LastCheckpointWithStatus_FullMethodName = "/cosmos.bls.v1.Query/LastCheckpointWithStatus" +) + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type QueryClient interface { + // RawCheckpointList queries all checkpoints that match the given status. + RawCheckpointList(ctx context.Context, in *QueryRawCheckpointListRequest, opts ...grpc.CallOption) (*QueryRawCheckpointListResponse, error) + // RawCheckpoint queries a checkpoints at a given epoch number. + RawCheckpoint(ctx context.Context, in *QueryRawCheckpointRequest, opts ...grpc.CallOption) (*QueryRawCheckpointResponse, error) + // RawCheckpoints queries checkpoints for a epoch range specified in pagination params. + RawCheckpoints(ctx context.Context, in *QueryRawCheckpointsRequest, opts ...grpc.CallOption) (*QueryRawCheckpointsResponse, error) + // BlsPublicKeyList queries a list of bls public keys of the validators at a + // given epoch number. + BlsPublicKeyList(ctx context.Context, in *QueryBlsPublicKeyListRequest, opts ...grpc.CallOption) (*QueryBlsPublicKeyListResponse, error) + // EpochStatus queries the status of the checkpoint at a given epoch + EpochStatus(ctx context.Context, in *QueryEpochStatusRequest, opts ...grpc.CallOption) (*QueryEpochStatusResponse, error) + // RecentEpochStatusCount queries the number of epochs with each status in + // recent epochs + RecentEpochStatusCount(ctx context.Context, in *QueryRecentEpochStatusCountRequest, opts ...grpc.CallOption) (*QueryRecentEpochStatusCountResponse, error) + // LastCheckpointWithStatus queries the last checkpoint with a given status or + // a more matured status + LastCheckpointWithStatus(ctx context.Context, in *QueryLastCheckpointWithStatusRequest, opts ...grpc.CallOption) (*QueryLastCheckpointWithStatusResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) RawCheckpointList(ctx context.Context, in *QueryRawCheckpointListRequest, opts ...grpc.CallOption) (*QueryRawCheckpointListResponse, error) { + out := new(QueryRawCheckpointListResponse) + err := c.cc.Invoke(ctx, Query_RawCheckpointList_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RawCheckpoint(ctx context.Context, in *QueryRawCheckpointRequest, opts ...grpc.CallOption) (*QueryRawCheckpointResponse, error) { + out := new(QueryRawCheckpointResponse) + err := c.cc.Invoke(ctx, Query_RawCheckpoint_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RawCheckpoints(ctx context.Context, in *QueryRawCheckpointsRequest, opts ...grpc.CallOption) (*QueryRawCheckpointsResponse, error) { + out := new(QueryRawCheckpointsResponse) + err := c.cc.Invoke(ctx, Query_RawCheckpoints_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) BlsPublicKeyList(ctx context.Context, in *QueryBlsPublicKeyListRequest, opts ...grpc.CallOption) (*QueryBlsPublicKeyListResponse, error) { + out := new(QueryBlsPublicKeyListResponse) + err := c.cc.Invoke(ctx, Query_BlsPublicKeyList_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochStatus(ctx context.Context, in *QueryEpochStatusRequest, opts ...grpc.CallOption) (*QueryEpochStatusResponse, error) { + out := new(QueryEpochStatusResponse) + err := c.cc.Invoke(ctx, Query_EpochStatus_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RecentEpochStatusCount(ctx context.Context, in *QueryRecentEpochStatusCountRequest, opts ...grpc.CallOption) (*QueryRecentEpochStatusCountResponse, error) { + out := new(QueryRecentEpochStatusCountResponse) + err := c.cc.Invoke(ctx, Query_RecentEpochStatusCount_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) LastCheckpointWithStatus(ctx context.Context, in *QueryLastCheckpointWithStatusRequest, opts ...grpc.CallOption) (*QueryLastCheckpointWithStatusResponse, error) { + out := new(QueryLastCheckpointWithStatusResponse) + err := c.cc.Invoke(ctx, Query_LastCheckpointWithStatus_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility +type QueryServer interface { + // RawCheckpointList queries all checkpoints that match the given status. + RawCheckpointList(context.Context, *QueryRawCheckpointListRequest) (*QueryRawCheckpointListResponse, error) + // RawCheckpoint queries a checkpoints at a given epoch number. + RawCheckpoint(context.Context, *QueryRawCheckpointRequest) (*QueryRawCheckpointResponse, error) + // RawCheckpoints queries checkpoints for a epoch range specified in pagination params. + RawCheckpoints(context.Context, *QueryRawCheckpointsRequest) (*QueryRawCheckpointsResponse, error) + // BlsPublicKeyList queries a list of bls public keys of the validators at a + // given epoch number. + BlsPublicKeyList(context.Context, *QueryBlsPublicKeyListRequest) (*QueryBlsPublicKeyListResponse, error) + // EpochStatus queries the status of the checkpoint at a given epoch + EpochStatus(context.Context, *QueryEpochStatusRequest) (*QueryEpochStatusResponse, error) + // RecentEpochStatusCount queries the number of epochs with each status in + // recent epochs + RecentEpochStatusCount(context.Context, *QueryRecentEpochStatusCountRequest) (*QueryRecentEpochStatusCountResponse, error) + // LastCheckpointWithStatus queries the last checkpoint with a given status or + // a more matured status + LastCheckpointWithStatus(context.Context, *QueryLastCheckpointWithStatusRequest) (*QueryLastCheckpointWithStatusResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) RawCheckpointList(context.Context, *QueryRawCheckpointListRequest) (*QueryRawCheckpointListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawCheckpointList not implemented") +} +func (UnimplementedQueryServer) RawCheckpoint(context.Context, *QueryRawCheckpointRequest) (*QueryRawCheckpointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawCheckpoint not implemented") +} +func (UnimplementedQueryServer) RawCheckpoints(context.Context, *QueryRawCheckpointsRequest) (*QueryRawCheckpointsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawCheckpoints not implemented") +} +func (UnimplementedQueryServer) BlsPublicKeyList(context.Context, *QueryBlsPublicKeyListRequest) (*QueryBlsPublicKeyListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BlsPublicKeyList not implemented") +} +func (UnimplementedQueryServer) EpochStatus(context.Context, *QueryEpochStatusRequest) (*QueryEpochStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochStatus not implemented") +} +func (UnimplementedQueryServer) RecentEpochStatusCount(context.Context, *QueryRecentEpochStatusCountRequest) (*QueryRecentEpochStatusCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RecentEpochStatusCount not implemented") +} +func (UnimplementedQueryServer) LastCheckpointWithStatus(context.Context, *QueryLastCheckpointWithStatusRequest) (*QueryLastCheckpointWithStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LastCheckpointWithStatus not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_RawCheckpointList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRawCheckpointListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RawCheckpointList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_RawCheckpointList_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RawCheckpointList(ctx, req.(*QueryRawCheckpointListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RawCheckpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRawCheckpointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RawCheckpoint(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_RawCheckpoint_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RawCheckpoint(ctx, req.(*QueryRawCheckpointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RawCheckpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRawCheckpointsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RawCheckpoints(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_RawCheckpoints_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RawCheckpoints(ctx, req.(*QueryRawCheckpointsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_BlsPublicKeyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBlsPublicKeyListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).BlsPublicKeyList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_BlsPublicKeyList_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BlsPublicKeyList(ctx, req.(*QueryBlsPublicKeyListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_EpochStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochStatus(ctx, req.(*QueryEpochStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RecentEpochStatusCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRecentEpochStatusCountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RecentEpochStatusCount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_RecentEpochStatusCount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RecentEpochStatusCount(ctx, req.(*QueryRecentEpochStatusCountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_LastCheckpointWithStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryLastCheckpointWithStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LastCheckpointWithStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_LastCheckpointWithStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LastCheckpointWithStatus(ctx, req.(*QueryLastCheckpointWithStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "cosmos.bls.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "RawCheckpointList", + Handler: _Query_RawCheckpointList_Handler, + }, + { + MethodName: "RawCheckpoint", + Handler: _Query_RawCheckpoint_Handler, + }, + { + MethodName: "RawCheckpoints", + Handler: _Query_RawCheckpoints_Handler, + }, + { + MethodName: "BlsPublicKeyList", + Handler: _Query_BlsPublicKeyList_Handler, + }, + { + MethodName: "EpochStatus", + Handler: _Query_EpochStatus_Handler, + }, + { + MethodName: "RecentEpochStatusCount", + Handler: _Query_RecentEpochStatusCount_Handler, + }, + { + MethodName: "LastCheckpointWithStatus", + Handler: _Query_LastCheckpointWithStatus_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cosmos/bls/v1/query.proto", +} diff --git a/api/cosmos/bls/v1/tx.pulsar.go b/api/cosmos/bls/v1/tx.pulsar.go new file mode 100644 index 00000000000..084e86f2b5f --- /dev/null +++ b/api/cosmos/bls/v1/tx.pulsar.go @@ -0,0 +1,2080 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package blsv1 + +import ( + _ "cosmossdk.io/api/cosmos/msg/v1" + v1beta1 "cosmossdk.io/api/cosmos/staking/v1beta1" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_MsgAddBlsSig protoreflect.MessageDescriptor + fd_MsgAddBlsSig_signer protoreflect.FieldDescriptor + fd_MsgAddBlsSig_bls_sig protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_tx_proto_init() + md_MsgAddBlsSig = File_cosmos_bls_v1_tx_proto.Messages().ByName("MsgAddBlsSig") + fd_MsgAddBlsSig_signer = md_MsgAddBlsSig.Fields().ByName("signer") + fd_MsgAddBlsSig_bls_sig = md_MsgAddBlsSig.Fields().ByName("bls_sig") +} + +var _ protoreflect.Message = (*fastReflection_MsgAddBlsSig)(nil) + +type fastReflection_MsgAddBlsSig MsgAddBlsSig + +func (x *MsgAddBlsSig) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAddBlsSig)(x) +} + +func (x *MsgAddBlsSig) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_tx_proto_msgTypes[0] + 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_MsgAddBlsSig_messageType fastReflection_MsgAddBlsSig_messageType +var _ protoreflect.MessageType = fastReflection_MsgAddBlsSig_messageType{} + +type fastReflection_MsgAddBlsSig_messageType struct{} + +func (x fastReflection_MsgAddBlsSig_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAddBlsSig)(nil) +} +func (x fastReflection_MsgAddBlsSig_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAddBlsSig) +} +func (x fastReflection_MsgAddBlsSig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddBlsSig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAddBlsSig) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddBlsSig +} + +// 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_MsgAddBlsSig) Type() protoreflect.MessageType { + return _fastReflection_MsgAddBlsSig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAddBlsSig) New() protoreflect.Message { + return new(fastReflection_MsgAddBlsSig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAddBlsSig) Interface() protoreflect.ProtoMessage { + return (*MsgAddBlsSig)(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_MsgAddBlsSig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Signer != "" { + value := protoreflect.ValueOfString(x.Signer) + if !f(fd_MsgAddBlsSig_signer, value) { + return + } + } + if x.BlsSig != nil { + value := protoreflect.ValueOfMessage(x.BlsSig.ProtoReflect()) + if !f(fd_MsgAddBlsSig_bls_sig, 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_MsgAddBlsSig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.MsgAddBlsSig.signer": + return x.Signer != "" + case "cosmos.bls.v1.MsgAddBlsSig.bls_sig": + return x.BlsSig != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSig 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_MsgAddBlsSig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.MsgAddBlsSig.signer": + x.Signer = "" + case "cosmos.bls.v1.MsgAddBlsSig.bls_sig": + x.BlsSig = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSig 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_MsgAddBlsSig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.MsgAddBlsSig.signer": + value := x.Signer + return protoreflect.ValueOfString(value) + case "cosmos.bls.v1.MsgAddBlsSig.bls_sig": + value := x.BlsSig + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSig 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_MsgAddBlsSig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.MsgAddBlsSig.signer": + x.Signer = value.Interface().(string) + case "cosmos.bls.v1.MsgAddBlsSig.bls_sig": + x.BlsSig = value.Message().Interface().(*BlsSig) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSig 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_MsgAddBlsSig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.MsgAddBlsSig.bls_sig": + if x.BlsSig == nil { + x.BlsSig = new(BlsSig) + } + return protoreflect.ValueOfMessage(x.BlsSig.ProtoReflect()) + case "cosmos.bls.v1.MsgAddBlsSig.signer": + panic(fmt.Errorf("field signer of message cosmos.bls.v1.MsgAddBlsSig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSig 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_MsgAddBlsSig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.MsgAddBlsSig.signer": + return protoreflect.ValueOfString("") + case "cosmos.bls.v1.MsgAddBlsSig.bls_sig": + m := new(BlsSig) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSig")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSig 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_MsgAddBlsSig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.MsgAddBlsSig", 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_MsgAddBlsSig) 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_MsgAddBlsSig) 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_MsgAddBlsSig) 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_MsgAddBlsSig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAddBlsSig) + 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.Signer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlsSig != nil { + l = options.Size(x.BlsSig) + 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().(*MsgAddBlsSig) + 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.BlsSig != nil { + encoded, err := options.Marshal(x.BlsSig) + 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.Signer) > 0 { + i -= len(x.Signer) + copy(dAtA[i:], x.Signer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signer))) + 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().(*MsgAddBlsSig) + 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: MsgAddBlsSig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddBlsSig: 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 Signer", 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.Signer = 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 BlsSig", 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.BlsSig == nil { + x.BlsSig = &BlsSig{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlsSig); 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_MsgAddBlsSigResponse protoreflect.MessageDescriptor +) + +func init() { + file_cosmos_bls_v1_tx_proto_init() + md_MsgAddBlsSigResponse = File_cosmos_bls_v1_tx_proto.Messages().ByName("MsgAddBlsSigResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgAddBlsSigResponse)(nil) + +type fastReflection_MsgAddBlsSigResponse MsgAddBlsSigResponse + +func (x *MsgAddBlsSigResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAddBlsSigResponse)(x) +} + +func (x *MsgAddBlsSigResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_tx_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_MsgAddBlsSigResponse_messageType fastReflection_MsgAddBlsSigResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgAddBlsSigResponse_messageType{} + +type fastReflection_MsgAddBlsSigResponse_messageType struct{} + +func (x fastReflection_MsgAddBlsSigResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAddBlsSigResponse)(nil) +} +func (x fastReflection_MsgAddBlsSigResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAddBlsSigResponse) +} +func (x fastReflection_MsgAddBlsSigResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddBlsSigResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAddBlsSigResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddBlsSigResponse +} + +// 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_MsgAddBlsSigResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgAddBlsSigResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAddBlsSigResponse) New() protoreflect.Message { + return new(fastReflection_MsgAddBlsSigResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAddBlsSigResponse) Interface() protoreflect.ProtoMessage { + return (*MsgAddBlsSigResponse)(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_MsgAddBlsSigResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgAddBlsSigResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSigResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSigResponse 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_MsgAddBlsSigResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSigResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSigResponse 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_MsgAddBlsSigResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSigResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSigResponse 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_MsgAddBlsSigResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSigResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSigResponse 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_MsgAddBlsSigResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSigResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSigResponse 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_MsgAddBlsSigResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgAddBlsSigResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgAddBlsSigResponse 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_MsgAddBlsSigResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.MsgAddBlsSigResponse", 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_MsgAddBlsSigResponse) 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_MsgAddBlsSigResponse) 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_MsgAddBlsSigResponse) 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_MsgAddBlsSigResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAddBlsSigResponse) + 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.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().(*MsgAddBlsSigResponse) + 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 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().(*MsgAddBlsSigResponse) + 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: MsgAddBlsSigResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddBlsSigResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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_MsgWrappedCreateValidator protoreflect.MessageDescriptor + fd_MsgWrappedCreateValidator_key protoreflect.FieldDescriptor + fd_MsgWrappedCreateValidator_msg_create_validator protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_bls_v1_tx_proto_init() + md_MsgWrappedCreateValidator = File_cosmos_bls_v1_tx_proto.Messages().ByName("MsgWrappedCreateValidator") + fd_MsgWrappedCreateValidator_key = md_MsgWrappedCreateValidator.Fields().ByName("key") + fd_MsgWrappedCreateValidator_msg_create_validator = md_MsgWrappedCreateValidator.Fields().ByName("msg_create_validator") +} + +var _ protoreflect.Message = (*fastReflection_MsgWrappedCreateValidator)(nil) + +type fastReflection_MsgWrappedCreateValidator MsgWrappedCreateValidator + +func (x *MsgWrappedCreateValidator) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgWrappedCreateValidator)(x) +} + +func (x *MsgWrappedCreateValidator) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_tx_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_MsgWrappedCreateValidator_messageType fastReflection_MsgWrappedCreateValidator_messageType +var _ protoreflect.MessageType = fastReflection_MsgWrappedCreateValidator_messageType{} + +type fastReflection_MsgWrappedCreateValidator_messageType struct{} + +func (x fastReflection_MsgWrappedCreateValidator_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgWrappedCreateValidator)(nil) +} +func (x fastReflection_MsgWrappedCreateValidator_messageType) New() protoreflect.Message { + return new(fastReflection_MsgWrappedCreateValidator) +} +func (x fastReflection_MsgWrappedCreateValidator_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedCreateValidator +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgWrappedCreateValidator) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedCreateValidator +} + +// 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_MsgWrappedCreateValidator) Type() protoreflect.MessageType { + return _fastReflection_MsgWrappedCreateValidator_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgWrappedCreateValidator) New() protoreflect.Message { + return new(fastReflection_MsgWrappedCreateValidator) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgWrappedCreateValidator) Interface() protoreflect.ProtoMessage { + return (*MsgWrappedCreateValidator)(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_MsgWrappedCreateValidator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Key != nil { + value := protoreflect.ValueOfMessage(x.Key.ProtoReflect()) + if !f(fd_MsgWrappedCreateValidator_key, value) { + return + } + } + if x.MsgCreateValidator != nil { + value := protoreflect.ValueOfMessage(x.MsgCreateValidator.ProtoReflect()) + if !f(fd_MsgWrappedCreateValidator_msg_create_validator, 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_MsgWrappedCreateValidator) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.bls.v1.MsgWrappedCreateValidator.key": + return x.Key != nil + case "cosmos.bls.v1.MsgWrappedCreateValidator.msg_create_validator": + return x.MsgCreateValidator != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidator")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidator 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_MsgWrappedCreateValidator) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.bls.v1.MsgWrappedCreateValidator.key": + x.Key = nil + case "cosmos.bls.v1.MsgWrappedCreateValidator.msg_create_validator": + x.MsgCreateValidator = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidator")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidator 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_MsgWrappedCreateValidator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.bls.v1.MsgWrappedCreateValidator.key": + value := x.Key + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.bls.v1.MsgWrappedCreateValidator.msg_create_validator": + value := x.MsgCreateValidator + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidator")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidator 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_MsgWrappedCreateValidator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.bls.v1.MsgWrappedCreateValidator.key": + x.Key = value.Message().Interface().(*BlsKey) + case "cosmos.bls.v1.MsgWrappedCreateValidator.msg_create_validator": + x.MsgCreateValidator = value.Message().Interface().(*v1beta1.MsgCreateValidator) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidator")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidator 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_MsgWrappedCreateValidator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.MsgWrappedCreateValidator.key": + if x.Key == nil { + x.Key = new(BlsKey) + } + return protoreflect.ValueOfMessage(x.Key.ProtoReflect()) + case "cosmos.bls.v1.MsgWrappedCreateValidator.msg_create_validator": + if x.MsgCreateValidator == nil { + x.MsgCreateValidator = new(v1beta1.MsgCreateValidator) + } + return protoreflect.ValueOfMessage(x.MsgCreateValidator.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidator")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidator 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_MsgWrappedCreateValidator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.bls.v1.MsgWrappedCreateValidator.key": + m := new(BlsKey) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "cosmos.bls.v1.MsgWrappedCreateValidator.msg_create_validator": + m := new(v1beta1.MsgCreateValidator) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidator")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidator 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_MsgWrappedCreateValidator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.MsgWrappedCreateValidator", 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_MsgWrappedCreateValidator) 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_MsgWrappedCreateValidator) 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_MsgWrappedCreateValidator) 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_MsgWrappedCreateValidator) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgWrappedCreateValidator) + 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.Key != nil { + l = options.Size(x.Key) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MsgCreateValidator != nil { + l = options.Size(x.MsgCreateValidator) + 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().(*MsgWrappedCreateValidator) + 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.MsgCreateValidator != nil { + encoded, err := options.Marshal(x.MsgCreateValidator) + 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.Key != nil { + encoded, err := options.Marshal(x.Key) + 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...) + } 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().(*MsgWrappedCreateValidator) + 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: MsgWrappedCreateValidator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWrappedCreateValidator: 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 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.Key == nil { + x.Key = &BlsKey{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Key); 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 MsgCreateValidator", 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.MsgCreateValidator == nil { + x.MsgCreateValidator = &v1beta1.MsgCreateValidator{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MsgCreateValidator); 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_MsgWrappedCreateValidatorResponse protoreflect.MessageDescriptor +) + +func init() { + file_cosmos_bls_v1_tx_proto_init() + md_MsgWrappedCreateValidatorResponse = File_cosmos_bls_v1_tx_proto.Messages().ByName("MsgWrappedCreateValidatorResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgWrappedCreateValidatorResponse)(nil) + +type fastReflection_MsgWrappedCreateValidatorResponse MsgWrappedCreateValidatorResponse + +func (x *MsgWrappedCreateValidatorResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgWrappedCreateValidatorResponse)(x) +} + +func (x *MsgWrappedCreateValidatorResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_bls_v1_tx_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_MsgWrappedCreateValidatorResponse_messageType fastReflection_MsgWrappedCreateValidatorResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgWrappedCreateValidatorResponse_messageType{} + +type fastReflection_MsgWrappedCreateValidatorResponse_messageType struct{} + +func (x fastReflection_MsgWrappedCreateValidatorResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgWrappedCreateValidatorResponse)(nil) +} +func (x fastReflection_MsgWrappedCreateValidatorResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgWrappedCreateValidatorResponse) +} +func (x fastReflection_MsgWrappedCreateValidatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedCreateValidatorResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgWrappedCreateValidatorResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedCreateValidatorResponse +} + +// 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_MsgWrappedCreateValidatorResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgWrappedCreateValidatorResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgWrappedCreateValidatorResponse) New() protoreflect.Message { + return new(fastReflection_MsgWrappedCreateValidatorResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgWrappedCreateValidatorResponse) Interface() protoreflect.ProtoMessage { + return (*MsgWrappedCreateValidatorResponse)(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_MsgWrappedCreateValidatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgWrappedCreateValidatorResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidatorResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidatorResponse 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_MsgWrappedCreateValidatorResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidatorResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidatorResponse 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_MsgWrappedCreateValidatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidatorResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidatorResponse 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_MsgWrappedCreateValidatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidatorResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidatorResponse 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_MsgWrappedCreateValidatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidatorResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidatorResponse 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_MsgWrappedCreateValidatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.bls.v1.MsgWrappedCreateValidatorResponse")) + } + panic(fmt.Errorf("message cosmos.bls.v1.MsgWrappedCreateValidatorResponse 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_MsgWrappedCreateValidatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.bls.v1.MsgWrappedCreateValidatorResponse", 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_MsgWrappedCreateValidatorResponse) 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_MsgWrappedCreateValidatorResponse) 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_MsgWrappedCreateValidatorResponse) 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_MsgWrappedCreateValidatorResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgWrappedCreateValidatorResponse) + 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.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().(*MsgWrappedCreateValidatorResponse) + 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 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().(*MsgWrappedCreateValidatorResponse) + 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: MsgWrappedCreateValidatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWrappedCreateValidatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 +// protoc (unknown) +// source: cosmos/bls/v1/tx.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// MsgAddBlsSig defines a message to add a bls signature from a +// validator +type MsgAddBlsSig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // signer corresponds to the submitter of the transaction + // This might be a different entity compared to the one that created the BLS signature + // (i.e. the validator owner of the BLS key which is specified by the `bls_sig.signer_address`) + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + BlsSig *BlsSig `protobuf:"bytes,2,opt,name=bls_sig,json=blsSig,proto3" json:"bls_sig,omitempty"` +} + +func (x *MsgAddBlsSig) Reset() { + *x = MsgAddBlsSig{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAddBlsSig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAddBlsSig) ProtoMessage() {} + +// Deprecated: Use MsgAddBlsSig.ProtoReflect.Descriptor instead. +func (*MsgAddBlsSig) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgAddBlsSig) GetSigner() string { + if x != nil { + return x.Signer + } + return "" +} + +func (x *MsgAddBlsSig) GetBlsSig() *BlsSig { + if x != nil { + return x.BlsSig + } + return nil +} + +// MsgAddBlsSigResponse defines the MsgAddBlsSig response type. +type MsgAddBlsSigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgAddBlsSigResponse) Reset() { + *x = MsgAddBlsSigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAddBlsSigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAddBlsSigResponse) ProtoMessage() {} + +// Deprecated: Use MsgAddBlsSigResponse.ProtoReflect.Descriptor instead. +func (*MsgAddBlsSigResponse) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_tx_proto_rawDescGZIP(), []int{1} +} + +// MsgWrappedCreateValidator defines a wrapped message to create a validator +type MsgWrappedCreateValidator struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key *BlsKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + MsgCreateValidator *v1beta1.MsgCreateValidator `protobuf:"bytes,2,opt,name=msg_create_validator,json=msgCreateValidator,proto3" json:"msg_create_validator,omitempty"` +} + +func (x *MsgWrappedCreateValidator) Reset() { + *x = MsgWrappedCreateValidator{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgWrappedCreateValidator) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgWrappedCreateValidator) ProtoMessage() {} + +// Deprecated: Use MsgWrappedCreateValidator.ProtoReflect.Descriptor instead. +func (*MsgWrappedCreateValidator) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgWrappedCreateValidator) GetKey() *BlsKey { + if x != nil { + return x.Key + } + return nil +} + +func (x *MsgWrappedCreateValidator) GetMsgCreateValidator() *v1beta1.MsgCreateValidator { + if x != nil { + return x.MsgCreateValidator + } + return nil +} + +// MsgWrappedCreateValidatorResponse defines the MsgWrappedCreateValidator +// response type +type MsgWrappedCreateValidatorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgWrappedCreateValidatorResponse) Reset() { + *x = MsgWrappedCreateValidatorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_bls_v1_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgWrappedCreateValidatorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgWrappedCreateValidatorResponse) ProtoMessage() {} + +// Deprecated: Use MsgWrappedCreateValidatorResponse.ProtoReflect.Descriptor instead. +func (*MsgWrappedCreateValidatorResponse) Descriptor() ([]byte, []int) { + return file_cosmos_bls_v1_tx_proto_rawDescGZIP(), []int{3} +} + +var File_cosmos_bls_v1_tx_proto protoreflect.FileDescriptor + +var file_cosmos_bls_v1_tx_proto_rawDesc = []byte{ + 0x0a, 0x16, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6c, 0x73, + 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, + 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x7a, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x42, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x12, + 0x30, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x72, 0x12, 0x2e, 0x0a, 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x52, 0x06, 0x62, 0x6c, 0x73, 0x53, 0x69, + 0x67, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x16, 0x0a, 0x14, 0x4d, + 0x73, 0x67, 0x41, 0x64, 0x64, 0x42, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, + 0x65, 0x64, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x27, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, + 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x5c, 0x0a, 0x14, 0x6d, 0x73, + 0x67, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x52, 0x12, 0x6d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, + 0x1f, 0x00, 0x22, 0x23, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd1, 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, + 0x4d, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x42, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x12, 0x1b, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x41, 0x64, 0x64, 0x42, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, + 0x42, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, + 0x0a, 0x16, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, + 0x70, 0x65, 0x64, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x1a, 0x30, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x98, 0x01, 0x0a, 0x11, + 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x6c, 0x73, 0x2e, 0x76, + 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 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, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x6c, 0x73, + 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x42, 0x6c, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x5c, 0x42, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x5c, 0x42, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x42, + 0x6c, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cosmos_bls_v1_tx_proto_rawDescOnce sync.Once + file_cosmos_bls_v1_tx_proto_rawDescData = file_cosmos_bls_v1_tx_proto_rawDesc +) + +func file_cosmos_bls_v1_tx_proto_rawDescGZIP() []byte { + file_cosmos_bls_v1_tx_proto_rawDescOnce.Do(func() { + file_cosmos_bls_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_bls_v1_tx_proto_rawDescData) + }) + return file_cosmos_bls_v1_tx_proto_rawDescData +} + +var file_cosmos_bls_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_cosmos_bls_v1_tx_proto_goTypes = []interface{}{ + (*MsgAddBlsSig)(nil), // 0: cosmos.bls.v1.MsgAddBlsSig + (*MsgAddBlsSigResponse)(nil), // 1: cosmos.bls.v1.MsgAddBlsSigResponse + (*MsgWrappedCreateValidator)(nil), // 2: cosmos.bls.v1.MsgWrappedCreateValidator + (*MsgWrappedCreateValidatorResponse)(nil), // 3: cosmos.bls.v1.MsgWrappedCreateValidatorResponse + (*BlsSig)(nil), // 4: cosmos.bls.v1.BlsSig + (*BlsKey)(nil), // 5: cosmos.bls.v1.BlsKey + (*v1beta1.MsgCreateValidator)(nil), // 6: cosmos.staking.v1beta1.MsgCreateValidator +} +var file_cosmos_bls_v1_tx_proto_depIdxs = []int32{ + 4, // 0: cosmos.bls.v1.MsgAddBlsSig.bls_sig:type_name -> cosmos.bls.v1.BlsSig + 5, // 1: cosmos.bls.v1.MsgWrappedCreateValidator.key:type_name -> cosmos.bls.v1.BlsKey + 6, // 2: cosmos.bls.v1.MsgWrappedCreateValidator.msg_create_validator:type_name -> cosmos.staking.v1beta1.MsgCreateValidator + 0, // 3: cosmos.bls.v1.Msg.AddBlsSig:input_type -> cosmos.bls.v1.MsgAddBlsSig + 2, // 4: cosmos.bls.v1.Msg.WrappedCreateValidator:input_type -> cosmos.bls.v1.MsgWrappedCreateValidator + 1, // 5: cosmos.bls.v1.Msg.AddBlsSig:output_type -> cosmos.bls.v1.MsgAddBlsSigResponse + 3, // 6: cosmos.bls.v1.Msg.WrappedCreateValidator:output_type -> cosmos.bls.v1.MsgWrappedCreateValidatorResponse + 5, // [5:7] is the sub-list for method output_type + 3, // [3:5] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_cosmos_bls_v1_tx_proto_init() } +func file_cosmos_bls_v1_tx_proto_init() { + if File_cosmos_bls_v1_tx_proto != nil { + return + } + file_cosmos_bls_v1_checkpoint_proto_init() + file_cosmos_bls_v1_bls_key_proto_init() + if !protoimpl.UnsafeEnabled { + file_cosmos_bls_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAddBlsSig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAddBlsSigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgWrappedCreateValidator); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_bls_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgWrappedCreateValidatorResponse); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_bls_v1_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cosmos_bls_v1_tx_proto_goTypes, + DependencyIndexes: file_cosmos_bls_v1_tx_proto_depIdxs, + MessageInfos: file_cosmos_bls_v1_tx_proto_msgTypes, + }.Build() + File_cosmos_bls_v1_tx_proto = out.File + file_cosmos_bls_v1_tx_proto_rawDesc = nil + file_cosmos_bls_v1_tx_proto_goTypes = nil + file_cosmos_bls_v1_tx_proto_depIdxs = nil +} diff --git a/api/cosmos/bls/v1/tx_grpc.pb.go b/api/cosmos/bls/v1/tx_grpc.pb.go new file mode 100644 index 00000000000..3e6de1ee93b --- /dev/null +++ b/api/cosmos/bls/v1/tx_grpc.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: cosmos/bls/v1/tx.proto + +package blsv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Msg_AddBlsSig_FullMethodName = "/cosmos.bls.v1.Msg/AddBlsSig" + Msg_WrappedCreateValidator_FullMethodName = "/cosmos.bls.v1.Msg/WrappedCreateValidator" +) + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type MsgClient interface { + // AddBlsSig defines a method for accumulating BLS signatures + AddBlsSig(ctx context.Context, in *MsgAddBlsSig, opts ...grpc.CallOption) (*MsgAddBlsSigResponse, error) + // WrappedCreateValidator defines a method for registering a new validator + WrappedCreateValidator(ctx context.Context, in *MsgWrappedCreateValidator, opts ...grpc.CallOption) (*MsgWrappedCreateValidatorResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) AddBlsSig(ctx context.Context, in *MsgAddBlsSig, opts ...grpc.CallOption) (*MsgAddBlsSigResponse, error) { + out := new(MsgAddBlsSigResponse) + err := c.cc.Invoke(ctx, Msg_AddBlsSig_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) WrappedCreateValidator(ctx context.Context, in *MsgWrappedCreateValidator, opts ...grpc.CallOption) (*MsgWrappedCreateValidatorResponse, error) { + out := new(MsgWrappedCreateValidatorResponse) + err := c.cc.Invoke(ctx, Msg_WrappedCreateValidator_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +// All implementations must embed UnimplementedMsgServer +// for forward compatibility +type MsgServer interface { + // AddBlsSig defines a method for accumulating BLS signatures + AddBlsSig(context.Context, *MsgAddBlsSig) (*MsgAddBlsSigResponse, error) + // WrappedCreateValidator defines a method for registering a new validator + WrappedCreateValidator(context.Context, *MsgWrappedCreateValidator) (*MsgWrappedCreateValidatorResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (UnimplementedMsgServer) AddBlsSig(context.Context, *MsgAddBlsSig) (*MsgAddBlsSigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddBlsSig not implemented") +} +func (UnimplementedMsgServer) WrappedCreateValidator(context.Context, *MsgWrappedCreateValidator) (*MsgWrappedCreateValidatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WrappedCreateValidator not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} + +// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MsgServer will +// result in compilation errors. +type UnsafeMsgServer interface { + mustEmbedUnimplementedMsgServer() +} + +func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_AddBlsSig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddBlsSig) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AddBlsSig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_AddBlsSig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddBlsSig(ctx, req.(*MsgAddBlsSig)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_WrappedCreateValidator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgWrappedCreateValidator) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).WrappedCreateValidator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_WrappedCreateValidator_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).WrappedCreateValidator(ctx, req.(*MsgWrappedCreateValidator)) + } + return interceptor(ctx, in, info, handler) +} + +// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Msg_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "cosmos.bls.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AddBlsSig", + Handler: _Msg_AddBlsSig_Handler, + }, + { + MethodName: "WrappedCreateValidator", + Handler: _Msg_WrappedCreateValidator_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cosmos/bls/v1/tx.proto", +} diff --git a/api/cosmos/epoching/v1/epoching.pulsar.go b/api/cosmos/epoching/v1/epoching.pulsar.go new file mode 100644 index 00000000000..d65f52a85bf --- /dev/null +++ b/api/cosmos/epoching/v1/epoching.pulsar.go @@ -0,0 +1,5949 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package epochingv1 + +import ( + v1beta1 "cosmossdk.io/api/cosmos/staking/v1beta1" + types "cosmossdk.io/api/tendermint/types" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Epoch protoreflect.MessageDescriptor + fd_Epoch_epoch_number protoreflect.FieldDescriptor + fd_Epoch_current_epoch_interval protoreflect.FieldDescriptor + fd_Epoch_first_block_height protoreflect.FieldDescriptor + fd_Epoch_last_block_header protoreflect.FieldDescriptor + fd_Epoch_app_hash_root protoreflect.FieldDescriptor + fd_Epoch_sealer_header protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_epoching_proto_init() + md_Epoch = File_cosmos_epoching_v1_epoching_proto.Messages().ByName("Epoch") + fd_Epoch_epoch_number = md_Epoch.Fields().ByName("epoch_number") + fd_Epoch_current_epoch_interval = md_Epoch.Fields().ByName("current_epoch_interval") + fd_Epoch_first_block_height = md_Epoch.Fields().ByName("first_block_height") + fd_Epoch_last_block_header = md_Epoch.Fields().ByName("last_block_header") + fd_Epoch_app_hash_root = md_Epoch.Fields().ByName("app_hash_root") + fd_Epoch_sealer_header = md_Epoch.Fields().ByName("sealer_header") +} + +var _ protoreflect.Message = (*fastReflection_Epoch)(nil) + +type fastReflection_Epoch Epoch + +func (x *Epoch) ProtoReflect() protoreflect.Message { + return (*fastReflection_Epoch)(x) +} + +func (x *Epoch) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[0] + 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_Epoch_messageType fastReflection_Epoch_messageType +var _ protoreflect.MessageType = fastReflection_Epoch_messageType{} + +type fastReflection_Epoch_messageType struct{} + +func (x fastReflection_Epoch_messageType) Zero() protoreflect.Message { + return (*fastReflection_Epoch)(nil) +} +func (x fastReflection_Epoch_messageType) New() protoreflect.Message { + return new(fastReflection_Epoch) +} +func (x fastReflection_Epoch_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Epoch +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Epoch) Descriptor() protoreflect.MessageDescriptor { + return md_Epoch +} + +// 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_Epoch) Type() protoreflect.MessageType { + return _fastReflection_Epoch_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Epoch) New() protoreflect.Message { + return new(fastReflection_Epoch) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Epoch) Interface() protoreflect.ProtoMessage { + return (*Epoch)(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_Epoch) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNumber != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNumber) + if !f(fd_Epoch_epoch_number, value) { + return + } + } + if x.CurrentEpochInterval != uint64(0) { + value := protoreflect.ValueOfUint64(x.CurrentEpochInterval) + if !f(fd_Epoch_current_epoch_interval, value) { + return + } + } + if x.FirstBlockHeight != uint64(0) { + value := protoreflect.ValueOfUint64(x.FirstBlockHeight) + if !f(fd_Epoch_first_block_height, value) { + return + } + } + if x.LastBlockHeader != nil { + value := protoreflect.ValueOfMessage(x.LastBlockHeader.ProtoReflect()) + if !f(fd_Epoch_last_block_header, value) { + return + } + } + if len(x.AppHashRoot) != 0 { + value := protoreflect.ValueOfBytes(x.AppHashRoot) + if !f(fd_Epoch_app_hash_root, value) { + return + } + } + if x.SealerHeader != nil { + value := protoreflect.ValueOfMessage(x.SealerHeader.ProtoReflect()) + if !f(fd_Epoch_sealer_header, 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_Epoch) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.Epoch.epoch_number": + return x.EpochNumber != uint64(0) + case "cosmos.epoching.v1.Epoch.current_epoch_interval": + return x.CurrentEpochInterval != uint64(0) + case "cosmos.epoching.v1.Epoch.first_block_height": + return x.FirstBlockHeight != uint64(0) + case "cosmos.epoching.v1.Epoch.last_block_header": + return x.LastBlockHeader != nil + case "cosmos.epoching.v1.Epoch.app_hash_root": + return len(x.AppHashRoot) != 0 + case "cosmos.epoching.v1.Epoch.sealer_header": + return x.SealerHeader != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Epoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Epoch 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_Epoch) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.Epoch.epoch_number": + x.EpochNumber = uint64(0) + case "cosmos.epoching.v1.Epoch.current_epoch_interval": + x.CurrentEpochInterval = uint64(0) + case "cosmos.epoching.v1.Epoch.first_block_height": + x.FirstBlockHeight = uint64(0) + case "cosmos.epoching.v1.Epoch.last_block_header": + x.LastBlockHeader = nil + case "cosmos.epoching.v1.Epoch.app_hash_root": + x.AppHashRoot = nil + case "cosmos.epoching.v1.Epoch.sealer_header": + x.SealerHeader = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Epoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Epoch 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_Epoch) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.Epoch.epoch_number": + value := x.EpochNumber + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.Epoch.current_epoch_interval": + value := x.CurrentEpochInterval + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.Epoch.first_block_height": + value := x.FirstBlockHeight + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.Epoch.last_block_header": + value := x.LastBlockHeader + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.epoching.v1.Epoch.app_hash_root": + value := x.AppHashRoot + return protoreflect.ValueOfBytes(value) + case "cosmos.epoching.v1.Epoch.sealer_header": + value := x.SealerHeader + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Epoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Epoch 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_Epoch) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.Epoch.epoch_number": + x.EpochNumber = value.Uint() + case "cosmos.epoching.v1.Epoch.current_epoch_interval": + x.CurrentEpochInterval = value.Uint() + case "cosmos.epoching.v1.Epoch.first_block_height": + x.FirstBlockHeight = value.Uint() + case "cosmos.epoching.v1.Epoch.last_block_header": + x.LastBlockHeader = value.Message().Interface().(*types.Header) + case "cosmos.epoching.v1.Epoch.app_hash_root": + x.AppHashRoot = value.Bytes() + case "cosmos.epoching.v1.Epoch.sealer_header": + x.SealerHeader = value.Message().Interface().(*types.Header) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Epoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Epoch 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_Epoch) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.Epoch.last_block_header": + if x.LastBlockHeader == nil { + x.LastBlockHeader = new(types.Header) + } + return protoreflect.ValueOfMessage(x.LastBlockHeader.ProtoReflect()) + case "cosmos.epoching.v1.Epoch.sealer_header": + if x.SealerHeader == nil { + x.SealerHeader = new(types.Header) + } + return protoreflect.ValueOfMessage(x.SealerHeader.ProtoReflect()) + case "cosmos.epoching.v1.Epoch.epoch_number": + panic(fmt.Errorf("field epoch_number of message cosmos.epoching.v1.Epoch is not mutable")) + case "cosmos.epoching.v1.Epoch.current_epoch_interval": + panic(fmt.Errorf("field current_epoch_interval of message cosmos.epoching.v1.Epoch is not mutable")) + case "cosmos.epoching.v1.Epoch.first_block_height": + panic(fmt.Errorf("field first_block_height of message cosmos.epoching.v1.Epoch is not mutable")) + case "cosmos.epoching.v1.Epoch.app_hash_root": + panic(fmt.Errorf("field app_hash_root of message cosmos.epoching.v1.Epoch is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Epoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Epoch 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_Epoch) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.Epoch.epoch_number": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.Epoch.current_epoch_interval": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.Epoch.first_block_height": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.Epoch.last_block_header": + m := new(types.Header) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "cosmos.epoching.v1.Epoch.app_hash_root": + return protoreflect.ValueOfBytes(nil) + case "cosmos.epoching.v1.Epoch.sealer_header": + m := new(types.Header) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Epoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Epoch 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_Epoch) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.Epoch", 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_Epoch) 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_Epoch) 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_Epoch) 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_Epoch) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Epoch) + 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.EpochNumber != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNumber)) + } + if x.CurrentEpochInterval != 0 { + n += 1 + runtime.Sov(uint64(x.CurrentEpochInterval)) + } + if x.FirstBlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.FirstBlockHeight)) + } + if x.LastBlockHeader != nil { + l = options.Size(x.LastBlockHeader) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AppHashRoot) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SealerHeader != nil { + l = options.Size(x.SealerHeader) + 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().(*Epoch) + 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.SealerHeader != nil { + encoded, err := options.Marshal(x.SealerHeader) + 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 len(x.AppHashRoot) > 0 { + i -= len(x.AppHashRoot) + copy(dAtA[i:], x.AppHashRoot) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AppHashRoot))) + i-- + dAtA[i] = 0x2a + } + if x.LastBlockHeader != nil { + encoded, err := options.Marshal(x.LastBlockHeader) + 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 x.FirstBlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.FirstBlockHeight)) + i-- + dAtA[i] = 0x18 + } + if x.CurrentEpochInterval != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CurrentEpochInterval)) + i-- + dAtA[i] = 0x10 + } + if x.EpochNumber != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNumber)) + 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().(*Epoch) + 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: Epoch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Epoch: 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 EpochNumber", wireType) + } + x.EpochNumber = 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.EpochNumber |= 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 CurrentEpochInterval", wireType) + } + x.CurrentEpochInterval = 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.CurrentEpochInterval |= 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 FirstBlockHeight", wireType) + } + x.FirstBlockHeight = 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.FirstBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastBlockHeader", 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.LastBlockHeader == nil { + x.LastBlockHeader = &types.Header{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastBlockHeader); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AppHashRoot", 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.AppHashRoot = append(x.AppHashRoot[:0], dAtA[iNdEx:postIndex]...) + if x.AppHashRoot == nil { + x.AppHashRoot = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SealerHeader", 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.SealerHeader == nil { + x.SealerHeader = &types.Header{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SealerHeader); 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_QueuedMessage protoreflect.MessageDescriptor + fd_QueuedMessage_tx_id protoreflect.FieldDescriptor + fd_QueuedMessage_msg_id protoreflect.FieldDescriptor + fd_QueuedMessage_block_height protoreflect.FieldDescriptor + fd_QueuedMessage_block_time protoreflect.FieldDescriptor + fd_QueuedMessage_msg_create_validator protoreflect.FieldDescriptor + fd_QueuedMessage_msg_delegate protoreflect.FieldDescriptor + fd_QueuedMessage_msg_undelegate protoreflect.FieldDescriptor + fd_QueuedMessage_msg_begin_redelegate protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_epoching_proto_init() + md_QueuedMessage = File_cosmos_epoching_v1_epoching_proto.Messages().ByName("QueuedMessage") + fd_QueuedMessage_tx_id = md_QueuedMessage.Fields().ByName("tx_id") + fd_QueuedMessage_msg_id = md_QueuedMessage.Fields().ByName("msg_id") + fd_QueuedMessage_block_height = md_QueuedMessage.Fields().ByName("block_height") + fd_QueuedMessage_block_time = md_QueuedMessage.Fields().ByName("block_time") + fd_QueuedMessage_msg_create_validator = md_QueuedMessage.Fields().ByName("msg_create_validator") + fd_QueuedMessage_msg_delegate = md_QueuedMessage.Fields().ByName("msg_delegate") + fd_QueuedMessage_msg_undelegate = md_QueuedMessage.Fields().ByName("msg_undelegate") + fd_QueuedMessage_msg_begin_redelegate = md_QueuedMessage.Fields().ByName("msg_begin_redelegate") +} + +var _ protoreflect.Message = (*fastReflection_QueuedMessage)(nil) + +type fastReflection_QueuedMessage QueuedMessage + +func (x *QueuedMessage) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueuedMessage)(x) +} + +func (x *QueuedMessage) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_epoching_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_QueuedMessage_messageType fastReflection_QueuedMessage_messageType +var _ protoreflect.MessageType = fastReflection_QueuedMessage_messageType{} + +type fastReflection_QueuedMessage_messageType struct{} + +func (x fastReflection_QueuedMessage_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueuedMessage)(nil) +} +func (x fastReflection_QueuedMessage_messageType) New() protoreflect.Message { + return new(fastReflection_QueuedMessage) +} +func (x fastReflection_QueuedMessage_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueuedMessage +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueuedMessage) Descriptor() protoreflect.MessageDescriptor { + return md_QueuedMessage +} + +// 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_QueuedMessage) Type() protoreflect.MessageType { + return _fastReflection_QueuedMessage_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueuedMessage) New() protoreflect.Message { + return new(fastReflection_QueuedMessage) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueuedMessage) Interface() protoreflect.ProtoMessage { + return (*QueuedMessage)(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_QueuedMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.TxId) != 0 { + value := protoreflect.ValueOfBytes(x.TxId) + if !f(fd_QueuedMessage_tx_id, value) { + return + } + } + if len(x.MsgId) != 0 { + value := protoreflect.ValueOfBytes(x.MsgId) + if !f(fd_QueuedMessage_msg_id, value) { + return + } + } + if x.BlockHeight != uint64(0) { + value := protoreflect.ValueOfUint64(x.BlockHeight) + if !f(fd_QueuedMessage_block_height, value) { + return + } + } + if x.BlockTime != nil { + value := protoreflect.ValueOfMessage(x.BlockTime.ProtoReflect()) + if !f(fd_QueuedMessage_block_time, value) { + return + } + } + if x.Msg != nil { + switch o := x.Msg.(type) { + case *QueuedMessage_MsgCreateValidator: + v := o.MsgCreateValidator + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_QueuedMessage_msg_create_validator, value) { + return + } + case *QueuedMessage_MsgDelegate: + v := o.MsgDelegate + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_QueuedMessage_msg_delegate, value) { + return + } + case *QueuedMessage_MsgUndelegate: + v := o.MsgUndelegate + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_QueuedMessage_msg_undelegate, value) { + return + } + case *QueuedMessage_MsgBeginRedelegate: + v := o.MsgBeginRedelegate + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_QueuedMessage_msg_begin_redelegate, 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_QueuedMessage) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueuedMessage.tx_id": + return len(x.TxId) != 0 + case "cosmos.epoching.v1.QueuedMessage.msg_id": + return len(x.MsgId) != 0 + case "cosmos.epoching.v1.QueuedMessage.block_height": + return x.BlockHeight != uint64(0) + case "cosmos.epoching.v1.QueuedMessage.block_time": + return x.BlockTime != nil + case "cosmos.epoching.v1.QueuedMessage.msg_create_validator": + if x.Msg == nil { + return false + } else if _, ok := x.Msg.(*QueuedMessage_MsgCreateValidator); ok { + return true + } else { + return false + } + case "cosmos.epoching.v1.QueuedMessage.msg_delegate": + if x.Msg == nil { + return false + } else if _, ok := x.Msg.(*QueuedMessage_MsgDelegate); ok { + return true + } else { + return false + } + case "cosmos.epoching.v1.QueuedMessage.msg_undelegate": + if x.Msg == nil { + return false + } else if _, ok := x.Msg.(*QueuedMessage_MsgUndelegate); ok { + return true + } else { + return false + } + case "cosmos.epoching.v1.QueuedMessage.msg_begin_redelegate": + if x.Msg == nil { + return false + } else if _, ok := x.Msg.(*QueuedMessage_MsgBeginRedelegate); ok { + return true + } else { + return false + } + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessage")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessage 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_QueuedMessage) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueuedMessage.tx_id": + x.TxId = nil + case "cosmos.epoching.v1.QueuedMessage.msg_id": + x.MsgId = nil + case "cosmos.epoching.v1.QueuedMessage.block_height": + x.BlockHeight = uint64(0) + case "cosmos.epoching.v1.QueuedMessage.block_time": + x.BlockTime = nil + case "cosmos.epoching.v1.QueuedMessage.msg_create_validator": + x.Msg = nil + case "cosmos.epoching.v1.QueuedMessage.msg_delegate": + x.Msg = nil + case "cosmos.epoching.v1.QueuedMessage.msg_undelegate": + x.Msg = nil + case "cosmos.epoching.v1.QueuedMessage.msg_begin_redelegate": + x.Msg = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessage")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessage 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_QueuedMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueuedMessage.tx_id": + value := x.TxId + return protoreflect.ValueOfBytes(value) + case "cosmos.epoching.v1.QueuedMessage.msg_id": + value := x.MsgId + return protoreflect.ValueOfBytes(value) + case "cosmos.epoching.v1.QueuedMessage.block_height": + value := x.BlockHeight + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.QueuedMessage.block_time": + value := x.BlockTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.epoching.v1.QueuedMessage.msg_create_validator": + if x.Msg == nil { + return protoreflect.ValueOfMessage((*v1beta1.MsgCreateValidator)(nil).ProtoReflect()) + } else if v, ok := x.Msg.(*QueuedMessage_MsgCreateValidator); ok { + return protoreflect.ValueOfMessage(v.MsgCreateValidator.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*v1beta1.MsgCreateValidator)(nil).ProtoReflect()) + } + case "cosmos.epoching.v1.QueuedMessage.msg_delegate": + if x.Msg == nil { + return protoreflect.ValueOfMessage((*v1beta1.MsgDelegate)(nil).ProtoReflect()) + } else if v, ok := x.Msg.(*QueuedMessage_MsgDelegate); ok { + return protoreflect.ValueOfMessage(v.MsgDelegate.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*v1beta1.MsgDelegate)(nil).ProtoReflect()) + } + case "cosmos.epoching.v1.QueuedMessage.msg_undelegate": + if x.Msg == nil { + return protoreflect.ValueOfMessage((*v1beta1.MsgUndelegate)(nil).ProtoReflect()) + } else if v, ok := x.Msg.(*QueuedMessage_MsgUndelegate); ok { + return protoreflect.ValueOfMessage(v.MsgUndelegate.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*v1beta1.MsgUndelegate)(nil).ProtoReflect()) + } + case "cosmos.epoching.v1.QueuedMessage.msg_begin_redelegate": + if x.Msg == nil { + return protoreflect.ValueOfMessage((*v1beta1.MsgBeginRedelegate)(nil).ProtoReflect()) + } else if v, ok := x.Msg.(*QueuedMessage_MsgBeginRedelegate); ok { + return protoreflect.ValueOfMessage(v.MsgBeginRedelegate.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*v1beta1.MsgBeginRedelegate)(nil).ProtoReflect()) + } + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessage")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessage 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_QueuedMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueuedMessage.tx_id": + x.TxId = value.Bytes() + case "cosmos.epoching.v1.QueuedMessage.msg_id": + x.MsgId = value.Bytes() + case "cosmos.epoching.v1.QueuedMessage.block_height": + x.BlockHeight = value.Uint() + case "cosmos.epoching.v1.QueuedMessage.block_time": + x.BlockTime = value.Message().Interface().(*timestamppb.Timestamp) + case "cosmos.epoching.v1.QueuedMessage.msg_create_validator": + cv := value.Message().Interface().(*v1beta1.MsgCreateValidator) + x.Msg = &QueuedMessage_MsgCreateValidator{MsgCreateValidator: cv} + case "cosmos.epoching.v1.QueuedMessage.msg_delegate": + cv := value.Message().Interface().(*v1beta1.MsgDelegate) + x.Msg = &QueuedMessage_MsgDelegate{MsgDelegate: cv} + case "cosmos.epoching.v1.QueuedMessage.msg_undelegate": + cv := value.Message().Interface().(*v1beta1.MsgUndelegate) + x.Msg = &QueuedMessage_MsgUndelegate{MsgUndelegate: cv} + case "cosmos.epoching.v1.QueuedMessage.msg_begin_redelegate": + cv := value.Message().Interface().(*v1beta1.MsgBeginRedelegate) + x.Msg = &QueuedMessage_MsgBeginRedelegate{MsgBeginRedelegate: cv} + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessage")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessage 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_QueuedMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueuedMessage.block_time": + if x.BlockTime == nil { + x.BlockTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.BlockTime.ProtoReflect()) + case "cosmos.epoching.v1.QueuedMessage.msg_create_validator": + if x.Msg == nil { + value := &v1beta1.MsgCreateValidator{} + oneofValue := &QueuedMessage_MsgCreateValidator{MsgCreateValidator: value} + x.Msg = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.Msg.(type) { + case *QueuedMessage_MsgCreateValidator: + return protoreflect.ValueOfMessage(m.MsgCreateValidator.ProtoReflect()) + default: + value := &v1beta1.MsgCreateValidator{} + oneofValue := &QueuedMessage_MsgCreateValidator{MsgCreateValidator: value} + x.Msg = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + case "cosmos.epoching.v1.QueuedMessage.msg_delegate": + if x.Msg == nil { + value := &v1beta1.MsgDelegate{} + oneofValue := &QueuedMessage_MsgDelegate{MsgDelegate: value} + x.Msg = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.Msg.(type) { + case *QueuedMessage_MsgDelegate: + return protoreflect.ValueOfMessage(m.MsgDelegate.ProtoReflect()) + default: + value := &v1beta1.MsgDelegate{} + oneofValue := &QueuedMessage_MsgDelegate{MsgDelegate: value} + x.Msg = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + case "cosmos.epoching.v1.QueuedMessage.msg_undelegate": + if x.Msg == nil { + value := &v1beta1.MsgUndelegate{} + oneofValue := &QueuedMessage_MsgUndelegate{MsgUndelegate: value} + x.Msg = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.Msg.(type) { + case *QueuedMessage_MsgUndelegate: + return protoreflect.ValueOfMessage(m.MsgUndelegate.ProtoReflect()) + default: + value := &v1beta1.MsgUndelegate{} + oneofValue := &QueuedMessage_MsgUndelegate{MsgUndelegate: value} + x.Msg = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + case "cosmos.epoching.v1.QueuedMessage.msg_begin_redelegate": + if x.Msg == nil { + value := &v1beta1.MsgBeginRedelegate{} + oneofValue := &QueuedMessage_MsgBeginRedelegate{MsgBeginRedelegate: value} + x.Msg = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.Msg.(type) { + case *QueuedMessage_MsgBeginRedelegate: + return protoreflect.ValueOfMessage(m.MsgBeginRedelegate.ProtoReflect()) + default: + value := &v1beta1.MsgBeginRedelegate{} + oneofValue := &QueuedMessage_MsgBeginRedelegate{MsgBeginRedelegate: value} + x.Msg = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + case "cosmos.epoching.v1.QueuedMessage.tx_id": + panic(fmt.Errorf("field tx_id of message cosmos.epoching.v1.QueuedMessage is not mutable")) + case "cosmos.epoching.v1.QueuedMessage.msg_id": + panic(fmt.Errorf("field msg_id of message cosmos.epoching.v1.QueuedMessage is not mutable")) + case "cosmos.epoching.v1.QueuedMessage.block_height": + panic(fmt.Errorf("field block_height of message cosmos.epoching.v1.QueuedMessage is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessage")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessage 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_QueuedMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueuedMessage.tx_id": + return protoreflect.ValueOfBytes(nil) + case "cosmos.epoching.v1.QueuedMessage.msg_id": + return protoreflect.ValueOfBytes(nil) + case "cosmos.epoching.v1.QueuedMessage.block_height": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.QueuedMessage.block_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "cosmos.epoching.v1.QueuedMessage.msg_create_validator": + value := &v1beta1.MsgCreateValidator{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.epoching.v1.QueuedMessage.msg_delegate": + value := &v1beta1.MsgDelegate{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.epoching.v1.QueuedMessage.msg_undelegate": + value := &v1beta1.MsgUndelegate{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cosmos.epoching.v1.QueuedMessage.msg_begin_redelegate": + value := &v1beta1.MsgBeginRedelegate{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessage")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessage 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_QueuedMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + case "cosmos.epoching.v1.QueuedMessage.msg": + if x.Msg == nil { + return nil + } + switch x.Msg.(type) { + case *QueuedMessage_MsgCreateValidator: + return x.Descriptor().Fields().ByName("msg_create_validator") + case *QueuedMessage_MsgDelegate: + return x.Descriptor().Fields().ByName("msg_delegate") + case *QueuedMessage_MsgUndelegate: + return x.Descriptor().Fields().ByName("msg_undelegate") + case *QueuedMessage_MsgBeginRedelegate: + return x.Descriptor().Fields().ByName("msg_begin_redelegate") + } + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueuedMessage", 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_QueuedMessage) 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_QueuedMessage) 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_QueuedMessage) 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_QueuedMessage) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueuedMessage) + 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.TxId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MsgId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.BlockTime != nil { + l = options.Size(x.BlockTime) + n += 1 + l + runtime.Sov(uint64(l)) + } + switch x := x.Msg.(type) { + case *QueuedMessage_MsgCreateValidator: + if x == nil { + break + } + l = options.Size(x.MsgCreateValidator) + n += 1 + l + runtime.Sov(uint64(l)) + case *QueuedMessage_MsgDelegate: + if x == nil { + break + } + l = options.Size(x.MsgDelegate) + n += 1 + l + runtime.Sov(uint64(l)) + case *QueuedMessage_MsgUndelegate: + if x == nil { + break + } + l = options.Size(x.MsgUndelegate) + n += 1 + l + runtime.Sov(uint64(l)) + case *QueuedMessage_MsgBeginRedelegate: + if x == nil { + break + } + l = options.Size(x.MsgBeginRedelegate) + 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().(*QueuedMessage) + 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) + } + switch x := x.Msg.(type) { + case *QueuedMessage_MsgCreateValidator: + encoded, err := options.Marshal(x.MsgCreateValidator) + 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] = 0x2a + case *QueuedMessage_MsgDelegate: + encoded, err := options.Marshal(x.MsgDelegate) + 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 + case *QueuedMessage_MsgUndelegate: + encoded, err := options.Marshal(x.MsgUndelegate) + 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] = 0x3a + case *QueuedMessage_MsgBeginRedelegate: + encoded, err := options.Marshal(x.MsgBeginRedelegate) + 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] = 0x42 + } + if x.BlockTime != nil { + encoded, err := options.Marshal(x.BlockTime) + 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 x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + if len(x.MsgId) > 0 { + i -= len(x.MsgId) + copy(dAtA[i:], x.MsgId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MsgId))) + i-- + dAtA[i] = 0x12 + } + if len(x.TxId) > 0 { + i -= len(x.TxId) + copy(dAtA[i:], x.TxId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TxId))) + 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().(*QueuedMessage) + 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: QueuedMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueuedMessage: 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 TxId", 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.TxId = append(x.TxId[:0], dAtA[iNdEx:postIndex]...) + if x.TxId == nil { + x.TxId = []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 MsgId", 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.MsgId = append(x.MsgId[:0], dAtA[iNdEx:postIndex]...) + if x.MsgId == nil { + x.MsgId = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockTime", 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.BlockTime == nil { + x.BlockTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockTime); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgCreateValidator", 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 + } + v := &v1beta1.MsgCreateValidator{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.Msg = &QueuedMessage_MsgCreateValidator{v} + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgDelegate", 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 + } + v := &v1beta1.MsgDelegate{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.Msg = &QueuedMessage_MsgDelegate{v} + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgUndelegate", 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 + } + v := &v1beta1.MsgUndelegate{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.Msg = &QueuedMessage_MsgUndelegate{v} + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgBeginRedelegate", 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 + } + v := &v1beta1.MsgBeginRedelegate{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.Msg = &QueuedMessage_MsgBeginRedelegate{v} + 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 = (*_QueuedMessageList_2_list)(nil) + +type _QueuedMessageList_2_list struct { + list *[]*QueuedMessage +} + +func (x *_QueuedMessageList_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueuedMessageList_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueuedMessageList_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueuedMessage) + (*x.list)[i] = concreteValue +} + +func (x *_QueuedMessageList_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueuedMessage) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueuedMessageList_2_list) AppendMutable() protoreflect.Value { + v := new(QueuedMessage) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueuedMessageList_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueuedMessageList_2_list) NewElement() protoreflect.Value { + v := new(QueuedMessage) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueuedMessageList_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueuedMessageList protoreflect.MessageDescriptor + fd_QueuedMessageList_epoch_number protoreflect.FieldDescriptor + fd_QueuedMessageList_msgs protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_epoching_proto_init() + md_QueuedMessageList = File_cosmos_epoching_v1_epoching_proto.Messages().ByName("QueuedMessageList") + fd_QueuedMessageList_epoch_number = md_QueuedMessageList.Fields().ByName("epoch_number") + fd_QueuedMessageList_msgs = md_QueuedMessageList.Fields().ByName("msgs") +} + +var _ protoreflect.Message = (*fastReflection_QueuedMessageList)(nil) + +type fastReflection_QueuedMessageList QueuedMessageList + +func (x *QueuedMessageList) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueuedMessageList)(x) +} + +func (x *QueuedMessageList) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_epoching_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_QueuedMessageList_messageType fastReflection_QueuedMessageList_messageType +var _ protoreflect.MessageType = fastReflection_QueuedMessageList_messageType{} + +type fastReflection_QueuedMessageList_messageType struct{} + +func (x fastReflection_QueuedMessageList_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueuedMessageList)(nil) +} +func (x fastReflection_QueuedMessageList_messageType) New() protoreflect.Message { + return new(fastReflection_QueuedMessageList) +} +func (x fastReflection_QueuedMessageList_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueuedMessageList +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueuedMessageList) Descriptor() protoreflect.MessageDescriptor { + return md_QueuedMessageList +} + +// 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_QueuedMessageList) Type() protoreflect.MessageType { + return _fastReflection_QueuedMessageList_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueuedMessageList) New() protoreflect.Message { + return new(fastReflection_QueuedMessageList) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueuedMessageList) Interface() protoreflect.ProtoMessage { + return (*QueuedMessageList)(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_QueuedMessageList) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNumber != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNumber) + if !f(fd_QueuedMessageList_epoch_number, value) { + return + } + } + if len(x.Msgs) != 0 { + value := protoreflect.ValueOfList(&_QueuedMessageList_2_list{list: &x.Msgs}) + if !f(fd_QueuedMessageList_msgs, 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_QueuedMessageList) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueuedMessageList.epoch_number": + return x.EpochNumber != uint64(0) + case "cosmos.epoching.v1.QueuedMessageList.msgs": + return len(x.Msgs) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessageList")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessageList 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_QueuedMessageList) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueuedMessageList.epoch_number": + x.EpochNumber = uint64(0) + case "cosmos.epoching.v1.QueuedMessageList.msgs": + x.Msgs = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessageList")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessageList 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_QueuedMessageList) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueuedMessageList.epoch_number": + value := x.EpochNumber + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.QueuedMessageList.msgs": + if len(x.Msgs) == 0 { + return protoreflect.ValueOfList(&_QueuedMessageList_2_list{}) + } + listValue := &_QueuedMessageList_2_list{list: &x.Msgs} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessageList")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessageList 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_QueuedMessageList) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueuedMessageList.epoch_number": + x.EpochNumber = value.Uint() + case "cosmos.epoching.v1.QueuedMessageList.msgs": + lv := value.List() + clv := lv.(*_QueuedMessageList_2_list) + x.Msgs = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessageList")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessageList 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_QueuedMessageList) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueuedMessageList.msgs": + if x.Msgs == nil { + x.Msgs = []*QueuedMessage{} + } + value := &_QueuedMessageList_2_list{list: &x.Msgs} + return protoreflect.ValueOfList(value) + case "cosmos.epoching.v1.QueuedMessageList.epoch_number": + panic(fmt.Errorf("field epoch_number of message cosmos.epoching.v1.QueuedMessageList is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessageList")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessageList 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_QueuedMessageList) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueuedMessageList.epoch_number": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.QueuedMessageList.msgs": + list := []*QueuedMessage{} + return protoreflect.ValueOfList(&_QueuedMessageList_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueuedMessageList")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueuedMessageList 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_QueuedMessageList) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueuedMessageList", 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_QueuedMessageList) 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_QueuedMessageList) 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_QueuedMessageList) 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_QueuedMessageList) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueuedMessageList) + 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.EpochNumber != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNumber)) + } + if len(x.Msgs) > 0 { + for _, e := range x.Msgs { + 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().(*QueuedMessageList) + 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.Msgs) > 0 { + for iNdEx := len(x.Msgs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Msgs[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.EpochNumber != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNumber)) + 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().(*QueuedMessageList) + 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: QueuedMessageList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueuedMessageList: 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 EpochNumber", wireType) + } + x.EpochNumber = 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.EpochNumber |= 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 Msgs", 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.Msgs = append(x.Msgs, &QueuedMessage{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Msgs[len(x.Msgs)-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_ValStateUpdate protoreflect.MessageDescriptor + fd_ValStateUpdate_state protoreflect.FieldDescriptor + fd_ValStateUpdate_block_height protoreflect.FieldDescriptor + fd_ValStateUpdate_block_time protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_epoching_proto_init() + md_ValStateUpdate = File_cosmos_epoching_v1_epoching_proto.Messages().ByName("ValStateUpdate") + fd_ValStateUpdate_state = md_ValStateUpdate.Fields().ByName("state") + fd_ValStateUpdate_block_height = md_ValStateUpdate.Fields().ByName("block_height") + fd_ValStateUpdate_block_time = md_ValStateUpdate.Fields().ByName("block_time") +} + +var _ protoreflect.Message = (*fastReflection_ValStateUpdate)(nil) + +type fastReflection_ValStateUpdate ValStateUpdate + +func (x *ValStateUpdate) ProtoReflect() protoreflect.Message { + return (*fastReflection_ValStateUpdate)(x) +} + +func (x *ValStateUpdate) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_epoching_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_ValStateUpdate_messageType fastReflection_ValStateUpdate_messageType +var _ protoreflect.MessageType = fastReflection_ValStateUpdate_messageType{} + +type fastReflection_ValStateUpdate_messageType struct{} + +func (x fastReflection_ValStateUpdate_messageType) Zero() protoreflect.Message { + return (*fastReflection_ValStateUpdate)(nil) +} +func (x fastReflection_ValStateUpdate_messageType) New() protoreflect.Message { + return new(fastReflection_ValStateUpdate) +} +func (x fastReflection_ValStateUpdate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ValStateUpdate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ValStateUpdate) Descriptor() protoreflect.MessageDescriptor { + return md_ValStateUpdate +} + +// 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_ValStateUpdate) Type() protoreflect.MessageType { + return _fastReflection_ValStateUpdate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ValStateUpdate) New() protoreflect.Message { + return new(fastReflection_ValStateUpdate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ValStateUpdate) Interface() protoreflect.ProtoMessage { + return (*ValStateUpdate)(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_ValStateUpdate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.State != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.State)) + if !f(fd_ValStateUpdate_state, value) { + return + } + } + if x.BlockHeight != uint64(0) { + value := protoreflect.ValueOfUint64(x.BlockHeight) + if !f(fd_ValStateUpdate_block_height, value) { + return + } + } + if x.BlockTime != nil { + value := protoreflect.ValueOfMessage(x.BlockTime.ProtoReflect()) + if !f(fd_ValStateUpdate_block_time, 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_ValStateUpdate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.ValStateUpdate.state": + return x.State != 0 + case "cosmos.epoching.v1.ValStateUpdate.block_height": + return x.BlockHeight != uint64(0) + case "cosmos.epoching.v1.ValStateUpdate.block_time": + return x.BlockTime != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValStateUpdate 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_ValStateUpdate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.ValStateUpdate.state": + x.State = 0 + case "cosmos.epoching.v1.ValStateUpdate.block_height": + x.BlockHeight = uint64(0) + case "cosmos.epoching.v1.ValStateUpdate.block_time": + x.BlockTime = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValStateUpdate 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_ValStateUpdate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.ValStateUpdate.state": + value := x.State + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "cosmos.epoching.v1.ValStateUpdate.block_height": + value := x.BlockHeight + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.ValStateUpdate.block_time": + value := x.BlockTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValStateUpdate 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_ValStateUpdate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.ValStateUpdate.state": + x.State = (BondState)(value.Enum()) + case "cosmos.epoching.v1.ValStateUpdate.block_height": + x.BlockHeight = value.Uint() + case "cosmos.epoching.v1.ValStateUpdate.block_time": + x.BlockTime = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValStateUpdate 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_ValStateUpdate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.ValStateUpdate.block_time": + if x.BlockTime == nil { + x.BlockTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.BlockTime.ProtoReflect()) + case "cosmos.epoching.v1.ValStateUpdate.state": + panic(fmt.Errorf("field state of message cosmos.epoching.v1.ValStateUpdate is not mutable")) + case "cosmos.epoching.v1.ValStateUpdate.block_height": + panic(fmt.Errorf("field block_height of message cosmos.epoching.v1.ValStateUpdate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValStateUpdate 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_ValStateUpdate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.ValStateUpdate.state": + return protoreflect.ValueOfEnum(0) + case "cosmos.epoching.v1.ValStateUpdate.block_height": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.ValStateUpdate.block_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValStateUpdate 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_ValStateUpdate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.ValStateUpdate", 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_ValStateUpdate) 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_ValStateUpdate) 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_ValStateUpdate) 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_ValStateUpdate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ValStateUpdate) + 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.State != 0 { + n += 1 + runtime.Sov(uint64(x.State)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.BlockTime != nil { + l = options.Size(x.BlockTime) + 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().(*ValStateUpdate) + 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.BlockTime != nil { + encoded, err := options.Marshal(x.BlockTime) + 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.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if x.State != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.State)) + 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().(*ValStateUpdate) + 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: ValStateUpdate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValStateUpdate: 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 State", wireType) + } + x.State = 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.State |= BondState(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 BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockTime", 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.BlockTime == nil { + x.BlockTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockTime); 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 = (*_ValidatorLifecycle_2_list)(nil) + +type _ValidatorLifecycle_2_list struct { + list *[]*ValStateUpdate +} + +func (x *_ValidatorLifecycle_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ValidatorLifecycle_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ValidatorLifecycle_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ValStateUpdate) + (*x.list)[i] = concreteValue +} + +func (x *_ValidatorLifecycle_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ValStateUpdate) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ValidatorLifecycle_2_list) AppendMutable() protoreflect.Value { + v := new(ValStateUpdate) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValidatorLifecycle_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ValidatorLifecycle_2_list) NewElement() protoreflect.Value { + v := new(ValStateUpdate) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValidatorLifecycle_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_ValidatorLifecycle protoreflect.MessageDescriptor + fd_ValidatorLifecycle_val_addr protoreflect.FieldDescriptor + fd_ValidatorLifecycle_val_life protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_epoching_proto_init() + md_ValidatorLifecycle = File_cosmos_epoching_v1_epoching_proto.Messages().ByName("ValidatorLifecycle") + fd_ValidatorLifecycle_val_addr = md_ValidatorLifecycle.Fields().ByName("val_addr") + fd_ValidatorLifecycle_val_life = md_ValidatorLifecycle.Fields().ByName("val_life") +} + +var _ protoreflect.Message = (*fastReflection_ValidatorLifecycle)(nil) + +type fastReflection_ValidatorLifecycle ValidatorLifecycle + +func (x *ValidatorLifecycle) ProtoReflect() protoreflect.Message { + return (*fastReflection_ValidatorLifecycle)(x) +} + +func (x *ValidatorLifecycle) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_epoching_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_ValidatorLifecycle_messageType fastReflection_ValidatorLifecycle_messageType +var _ protoreflect.MessageType = fastReflection_ValidatorLifecycle_messageType{} + +type fastReflection_ValidatorLifecycle_messageType struct{} + +func (x fastReflection_ValidatorLifecycle_messageType) Zero() protoreflect.Message { + return (*fastReflection_ValidatorLifecycle)(nil) +} +func (x fastReflection_ValidatorLifecycle_messageType) New() protoreflect.Message { + return new(fastReflection_ValidatorLifecycle) +} +func (x fastReflection_ValidatorLifecycle_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ValidatorLifecycle +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ValidatorLifecycle) Descriptor() protoreflect.MessageDescriptor { + return md_ValidatorLifecycle +} + +// 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_ValidatorLifecycle) Type() protoreflect.MessageType { + return _fastReflection_ValidatorLifecycle_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ValidatorLifecycle) New() protoreflect.Message { + return new(fastReflection_ValidatorLifecycle) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ValidatorLifecycle) Interface() protoreflect.ProtoMessage { + return (*ValidatorLifecycle)(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_ValidatorLifecycle) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ValAddr != "" { + value := protoreflect.ValueOfString(x.ValAddr) + if !f(fd_ValidatorLifecycle_val_addr, value) { + return + } + } + if len(x.ValLife) != 0 { + value := protoreflect.ValueOfList(&_ValidatorLifecycle_2_list{list: &x.ValLife}) + if !f(fd_ValidatorLifecycle_val_life, 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_ValidatorLifecycle) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.ValidatorLifecycle.val_addr": + return x.ValAddr != "" + case "cosmos.epoching.v1.ValidatorLifecycle.val_life": + return len(x.ValLife) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValidatorLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValidatorLifecycle 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_ValidatorLifecycle) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.ValidatorLifecycle.val_addr": + x.ValAddr = "" + case "cosmos.epoching.v1.ValidatorLifecycle.val_life": + x.ValLife = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValidatorLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValidatorLifecycle 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_ValidatorLifecycle) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.ValidatorLifecycle.val_addr": + value := x.ValAddr + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.ValidatorLifecycle.val_life": + if len(x.ValLife) == 0 { + return protoreflect.ValueOfList(&_ValidatorLifecycle_2_list{}) + } + listValue := &_ValidatorLifecycle_2_list{list: &x.ValLife} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValidatorLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValidatorLifecycle 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_ValidatorLifecycle) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.ValidatorLifecycle.val_addr": + x.ValAddr = value.Interface().(string) + case "cosmos.epoching.v1.ValidatorLifecycle.val_life": + lv := value.List() + clv := lv.(*_ValidatorLifecycle_2_list) + x.ValLife = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValidatorLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValidatorLifecycle 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_ValidatorLifecycle) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.ValidatorLifecycle.val_life": + if x.ValLife == nil { + x.ValLife = []*ValStateUpdate{} + } + value := &_ValidatorLifecycle_2_list{list: &x.ValLife} + return protoreflect.ValueOfList(value) + case "cosmos.epoching.v1.ValidatorLifecycle.val_addr": + panic(fmt.Errorf("field val_addr of message cosmos.epoching.v1.ValidatorLifecycle is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValidatorLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValidatorLifecycle 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_ValidatorLifecycle) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.ValidatorLifecycle.val_addr": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.ValidatorLifecycle.val_life": + list := []*ValStateUpdate{} + return protoreflect.ValueOfList(&_ValidatorLifecycle_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.ValidatorLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.ValidatorLifecycle 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_ValidatorLifecycle) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.ValidatorLifecycle", 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_ValidatorLifecycle) 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_ValidatorLifecycle) 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_ValidatorLifecycle) 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_ValidatorLifecycle) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ValidatorLifecycle) + 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.ValAddr) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.ValLife) > 0 { + for _, e := range x.ValLife { + 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().(*ValidatorLifecycle) + 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.ValLife) > 0 { + for iNdEx := len(x.ValLife) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ValLife[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.ValAddr) > 0 { + i -= len(x.ValAddr) + copy(dAtA[i:], x.ValAddr) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ValAddr))) + 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().(*ValidatorLifecycle) + 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: ValidatorLifecycle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorLifecycle: 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 ValAddr", 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.ValAddr = 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 ValLife", 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.ValLife = append(x.ValLife, &ValStateUpdate{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ValLife[len(x.ValLife)-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_DelegationStateUpdate protoreflect.MessageDescriptor + fd_DelegationStateUpdate_state protoreflect.FieldDescriptor + fd_DelegationStateUpdate_val_addr protoreflect.FieldDescriptor + fd_DelegationStateUpdate_block_height protoreflect.FieldDescriptor + fd_DelegationStateUpdate_block_time protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_epoching_proto_init() + md_DelegationStateUpdate = File_cosmos_epoching_v1_epoching_proto.Messages().ByName("DelegationStateUpdate") + fd_DelegationStateUpdate_state = md_DelegationStateUpdate.Fields().ByName("state") + fd_DelegationStateUpdate_val_addr = md_DelegationStateUpdate.Fields().ByName("val_addr") + fd_DelegationStateUpdate_block_height = md_DelegationStateUpdate.Fields().ByName("block_height") + fd_DelegationStateUpdate_block_time = md_DelegationStateUpdate.Fields().ByName("block_time") +} + +var _ protoreflect.Message = (*fastReflection_DelegationStateUpdate)(nil) + +type fastReflection_DelegationStateUpdate DelegationStateUpdate + +func (x *DelegationStateUpdate) ProtoReflect() protoreflect.Message { + return (*fastReflection_DelegationStateUpdate)(x) +} + +func (x *DelegationStateUpdate) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_epoching_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_DelegationStateUpdate_messageType fastReflection_DelegationStateUpdate_messageType +var _ protoreflect.MessageType = fastReflection_DelegationStateUpdate_messageType{} + +type fastReflection_DelegationStateUpdate_messageType struct{} + +func (x fastReflection_DelegationStateUpdate_messageType) Zero() protoreflect.Message { + return (*fastReflection_DelegationStateUpdate)(nil) +} +func (x fastReflection_DelegationStateUpdate_messageType) New() protoreflect.Message { + return new(fastReflection_DelegationStateUpdate) +} +func (x fastReflection_DelegationStateUpdate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DelegationStateUpdate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_DelegationStateUpdate) Descriptor() protoreflect.MessageDescriptor { + return md_DelegationStateUpdate +} + +// 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_DelegationStateUpdate) Type() protoreflect.MessageType { + return _fastReflection_DelegationStateUpdate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_DelegationStateUpdate) New() protoreflect.Message { + return new(fastReflection_DelegationStateUpdate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_DelegationStateUpdate) Interface() protoreflect.ProtoMessage { + return (*DelegationStateUpdate)(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_DelegationStateUpdate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.State != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.State)) + if !f(fd_DelegationStateUpdate_state, value) { + return + } + } + if x.ValAddr != "" { + value := protoreflect.ValueOfString(x.ValAddr) + if !f(fd_DelegationStateUpdate_val_addr, value) { + return + } + } + if x.BlockHeight != uint64(0) { + value := protoreflect.ValueOfUint64(x.BlockHeight) + if !f(fd_DelegationStateUpdate_block_height, value) { + return + } + } + if x.BlockTime != nil { + value := protoreflect.ValueOfMessage(x.BlockTime.ProtoReflect()) + if !f(fd_DelegationStateUpdate_block_time, 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_DelegationStateUpdate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.DelegationStateUpdate.state": + return x.State != 0 + case "cosmos.epoching.v1.DelegationStateUpdate.val_addr": + return x.ValAddr != "" + case "cosmos.epoching.v1.DelegationStateUpdate.block_height": + return x.BlockHeight != uint64(0) + case "cosmos.epoching.v1.DelegationStateUpdate.block_time": + return x.BlockTime != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationStateUpdate 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_DelegationStateUpdate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.DelegationStateUpdate.state": + x.State = 0 + case "cosmos.epoching.v1.DelegationStateUpdate.val_addr": + x.ValAddr = "" + case "cosmos.epoching.v1.DelegationStateUpdate.block_height": + x.BlockHeight = uint64(0) + case "cosmos.epoching.v1.DelegationStateUpdate.block_time": + x.BlockTime = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationStateUpdate 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_DelegationStateUpdate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.DelegationStateUpdate.state": + value := x.State + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "cosmos.epoching.v1.DelegationStateUpdate.val_addr": + value := x.ValAddr + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.DelegationStateUpdate.block_height": + value := x.BlockHeight + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.DelegationStateUpdate.block_time": + value := x.BlockTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationStateUpdate 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_DelegationStateUpdate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.DelegationStateUpdate.state": + x.State = (BondState)(value.Enum()) + case "cosmos.epoching.v1.DelegationStateUpdate.val_addr": + x.ValAddr = value.Interface().(string) + case "cosmos.epoching.v1.DelegationStateUpdate.block_height": + x.BlockHeight = value.Uint() + case "cosmos.epoching.v1.DelegationStateUpdate.block_time": + x.BlockTime = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationStateUpdate 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_DelegationStateUpdate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.DelegationStateUpdate.block_time": + if x.BlockTime == nil { + x.BlockTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.BlockTime.ProtoReflect()) + case "cosmos.epoching.v1.DelegationStateUpdate.state": + panic(fmt.Errorf("field state of message cosmos.epoching.v1.DelegationStateUpdate is not mutable")) + case "cosmos.epoching.v1.DelegationStateUpdate.val_addr": + panic(fmt.Errorf("field val_addr of message cosmos.epoching.v1.DelegationStateUpdate is not mutable")) + case "cosmos.epoching.v1.DelegationStateUpdate.block_height": + panic(fmt.Errorf("field block_height of message cosmos.epoching.v1.DelegationStateUpdate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationStateUpdate 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_DelegationStateUpdate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.DelegationStateUpdate.state": + return protoreflect.ValueOfEnum(0) + case "cosmos.epoching.v1.DelegationStateUpdate.val_addr": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.DelegationStateUpdate.block_height": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.DelegationStateUpdate.block_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationStateUpdate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationStateUpdate 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_DelegationStateUpdate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.DelegationStateUpdate", 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_DelegationStateUpdate) 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_DelegationStateUpdate) 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_DelegationStateUpdate) 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_DelegationStateUpdate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*DelegationStateUpdate) + 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.State != 0 { + n += 1 + runtime.Sov(uint64(x.State)) + } + l = len(x.ValAddr) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.BlockTime != nil { + l = options.Size(x.BlockTime) + 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().(*DelegationStateUpdate) + 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.BlockTime != nil { + encoded, err := options.Marshal(x.BlockTime) + 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 x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + if len(x.ValAddr) > 0 { + i -= len(x.ValAddr) + copy(dAtA[i:], x.ValAddr) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ValAddr))) + i-- + dAtA[i] = 0x12 + } + if x.State != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.State)) + 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().(*DelegationStateUpdate) + 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: DelegationStateUpdate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DelegationStateUpdate: 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 State", wireType) + } + x.State = 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.State |= BondState(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 ValAddr", 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.ValAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockTime", 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.BlockTime == nil { + x.BlockTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockTime); 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 = (*_DelegationLifecycle_2_list)(nil) + +type _DelegationLifecycle_2_list struct { + list *[]*DelegationStateUpdate +} + +func (x *_DelegationLifecycle_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_DelegationLifecycle_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_DelegationLifecycle_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*DelegationStateUpdate) + (*x.list)[i] = concreteValue +} + +func (x *_DelegationLifecycle_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*DelegationStateUpdate) + *x.list = append(*x.list, concreteValue) +} + +func (x *_DelegationLifecycle_2_list) AppendMutable() protoreflect.Value { + v := new(DelegationStateUpdate) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_DelegationLifecycle_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_DelegationLifecycle_2_list) NewElement() protoreflect.Value { + v := new(DelegationStateUpdate) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_DelegationLifecycle_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_DelegationLifecycle protoreflect.MessageDescriptor + fd_DelegationLifecycle_del_addr protoreflect.FieldDescriptor + fd_DelegationLifecycle_del_life protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_epoching_proto_init() + md_DelegationLifecycle = File_cosmos_epoching_v1_epoching_proto.Messages().ByName("DelegationLifecycle") + fd_DelegationLifecycle_del_addr = md_DelegationLifecycle.Fields().ByName("del_addr") + fd_DelegationLifecycle_del_life = md_DelegationLifecycle.Fields().ByName("del_life") +} + +var _ protoreflect.Message = (*fastReflection_DelegationLifecycle)(nil) + +type fastReflection_DelegationLifecycle DelegationLifecycle + +func (x *DelegationLifecycle) ProtoReflect() protoreflect.Message { + return (*fastReflection_DelegationLifecycle)(x) +} + +func (x *DelegationLifecycle) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[6] + 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_DelegationLifecycle_messageType fastReflection_DelegationLifecycle_messageType +var _ protoreflect.MessageType = fastReflection_DelegationLifecycle_messageType{} + +type fastReflection_DelegationLifecycle_messageType struct{} + +func (x fastReflection_DelegationLifecycle_messageType) Zero() protoreflect.Message { + return (*fastReflection_DelegationLifecycle)(nil) +} +func (x fastReflection_DelegationLifecycle_messageType) New() protoreflect.Message { + return new(fastReflection_DelegationLifecycle) +} +func (x fastReflection_DelegationLifecycle_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DelegationLifecycle +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_DelegationLifecycle) Descriptor() protoreflect.MessageDescriptor { + return md_DelegationLifecycle +} + +// 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_DelegationLifecycle) Type() protoreflect.MessageType { + return _fastReflection_DelegationLifecycle_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_DelegationLifecycle) New() protoreflect.Message { + return new(fastReflection_DelegationLifecycle) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_DelegationLifecycle) Interface() protoreflect.ProtoMessage { + return (*DelegationLifecycle)(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_DelegationLifecycle) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelAddr != "" { + value := protoreflect.ValueOfString(x.DelAddr) + if !f(fd_DelegationLifecycle_del_addr, value) { + return + } + } + if len(x.DelLife) != 0 { + value := protoreflect.ValueOfList(&_DelegationLifecycle_2_list{list: &x.DelLife}) + if !f(fd_DelegationLifecycle_del_life, 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_DelegationLifecycle) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.DelegationLifecycle.del_addr": + return x.DelAddr != "" + case "cosmos.epoching.v1.DelegationLifecycle.del_life": + return len(x.DelLife) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationLifecycle 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_DelegationLifecycle) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.DelegationLifecycle.del_addr": + x.DelAddr = "" + case "cosmos.epoching.v1.DelegationLifecycle.del_life": + x.DelLife = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationLifecycle 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_DelegationLifecycle) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.DelegationLifecycle.del_addr": + value := x.DelAddr + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.DelegationLifecycle.del_life": + if len(x.DelLife) == 0 { + return protoreflect.ValueOfList(&_DelegationLifecycle_2_list{}) + } + listValue := &_DelegationLifecycle_2_list{list: &x.DelLife} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationLifecycle 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_DelegationLifecycle) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.DelegationLifecycle.del_addr": + x.DelAddr = value.Interface().(string) + case "cosmos.epoching.v1.DelegationLifecycle.del_life": + lv := value.List() + clv := lv.(*_DelegationLifecycle_2_list) + x.DelLife = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationLifecycle 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_DelegationLifecycle) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.DelegationLifecycle.del_life": + if x.DelLife == nil { + x.DelLife = []*DelegationStateUpdate{} + } + value := &_DelegationLifecycle_2_list{list: &x.DelLife} + return protoreflect.ValueOfList(value) + case "cosmos.epoching.v1.DelegationLifecycle.del_addr": + panic(fmt.Errorf("field del_addr of message cosmos.epoching.v1.DelegationLifecycle is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationLifecycle 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_DelegationLifecycle) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.DelegationLifecycle.del_addr": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.DelegationLifecycle.del_life": + list := []*DelegationStateUpdate{} + return protoreflect.ValueOfList(&_DelegationLifecycle_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.DelegationLifecycle")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.DelegationLifecycle 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_DelegationLifecycle) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.DelegationLifecycle", 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_DelegationLifecycle) 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_DelegationLifecycle) 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_DelegationLifecycle) 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_DelegationLifecycle) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*DelegationLifecycle) + 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.DelAddr) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.DelLife) > 0 { + for _, e := range x.DelLife { + 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().(*DelegationLifecycle) + 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.DelLife) > 0 { + for iNdEx := len(x.DelLife) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.DelLife[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.DelAddr) > 0 { + i -= len(x.DelAddr) + copy(dAtA[i:], x.DelAddr) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelAddr))) + 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().(*DelegationLifecycle) + 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: DelegationLifecycle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DelegationLifecycle: 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 DelAddr", 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.DelAddr = 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 DelLife", 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.DelLife = append(x.DelLife, &DelegationStateUpdate{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DelLife[len(x.DelLife)-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_Validator protoreflect.MessageDescriptor + fd_Validator_addr protoreflect.FieldDescriptor + fd_Validator_power protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_epoching_proto_init() + md_Validator = File_cosmos_epoching_v1_epoching_proto.Messages().ByName("Validator") + fd_Validator_addr = md_Validator.Fields().ByName("addr") + fd_Validator_power = md_Validator.Fields().ByName("power") +} + +var _ protoreflect.Message = (*fastReflection_Validator)(nil) + +type fastReflection_Validator Validator + +func (x *Validator) ProtoReflect() protoreflect.Message { + return (*fastReflection_Validator)(x) +} + +func (x *Validator) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[7] + 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_Validator_messageType fastReflection_Validator_messageType +var _ protoreflect.MessageType = fastReflection_Validator_messageType{} + +type fastReflection_Validator_messageType struct{} + +func (x fastReflection_Validator_messageType) Zero() protoreflect.Message { + return (*fastReflection_Validator)(nil) +} +func (x fastReflection_Validator_messageType) New() protoreflect.Message { + return new(fastReflection_Validator) +} +func (x fastReflection_Validator_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Validator +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Validator) Descriptor() protoreflect.MessageDescriptor { + return md_Validator +} + +// 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_Validator) Type() protoreflect.MessageType { + return _fastReflection_Validator_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Validator) New() protoreflect.Message { + return new(fastReflection_Validator) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Validator) Interface() protoreflect.ProtoMessage { + return (*Validator)(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_Validator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Addr) != 0 { + value := protoreflect.ValueOfBytes(x.Addr) + if !f(fd_Validator_addr, value) { + return + } + } + if x.Power != int64(0) { + value := protoreflect.ValueOfInt64(x.Power) + if !f(fd_Validator_power, 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_Validator) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.Validator.addr": + return len(x.Addr) != 0 + case "cosmos.epoching.v1.Validator.power": + return x.Power != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Validator")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Validator 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_Validator) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.Validator.addr": + x.Addr = nil + case "cosmos.epoching.v1.Validator.power": + x.Power = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Validator")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Validator 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_Validator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.Validator.addr": + value := x.Addr + return protoreflect.ValueOfBytes(value) + case "cosmos.epoching.v1.Validator.power": + value := x.Power + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Validator")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Validator 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_Validator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.Validator.addr": + x.Addr = value.Bytes() + case "cosmos.epoching.v1.Validator.power": + x.Power = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Validator")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Validator 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_Validator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.Validator.addr": + panic(fmt.Errorf("field addr of message cosmos.epoching.v1.Validator is not mutable")) + case "cosmos.epoching.v1.Validator.power": + panic(fmt.Errorf("field power of message cosmos.epoching.v1.Validator is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Validator")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Validator 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_Validator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.Validator.addr": + return protoreflect.ValueOfBytes(nil) + case "cosmos.epoching.v1.Validator.power": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Validator")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Validator 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_Validator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.Validator", 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_Validator) 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_Validator) 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_Validator) 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_Validator) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Validator) + 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.Addr) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Power != 0 { + n += 1 + runtime.Sov(uint64(x.Power)) + } + 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().(*Validator) + 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.Power != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Power)) + i-- + dAtA[i] = 0x10 + } + if len(x.Addr) > 0 { + i -= len(x.Addr) + copy(dAtA[i:], x.Addr) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Addr))) + 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().(*Validator) + 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: Validator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Validator: 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 Addr", 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.Addr = append(x.Addr[:0], dAtA[iNdEx:postIndex]...) + if x.Addr == nil { + x.Addr = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) + } + x.Power = 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.Power |= 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cosmos/epoching/v1/epoching.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// BondState is the bond state of a validator or delegation +type BondState int32 + +const ( + // CREATED is when the validator/delegation has been created + BondState_CREATED BondState = 0 + // CREATED is when the validator/delegation has become bonded + BondState_BONDED BondState = 1 + // CREATED is when the validator/delegation has become unbonding + BondState_UNBONDING BondState = 2 + // CREATED is when the validator/delegation has become unbonded + BondState_UNBONDED BondState = 3 + // CREATED is when the validator/delegation has been removed + BondState_REMOVED BondState = 4 +) + +// Enum value maps for BondState. +var ( + BondState_name = map[int32]string{ + 0: "CREATED", + 1: "BONDED", + 2: "UNBONDING", + 3: "UNBONDED", + 4: "REMOVED", + } + BondState_value = map[string]int32{ + "CREATED": 0, + "BONDED": 1, + "UNBONDING": 2, + "UNBONDED": 3, + "REMOVED": 4, + } +) + +func (x BondState) Enum() *BondState { + p := new(BondState) + *p = x + return p +} + +func (x BondState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BondState) Descriptor() protoreflect.EnumDescriptor { + return file_cosmos_epoching_v1_epoching_proto_enumTypes[0].Descriptor() +} + +func (BondState) Type() protoreflect.EnumType { + return &file_cosmos_epoching_v1_epoching_proto_enumTypes[0] +} + +func (x BondState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BondState.Descriptor instead. +func (BondState) EnumDescriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_epoching_proto_rawDescGZIP(), []int{0} +} + +// Epoch is a structure that contains the metadata of an epoch +type Epoch struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` + CurrentEpochInterval uint64 `protobuf:"varint,2,opt,name=current_epoch_interval,json=currentEpochInterval,proto3" json:"current_epoch_interval,omitempty"` + FirstBlockHeight uint64 `protobuf:"varint,3,opt,name=first_block_height,json=firstBlockHeight,proto3" json:"first_block_height,omitempty"` + // last_block_header is the header of the last block in this epoch. + // Babylon needs to remember the last header of each epoch to complete + // unbonding validators/delegations when a previous epoch's checkpoint is + // finalised. The last_block_header field is nil in the epoch's beginning, and + // is set upon the end of this epoch. + LastBlockHeader *types.Header `protobuf:"bytes,4,opt,name=last_block_header,json=lastBlockHeader,proto3" json:"last_block_header,omitempty"` + // app_hash_root is the Merkle root of all AppHashs in this epoch + // It will be used for proving a block is in an epoch + AppHashRoot []byte `protobuf:"bytes,5,opt,name=app_hash_root,json=appHashRoot,proto3" json:"app_hash_root,omitempty"` + // sealer_header is the 2nd header of the next epoch + // This validator set has generated a BLS multisig on `last_commit_hash` of + // the sealer header + SealerHeader *types.Header `protobuf:"bytes,6,opt,name=sealer_header,json=sealerHeader,proto3" json:"sealer_header,omitempty"` +} + +func (x *Epoch) Reset() { + *x = Epoch{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Epoch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Epoch) ProtoMessage() {} + +// Deprecated: Use Epoch.ProtoReflect.Descriptor instead. +func (*Epoch) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_epoching_proto_rawDescGZIP(), []int{0} +} + +func (x *Epoch) GetEpochNumber() uint64 { + if x != nil { + return x.EpochNumber + } + return 0 +} + +func (x *Epoch) GetCurrentEpochInterval() uint64 { + if x != nil { + return x.CurrentEpochInterval + } + return 0 +} + +func (x *Epoch) GetFirstBlockHeight() uint64 { + if x != nil { + return x.FirstBlockHeight + } + return 0 +} + +func (x *Epoch) GetLastBlockHeader() *types.Header { + if x != nil { + return x.LastBlockHeader + } + return nil +} + +func (x *Epoch) GetAppHashRoot() []byte { + if x != nil { + return x.AppHashRoot + } + return nil +} + +func (x *Epoch) GetSealerHeader() *types.Header { + if x != nil { + return x.SealerHeader + } + return nil +} + +// QueuedMessage is a message that can change the validator set and is delayed +// to the epoch boundary +type QueuedMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // tx_id is the ID of the tx that contains the message + TxId []byte `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + // msg_id is the original message ID, i.e., hash of the marshaled message + MsgId []byte `protobuf:"bytes,2,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` + // block_height is the height when this msg is submitted to Babylon + BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // block_time is the timestamp when this msg is submitted to Babylon + BlockTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` + // msg is the actual message that is sent by a user and is queued by the + // epoching module + // + // Types that are assignable to Msg: + // + // *QueuedMessage_MsgCreateValidator + // *QueuedMessage_MsgDelegate + // *QueuedMessage_MsgUndelegate + // *QueuedMessage_MsgBeginRedelegate + Msg isQueuedMessage_Msg `protobuf_oneof:"msg"` +} + +func (x *QueuedMessage) Reset() { + *x = QueuedMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueuedMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueuedMessage) ProtoMessage() {} + +// Deprecated: Use QueuedMessage.ProtoReflect.Descriptor instead. +func (*QueuedMessage) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_epoching_proto_rawDescGZIP(), []int{1} +} + +func (x *QueuedMessage) GetTxId() []byte { + if x != nil { + return x.TxId + } + return nil +} + +func (x *QueuedMessage) GetMsgId() []byte { + if x != nil { + return x.MsgId + } + return nil +} + +func (x *QueuedMessage) GetBlockHeight() uint64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *QueuedMessage) GetBlockTime() *timestamppb.Timestamp { + if x != nil { + return x.BlockTime + } + return nil +} + +func (x *QueuedMessage) GetMsg() isQueuedMessage_Msg { + if x != nil { + return x.Msg + } + return nil +} + +func (x *QueuedMessage) GetMsgCreateValidator() *v1beta1.MsgCreateValidator { + if x, ok := x.GetMsg().(*QueuedMessage_MsgCreateValidator); ok { + return x.MsgCreateValidator + } + return nil +} + +func (x *QueuedMessage) GetMsgDelegate() *v1beta1.MsgDelegate { + if x, ok := x.GetMsg().(*QueuedMessage_MsgDelegate); ok { + return x.MsgDelegate + } + return nil +} + +func (x *QueuedMessage) GetMsgUndelegate() *v1beta1.MsgUndelegate { + if x, ok := x.GetMsg().(*QueuedMessage_MsgUndelegate); ok { + return x.MsgUndelegate + } + return nil +} + +func (x *QueuedMessage) GetMsgBeginRedelegate() *v1beta1.MsgBeginRedelegate { + if x, ok := x.GetMsg().(*QueuedMessage_MsgBeginRedelegate); ok { + return x.MsgBeginRedelegate + } + return nil +} + +type isQueuedMessage_Msg interface { + isQueuedMessage_Msg() +} + +type QueuedMessage_MsgCreateValidator struct { + MsgCreateValidator *v1beta1.MsgCreateValidator `protobuf:"bytes,5,opt,name=msg_create_validator,json=msgCreateValidator,proto3,oneof"` +} + +type QueuedMessage_MsgDelegate struct { + MsgDelegate *v1beta1.MsgDelegate `protobuf:"bytes,6,opt,name=msg_delegate,json=msgDelegate,proto3,oneof"` +} + +type QueuedMessage_MsgUndelegate struct { + MsgUndelegate *v1beta1.MsgUndelegate `protobuf:"bytes,7,opt,name=msg_undelegate,json=msgUndelegate,proto3,oneof"` +} + +type QueuedMessage_MsgBeginRedelegate struct { + MsgBeginRedelegate *v1beta1.MsgBeginRedelegate `protobuf:"bytes,8,opt,name=msg_begin_redelegate,json=msgBeginRedelegate,proto3,oneof"` // TODO: after we bump to Cosmos SDK v0.46, add MsgCancelUnbondingDelegation +} + +func (*QueuedMessage_MsgCreateValidator) isQueuedMessage_Msg() {} + +func (*QueuedMessage_MsgDelegate) isQueuedMessage_Msg() {} + +func (*QueuedMessage_MsgUndelegate) isQueuedMessage_Msg() {} + +func (*QueuedMessage_MsgBeginRedelegate) isQueuedMessage_Msg() {} + +// QueuedMessageList is a message that contains a list of staking-related +// messages queued for an epoch +type QueuedMessageList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` + Msgs []*QueuedMessage `protobuf:"bytes,2,rep,name=msgs,proto3" json:"msgs,omitempty"` +} + +func (x *QueuedMessageList) Reset() { + *x = QueuedMessageList{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueuedMessageList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueuedMessageList) ProtoMessage() {} + +// Deprecated: Use QueuedMessageList.ProtoReflect.Descriptor instead. +func (*QueuedMessageList) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_epoching_proto_rawDescGZIP(), []int{2} +} + +func (x *QueuedMessageList) GetEpochNumber() uint64 { + if x != nil { + return x.EpochNumber + } + return 0 +} + +func (x *QueuedMessageList) GetMsgs() []*QueuedMessage { + if x != nil { + return x.Msgs + } + return nil +} + +// ValStateUpdate is a messages that records a state update of a validator +type ValStateUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + State BondState `protobuf:"varint,1,opt,name=state,proto3,enum=cosmos.epoching.v1.BondState" json:"state,omitempty"` + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + BlockTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` +} + +func (x *ValStateUpdate) Reset() { + *x = ValStateUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValStateUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValStateUpdate) ProtoMessage() {} + +// Deprecated: Use ValStateUpdate.ProtoReflect.Descriptor instead. +func (*ValStateUpdate) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_epoching_proto_rawDescGZIP(), []int{3} +} + +func (x *ValStateUpdate) GetState() BondState { + if x != nil { + return x.State + } + return BondState_CREATED +} + +func (x *ValStateUpdate) GetBlockHeight() uint64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *ValStateUpdate) GetBlockTime() *timestamppb.Timestamp { + if x != nil { + return x.BlockTime + } + return nil +} + +// ValidatorLifecycle is a message that records records the lifecycle of +// a validator +type ValidatorLifecycle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ValAddr string `protobuf:"bytes,1,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"` + ValLife []*ValStateUpdate `protobuf:"bytes,2,rep,name=val_life,json=valLife,proto3" json:"val_life,omitempty"` +} + +func (x *ValidatorLifecycle) Reset() { + *x = ValidatorLifecycle{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidatorLifecycle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidatorLifecycle) ProtoMessage() {} + +// Deprecated: Use ValidatorLifecycle.ProtoReflect.Descriptor instead. +func (*ValidatorLifecycle) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_epoching_proto_rawDescGZIP(), []int{4} +} + +func (x *ValidatorLifecycle) GetValAddr() string { + if x != nil { + return x.ValAddr + } + return "" +} + +func (x *ValidatorLifecycle) GetValLife() []*ValStateUpdate { + if x != nil { + return x.ValLife + } + return nil +} + +// DelegationStateUpdate is the message that records a state update of a +// delegation +type DelegationStateUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + State BondState `protobuf:"varint,1,opt,name=state,proto3,enum=cosmos.epoching.v1.BondState" json:"state,omitempty"` + ValAddr string `protobuf:"bytes,2,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"` + BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + BlockTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` +} + +func (x *DelegationStateUpdate) Reset() { + *x = DelegationStateUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DelegationStateUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DelegationStateUpdate) ProtoMessage() {} + +// Deprecated: Use DelegationStateUpdate.ProtoReflect.Descriptor instead. +func (*DelegationStateUpdate) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_epoching_proto_rawDescGZIP(), []int{5} +} + +func (x *DelegationStateUpdate) GetState() BondState { + if x != nil { + return x.State + } + return BondState_CREATED +} + +func (x *DelegationStateUpdate) GetValAddr() string { + if x != nil { + return x.ValAddr + } + return "" +} + +func (x *DelegationStateUpdate) GetBlockHeight() uint64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *DelegationStateUpdate) GetBlockTime() *timestamppb.Timestamp { + if x != nil { + return x.BlockTime + } + return nil +} + +// ValidatorLifecycle is a message that records records the lifecycle of +// a delegation +type DelegationLifecycle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DelAddr string `protobuf:"bytes,1,opt,name=del_addr,json=delAddr,proto3" json:"del_addr,omitempty"` + DelLife []*DelegationStateUpdate `protobuf:"bytes,2,rep,name=del_life,json=delLife,proto3" json:"del_life,omitempty"` +} + +func (x *DelegationLifecycle) Reset() { + *x = DelegationLifecycle{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DelegationLifecycle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DelegationLifecycle) ProtoMessage() {} + +// Deprecated: Use DelegationLifecycle.ProtoReflect.Descriptor instead. +func (*DelegationLifecycle) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_epoching_proto_rawDescGZIP(), []int{6} +} + +func (x *DelegationLifecycle) GetDelAddr() string { + if x != nil { + return x.DelAddr + } + return "" +} + +func (x *DelegationLifecycle) GetDelLife() []*DelegationStateUpdate { + if x != nil { + return x.DelLife + } + return nil +} + +// Validator is a message that denotes a validator +type Validator struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // addr is the validator's address (in sdk.ValAddress) + Addr []byte `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + // power is the validator's voting power + Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` +} + +func (x *Validator) Reset() { + *x = Validator{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_epoching_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Validator) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Validator) ProtoMessage() {} + +// Deprecated: Use Validator.ProtoReflect.Descriptor instead. +func (*Validator) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_epoching_proto_rawDescGZIP(), []int{7} +} + +func (x *Validator) GetAddr() []byte { + if x != nil { + return x.Addr + } + return nil +} + +func (x *Validator) GetPower() int64 { + if x != nil { + return x.Power + } + return 0 +} + +var File_cosmos_epoching_v1_epoching_proto protoreflect.FileDescriptor + +var file_cosmos_epoching_v1_epoching_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb7, 0x02, + 0x0a, 0x05, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, + 0x12, 0x2c, 0x0a, 0x12, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x66, 0x69, + 0x72, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x44, + 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, + 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x61, 0x70, 0x70, + 0x48, 0x61, 0x73, 0x68, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x3d, 0x0a, 0x0d, 0x73, 0x65, 0x61, 0x6c, + 0x65, 0x72, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x73, 0x65, 0x61, 0x6c, 0x65, + 0x72, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x80, 0x04, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x78, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x78, 0x49, 0x64, 0x12, 0x15, + 0x0a, 0x06, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, + 0x6d, 0x73, 0x67, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3f, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x5e, 0x0a, 0x14, 0x6d, 0x73, 0x67, + 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x0c, 0x6d, 0x73, 0x67, + 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x12, 0x4e, 0x0a, 0x0e, 0x6d, 0x73, 0x67, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x12, 0x5e, 0x0a, 0x14, 0x6d, 0x73, 0x67, 0x5f, 0x62, 0x65, 0x67, 0x69, 0x6e, + 0x5f, 0x72, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x65, + 0x67, 0x69, 0x6e, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, + 0x12, 0x6d, 0x73, 0x67, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x6d, 0x0a, 0x11, 0x51, 0x75, + 0x65, 0x75, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x21, 0x0a, 0x0c, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x12, 0x35, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x0e, 0x56, 0x61, + 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x6f, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x3f, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x6e, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x76, + 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, + 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x12, 0x3d, 0x0a, 0x08, 0x76, 0x61, 0x6c, 0x5f, 0x6c, 0x69, + 0x66, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, + 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x07, 0x76, 0x61, + 0x6c, 0x4c, 0x69, 0x66, 0x65, 0x22, 0xcb, 0x01, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, + 0x33, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x12, + 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x12, 0x3f, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x69, 0x6d, 0x65, 0x22, 0x76, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, + 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, + 0x6c, 0x41, 0x64, 0x64, 0x72, 0x12, 0x44, 0x0a, 0x08, 0x64, 0x65, 0x6c, 0x5f, 0x6c, 0x69, 0x66, + 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x4c, 0x69, 0x66, 0x65, 0x22, 0x35, 0x0a, 0x09, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x14, 0x0a, 0x05, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x2a, 0x4e, 0x0a, 0x09, 0x42, 0x6f, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x0b, 0x0a, 0x07, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, + 0x42, 0x4f, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x42, 0x4f, + 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x55, 0x4e, 0x42, 0x4f, 0x4e, + 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, + 0x10, 0x04, 0x42, 0xc1, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x43, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cosmos_epoching_v1_epoching_proto_rawDescOnce sync.Once + file_cosmos_epoching_v1_epoching_proto_rawDescData = file_cosmos_epoching_v1_epoching_proto_rawDesc +) + +func file_cosmos_epoching_v1_epoching_proto_rawDescGZIP() []byte { + file_cosmos_epoching_v1_epoching_proto_rawDescOnce.Do(func() { + file_cosmos_epoching_v1_epoching_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_epoching_v1_epoching_proto_rawDescData) + }) + return file_cosmos_epoching_v1_epoching_proto_rawDescData +} + +var file_cosmos_epoching_v1_epoching_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cosmos_epoching_v1_epoching_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_cosmos_epoching_v1_epoching_proto_goTypes = []interface{}{ + (BondState)(0), // 0: cosmos.epoching.v1.BondState + (*Epoch)(nil), // 1: cosmos.epoching.v1.Epoch + (*QueuedMessage)(nil), // 2: cosmos.epoching.v1.QueuedMessage + (*QueuedMessageList)(nil), // 3: cosmos.epoching.v1.QueuedMessageList + (*ValStateUpdate)(nil), // 4: cosmos.epoching.v1.ValStateUpdate + (*ValidatorLifecycle)(nil), // 5: cosmos.epoching.v1.ValidatorLifecycle + (*DelegationStateUpdate)(nil), // 6: cosmos.epoching.v1.DelegationStateUpdate + (*DelegationLifecycle)(nil), // 7: cosmos.epoching.v1.DelegationLifecycle + (*Validator)(nil), // 8: cosmos.epoching.v1.Validator + (*types.Header)(nil), // 9: tendermint.types.Header + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*v1beta1.MsgCreateValidator)(nil), // 11: cosmos.staking.v1beta1.MsgCreateValidator + (*v1beta1.MsgDelegate)(nil), // 12: cosmos.staking.v1beta1.MsgDelegate + (*v1beta1.MsgUndelegate)(nil), // 13: cosmos.staking.v1beta1.MsgUndelegate + (*v1beta1.MsgBeginRedelegate)(nil), // 14: cosmos.staking.v1beta1.MsgBeginRedelegate +} +var file_cosmos_epoching_v1_epoching_proto_depIdxs = []int32{ + 9, // 0: cosmos.epoching.v1.Epoch.last_block_header:type_name -> tendermint.types.Header + 9, // 1: cosmos.epoching.v1.Epoch.sealer_header:type_name -> tendermint.types.Header + 10, // 2: cosmos.epoching.v1.QueuedMessage.block_time:type_name -> google.protobuf.Timestamp + 11, // 3: cosmos.epoching.v1.QueuedMessage.msg_create_validator:type_name -> cosmos.staking.v1beta1.MsgCreateValidator + 12, // 4: cosmos.epoching.v1.QueuedMessage.msg_delegate:type_name -> cosmos.staking.v1beta1.MsgDelegate + 13, // 5: cosmos.epoching.v1.QueuedMessage.msg_undelegate:type_name -> cosmos.staking.v1beta1.MsgUndelegate + 14, // 6: cosmos.epoching.v1.QueuedMessage.msg_begin_redelegate:type_name -> cosmos.staking.v1beta1.MsgBeginRedelegate + 2, // 7: cosmos.epoching.v1.QueuedMessageList.msgs:type_name -> cosmos.epoching.v1.QueuedMessage + 0, // 8: cosmos.epoching.v1.ValStateUpdate.state:type_name -> cosmos.epoching.v1.BondState + 10, // 9: cosmos.epoching.v1.ValStateUpdate.block_time:type_name -> google.protobuf.Timestamp + 4, // 10: cosmos.epoching.v1.ValidatorLifecycle.val_life:type_name -> cosmos.epoching.v1.ValStateUpdate + 0, // 11: cosmos.epoching.v1.DelegationStateUpdate.state:type_name -> cosmos.epoching.v1.BondState + 10, // 12: cosmos.epoching.v1.DelegationStateUpdate.block_time:type_name -> google.protobuf.Timestamp + 6, // 13: cosmos.epoching.v1.DelegationLifecycle.del_life:type_name -> cosmos.epoching.v1.DelegationStateUpdate + 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_epoching_v1_epoching_proto_init() } +func file_cosmos_epoching_v1_epoching_proto_init() { + if File_cosmos_epoching_v1_epoching_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cosmos_epoching_v1_epoching_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Epoch); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_epoching_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueuedMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_epoching_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueuedMessageList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_epoching_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValStateUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_epoching_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidatorLifecycle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_epoching_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DelegationStateUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_epoching_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DelegationLifecycle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_epoching_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Validator); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cosmos_epoching_v1_epoching_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*QueuedMessage_MsgCreateValidator)(nil), + (*QueuedMessage_MsgDelegate)(nil), + (*QueuedMessage_MsgUndelegate)(nil), + (*QueuedMessage_MsgBeginRedelegate)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_epoching_v1_epoching_proto_rawDesc, + NumEnums: 1, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cosmos_epoching_v1_epoching_proto_goTypes, + DependencyIndexes: file_cosmos_epoching_v1_epoching_proto_depIdxs, + EnumInfos: file_cosmos_epoching_v1_epoching_proto_enumTypes, + MessageInfos: file_cosmos_epoching_v1_epoching_proto_msgTypes, + }.Build() + File_cosmos_epoching_v1_epoching_proto = out.File + file_cosmos_epoching_v1_epoching_proto_rawDesc = nil + file_cosmos_epoching_v1_epoching_proto_goTypes = nil + file_cosmos_epoching_v1_epoching_proto_depIdxs = nil +} diff --git a/api/cosmos/epoching/v1/events.pulsar.go b/api/cosmos/epoching/v1/events.pulsar.go new file mode 100644 index 00000000000..f33807a5c0a --- /dev/null +++ b/api/cosmos/epoching/v1/events.pulsar.go @@ -0,0 +1,4911 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package epochingv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_EventBeginEpoch protoreflect.MessageDescriptor + fd_EventBeginEpoch_epoch_number protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_events_proto_init() + md_EventBeginEpoch = File_cosmos_epoching_v1_events_proto.Messages().ByName("EventBeginEpoch") + fd_EventBeginEpoch_epoch_number = md_EventBeginEpoch.Fields().ByName("epoch_number") +} + +var _ protoreflect.Message = (*fastReflection_EventBeginEpoch)(nil) + +type fastReflection_EventBeginEpoch EventBeginEpoch + +func (x *EventBeginEpoch) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventBeginEpoch)(x) +} + +func (x *EventBeginEpoch) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_events_proto_msgTypes[0] + 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_EventBeginEpoch_messageType fastReflection_EventBeginEpoch_messageType +var _ protoreflect.MessageType = fastReflection_EventBeginEpoch_messageType{} + +type fastReflection_EventBeginEpoch_messageType struct{} + +func (x fastReflection_EventBeginEpoch_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventBeginEpoch)(nil) +} +func (x fastReflection_EventBeginEpoch_messageType) New() protoreflect.Message { + return new(fastReflection_EventBeginEpoch) +} +func (x fastReflection_EventBeginEpoch_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventBeginEpoch +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventBeginEpoch) Descriptor() protoreflect.MessageDescriptor { + return md_EventBeginEpoch +} + +// 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_EventBeginEpoch) Type() protoreflect.MessageType { + return _fastReflection_EventBeginEpoch_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventBeginEpoch) New() protoreflect.Message { + return new(fastReflection_EventBeginEpoch) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventBeginEpoch) Interface() protoreflect.ProtoMessage { + return (*EventBeginEpoch)(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_EventBeginEpoch) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNumber != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNumber) + if !f(fd_EventBeginEpoch_epoch_number, 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_EventBeginEpoch) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.EventBeginEpoch.epoch_number": + return x.EpochNumber != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventBeginEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventBeginEpoch 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_EventBeginEpoch) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventBeginEpoch.epoch_number": + x.EpochNumber = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventBeginEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventBeginEpoch 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_EventBeginEpoch) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.EventBeginEpoch.epoch_number": + value := x.EpochNumber + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventBeginEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventBeginEpoch 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_EventBeginEpoch) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventBeginEpoch.epoch_number": + x.EpochNumber = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventBeginEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventBeginEpoch 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_EventBeginEpoch) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventBeginEpoch.epoch_number": + panic(fmt.Errorf("field epoch_number of message cosmos.epoching.v1.EventBeginEpoch is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventBeginEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventBeginEpoch 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_EventBeginEpoch) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventBeginEpoch.epoch_number": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventBeginEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventBeginEpoch 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_EventBeginEpoch) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.EventBeginEpoch", 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_EventBeginEpoch) 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_EventBeginEpoch) 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_EventBeginEpoch) 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_EventBeginEpoch) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventBeginEpoch) + 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.EpochNumber != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNumber)) + } + 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().(*EventBeginEpoch) + 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.EpochNumber != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNumber)) + 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().(*EventBeginEpoch) + 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: EventBeginEpoch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventBeginEpoch: 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 EpochNumber", wireType) + } + x.EpochNumber = 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.EpochNumber |= 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_EventEndEpoch protoreflect.MessageDescriptor + fd_EventEndEpoch_epoch_number protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_events_proto_init() + md_EventEndEpoch = File_cosmos_epoching_v1_events_proto.Messages().ByName("EventEndEpoch") + fd_EventEndEpoch_epoch_number = md_EventEndEpoch.Fields().ByName("epoch_number") +} + +var _ protoreflect.Message = (*fastReflection_EventEndEpoch)(nil) + +type fastReflection_EventEndEpoch EventEndEpoch + +func (x *EventEndEpoch) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventEndEpoch)(x) +} + +func (x *EventEndEpoch) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_events_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_EventEndEpoch_messageType fastReflection_EventEndEpoch_messageType +var _ protoreflect.MessageType = fastReflection_EventEndEpoch_messageType{} + +type fastReflection_EventEndEpoch_messageType struct{} + +func (x fastReflection_EventEndEpoch_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventEndEpoch)(nil) +} +func (x fastReflection_EventEndEpoch_messageType) New() protoreflect.Message { + return new(fastReflection_EventEndEpoch) +} +func (x fastReflection_EventEndEpoch_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventEndEpoch +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventEndEpoch) Descriptor() protoreflect.MessageDescriptor { + return md_EventEndEpoch +} + +// 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_EventEndEpoch) Type() protoreflect.MessageType { + return _fastReflection_EventEndEpoch_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventEndEpoch) New() protoreflect.Message { + return new(fastReflection_EventEndEpoch) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventEndEpoch) Interface() protoreflect.ProtoMessage { + return (*EventEndEpoch)(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_EventEndEpoch) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNumber != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNumber) + if !f(fd_EventEndEpoch_epoch_number, 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_EventEndEpoch) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.EventEndEpoch.epoch_number": + return x.EpochNumber != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventEndEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventEndEpoch 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_EventEndEpoch) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventEndEpoch.epoch_number": + x.EpochNumber = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventEndEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventEndEpoch 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_EventEndEpoch) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.EventEndEpoch.epoch_number": + value := x.EpochNumber + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventEndEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventEndEpoch 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_EventEndEpoch) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventEndEpoch.epoch_number": + x.EpochNumber = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventEndEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventEndEpoch 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_EventEndEpoch) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventEndEpoch.epoch_number": + panic(fmt.Errorf("field epoch_number of message cosmos.epoching.v1.EventEndEpoch is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventEndEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventEndEpoch 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_EventEndEpoch) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventEndEpoch.epoch_number": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventEndEpoch")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventEndEpoch 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_EventEndEpoch) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.EventEndEpoch", 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_EventEndEpoch) 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_EventEndEpoch) 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_EventEndEpoch) 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_EventEndEpoch) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventEndEpoch) + 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.EpochNumber != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNumber)) + } + 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().(*EventEndEpoch) + 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.EpochNumber != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNumber)) + 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().(*EventEndEpoch) + 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: EventEndEpoch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventEndEpoch: 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 EpochNumber", wireType) + } + x.EpochNumber = 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.EpochNumber |= 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 = (*_EventHandleQueuedMsg_6_list)(nil) + +type _EventHandleQueuedMsg_6_list struct { + list *[][]byte +} + +func (x *_EventHandleQueuedMsg_6_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_EventHandleQueuedMsg_6_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfBytes((*x.list)[i]) +} + +func (x *_EventHandleQueuedMsg_6_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Bytes() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_EventHandleQueuedMsg_6_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Bytes() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_EventHandleQueuedMsg_6_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message EventHandleQueuedMsg at list field OriginalAttributes as it is not of Message kind")) +} + +func (x *_EventHandleQueuedMsg_6_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_EventHandleQueuedMsg_6_list) NewElement() protoreflect.Value { + var v []byte + return protoreflect.ValueOfBytes(v) +} + +func (x *_EventHandleQueuedMsg_6_list) IsValid() bool { + return x.list != nil +} + +var ( + md_EventHandleQueuedMsg protoreflect.MessageDescriptor + fd_EventHandleQueuedMsg_original_event_type protoreflect.FieldDescriptor + fd_EventHandleQueuedMsg_epoch_number protoreflect.FieldDescriptor + fd_EventHandleQueuedMsg_height protoreflect.FieldDescriptor + fd_EventHandleQueuedMsg_tx_id protoreflect.FieldDescriptor + fd_EventHandleQueuedMsg_msg_id protoreflect.FieldDescriptor + fd_EventHandleQueuedMsg_original_attributes protoreflect.FieldDescriptor + fd_EventHandleQueuedMsg_error protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_events_proto_init() + md_EventHandleQueuedMsg = File_cosmos_epoching_v1_events_proto.Messages().ByName("EventHandleQueuedMsg") + fd_EventHandleQueuedMsg_original_event_type = md_EventHandleQueuedMsg.Fields().ByName("original_event_type") + fd_EventHandleQueuedMsg_epoch_number = md_EventHandleQueuedMsg.Fields().ByName("epoch_number") + fd_EventHandleQueuedMsg_height = md_EventHandleQueuedMsg.Fields().ByName("height") + fd_EventHandleQueuedMsg_tx_id = md_EventHandleQueuedMsg.Fields().ByName("tx_id") + fd_EventHandleQueuedMsg_msg_id = md_EventHandleQueuedMsg.Fields().ByName("msg_id") + fd_EventHandleQueuedMsg_original_attributes = md_EventHandleQueuedMsg.Fields().ByName("original_attributes") + fd_EventHandleQueuedMsg_error = md_EventHandleQueuedMsg.Fields().ByName("error") +} + +var _ protoreflect.Message = (*fastReflection_EventHandleQueuedMsg)(nil) + +type fastReflection_EventHandleQueuedMsg EventHandleQueuedMsg + +func (x *EventHandleQueuedMsg) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventHandleQueuedMsg)(x) +} + +func (x *EventHandleQueuedMsg) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_events_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_EventHandleQueuedMsg_messageType fastReflection_EventHandleQueuedMsg_messageType +var _ protoreflect.MessageType = fastReflection_EventHandleQueuedMsg_messageType{} + +type fastReflection_EventHandleQueuedMsg_messageType struct{} + +func (x fastReflection_EventHandleQueuedMsg_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventHandleQueuedMsg)(nil) +} +func (x fastReflection_EventHandleQueuedMsg_messageType) New() protoreflect.Message { + return new(fastReflection_EventHandleQueuedMsg) +} +func (x fastReflection_EventHandleQueuedMsg_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventHandleQueuedMsg +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventHandleQueuedMsg) Descriptor() protoreflect.MessageDescriptor { + return md_EventHandleQueuedMsg +} + +// 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_EventHandleQueuedMsg) Type() protoreflect.MessageType { + return _fastReflection_EventHandleQueuedMsg_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventHandleQueuedMsg) New() protoreflect.Message { + return new(fastReflection_EventHandleQueuedMsg) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventHandleQueuedMsg) Interface() protoreflect.ProtoMessage { + return (*EventHandleQueuedMsg)(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_EventHandleQueuedMsg) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.OriginalEventType != "" { + value := protoreflect.ValueOfString(x.OriginalEventType) + if !f(fd_EventHandleQueuedMsg_original_event_type, value) { + return + } + } + if x.EpochNumber != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNumber) + if !f(fd_EventHandleQueuedMsg_epoch_number, value) { + return + } + } + if x.Height != uint64(0) { + value := protoreflect.ValueOfUint64(x.Height) + if !f(fd_EventHandleQueuedMsg_height, value) { + return + } + } + if len(x.TxId) != 0 { + value := protoreflect.ValueOfBytes(x.TxId) + if !f(fd_EventHandleQueuedMsg_tx_id, value) { + return + } + } + if len(x.MsgId) != 0 { + value := protoreflect.ValueOfBytes(x.MsgId) + if !f(fd_EventHandleQueuedMsg_msg_id, value) { + return + } + } + if len(x.OriginalAttributes) != 0 { + value := protoreflect.ValueOfList(&_EventHandleQueuedMsg_6_list{list: &x.OriginalAttributes}) + if !f(fd_EventHandleQueuedMsg_original_attributes, value) { + return + } + } + if x.Error != "" { + value := protoreflect.ValueOfString(x.Error) + if !f(fd_EventHandleQueuedMsg_error, 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_EventHandleQueuedMsg) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_event_type": + return x.OriginalEventType != "" + case "cosmos.epoching.v1.EventHandleQueuedMsg.epoch_number": + return x.EpochNumber != uint64(0) + case "cosmos.epoching.v1.EventHandleQueuedMsg.height": + return x.Height != uint64(0) + case "cosmos.epoching.v1.EventHandleQueuedMsg.tx_id": + return len(x.TxId) != 0 + case "cosmos.epoching.v1.EventHandleQueuedMsg.msg_id": + return len(x.MsgId) != 0 + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_attributes": + return len(x.OriginalAttributes) != 0 + case "cosmos.epoching.v1.EventHandleQueuedMsg.error": + return x.Error != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventHandleQueuedMsg")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventHandleQueuedMsg 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_EventHandleQueuedMsg) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_event_type": + x.OriginalEventType = "" + case "cosmos.epoching.v1.EventHandleQueuedMsg.epoch_number": + x.EpochNumber = uint64(0) + case "cosmos.epoching.v1.EventHandleQueuedMsg.height": + x.Height = uint64(0) + case "cosmos.epoching.v1.EventHandleQueuedMsg.tx_id": + x.TxId = nil + case "cosmos.epoching.v1.EventHandleQueuedMsg.msg_id": + x.MsgId = nil + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_attributes": + x.OriginalAttributes = nil + case "cosmos.epoching.v1.EventHandleQueuedMsg.error": + x.Error = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventHandleQueuedMsg")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventHandleQueuedMsg 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_EventHandleQueuedMsg) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_event_type": + value := x.OriginalEventType + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventHandleQueuedMsg.epoch_number": + value := x.EpochNumber + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.EventHandleQueuedMsg.height": + value := x.Height + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.EventHandleQueuedMsg.tx_id": + value := x.TxId + return protoreflect.ValueOfBytes(value) + case "cosmos.epoching.v1.EventHandleQueuedMsg.msg_id": + value := x.MsgId + return protoreflect.ValueOfBytes(value) + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_attributes": + if len(x.OriginalAttributes) == 0 { + return protoreflect.ValueOfList(&_EventHandleQueuedMsg_6_list{}) + } + listValue := &_EventHandleQueuedMsg_6_list{list: &x.OriginalAttributes} + return protoreflect.ValueOfList(listValue) + case "cosmos.epoching.v1.EventHandleQueuedMsg.error": + value := x.Error + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventHandleQueuedMsg")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventHandleQueuedMsg 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_EventHandleQueuedMsg) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_event_type": + x.OriginalEventType = value.Interface().(string) + case "cosmos.epoching.v1.EventHandleQueuedMsg.epoch_number": + x.EpochNumber = value.Uint() + case "cosmos.epoching.v1.EventHandleQueuedMsg.height": + x.Height = value.Uint() + case "cosmos.epoching.v1.EventHandleQueuedMsg.tx_id": + x.TxId = value.Bytes() + case "cosmos.epoching.v1.EventHandleQueuedMsg.msg_id": + x.MsgId = value.Bytes() + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_attributes": + lv := value.List() + clv := lv.(*_EventHandleQueuedMsg_6_list) + x.OriginalAttributes = *clv.list + case "cosmos.epoching.v1.EventHandleQueuedMsg.error": + x.Error = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventHandleQueuedMsg")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventHandleQueuedMsg 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_EventHandleQueuedMsg) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_attributes": + if x.OriginalAttributes == nil { + x.OriginalAttributes = [][]byte{} + } + value := &_EventHandleQueuedMsg_6_list{list: &x.OriginalAttributes} + return protoreflect.ValueOfList(value) + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_event_type": + panic(fmt.Errorf("field original_event_type of message cosmos.epoching.v1.EventHandleQueuedMsg is not mutable")) + case "cosmos.epoching.v1.EventHandleQueuedMsg.epoch_number": + panic(fmt.Errorf("field epoch_number of message cosmos.epoching.v1.EventHandleQueuedMsg is not mutable")) + case "cosmos.epoching.v1.EventHandleQueuedMsg.height": + panic(fmt.Errorf("field height of message cosmos.epoching.v1.EventHandleQueuedMsg is not mutable")) + case "cosmos.epoching.v1.EventHandleQueuedMsg.tx_id": + panic(fmt.Errorf("field tx_id of message cosmos.epoching.v1.EventHandleQueuedMsg is not mutable")) + case "cosmos.epoching.v1.EventHandleQueuedMsg.msg_id": + panic(fmt.Errorf("field msg_id of message cosmos.epoching.v1.EventHandleQueuedMsg is not mutable")) + case "cosmos.epoching.v1.EventHandleQueuedMsg.error": + panic(fmt.Errorf("field error of message cosmos.epoching.v1.EventHandleQueuedMsg is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventHandleQueuedMsg")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventHandleQueuedMsg 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_EventHandleQueuedMsg) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_event_type": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventHandleQueuedMsg.epoch_number": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.EventHandleQueuedMsg.height": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.EventHandleQueuedMsg.tx_id": + return protoreflect.ValueOfBytes(nil) + case "cosmos.epoching.v1.EventHandleQueuedMsg.msg_id": + return protoreflect.ValueOfBytes(nil) + case "cosmos.epoching.v1.EventHandleQueuedMsg.original_attributes": + list := [][]byte{} + return protoreflect.ValueOfList(&_EventHandleQueuedMsg_6_list{list: &list}) + case "cosmos.epoching.v1.EventHandleQueuedMsg.error": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventHandleQueuedMsg")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventHandleQueuedMsg 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_EventHandleQueuedMsg) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.EventHandleQueuedMsg", 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_EventHandleQueuedMsg) 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_EventHandleQueuedMsg) 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_EventHandleQueuedMsg) 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_EventHandleQueuedMsg) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventHandleQueuedMsg) + 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.OriginalEventType) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.EpochNumber != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNumber)) + } + if x.Height != 0 { + n += 1 + runtime.Sov(uint64(x.Height)) + } + l = len(x.TxId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MsgId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.OriginalAttributes) > 0 { + for _, b := range x.OriginalAttributes { + l = len(b) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.Error) + 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().(*EventHandleQueuedMsg) + 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.Error) > 0 { + i -= len(x.Error) + copy(dAtA[i:], x.Error) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Error))) + i-- + dAtA[i] = 0x3a + } + if len(x.OriginalAttributes) > 0 { + for iNdEx := len(x.OriginalAttributes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.OriginalAttributes[iNdEx]) + copy(dAtA[i:], x.OriginalAttributes[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginalAttributes[iNdEx]))) + i-- + dAtA[i] = 0x32 + } + } + if len(x.MsgId) > 0 { + i -= len(x.MsgId) + copy(dAtA[i:], x.MsgId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MsgId))) + i-- + dAtA[i] = 0x2a + } + if len(x.TxId) > 0 { + i -= len(x.TxId) + copy(dAtA[i:], x.TxId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TxId))) + i-- + dAtA[i] = 0x22 + } + if x.Height != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Height)) + i-- + dAtA[i] = 0x18 + } + if x.EpochNumber != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNumber)) + i-- + dAtA[i] = 0x10 + } + if len(x.OriginalEventType) > 0 { + i -= len(x.OriginalEventType) + copy(dAtA[i:], x.OriginalEventType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginalEventType))) + 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().(*EventHandleQueuedMsg) + 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: EventHandleQueuedMsg: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventHandleQueuedMsg: 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 OriginalEventType", 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.OriginalEventType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + x.EpochNumber = 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.EpochNumber |= 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 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 |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TxId", 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.TxId = append(x.TxId[:0], dAtA[iNdEx:postIndex]...) + if x.TxId == nil { + x.TxId = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgId", 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.MsgId = append(x.MsgId[:0], dAtA[iNdEx:postIndex]...) + if x.MsgId == nil { + x.MsgId = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginalAttributes", 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.OriginalAttributes = append(x.OriginalAttributes, make([]byte, postIndex-iNdEx)) + copy(x.OriginalAttributes[len(x.OriginalAttributes)-1], 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 Error", 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.Error = 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 = (*_EventSlashThreshold_3_list)(nil) + +type _EventSlashThreshold_3_list struct { + list *[][]byte +} + +func (x *_EventSlashThreshold_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_EventSlashThreshold_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfBytes((*x.list)[i]) +} + +func (x *_EventSlashThreshold_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Bytes() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_EventSlashThreshold_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Bytes() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_EventSlashThreshold_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message EventSlashThreshold at list field SlashedValidators as it is not of Message kind")) +} + +func (x *_EventSlashThreshold_3_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_EventSlashThreshold_3_list) NewElement() protoreflect.Value { + var v []byte + return protoreflect.ValueOfBytes(v) +} + +func (x *_EventSlashThreshold_3_list) IsValid() bool { + return x.list != nil +} + +var ( + md_EventSlashThreshold protoreflect.MessageDescriptor + fd_EventSlashThreshold_slashed_voting_power protoreflect.FieldDescriptor + fd_EventSlashThreshold_total_voting_power protoreflect.FieldDescriptor + fd_EventSlashThreshold_slashed_validators protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_events_proto_init() + md_EventSlashThreshold = File_cosmos_epoching_v1_events_proto.Messages().ByName("EventSlashThreshold") + fd_EventSlashThreshold_slashed_voting_power = md_EventSlashThreshold.Fields().ByName("slashed_voting_power") + fd_EventSlashThreshold_total_voting_power = md_EventSlashThreshold.Fields().ByName("total_voting_power") + fd_EventSlashThreshold_slashed_validators = md_EventSlashThreshold.Fields().ByName("slashed_validators") +} + +var _ protoreflect.Message = (*fastReflection_EventSlashThreshold)(nil) + +type fastReflection_EventSlashThreshold EventSlashThreshold + +func (x *EventSlashThreshold) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventSlashThreshold)(x) +} + +func (x *EventSlashThreshold) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_events_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_EventSlashThreshold_messageType fastReflection_EventSlashThreshold_messageType +var _ protoreflect.MessageType = fastReflection_EventSlashThreshold_messageType{} + +type fastReflection_EventSlashThreshold_messageType struct{} + +func (x fastReflection_EventSlashThreshold_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventSlashThreshold)(nil) +} +func (x fastReflection_EventSlashThreshold_messageType) New() protoreflect.Message { + return new(fastReflection_EventSlashThreshold) +} +func (x fastReflection_EventSlashThreshold_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventSlashThreshold +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventSlashThreshold) Descriptor() protoreflect.MessageDescriptor { + return md_EventSlashThreshold +} + +// 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_EventSlashThreshold) Type() protoreflect.MessageType { + return _fastReflection_EventSlashThreshold_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventSlashThreshold) New() protoreflect.Message { + return new(fastReflection_EventSlashThreshold) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventSlashThreshold) Interface() protoreflect.ProtoMessage { + return (*EventSlashThreshold)(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_EventSlashThreshold) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.SlashedVotingPower != int64(0) { + value := protoreflect.ValueOfInt64(x.SlashedVotingPower) + if !f(fd_EventSlashThreshold_slashed_voting_power, value) { + return + } + } + if x.TotalVotingPower != int64(0) { + value := protoreflect.ValueOfInt64(x.TotalVotingPower) + if !f(fd_EventSlashThreshold_total_voting_power, value) { + return + } + } + if len(x.SlashedValidators) != 0 { + value := protoreflect.ValueOfList(&_EventSlashThreshold_3_list{list: &x.SlashedValidators}) + if !f(fd_EventSlashThreshold_slashed_validators, 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_EventSlashThreshold) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.EventSlashThreshold.slashed_voting_power": + return x.SlashedVotingPower != int64(0) + case "cosmos.epoching.v1.EventSlashThreshold.total_voting_power": + return x.TotalVotingPower != int64(0) + case "cosmos.epoching.v1.EventSlashThreshold.slashed_validators": + return len(x.SlashedValidators) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventSlashThreshold")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventSlashThreshold 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_EventSlashThreshold) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventSlashThreshold.slashed_voting_power": + x.SlashedVotingPower = int64(0) + case "cosmos.epoching.v1.EventSlashThreshold.total_voting_power": + x.TotalVotingPower = int64(0) + case "cosmos.epoching.v1.EventSlashThreshold.slashed_validators": + x.SlashedValidators = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventSlashThreshold")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventSlashThreshold 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_EventSlashThreshold) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.EventSlashThreshold.slashed_voting_power": + value := x.SlashedVotingPower + return protoreflect.ValueOfInt64(value) + case "cosmos.epoching.v1.EventSlashThreshold.total_voting_power": + value := x.TotalVotingPower + return protoreflect.ValueOfInt64(value) + case "cosmos.epoching.v1.EventSlashThreshold.slashed_validators": + if len(x.SlashedValidators) == 0 { + return protoreflect.ValueOfList(&_EventSlashThreshold_3_list{}) + } + listValue := &_EventSlashThreshold_3_list{list: &x.SlashedValidators} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventSlashThreshold")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventSlashThreshold 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_EventSlashThreshold) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventSlashThreshold.slashed_voting_power": + x.SlashedVotingPower = value.Int() + case "cosmos.epoching.v1.EventSlashThreshold.total_voting_power": + x.TotalVotingPower = value.Int() + case "cosmos.epoching.v1.EventSlashThreshold.slashed_validators": + lv := value.List() + clv := lv.(*_EventSlashThreshold_3_list) + x.SlashedValidators = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventSlashThreshold")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventSlashThreshold 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_EventSlashThreshold) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventSlashThreshold.slashed_validators": + if x.SlashedValidators == nil { + x.SlashedValidators = [][]byte{} + } + value := &_EventSlashThreshold_3_list{list: &x.SlashedValidators} + return protoreflect.ValueOfList(value) + case "cosmos.epoching.v1.EventSlashThreshold.slashed_voting_power": + panic(fmt.Errorf("field slashed_voting_power of message cosmos.epoching.v1.EventSlashThreshold is not mutable")) + case "cosmos.epoching.v1.EventSlashThreshold.total_voting_power": + panic(fmt.Errorf("field total_voting_power of message cosmos.epoching.v1.EventSlashThreshold is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventSlashThreshold")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventSlashThreshold 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_EventSlashThreshold) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventSlashThreshold.slashed_voting_power": + return protoreflect.ValueOfInt64(int64(0)) + case "cosmos.epoching.v1.EventSlashThreshold.total_voting_power": + return protoreflect.ValueOfInt64(int64(0)) + case "cosmos.epoching.v1.EventSlashThreshold.slashed_validators": + list := [][]byte{} + return protoreflect.ValueOfList(&_EventSlashThreshold_3_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventSlashThreshold")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventSlashThreshold 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_EventSlashThreshold) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.EventSlashThreshold", 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_EventSlashThreshold) 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_EventSlashThreshold) 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_EventSlashThreshold) 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_EventSlashThreshold) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventSlashThreshold) + 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.SlashedVotingPower != 0 { + n += 1 + runtime.Sov(uint64(x.SlashedVotingPower)) + } + if x.TotalVotingPower != 0 { + n += 1 + runtime.Sov(uint64(x.TotalVotingPower)) + } + if len(x.SlashedValidators) > 0 { + for _, b := range x.SlashedValidators { + l = len(b) + 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().(*EventSlashThreshold) + 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.SlashedValidators) > 0 { + for iNdEx := len(x.SlashedValidators) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.SlashedValidators[iNdEx]) + copy(dAtA[i:], x.SlashedValidators[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SlashedValidators[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if x.TotalVotingPower != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalVotingPower)) + i-- + dAtA[i] = 0x10 + } + if x.SlashedVotingPower != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SlashedVotingPower)) + 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().(*EventSlashThreshold) + 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: EventSlashThreshold: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSlashThreshold: 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 SlashedVotingPower", wireType) + } + x.SlashedVotingPower = 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.SlashedVotingPower |= int64(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 TotalVotingPower", wireType) + } + x.TotalVotingPower = 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.TotalVotingPower |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SlashedValidators", 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.SlashedValidators = append(x.SlashedValidators, make([]byte, postIndex-iNdEx)) + copy(x.SlashedValidators[len(x.SlashedValidators)-1], 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_EventWrappedDelegate protoreflect.MessageDescriptor + fd_EventWrappedDelegate_delegator_address protoreflect.FieldDescriptor + fd_EventWrappedDelegate_validator_address protoreflect.FieldDescriptor + fd_EventWrappedDelegate_amount protoreflect.FieldDescriptor + fd_EventWrappedDelegate_denom protoreflect.FieldDescriptor + fd_EventWrappedDelegate_epoch_boundary protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_events_proto_init() + md_EventWrappedDelegate = File_cosmos_epoching_v1_events_proto.Messages().ByName("EventWrappedDelegate") + fd_EventWrappedDelegate_delegator_address = md_EventWrappedDelegate.Fields().ByName("delegator_address") + fd_EventWrappedDelegate_validator_address = md_EventWrappedDelegate.Fields().ByName("validator_address") + fd_EventWrappedDelegate_amount = md_EventWrappedDelegate.Fields().ByName("amount") + fd_EventWrappedDelegate_denom = md_EventWrappedDelegate.Fields().ByName("denom") + fd_EventWrappedDelegate_epoch_boundary = md_EventWrappedDelegate.Fields().ByName("epoch_boundary") +} + +var _ protoreflect.Message = (*fastReflection_EventWrappedDelegate)(nil) + +type fastReflection_EventWrappedDelegate EventWrappedDelegate + +func (x *EventWrappedDelegate) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventWrappedDelegate)(x) +} + +func (x *EventWrappedDelegate) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_events_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_EventWrappedDelegate_messageType fastReflection_EventWrappedDelegate_messageType +var _ protoreflect.MessageType = fastReflection_EventWrappedDelegate_messageType{} + +type fastReflection_EventWrappedDelegate_messageType struct{} + +func (x fastReflection_EventWrappedDelegate_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventWrappedDelegate)(nil) +} +func (x fastReflection_EventWrappedDelegate_messageType) New() protoreflect.Message { + return new(fastReflection_EventWrappedDelegate) +} +func (x fastReflection_EventWrappedDelegate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventWrappedDelegate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventWrappedDelegate) Descriptor() protoreflect.MessageDescriptor { + return md_EventWrappedDelegate +} + +// 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_EventWrappedDelegate) Type() protoreflect.MessageType { + return _fastReflection_EventWrappedDelegate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventWrappedDelegate) New() protoreflect.Message { + return new(fastReflection_EventWrappedDelegate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventWrappedDelegate) Interface() protoreflect.ProtoMessage { + return (*EventWrappedDelegate)(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_EventWrappedDelegate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelegatorAddress != "" { + value := protoreflect.ValueOfString(x.DelegatorAddress) + if !f(fd_EventWrappedDelegate_delegator_address, value) { + return + } + } + if x.ValidatorAddress != "" { + value := protoreflect.ValueOfString(x.ValidatorAddress) + if !f(fd_EventWrappedDelegate_validator_address, value) { + return + } + } + if x.Amount != uint64(0) { + value := protoreflect.ValueOfUint64(x.Amount) + if !f(fd_EventWrappedDelegate_amount, value) { + return + } + } + if x.Denom != "" { + value := protoreflect.ValueOfString(x.Denom) + if !f(fd_EventWrappedDelegate_denom, value) { + return + } + } + if x.EpochBoundary != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochBoundary) + if !f(fd_EventWrappedDelegate_epoch_boundary, 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_EventWrappedDelegate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedDelegate.delegator_address": + return x.DelegatorAddress != "" + case "cosmos.epoching.v1.EventWrappedDelegate.validator_address": + return x.ValidatorAddress != "" + case "cosmos.epoching.v1.EventWrappedDelegate.amount": + return x.Amount != uint64(0) + case "cosmos.epoching.v1.EventWrappedDelegate.denom": + return x.Denom != "" + case "cosmos.epoching.v1.EventWrappedDelegate.epoch_boundary": + return x.EpochBoundary != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedDelegate 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_EventWrappedDelegate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedDelegate.delegator_address": + x.DelegatorAddress = "" + case "cosmos.epoching.v1.EventWrappedDelegate.validator_address": + x.ValidatorAddress = "" + case "cosmos.epoching.v1.EventWrappedDelegate.amount": + x.Amount = uint64(0) + case "cosmos.epoching.v1.EventWrappedDelegate.denom": + x.Denom = "" + case "cosmos.epoching.v1.EventWrappedDelegate.epoch_boundary": + x.EpochBoundary = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedDelegate 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_EventWrappedDelegate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.EventWrappedDelegate.delegator_address": + value := x.DelegatorAddress + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventWrappedDelegate.validator_address": + value := x.ValidatorAddress + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventWrappedDelegate.amount": + value := x.Amount + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.EventWrappedDelegate.denom": + value := x.Denom + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventWrappedDelegate.epoch_boundary": + value := x.EpochBoundary + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedDelegate 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_EventWrappedDelegate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedDelegate.delegator_address": + x.DelegatorAddress = value.Interface().(string) + case "cosmos.epoching.v1.EventWrappedDelegate.validator_address": + x.ValidatorAddress = value.Interface().(string) + case "cosmos.epoching.v1.EventWrappedDelegate.amount": + x.Amount = value.Uint() + case "cosmos.epoching.v1.EventWrappedDelegate.denom": + x.Denom = value.Interface().(string) + case "cosmos.epoching.v1.EventWrappedDelegate.epoch_boundary": + x.EpochBoundary = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedDelegate 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_EventWrappedDelegate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedDelegate.delegator_address": + panic(fmt.Errorf("field delegator_address of message cosmos.epoching.v1.EventWrappedDelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedDelegate.validator_address": + panic(fmt.Errorf("field validator_address of message cosmos.epoching.v1.EventWrappedDelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedDelegate.amount": + panic(fmt.Errorf("field amount of message cosmos.epoching.v1.EventWrappedDelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedDelegate.denom": + panic(fmt.Errorf("field denom of message cosmos.epoching.v1.EventWrappedDelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedDelegate.epoch_boundary": + panic(fmt.Errorf("field epoch_boundary of message cosmos.epoching.v1.EventWrappedDelegate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedDelegate 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_EventWrappedDelegate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedDelegate.delegator_address": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventWrappedDelegate.validator_address": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventWrappedDelegate.amount": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.EventWrappedDelegate.denom": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventWrappedDelegate.epoch_boundary": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedDelegate 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_EventWrappedDelegate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.EventWrappedDelegate", 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_EventWrappedDelegate) 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_EventWrappedDelegate) 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_EventWrappedDelegate) 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_EventWrappedDelegate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventWrappedDelegate) + 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.DelegatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ValidatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Amount != 0 { + n += 1 + runtime.Sov(uint64(x.Amount)) + } + l = len(x.Denom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.EpochBoundary != 0 { + n += 1 + runtime.Sov(uint64(x.EpochBoundary)) + } + 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().(*EventWrappedDelegate) + 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.EpochBoundary != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochBoundary)) + i-- + dAtA[i] = 0x28 + } + if len(x.Denom) > 0 { + i -= len(x.Denom) + copy(dAtA[i:], x.Denom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) + i-- + dAtA[i] = 0x22 + } + if x.Amount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) + i-- + dAtA[i] = 0x18 + } + if len(x.ValidatorAddress) > 0 { + i -= len(x.ValidatorAddress) + copy(dAtA[i:], x.ValidatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ValidatorAddress))) + i-- + dAtA[i] = 0x12 + } + if len(x.DelegatorAddress) > 0 { + i -= len(x.DelegatorAddress) + copy(dAtA[i:], x.DelegatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelegatorAddress))) + 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().(*EventWrappedDelegate) + 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: EventWrappedDelegate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventWrappedDelegate: 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 DelegatorAddress", 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.DelegatorAddress = 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 ValidatorAddress", 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.ValidatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + x.Amount = 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.Amount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Denom", 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.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EpochBoundary", wireType) + } + x.EpochBoundary = 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.EpochBoundary |= 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_EventWrappedUndelegate protoreflect.MessageDescriptor + fd_EventWrappedUndelegate_delegator_address protoreflect.FieldDescriptor + fd_EventWrappedUndelegate_validator_address protoreflect.FieldDescriptor + fd_EventWrappedUndelegate_amount protoreflect.FieldDescriptor + fd_EventWrappedUndelegate_denom protoreflect.FieldDescriptor + fd_EventWrappedUndelegate_epoch_boundary protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_events_proto_init() + md_EventWrappedUndelegate = File_cosmos_epoching_v1_events_proto.Messages().ByName("EventWrappedUndelegate") + fd_EventWrappedUndelegate_delegator_address = md_EventWrappedUndelegate.Fields().ByName("delegator_address") + fd_EventWrappedUndelegate_validator_address = md_EventWrappedUndelegate.Fields().ByName("validator_address") + fd_EventWrappedUndelegate_amount = md_EventWrappedUndelegate.Fields().ByName("amount") + fd_EventWrappedUndelegate_denom = md_EventWrappedUndelegate.Fields().ByName("denom") + fd_EventWrappedUndelegate_epoch_boundary = md_EventWrappedUndelegate.Fields().ByName("epoch_boundary") +} + +var _ protoreflect.Message = (*fastReflection_EventWrappedUndelegate)(nil) + +type fastReflection_EventWrappedUndelegate EventWrappedUndelegate + +func (x *EventWrappedUndelegate) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventWrappedUndelegate)(x) +} + +func (x *EventWrappedUndelegate) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_events_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_EventWrappedUndelegate_messageType fastReflection_EventWrappedUndelegate_messageType +var _ protoreflect.MessageType = fastReflection_EventWrappedUndelegate_messageType{} + +type fastReflection_EventWrappedUndelegate_messageType struct{} + +func (x fastReflection_EventWrappedUndelegate_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventWrappedUndelegate)(nil) +} +func (x fastReflection_EventWrappedUndelegate_messageType) New() protoreflect.Message { + return new(fastReflection_EventWrappedUndelegate) +} +func (x fastReflection_EventWrappedUndelegate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventWrappedUndelegate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventWrappedUndelegate) Descriptor() protoreflect.MessageDescriptor { + return md_EventWrappedUndelegate +} + +// 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_EventWrappedUndelegate) Type() protoreflect.MessageType { + return _fastReflection_EventWrappedUndelegate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventWrappedUndelegate) New() protoreflect.Message { + return new(fastReflection_EventWrappedUndelegate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventWrappedUndelegate) Interface() protoreflect.ProtoMessage { + return (*EventWrappedUndelegate)(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_EventWrappedUndelegate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelegatorAddress != "" { + value := protoreflect.ValueOfString(x.DelegatorAddress) + if !f(fd_EventWrappedUndelegate_delegator_address, value) { + return + } + } + if x.ValidatorAddress != "" { + value := protoreflect.ValueOfString(x.ValidatorAddress) + if !f(fd_EventWrappedUndelegate_validator_address, value) { + return + } + } + if x.Amount != uint64(0) { + value := protoreflect.ValueOfUint64(x.Amount) + if !f(fd_EventWrappedUndelegate_amount, value) { + return + } + } + if x.Denom != "" { + value := protoreflect.ValueOfString(x.Denom) + if !f(fd_EventWrappedUndelegate_denom, value) { + return + } + } + if x.EpochBoundary != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochBoundary) + if !f(fd_EventWrappedUndelegate_epoch_boundary, 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_EventWrappedUndelegate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedUndelegate.delegator_address": + return x.DelegatorAddress != "" + case "cosmos.epoching.v1.EventWrappedUndelegate.validator_address": + return x.ValidatorAddress != "" + case "cosmos.epoching.v1.EventWrappedUndelegate.amount": + return x.Amount != uint64(0) + case "cosmos.epoching.v1.EventWrappedUndelegate.denom": + return x.Denom != "" + case "cosmos.epoching.v1.EventWrappedUndelegate.epoch_boundary": + return x.EpochBoundary != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedUndelegate 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_EventWrappedUndelegate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedUndelegate.delegator_address": + x.DelegatorAddress = "" + case "cosmos.epoching.v1.EventWrappedUndelegate.validator_address": + x.ValidatorAddress = "" + case "cosmos.epoching.v1.EventWrappedUndelegate.amount": + x.Amount = uint64(0) + case "cosmos.epoching.v1.EventWrappedUndelegate.denom": + x.Denom = "" + case "cosmos.epoching.v1.EventWrappedUndelegate.epoch_boundary": + x.EpochBoundary = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedUndelegate 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_EventWrappedUndelegate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.EventWrappedUndelegate.delegator_address": + value := x.DelegatorAddress + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventWrappedUndelegate.validator_address": + value := x.ValidatorAddress + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventWrappedUndelegate.amount": + value := x.Amount + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.EventWrappedUndelegate.denom": + value := x.Denom + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventWrappedUndelegate.epoch_boundary": + value := x.EpochBoundary + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedUndelegate 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_EventWrappedUndelegate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedUndelegate.delegator_address": + x.DelegatorAddress = value.Interface().(string) + case "cosmos.epoching.v1.EventWrappedUndelegate.validator_address": + x.ValidatorAddress = value.Interface().(string) + case "cosmos.epoching.v1.EventWrappedUndelegate.amount": + x.Amount = value.Uint() + case "cosmos.epoching.v1.EventWrappedUndelegate.denom": + x.Denom = value.Interface().(string) + case "cosmos.epoching.v1.EventWrappedUndelegate.epoch_boundary": + x.EpochBoundary = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedUndelegate 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_EventWrappedUndelegate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedUndelegate.delegator_address": + panic(fmt.Errorf("field delegator_address of message cosmos.epoching.v1.EventWrappedUndelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedUndelegate.validator_address": + panic(fmt.Errorf("field validator_address of message cosmos.epoching.v1.EventWrappedUndelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedUndelegate.amount": + panic(fmt.Errorf("field amount of message cosmos.epoching.v1.EventWrappedUndelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedUndelegate.denom": + panic(fmt.Errorf("field denom of message cosmos.epoching.v1.EventWrappedUndelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedUndelegate.epoch_boundary": + panic(fmt.Errorf("field epoch_boundary of message cosmos.epoching.v1.EventWrappedUndelegate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedUndelegate 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_EventWrappedUndelegate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedUndelegate.delegator_address": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventWrappedUndelegate.validator_address": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventWrappedUndelegate.amount": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.EventWrappedUndelegate.denom": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventWrappedUndelegate.epoch_boundary": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedUndelegate 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_EventWrappedUndelegate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.EventWrappedUndelegate", 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_EventWrappedUndelegate) 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_EventWrappedUndelegate) 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_EventWrappedUndelegate) 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_EventWrappedUndelegate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventWrappedUndelegate) + 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.DelegatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ValidatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Amount != 0 { + n += 1 + runtime.Sov(uint64(x.Amount)) + } + l = len(x.Denom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.EpochBoundary != 0 { + n += 1 + runtime.Sov(uint64(x.EpochBoundary)) + } + 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().(*EventWrappedUndelegate) + 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.EpochBoundary != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochBoundary)) + i-- + dAtA[i] = 0x28 + } + if len(x.Denom) > 0 { + i -= len(x.Denom) + copy(dAtA[i:], x.Denom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) + i-- + dAtA[i] = 0x22 + } + if x.Amount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) + i-- + dAtA[i] = 0x18 + } + if len(x.ValidatorAddress) > 0 { + i -= len(x.ValidatorAddress) + copy(dAtA[i:], x.ValidatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ValidatorAddress))) + i-- + dAtA[i] = 0x12 + } + if len(x.DelegatorAddress) > 0 { + i -= len(x.DelegatorAddress) + copy(dAtA[i:], x.DelegatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelegatorAddress))) + 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().(*EventWrappedUndelegate) + 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: EventWrappedUndelegate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventWrappedUndelegate: 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 DelegatorAddress", 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.DelegatorAddress = 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 ValidatorAddress", 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.ValidatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + x.Amount = 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.Amount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Denom", 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.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EpochBoundary", wireType) + } + x.EpochBoundary = 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.EpochBoundary |= 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_EventWrappedBeginRedelegate protoreflect.MessageDescriptor + fd_EventWrappedBeginRedelegate_delegator_address protoreflect.FieldDescriptor + fd_EventWrappedBeginRedelegate_source_validator_address protoreflect.FieldDescriptor + fd_EventWrappedBeginRedelegate_destination_validator_address protoreflect.FieldDescriptor + fd_EventWrappedBeginRedelegate_amount protoreflect.FieldDescriptor + fd_EventWrappedBeginRedelegate_denom protoreflect.FieldDescriptor + fd_EventWrappedBeginRedelegate_epoch_boundary protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_events_proto_init() + md_EventWrappedBeginRedelegate = File_cosmos_epoching_v1_events_proto.Messages().ByName("EventWrappedBeginRedelegate") + fd_EventWrappedBeginRedelegate_delegator_address = md_EventWrappedBeginRedelegate.Fields().ByName("delegator_address") + fd_EventWrappedBeginRedelegate_source_validator_address = md_EventWrappedBeginRedelegate.Fields().ByName("source_validator_address") + fd_EventWrappedBeginRedelegate_destination_validator_address = md_EventWrappedBeginRedelegate.Fields().ByName("destination_validator_address") + fd_EventWrappedBeginRedelegate_amount = md_EventWrappedBeginRedelegate.Fields().ByName("amount") + fd_EventWrappedBeginRedelegate_denom = md_EventWrappedBeginRedelegate.Fields().ByName("denom") + fd_EventWrappedBeginRedelegate_epoch_boundary = md_EventWrappedBeginRedelegate.Fields().ByName("epoch_boundary") +} + +var _ protoreflect.Message = (*fastReflection_EventWrappedBeginRedelegate)(nil) + +type fastReflection_EventWrappedBeginRedelegate EventWrappedBeginRedelegate + +func (x *EventWrappedBeginRedelegate) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventWrappedBeginRedelegate)(x) +} + +func (x *EventWrappedBeginRedelegate) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_events_proto_msgTypes[6] + 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_EventWrappedBeginRedelegate_messageType fastReflection_EventWrappedBeginRedelegate_messageType +var _ protoreflect.MessageType = fastReflection_EventWrappedBeginRedelegate_messageType{} + +type fastReflection_EventWrappedBeginRedelegate_messageType struct{} + +func (x fastReflection_EventWrappedBeginRedelegate_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventWrappedBeginRedelegate)(nil) +} +func (x fastReflection_EventWrappedBeginRedelegate_messageType) New() protoreflect.Message { + return new(fastReflection_EventWrappedBeginRedelegate) +} +func (x fastReflection_EventWrappedBeginRedelegate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventWrappedBeginRedelegate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventWrappedBeginRedelegate) Descriptor() protoreflect.MessageDescriptor { + return md_EventWrappedBeginRedelegate +} + +// 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_EventWrappedBeginRedelegate) Type() protoreflect.MessageType { + return _fastReflection_EventWrappedBeginRedelegate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventWrappedBeginRedelegate) New() protoreflect.Message { + return new(fastReflection_EventWrappedBeginRedelegate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventWrappedBeginRedelegate) Interface() protoreflect.ProtoMessage { + return (*EventWrappedBeginRedelegate)(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_EventWrappedBeginRedelegate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelegatorAddress != "" { + value := protoreflect.ValueOfString(x.DelegatorAddress) + if !f(fd_EventWrappedBeginRedelegate_delegator_address, value) { + return + } + } + if x.SourceValidatorAddress != "" { + value := protoreflect.ValueOfString(x.SourceValidatorAddress) + if !f(fd_EventWrappedBeginRedelegate_source_validator_address, value) { + return + } + } + if x.DestinationValidatorAddress != "" { + value := protoreflect.ValueOfString(x.DestinationValidatorAddress) + if !f(fd_EventWrappedBeginRedelegate_destination_validator_address, value) { + return + } + } + if x.Amount != uint64(0) { + value := protoreflect.ValueOfUint64(x.Amount) + if !f(fd_EventWrappedBeginRedelegate_amount, value) { + return + } + } + if x.Denom != "" { + value := protoreflect.ValueOfString(x.Denom) + if !f(fd_EventWrappedBeginRedelegate_denom, value) { + return + } + } + if x.EpochBoundary != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochBoundary) + if !f(fd_EventWrappedBeginRedelegate_epoch_boundary, 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_EventWrappedBeginRedelegate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.delegator_address": + return x.DelegatorAddress != "" + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.source_validator_address": + return x.SourceValidatorAddress != "" + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.destination_validator_address": + return x.DestinationValidatorAddress != "" + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.amount": + return x.Amount != uint64(0) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.denom": + return x.Denom != "" + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.epoch_boundary": + return x.EpochBoundary != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedBeginRedelegate 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_EventWrappedBeginRedelegate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.delegator_address": + x.DelegatorAddress = "" + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.source_validator_address": + x.SourceValidatorAddress = "" + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.destination_validator_address": + x.DestinationValidatorAddress = "" + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.amount": + x.Amount = uint64(0) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.denom": + x.Denom = "" + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.epoch_boundary": + x.EpochBoundary = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedBeginRedelegate 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_EventWrappedBeginRedelegate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.delegator_address": + value := x.DelegatorAddress + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.source_validator_address": + value := x.SourceValidatorAddress + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.destination_validator_address": + value := x.DestinationValidatorAddress + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.amount": + value := x.Amount + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.denom": + value := x.Denom + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.epoch_boundary": + value := x.EpochBoundary + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedBeginRedelegate 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_EventWrappedBeginRedelegate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.delegator_address": + x.DelegatorAddress = value.Interface().(string) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.source_validator_address": + x.SourceValidatorAddress = value.Interface().(string) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.destination_validator_address": + x.DestinationValidatorAddress = value.Interface().(string) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.amount": + x.Amount = value.Uint() + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.denom": + x.Denom = value.Interface().(string) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.epoch_boundary": + x.EpochBoundary = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedBeginRedelegate 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_EventWrappedBeginRedelegate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.delegator_address": + panic(fmt.Errorf("field delegator_address of message cosmos.epoching.v1.EventWrappedBeginRedelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.source_validator_address": + panic(fmt.Errorf("field source_validator_address of message cosmos.epoching.v1.EventWrappedBeginRedelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.destination_validator_address": + panic(fmt.Errorf("field destination_validator_address of message cosmos.epoching.v1.EventWrappedBeginRedelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.amount": + panic(fmt.Errorf("field amount of message cosmos.epoching.v1.EventWrappedBeginRedelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.denom": + panic(fmt.Errorf("field denom of message cosmos.epoching.v1.EventWrappedBeginRedelegate is not mutable")) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.epoch_boundary": + panic(fmt.Errorf("field epoch_boundary of message cosmos.epoching.v1.EventWrappedBeginRedelegate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedBeginRedelegate 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_EventWrappedBeginRedelegate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.delegator_address": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.source_validator_address": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.destination_validator_address": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.amount": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.denom": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.EventWrappedBeginRedelegate.epoch_boundary": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.EventWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.EventWrappedBeginRedelegate 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_EventWrappedBeginRedelegate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.EventWrappedBeginRedelegate", 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_EventWrappedBeginRedelegate) 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_EventWrappedBeginRedelegate) 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_EventWrappedBeginRedelegate) 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_EventWrappedBeginRedelegate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventWrappedBeginRedelegate) + 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.DelegatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SourceValidatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DestinationValidatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Amount != 0 { + n += 1 + runtime.Sov(uint64(x.Amount)) + } + l = len(x.Denom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.EpochBoundary != 0 { + n += 1 + runtime.Sov(uint64(x.EpochBoundary)) + } + 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().(*EventWrappedBeginRedelegate) + 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.EpochBoundary != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochBoundary)) + i-- + dAtA[i] = 0x30 + } + if len(x.Denom) > 0 { + i -= len(x.Denom) + copy(dAtA[i:], x.Denom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) + i-- + dAtA[i] = 0x2a + } + if x.Amount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) + i-- + dAtA[i] = 0x20 + } + if len(x.DestinationValidatorAddress) > 0 { + i -= len(x.DestinationValidatorAddress) + copy(dAtA[i:], x.DestinationValidatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DestinationValidatorAddress))) + i-- + dAtA[i] = 0x1a + } + if len(x.SourceValidatorAddress) > 0 { + i -= len(x.SourceValidatorAddress) + copy(dAtA[i:], x.SourceValidatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SourceValidatorAddress))) + i-- + dAtA[i] = 0x12 + } + if len(x.DelegatorAddress) > 0 { + i -= len(x.DelegatorAddress) + copy(dAtA[i:], x.DelegatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelegatorAddress))) + 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().(*EventWrappedBeginRedelegate) + 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: EventWrappedBeginRedelegate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventWrappedBeginRedelegate: 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 DelegatorAddress", 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.DelegatorAddress = 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 SourceValidatorAddress", 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.SourceValidatorAddress = 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 DestinationValidatorAddress", 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.DestinationValidatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + x.Amount = 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.Amount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Denom", 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.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EpochBoundary", wireType) + } + x.EpochBoundary = 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.EpochBoundary |= 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cosmos/epoching/v1/events.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// EventBeginEpoch is the event emitted when an epoch has started +type EventBeginEpoch struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` +} + +func (x *EventBeginEpoch) Reset() { + *x = EventBeginEpoch{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventBeginEpoch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventBeginEpoch) ProtoMessage() {} + +// Deprecated: Use EventBeginEpoch.ProtoReflect.Descriptor instead. +func (*EventBeginEpoch) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_events_proto_rawDescGZIP(), []int{0} +} + +func (x *EventBeginEpoch) GetEpochNumber() uint64 { + if x != nil { + return x.EpochNumber + } + return 0 +} + +// EventEndEpoch is the event emitted when an epoch has ended +type EventEndEpoch struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` +} + +func (x *EventEndEpoch) Reset() { + *x = EventEndEpoch{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventEndEpoch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventEndEpoch) ProtoMessage() {} + +// Deprecated: Use EventEndEpoch.ProtoReflect.Descriptor instead. +func (*EventEndEpoch) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_events_proto_rawDescGZIP(), []int{1} +} + +func (x *EventEndEpoch) GetEpochNumber() uint64 { + if x != nil { + return x.EpochNumber + } + return 0 +} + +// EventHandleQueuedMsg is the event emitted when a queued message has been +// handled +type EventHandleQueuedMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OriginalEventType string `protobuf:"bytes,1,opt,name=original_event_type,json=originalEventType,proto3" json:"original_event_type,omitempty"` + EpochNumber uint64 `protobuf:"varint,2,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` + Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` + TxId []byte `protobuf:"bytes,4,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + MsgId []byte `protobuf:"bytes,5,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` + OriginalAttributes [][]byte `protobuf:"bytes,6,rep,name=original_attributes,json=originalAttributes,proto3" json:"original_attributes,omitempty"` + Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *EventHandleQueuedMsg) Reset() { + *x = EventHandleQueuedMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventHandleQueuedMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventHandleQueuedMsg) ProtoMessage() {} + +// Deprecated: Use EventHandleQueuedMsg.ProtoReflect.Descriptor instead. +func (*EventHandleQueuedMsg) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_events_proto_rawDescGZIP(), []int{2} +} + +func (x *EventHandleQueuedMsg) GetOriginalEventType() string { + if x != nil { + return x.OriginalEventType + } + return "" +} + +func (x *EventHandleQueuedMsg) GetEpochNumber() uint64 { + if x != nil { + return x.EpochNumber + } + return 0 +} + +func (x *EventHandleQueuedMsg) GetHeight() uint64 { + if x != nil { + return x.Height + } + return 0 +} + +func (x *EventHandleQueuedMsg) GetTxId() []byte { + if x != nil { + return x.TxId + } + return nil +} + +func (x *EventHandleQueuedMsg) GetMsgId() []byte { + if x != nil { + return x.MsgId + } + return nil +} + +func (x *EventHandleQueuedMsg) GetOriginalAttributes() [][]byte { + if x != nil { + return x.OriginalAttributes + } + return nil +} + +func (x *EventHandleQueuedMsg) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +// EventSlashThreshold is the event emitted when a set of validators have been +// slashed +type EventSlashThreshold struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SlashedVotingPower int64 `protobuf:"varint,1,opt,name=slashed_voting_power,json=slashedVotingPower,proto3" json:"slashed_voting_power,omitempty"` + TotalVotingPower int64 `protobuf:"varint,2,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` + SlashedValidators [][]byte `protobuf:"bytes,3,rep,name=slashed_validators,json=slashedValidators,proto3" json:"slashed_validators,omitempty"` +} + +func (x *EventSlashThreshold) Reset() { + *x = EventSlashThreshold{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventSlashThreshold) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventSlashThreshold) ProtoMessage() {} + +// Deprecated: Use EventSlashThreshold.ProtoReflect.Descriptor instead. +func (*EventSlashThreshold) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_events_proto_rawDescGZIP(), []int{3} +} + +func (x *EventSlashThreshold) GetSlashedVotingPower() int64 { + if x != nil { + return x.SlashedVotingPower + } + return 0 +} + +func (x *EventSlashThreshold) GetTotalVotingPower() int64 { + if x != nil { + return x.TotalVotingPower + } + return 0 +} + +func (x *EventSlashThreshold) GetSlashedValidators() [][]byte { + if x != nil { + return x.SlashedValidators + } + return nil +} + +// EventWrappedDelegate is the event emitted when a MsgWrappedDelegate has been +// queued +type EventWrappedDelegate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` + ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"` + EpochBoundary uint64 `protobuf:"varint,5,opt,name=epoch_boundary,json=epochBoundary,proto3" json:"epoch_boundary,omitempty"` +} + +func (x *EventWrappedDelegate) Reset() { + *x = EventWrappedDelegate{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_events_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventWrappedDelegate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventWrappedDelegate) ProtoMessage() {} + +// Deprecated: Use EventWrappedDelegate.ProtoReflect.Descriptor instead. +func (*EventWrappedDelegate) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_events_proto_rawDescGZIP(), []int{4} +} + +func (x *EventWrappedDelegate) GetDelegatorAddress() string { + if x != nil { + return x.DelegatorAddress + } + return "" +} + +func (x *EventWrappedDelegate) GetValidatorAddress() string { + if x != nil { + return x.ValidatorAddress + } + return "" +} + +func (x *EventWrappedDelegate) GetAmount() uint64 { + if x != nil { + return x.Amount + } + return 0 +} + +func (x *EventWrappedDelegate) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +func (x *EventWrappedDelegate) GetEpochBoundary() uint64 { + if x != nil { + return x.EpochBoundary + } + return 0 +} + +// EventWrappedUndelegate is the event emitted when a MsgWrappedUndelegate has +// been queued +type EventWrappedUndelegate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` + ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"` + EpochBoundary uint64 `protobuf:"varint,5,opt,name=epoch_boundary,json=epochBoundary,proto3" json:"epoch_boundary,omitempty"` +} + +func (x *EventWrappedUndelegate) Reset() { + *x = EventWrappedUndelegate{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_events_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventWrappedUndelegate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventWrappedUndelegate) ProtoMessage() {} + +// Deprecated: Use EventWrappedUndelegate.ProtoReflect.Descriptor instead. +func (*EventWrappedUndelegate) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_events_proto_rawDescGZIP(), []int{5} +} + +func (x *EventWrappedUndelegate) GetDelegatorAddress() string { + if x != nil { + return x.DelegatorAddress + } + return "" +} + +func (x *EventWrappedUndelegate) GetValidatorAddress() string { + if x != nil { + return x.ValidatorAddress + } + return "" +} + +func (x *EventWrappedUndelegate) GetAmount() uint64 { + if x != nil { + return x.Amount + } + return 0 +} + +func (x *EventWrappedUndelegate) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +func (x *EventWrappedUndelegate) GetEpochBoundary() uint64 { + if x != nil { + return x.EpochBoundary + } + return 0 +} + +// EventWrappedBeginRedelegate is the event emitted when a +// MsgWrappedBeginRedelegate has been queued +type EventWrappedBeginRedelegate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` + SourceValidatorAddress string `protobuf:"bytes,2,opt,name=source_validator_address,json=sourceValidatorAddress,proto3" json:"source_validator_address,omitempty"` + DestinationValidatorAddress string `protobuf:"bytes,3,opt,name=destination_validator_address,json=destinationValidatorAddress,proto3" json:"destination_validator_address,omitempty"` + Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` + Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` + EpochBoundary uint64 `protobuf:"varint,6,opt,name=epoch_boundary,json=epochBoundary,proto3" json:"epoch_boundary,omitempty"` +} + +func (x *EventWrappedBeginRedelegate) Reset() { + *x = EventWrappedBeginRedelegate{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_events_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventWrappedBeginRedelegate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventWrappedBeginRedelegate) ProtoMessage() {} + +// Deprecated: Use EventWrappedBeginRedelegate.ProtoReflect.Descriptor instead. +func (*EventWrappedBeginRedelegate) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_events_proto_rawDescGZIP(), []int{6} +} + +func (x *EventWrappedBeginRedelegate) GetDelegatorAddress() string { + if x != nil { + return x.DelegatorAddress + } + return "" +} + +func (x *EventWrappedBeginRedelegate) GetSourceValidatorAddress() string { + if x != nil { + return x.SourceValidatorAddress + } + return "" +} + +func (x *EventWrappedBeginRedelegate) GetDestinationValidatorAddress() string { + if x != nil { + return x.DestinationValidatorAddress + } + return "" +} + +func (x *EventWrappedBeginRedelegate) GetAmount() uint64 { + if x != nil { + return x.Amount + } + return 0 +} + +func (x *EventWrappedBeginRedelegate) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +func (x *EventWrappedBeginRedelegate) GetEpochBoundary() uint64 { + if x != nil { + return x.EpochBoundary + } + return 0 +} + +var File_cosmos_epoching_v1_events_proto protoreflect.FileDescriptor + +var file_cosmos_epoching_v1_events_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x34, 0x0a, 0x0f, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x21, + 0x0a, 0x0c, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x22, 0x32, 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x64, 0x45, 0x70, 0x6f, + 0x63, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xb0, 0x02, 0x0a, 0x14, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x2e, + 0x0a, 0x13, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, + 0x0a, 0x0c, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x78, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x78, 0x49, 0x64, 0x12, 0x15, + 0x0a, 0x06, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, + 0x6d, 0x73, 0x67, 0x49, 0x64, 0x12, 0x6b, 0x0a, 0x13, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, + 0x6c, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0c, 0x42, 0x3a, 0xda, 0xde, 0x1f, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x65, + 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x12, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xa4, 0x01, 0x0a, 0x13, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, + 0x12, 0x30, 0x0a, 0x14, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x76, 0x6f, 0x74, 0x69, + 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, + 0x73, 0x6c, 0x61, 0x73, 0x68, 0x65, 0x64, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, + 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f, 0x74, 0x69, + 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, + 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x11, 0x73, 0x6c, + 0x61, 0x73, 0x68, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x22, + 0xc5, 0x01, 0x0a, 0x14, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, + 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, + 0x6e, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, + 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, + 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x42, + 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x22, 0xc7, 0x01, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0d, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, + 0x79, 0x22, 0x9d, 0x02, 0x0a, 0x1b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, + 0x65, 0x64, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x38, + 0x0a, 0x18, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x16, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x42, 0x0a, 0x1d, 0x64, 0x65, 0x73, 0x74, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x1b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0d, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, + 0x79, 0x42, 0xbf, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, + 0x3b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x45, + 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cosmos_epoching_v1_events_proto_rawDescOnce sync.Once + file_cosmos_epoching_v1_events_proto_rawDescData = file_cosmos_epoching_v1_events_proto_rawDesc +) + +func file_cosmos_epoching_v1_events_proto_rawDescGZIP() []byte { + file_cosmos_epoching_v1_events_proto_rawDescOnce.Do(func() { + file_cosmos_epoching_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_epoching_v1_events_proto_rawDescData) + }) + return file_cosmos_epoching_v1_events_proto_rawDescData +} + +var file_cosmos_epoching_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_cosmos_epoching_v1_events_proto_goTypes = []interface{}{ + (*EventBeginEpoch)(nil), // 0: cosmos.epoching.v1.EventBeginEpoch + (*EventEndEpoch)(nil), // 1: cosmos.epoching.v1.EventEndEpoch + (*EventHandleQueuedMsg)(nil), // 2: cosmos.epoching.v1.EventHandleQueuedMsg + (*EventSlashThreshold)(nil), // 3: cosmos.epoching.v1.EventSlashThreshold + (*EventWrappedDelegate)(nil), // 4: cosmos.epoching.v1.EventWrappedDelegate + (*EventWrappedUndelegate)(nil), // 5: cosmos.epoching.v1.EventWrappedUndelegate + (*EventWrappedBeginRedelegate)(nil), // 6: cosmos.epoching.v1.EventWrappedBeginRedelegate +} +var file_cosmos_epoching_v1_events_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_cosmos_epoching_v1_events_proto_init() } +func file_cosmos_epoching_v1_events_proto_init() { + if File_cosmos_epoching_v1_events_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cosmos_epoching_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventBeginEpoch); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventEndEpoch); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventHandleQueuedMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventSlashThreshold); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventWrappedDelegate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventWrappedUndelegate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventWrappedBeginRedelegate); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_epoching_v1_events_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cosmos_epoching_v1_events_proto_goTypes, + DependencyIndexes: file_cosmos_epoching_v1_events_proto_depIdxs, + MessageInfos: file_cosmos_epoching_v1_events_proto_msgTypes, + }.Build() + File_cosmos_epoching_v1_events_proto = out.File + file_cosmos_epoching_v1_events_proto_rawDesc = nil + file_cosmos_epoching_v1_events_proto_goTypes = nil + file_cosmos_epoching_v1_events_proto_depIdxs = nil +} diff --git a/api/cosmos/epoching/v1/genesis.pulsar.go b/api/cosmos/epoching/v1/genesis.pulsar.go new file mode 100644 index 00000000000..f93ad8e2e20 --- /dev/null +++ b/api/cosmos/epoching/v1/genesis.pulsar.go @@ -0,0 +1,594 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package epochingv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_genesis_proto_init() + md_GenesisState = File_cosmos_epoching_v1_genesis_proto.Messages().ByName("GenesisState") + fd_GenesisState_params = md_GenesisState.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) + +type fastReflection_GenesisState GenesisState + +func (x *GenesisState) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisState)(x) +} + +func (x *GenesisState) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_genesis_proto_msgTypes[0] + 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_GenesisState_messageType fastReflection_GenesisState_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} + +type fastReflection_GenesisState_messageType struct{} + +func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState)(nil) +} +func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} +func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// 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_GenesisState) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { + return (*GenesisState)(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_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_GenesisState_params, 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_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.GenesisState.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.GenesisState 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_GenesisState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.GenesisState.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.GenesisState 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_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.GenesisState.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.GenesisState 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_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.GenesisState.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.GenesisState 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_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.GenesisState.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.GenesisState 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_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.GenesisState.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.GenesisState")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.GenesisState 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_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.GenesisState", 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_GenesisState) 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_GenesisState) 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_GenesisState) 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_GenesisState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState) + 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.Params != nil { + l = options.Size(x.Params) + 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().(*GenesisState) + 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.Params != nil { + encoded, err := options.Marshal(x.Params) + 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...) + } 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().(*GenesisState) + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: 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 Params", 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.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cosmos/epoching/v1/genesis.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// GenesisState defines the epoching module's genesis state. +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_genesis_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState) ProtoMessage() {} + +// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. +func (*GenesisState) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_genesis_proto_rawDescGZIP(), []int{0} +} + +func (x *GenesisState) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +var File_cosmos_epoching_v1_genesis_proto protoreflect.FileDescriptor + +var file_cosmos_epoching_v1_genesis_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x48, 0x0a, + 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, + 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xc0, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_cosmos_epoching_v1_genesis_proto_rawDescOnce sync.Once + file_cosmos_epoching_v1_genesis_proto_rawDescData = file_cosmos_epoching_v1_genesis_proto_rawDesc +) + +func file_cosmos_epoching_v1_genesis_proto_rawDescGZIP() []byte { + file_cosmos_epoching_v1_genesis_proto_rawDescOnce.Do(func() { + file_cosmos_epoching_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_epoching_v1_genesis_proto_rawDescData) + }) + return file_cosmos_epoching_v1_genesis_proto_rawDescData +} + +var file_cosmos_epoching_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_cosmos_epoching_v1_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: cosmos.epoching.v1.GenesisState + (*Params)(nil), // 1: cosmos.epoching.v1.Params +} +var file_cosmos_epoching_v1_genesis_proto_depIdxs = []int32{ + 1, // 0: cosmos.epoching.v1.GenesisState.params:type_name -> cosmos.epoching.v1.Params + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_cosmos_epoching_v1_genesis_proto_init() } +func file_cosmos_epoching_v1_genesis_proto_init() { + if File_cosmos_epoching_v1_genesis_proto != nil { + return + } + file_cosmos_epoching_v1_params_proto_init() + if !protoimpl.UnsafeEnabled { + file_cosmos_epoching_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_epoching_v1_genesis_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cosmos_epoching_v1_genesis_proto_goTypes, + DependencyIndexes: file_cosmos_epoching_v1_genesis_proto_depIdxs, + MessageInfos: file_cosmos_epoching_v1_genesis_proto_msgTypes, + }.Build() + File_cosmos_epoching_v1_genesis_proto = out.File + file_cosmos_epoching_v1_genesis_proto_rawDesc = nil + file_cosmos_epoching_v1_genesis_proto_goTypes = nil + file_cosmos_epoching_v1_genesis_proto_depIdxs = nil +} diff --git a/api/cosmos/epoching/v1/params.pulsar.go b/api/cosmos/epoching/v1/params.pulsar.go new file mode 100644 index 00000000000..1da4af5fe2c --- /dev/null +++ b/api/cosmos/epoching/v1/params.pulsar.go @@ -0,0 +1,559 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package epochingv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Params protoreflect.MessageDescriptor + fd_Params_epoch_interval protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_params_proto_init() + md_Params = File_cosmos_epoching_v1_params_proto.Messages().ByName("Params") + fd_Params_epoch_interval = md_Params.Fields().ByName("epoch_interval") +} + +var _ protoreflect.Message = (*fastReflection_Params)(nil) + +type fastReflection_Params Params + +func (x *Params) ProtoReflect() protoreflect.Message { + return (*fastReflection_Params)(x) +} + +func (x *Params) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_params_proto_msgTypes[0] + 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_Params_messageType fastReflection_Params_messageType +var _ protoreflect.MessageType = fastReflection_Params_messageType{} + +type fastReflection_Params_messageType struct{} + +func (x fastReflection_Params_messageType) Zero() protoreflect.Message { + return (*fastReflection_Params)(nil) +} +func (x fastReflection_Params_messageType) New() protoreflect.Message { + return new(fastReflection_Params) +} +func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Params +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { + return md_Params +} + +// 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_Params) Type() protoreflect.MessageType { + return _fastReflection_Params_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Params) New() protoreflect.Message { + return new(fastReflection_Params) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { + return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochInterval != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochInterval) + if !f(fd_Params_epoch_interval, 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_Params) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.Params.epoch_interval": + return x.EpochInterval != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Params")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.Params.epoch_interval": + x.EpochInterval = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Params")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.Params.epoch_interval": + value := x.EpochInterval + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Params")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.Params.epoch_interval": + x.EpochInterval = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Params")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.Params.epoch_interval": + panic(fmt.Errorf("field epoch_interval of message cosmos.epoching.v1.Params is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Params")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Params 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_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.Params.epoch_interval": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.Params")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.Params 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_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Params) + 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.EpochInterval != 0 { + n += 1 + runtime.Sov(uint64(x.EpochInterval)) + } + 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().(*Params) + 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.EpochInterval != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochInterval)) + 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().(*Params) + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: 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 EpochInterval", wireType) + } + x.EpochInterval = 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.EpochInterval |= 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cosmos/epoching/v1/params.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Params defines the parameters for the module. +type Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // epoch_interval is the number of consecutive blocks to form an epoch + EpochInterval uint64 `protobuf:"varint,1,opt,name=epoch_interval,json=epochInterval,proto3" json:"epoch_interval,omitempty"` +} + +func (x *Params) Reset() { + *x = Params{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_params_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Params) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Params) ProtoMessage() {} + +// Deprecated: Use Params.ProtoReflect.Descriptor instead. +func (*Params) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_params_proto_rawDescGZIP(), []int{0} +} + +func (x *Params) GetEpochInterval() uint64 { + if x != nil { + return x.EpochInterval + } + return 0 +} + +var File_cosmos_epoching_v1_params_proto protoreflect.FileDescriptor + +var file_cosmos_epoching_v1_params_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x50, 0x0a, 0x06, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x19, 0xf2, + 0xde, 0x1f, 0x15, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, 0x52, 0x0d, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x42, 0xbf, 0x01, + 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x45, 0x58, 0xaa, 0x02, 0x12, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cosmos_epoching_v1_params_proto_rawDescOnce sync.Once + file_cosmos_epoching_v1_params_proto_rawDescData = file_cosmos_epoching_v1_params_proto_rawDesc +) + +func file_cosmos_epoching_v1_params_proto_rawDescGZIP() []byte { + file_cosmos_epoching_v1_params_proto_rawDescOnce.Do(func() { + file_cosmos_epoching_v1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_epoching_v1_params_proto_rawDescData) + }) + return file_cosmos_epoching_v1_params_proto_rawDescData +} + +var file_cosmos_epoching_v1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_cosmos_epoching_v1_params_proto_goTypes = []interface{}{ + (*Params)(nil), // 0: cosmos.epoching.v1.Params +} +var file_cosmos_epoching_v1_params_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_cosmos_epoching_v1_params_proto_init() } +func file_cosmos_epoching_v1_params_proto_init() { + if File_cosmos_epoching_v1_params_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cosmos_epoching_v1_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Params); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_epoching_v1_params_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cosmos_epoching_v1_params_proto_goTypes, + DependencyIndexes: file_cosmos_epoching_v1_params_proto_depIdxs, + MessageInfos: file_cosmos_epoching_v1_params_proto_msgTypes, + }.Build() + File_cosmos_epoching_v1_params_proto = out.File + file_cosmos_epoching_v1_params_proto_rawDesc = nil + file_cosmos_epoching_v1_params_proto_goTypes = nil + file_cosmos_epoching_v1_params_proto_depIdxs = nil +} diff --git a/api/cosmos/epoching/v1/query.pulsar.go b/api/cosmos/epoching/v1/query.pulsar.go new file mode 100644 index 00000000000..50815970709 --- /dev/null +++ b/api/cosmos/epoching/v1/query.pulsar.go @@ -0,0 +1,9756 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package epochingv1 + +import ( + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_QueryParamsRequest protoreflect.MessageDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryParamsRequest = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryParamsRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) + +type fastReflection_QueryParamsRequest QueryParamsRequest + +func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsRequest)(x) +} + +func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[0] + 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_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} + +type fastReflection_QueryParamsRequest_messageType struct{} + +func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsRequest)(nil) +} +func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsRequest) +} +func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsRequest +} + +// 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_QueryParamsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { + return new(fastReflection_QueryParamsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsRequest 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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsRequest 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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryParamsRequest) + 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.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().(*QueryParamsRequest) + 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 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().(*QueryParamsRequest) + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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_QueryParamsResponse protoreflect.MessageDescriptor + fd_QueryParamsResponse_params protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryParamsResponse = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryParamsResponse") + fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) + +type fastReflection_QueryParamsResponse QueryParamsResponse + +func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsResponse)(x) +} + +func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_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_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} + +type fastReflection_QueryParamsResponse_messageType struct{} + +func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsResponse)(nil) +} +func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse) +} +func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse +} + +// 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_QueryParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryParamsResponse)(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_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_QueryParamsResponse_params, 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryParamsResponse.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryParamsResponse.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryParamsResponse.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryParamsResponse.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryParamsResponse.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsResponse 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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryParamsResponse.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryParamsResponse 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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryParamsResponse) + 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.Params != nil { + l = options.Size(x.Params) + 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().(*QueryParamsResponse) + 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.Params != nil { + encoded, err := options.Marshal(x.Params) + 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...) + } 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().(*QueryParamsResponse) + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: 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 Params", 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.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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_QueryEpochInfoRequest protoreflect.MessageDescriptor + fd_QueryEpochInfoRequest_epoch_num protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryEpochInfoRequest = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryEpochInfoRequest") + fd_QueryEpochInfoRequest_epoch_num = md_QueryEpochInfoRequest.Fields().ByName("epoch_num") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochInfoRequest)(nil) + +type fastReflection_QueryEpochInfoRequest QueryEpochInfoRequest + +func (x *QueryEpochInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochInfoRequest)(x) +} + +func (x *QueryEpochInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_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_QueryEpochInfoRequest_messageType fastReflection_QueryEpochInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochInfoRequest_messageType{} + +type fastReflection_QueryEpochInfoRequest_messageType struct{} + +func (x fastReflection_QueryEpochInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochInfoRequest)(nil) +} +func (x fastReflection_QueryEpochInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochInfoRequest) +} +func (x fastReflection_QueryEpochInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochInfoRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEpochInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochInfoRequest +} + +// 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_QueryEpochInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochInfoRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEpochInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryEpochInfoRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEpochInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEpochInfoRequest)(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_QueryEpochInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNum != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNum) + if !f(fd_QueryEpochInfoRequest_epoch_num, 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_QueryEpochInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoRequest.epoch_num": + return x.EpochNum != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoRequest 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_QueryEpochInfoRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoRequest.epoch_num": + x.EpochNum = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoRequest 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_QueryEpochInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoRequest.epoch_num": + value := x.EpochNum + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoRequest 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_QueryEpochInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoRequest.epoch_num": + x.EpochNum = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoRequest 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_QueryEpochInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoRequest.epoch_num": + panic(fmt.Errorf("field epoch_num of message cosmos.epoching.v1.QueryEpochInfoRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoRequest 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_QueryEpochInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoRequest.epoch_num": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoRequest 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_QueryEpochInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryEpochInfoRequest", 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_QueryEpochInfoRequest) 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_QueryEpochInfoRequest) 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_QueryEpochInfoRequest) 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_QueryEpochInfoRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochInfoRequest) + 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.EpochNum != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNum)) + } + 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().(*QueryEpochInfoRequest) + 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.EpochNum != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNum)) + 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().(*QueryEpochInfoRequest) + 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: QueryEpochInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochInfoRequest: 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 EpochNum", wireType) + } + x.EpochNum = 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.EpochNum |= 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_QueryEpochInfoResponse protoreflect.MessageDescriptor + fd_QueryEpochInfoResponse_epoch protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryEpochInfoResponse = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryEpochInfoResponse") + fd_QueryEpochInfoResponse_epoch = md_QueryEpochInfoResponse.Fields().ByName("epoch") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochInfoResponse)(nil) + +type fastReflection_QueryEpochInfoResponse QueryEpochInfoResponse + +func (x *QueryEpochInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochInfoResponse)(x) +} + +func (x *QueryEpochInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_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_QueryEpochInfoResponse_messageType fastReflection_QueryEpochInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochInfoResponse_messageType{} + +type fastReflection_QueryEpochInfoResponse_messageType struct{} + +func (x fastReflection_QueryEpochInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochInfoResponse)(nil) +} +func (x fastReflection_QueryEpochInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochInfoResponse) +} +func (x fastReflection_QueryEpochInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochInfoResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEpochInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochInfoResponse +} + +// 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_QueryEpochInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochInfoResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEpochInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryEpochInfoResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEpochInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEpochInfoResponse)(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_QueryEpochInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Epoch != nil { + value := protoreflect.ValueOfMessage(x.Epoch.ProtoReflect()) + if !f(fd_QueryEpochInfoResponse_epoch, 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_QueryEpochInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoResponse.epoch": + return x.Epoch != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoResponse 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_QueryEpochInfoResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoResponse.epoch": + x.Epoch = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoResponse 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_QueryEpochInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoResponse.epoch": + value := x.Epoch + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoResponse 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_QueryEpochInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoResponse.epoch": + x.Epoch = value.Message().Interface().(*Epoch) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoResponse 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_QueryEpochInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoResponse.epoch": + if x.Epoch == nil { + x.Epoch = new(Epoch) + } + return protoreflect.ValueOfMessage(x.Epoch.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoResponse 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_QueryEpochInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochInfoResponse.epoch": + m := new(Epoch) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochInfoResponse 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_QueryEpochInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryEpochInfoResponse", 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_QueryEpochInfoResponse) 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_QueryEpochInfoResponse) 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_QueryEpochInfoResponse) 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_QueryEpochInfoResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochInfoResponse) + 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.Epoch != nil { + l = options.Size(x.Epoch) + 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().(*QueryEpochInfoResponse) + 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.Epoch != nil { + encoded, err := options.Marshal(x.Epoch) + 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...) + } 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().(*QueryEpochInfoResponse) + 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: QueryEpochInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochInfoResponse: 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 Epoch", 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.Epoch == nil { + x.Epoch = &Epoch{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Epoch); 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_QueryEpochsInfoRequest protoreflect.MessageDescriptor + fd_QueryEpochsInfoRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryEpochsInfoRequest = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryEpochsInfoRequest") + fd_QueryEpochsInfoRequest_pagination = md_QueryEpochsInfoRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochsInfoRequest)(nil) + +type fastReflection_QueryEpochsInfoRequest QueryEpochsInfoRequest + +func (x *QueryEpochsInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoRequest)(x) +} + +func (x *QueryEpochsInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_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_QueryEpochsInfoRequest_messageType fastReflection_QueryEpochsInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochsInfoRequest_messageType{} + +type fastReflection_QueryEpochsInfoRequest_messageType struct{} + +func (x fastReflection_QueryEpochsInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoRequest)(nil) +} +func (x fastReflection_QueryEpochsInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochsInfoRequest) +} +func (x fastReflection_QueryEpochsInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochsInfoRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEpochsInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochsInfoRequest +} + +// 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_QueryEpochsInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochsInfoRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEpochsInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryEpochsInfoRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEpochsInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEpochsInfoRequest)(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_QueryEpochsInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryEpochsInfoRequest_pagination, 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_QueryEpochsInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoRequest 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_QueryEpochsInfoRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoRequest 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_QueryEpochsInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoRequest 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_QueryEpochsInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoRequest 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_QueryEpochsInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoRequest 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_QueryEpochsInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoRequest 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_QueryEpochsInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryEpochsInfoRequest", 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_QueryEpochsInfoRequest) 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_QueryEpochsInfoRequest) 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_QueryEpochsInfoRequest) 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_QueryEpochsInfoRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochsInfoRequest) + 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.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryEpochsInfoRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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...) + } 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().(*QueryEpochsInfoRequest) + 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: QueryEpochsInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochsInfoRequest: 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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 = (*_QueryEpochsInfoResponse_1_list)(nil) + +type _QueryEpochsInfoResponse_1_list struct { + list *[]*Epoch +} + +func (x *_QueryEpochsInfoResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryEpochsInfoResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryEpochsInfoResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Epoch) + (*x.list)[i] = concreteValue +} + +func (x *_QueryEpochsInfoResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Epoch) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryEpochsInfoResponse_1_list) AppendMutable() protoreflect.Value { + v := new(Epoch) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryEpochsInfoResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryEpochsInfoResponse_1_list) NewElement() protoreflect.Value { + v := new(Epoch) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryEpochsInfoResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryEpochsInfoResponse protoreflect.MessageDescriptor + fd_QueryEpochsInfoResponse_epochs protoreflect.FieldDescriptor + fd_QueryEpochsInfoResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryEpochsInfoResponse = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryEpochsInfoResponse") + fd_QueryEpochsInfoResponse_epochs = md_QueryEpochsInfoResponse.Fields().ByName("epochs") + fd_QueryEpochsInfoResponse_pagination = md_QueryEpochsInfoResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochsInfoResponse)(nil) + +type fastReflection_QueryEpochsInfoResponse QueryEpochsInfoResponse + +func (x *QueryEpochsInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoResponse)(x) +} + +func (x *QueryEpochsInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_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_QueryEpochsInfoResponse_messageType fastReflection_QueryEpochsInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochsInfoResponse_messageType{} + +type fastReflection_QueryEpochsInfoResponse_messageType struct{} + +func (x fastReflection_QueryEpochsInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoResponse)(nil) +} +func (x fastReflection_QueryEpochsInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochsInfoResponse) +} +func (x fastReflection_QueryEpochsInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochsInfoResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEpochsInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochsInfoResponse +} + +// 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_QueryEpochsInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochsInfoResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEpochsInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryEpochsInfoResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEpochsInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEpochsInfoResponse)(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_QueryEpochsInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Epochs) != 0 { + value := protoreflect.ValueOfList(&_QueryEpochsInfoResponse_1_list{list: &x.Epochs}) + if !f(fd_QueryEpochsInfoResponse_epochs, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryEpochsInfoResponse_pagination, 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_QueryEpochsInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoResponse.epochs": + return len(x.Epochs) != 0 + case "cosmos.epoching.v1.QueryEpochsInfoResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoResponse 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_QueryEpochsInfoResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoResponse.epochs": + x.Epochs = nil + case "cosmos.epoching.v1.QueryEpochsInfoResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoResponse 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_QueryEpochsInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoResponse.epochs": + if len(x.Epochs) == 0 { + return protoreflect.ValueOfList(&_QueryEpochsInfoResponse_1_list{}) + } + listValue := &_QueryEpochsInfoResponse_1_list{list: &x.Epochs} + return protoreflect.ValueOfList(listValue) + case "cosmos.epoching.v1.QueryEpochsInfoResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoResponse 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_QueryEpochsInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoResponse.epochs": + lv := value.List() + clv := lv.(*_QueryEpochsInfoResponse_1_list) + x.Epochs = *clv.list + case "cosmos.epoching.v1.QueryEpochsInfoResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoResponse 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_QueryEpochsInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoResponse.epochs": + if x.Epochs == nil { + x.Epochs = []*Epoch{} + } + value := &_QueryEpochsInfoResponse_1_list{list: &x.Epochs} + return protoreflect.ValueOfList(value) + case "cosmos.epoching.v1.QueryEpochsInfoResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoResponse 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_QueryEpochsInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochsInfoResponse.epochs": + list := []*Epoch{} + return protoreflect.ValueOfList(&_QueryEpochsInfoResponse_1_list{list: &list}) + case "cosmos.epoching.v1.QueryEpochsInfoResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochsInfoResponse 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_QueryEpochsInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryEpochsInfoResponse", 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_QueryEpochsInfoResponse) 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_QueryEpochsInfoResponse) 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_QueryEpochsInfoResponse) 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_QueryEpochsInfoResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochsInfoResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Epochs) > 0 { + for _, e := range x.Epochs { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryEpochsInfoResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.Epochs) > 0 { + for iNdEx := len(x.Epochs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Epochs[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...) + } 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().(*QueryEpochsInfoResponse) + 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: QueryEpochsInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochsInfoResponse: 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 Epochs", 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.Epochs = append(x.Epochs, &Epoch{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Epochs[len(x.Epochs)-1]); 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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_QueryCurrentEpochRequest protoreflect.MessageDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryCurrentEpochRequest = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryCurrentEpochRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryCurrentEpochRequest)(nil) + +type fastReflection_QueryCurrentEpochRequest QueryCurrentEpochRequest + +func (x *QueryCurrentEpochRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochRequest)(x) +} + +func (x *QueryCurrentEpochRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[6] + 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_QueryCurrentEpochRequest_messageType fastReflection_QueryCurrentEpochRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryCurrentEpochRequest_messageType{} + +type fastReflection_QueryCurrentEpochRequest_messageType struct{} + +func (x fastReflection_QueryCurrentEpochRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochRequest)(nil) +} +func (x fastReflection_QueryCurrentEpochRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCurrentEpochRequest) +} +func (x fastReflection_QueryCurrentEpochRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentEpochRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryCurrentEpochRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentEpochRequest +} + +// 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_QueryCurrentEpochRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryCurrentEpochRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryCurrentEpochRequest) New() protoreflect.Message { + return new(fastReflection_QueryCurrentEpochRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryCurrentEpochRequest) Interface() protoreflect.ProtoMessage { + return (*QueryCurrentEpochRequest)(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_QueryCurrentEpochRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryCurrentEpochRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochRequest 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_QueryCurrentEpochRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochRequest 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_QueryCurrentEpochRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochRequest 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_QueryCurrentEpochRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochRequest 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_QueryCurrentEpochRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochRequest 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_QueryCurrentEpochRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochRequest 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_QueryCurrentEpochRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryCurrentEpochRequest", 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_QueryCurrentEpochRequest) 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_QueryCurrentEpochRequest) 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_QueryCurrentEpochRequest) 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_QueryCurrentEpochRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryCurrentEpochRequest) + 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.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().(*QueryCurrentEpochRequest) + 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 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().(*QueryCurrentEpochRequest) + 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: QueryCurrentEpochRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentEpochRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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_QueryCurrentEpochResponse protoreflect.MessageDescriptor + fd_QueryCurrentEpochResponse_current_epoch protoreflect.FieldDescriptor + fd_QueryCurrentEpochResponse_epoch_boundary protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryCurrentEpochResponse = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryCurrentEpochResponse") + fd_QueryCurrentEpochResponse_current_epoch = md_QueryCurrentEpochResponse.Fields().ByName("current_epoch") + fd_QueryCurrentEpochResponse_epoch_boundary = md_QueryCurrentEpochResponse.Fields().ByName("epoch_boundary") +} + +var _ protoreflect.Message = (*fastReflection_QueryCurrentEpochResponse)(nil) + +type fastReflection_QueryCurrentEpochResponse QueryCurrentEpochResponse + +func (x *QueryCurrentEpochResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochResponse)(x) +} + +func (x *QueryCurrentEpochResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[7] + 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_QueryCurrentEpochResponse_messageType fastReflection_QueryCurrentEpochResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryCurrentEpochResponse_messageType{} + +type fastReflection_QueryCurrentEpochResponse_messageType struct{} + +func (x fastReflection_QueryCurrentEpochResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochResponse)(nil) +} +func (x fastReflection_QueryCurrentEpochResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCurrentEpochResponse) +} +func (x fastReflection_QueryCurrentEpochResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentEpochResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryCurrentEpochResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentEpochResponse +} + +// 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_QueryCurrentEpochResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryCurrentEpochResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryCurrentEpochResponse) New() protoreflect.Message { + return new(fastReflection_QueryCurrentEpochResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryCurrentEpochResponse) Interface() protoreflect.ProtoMessage { + return (*QueryCurrentEpochResponse)(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_QueryCurrentEpochResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.CurrentEpoch != uint64(0) { + value := protoreflect.ValueOfUint64(x.CurrentEpoch) + if !f(fd_QueryCurrentEpochResponse_current_epoch, value) { + return + } + } + if x.EpochBoundary != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochBoundary) + if !f(fd_QueryCurrentEpochResponse_epoch_boundary, 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_QueryCurrentEpochResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryCurrentEpochResponse.current_epoch": + return x.CurrentEpoch != uint64(0) + case "cosmos.epoching.v1.QueryCurrentEpochResponse.epoch_boundary": + return x.EpochBoundary != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochResponse 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_QueryCurrentEpochResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryCurrentEpochResponse.current_epoch": + x.CurrentEpoch = uint64(0) + case "cosmos.epoching.v1.QueryCurrentEpochResponse.epoch_boundary": + x.EpochBoundary = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochResponse 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_QueryCurrentEpochResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryCurrentEpochResponse.current_epoch": + value := x.CurrentEpoch + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.QueryCurrentEpochResponse.epoch_boundary": + value := x.EpochBoundary + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochResponse 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_QueryCurrentEpochResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryCurrentEpochResponse.current_epoch": + x.CurrentEpoch = value.Uint() + case "cosmos.epoching.v1.QueryCurrentEpochResponse.epoch_boundary": + x.EpochBoundary = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochResponse 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_QueryCurrentEpochResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryCurrentEpochResponse.current_epoch": + panic(fmt.Errorf("field current_epoch of message cosmos.epoching.v1.QueryCurrentEpochResponse is not mutable")) + case "cosmos.epoching.v1.QueryCurrentEpochResponse.epoch_boundary": + panic(fmt.Errorf("field epoch_boundary of message cosmos.epoching.v1.QueryCurrentEpochResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochResponse 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_QueryCurrentEpochResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryCurrentEpochResponse.current_epoch": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.QueryCurrentEpochResponse.epoch_boundary": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryCurrentEpochResponse 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_QueryCurrentEpochResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryCurrentEpochResponse", 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_QueryCurrentEpochResponse) 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_QueryCurrentEpochResponse) 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_QueryCurrentEpochResponse) 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_QueryCurrentEpochResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryCurrentEpochResponse) + 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.CurrentEpoch != 0 { + n += 1 + runtime.Sov(uint64(x.CurrentEpoch)) + } + if x.EpochBoundary != 0 { + n += 1 + runtime.Sov(uint64(x.EpochBoundary)) + } + 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().(*QueryCurrentEpochResponse) + 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.EpochBoundary != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochBoundary)) + i-- + dAtA[i] = 0x10 + } + if x.CurrentEpoch != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CurrentEpoch)) + 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().(*QueryCurrentEpochResponse) + 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: QueryCurrentEpochResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentEpochResponse: 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 CurrentEpoch", wireType) + } + x.CurrentEpoch = 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.CurrentEpoch |= 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 EpochBoundary", wireType) + } + x.EpochBoundary = 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.EpochBoundary |= 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_QueryEpochMsgsRequest protoreflect.MessageDescriptor + fd_QueryEpochMsgsRequest_epoch_num protoreflect.FieldDescriptor + fd_QueryEpochMsgsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryEpochMsgsRequest = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryEpochMsgsRequest") + fd_QueryEpochMsgsRequest_epoch_num = md_QueryEpochMsgsRequest.Fields().ByName("epoch_num") + fd_QueryEpochMsgsRequest_pagination = md_QueryEpochMsgsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochMsgsRequest)(nil) + +type fastReflection_QueryEpochMsgsRequest QueryEpochMsgsRequest + +func (x *QueryEpochMsgsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochMsgsRequest)(x) +} + +func (x *QueryEpochMsgsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[8] + 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_QueryEpochMsgsRequest_messageType fastReflection_QueryEpochMsgsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochMsgsRequest_messageType{} + +type fastReflection_QueryEpochMsgsRequest_messageType struct{} + +func (x fastReflection_QueryEpochMsgsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochMsgsRequest)(nil) +} +func (x fastReflection_QueryEpochMsgsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochMsgsRequest) +} +func (x fastReflection_QueryEpochMsgsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochMsgsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEpochMsgsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochMsgsRequest +} + +// 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_QueryEpochMsgsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochMsgsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEpochMsgsRequest) New() protoreflect.Message { + return new(fastReflection_QueryEpochMsgsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEpochMsgsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEpochMsgsRequest)(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_QueryEpochMsgsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNum != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNum) + if !f(fd_QueryEpochMsgsRequest_epoch_num, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryEpochMsgsRequest_pagination, 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_QueryEpochMsgsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsRequest.epoch_num": + return x.EpochNum != uint64(0) + case "cosmos.epoching.v1.QueryEpochMsgsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsRequest 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_QueryEpochMsgsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsRequest.epoch_num": + x.EpochNum = uint64(0) + case "cosmos.epoching.v1.QueryEpochMsgsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsRequest 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_QueryEpochMsgsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsRequest.epoch_num": + value := x.EpochNum + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.QueryEpochMsgsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsRequest 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_QueryEpochMsgsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsRequest.epoch_num": + x.EpochNum = value.Uint() + case "cosmos.epoching.v1.QueryEpochMsgsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsRequest 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_QueryEpochMsgsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "cosmos.epoching.v1.QueryEpochMsgsRequest.epoch_num": + panic(fmt.Errorf("field epoch_num of message cosmos.epoching.v1.QueryEpochMsgsRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsRequest 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_QueryEpochMsgsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsRequest.epoch_num": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.QueryEpochMsgsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsRequest 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_QueryEpochMsgsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryEpochMsgsRequest", 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_QueryEpochMsgsRequest) 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_QueryEpochMsgsRequest) 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_QueryEpochMsgsRequest) 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_QueryEpochMsgsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochMsgsRequest) + 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.EpochNum != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNum)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryEpochMsgsRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.EpochNum != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNum)) + 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().(*QueryEpochMsgsRequest) + 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: QueryEpochMsgsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochMsgsRequest: 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 EpochNum", wireType) + } + x.EpochNum = 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.EpochNum |= 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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 = (*_QueryEpochMsgsResponse_1_list)(nil) + +type _QueryEpochMsgsResponse_1_list struct { + list *[]*QueuedMessage +} + +func (x *_QueryEpochMsgsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryEpochMsgsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryEpochMsgsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueuedMessage) + (*x.list)[i] = concreteValue +} + +func (x *_QueryEpochMsgsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueuedMessage) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryEpochMsgsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(QueuedMessage) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryEpochMsgsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryEpochMsgsResponse_1_list) NewElement() protoreflect.Value { + v := new(QueuedMessage) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryEpochMsgsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryEpochMsgsResponse protoreflect.MessageDescriptor + fd_QueryEpochMsgsResponse_msgs protoreflect.FieldDescriptor + fd_QueryEpochMsgsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryEpochMsgsResponse = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryEpochMsgsResponse") + fd_QueryEpochMsgsResponse_msgs = md_QueryEpochMsgsResponse.Fields().ByName("msgs") + fd_QueryEpochMsgsResponse_pagination = md_QueryEpochMsgsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochMsgsResponse)(nil) + +type fastReflection_QueryEpochMsgsResponse QueryEpochMsgsResponse + +func (x *QueryEpochMsgsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochMsgsResponse)(x) +} + +func (x *QueryEpochMsgsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[9] + 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_QueryEpochMsgsResponse_messageType fastReflection_QueryEpochMsgsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochMsgsResponse_messageType{} + +type fastReflection_QueryEpochMsgsResponse_messageType struct{} + +func (x fastReflection_QueryEpochMsgsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochMsgsResponse)(nil) +} +func (x fastReflection_QueryEpochMsgsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochMsgsResponse) +} +func (x fastReflection_QueryEpochMsgsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochMsgsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEpochMsgsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochMsgsResponse +} + +// 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_QueryEpochMsgsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochMsgsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEpochMsgsResponse) New() protoreflect.Message { + return new(fastReflection_QueryEpochMsgsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEpochMsgsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEpochMsgsResponse)(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_QueryEpochMsgsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Msgs) != 0 { + value := protoreflect.ValueOfList(&_QueryEpochMsgsResponse_1_list{list: &x.Msgs}) + if !f(fd_QueryEpochMsgsResponse_msgs, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryEpochMsgsResponse_pagination, 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_QueryEpochMsgsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsResponse.msgs": + return len(x.Msgs) != 0 + case "cosmos.epoching.v1.QueryEpochMsgsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsResponse 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_QueryEpochMsgsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsResponse.msgs": + x.Msgs = nil + case "cosmos.epoching.v1.QueryEpochMsgsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsResponse 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_QueryEpochMsgsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsResponse.msgs": + if len(x.Msgs) == 0 { + return protoreflect.ValueOfList(&_QueryEpochMsgsResponse_1_list{}) + } + listValue := &_QueryEpochMsgsResponse_1_list{list: &x.Msgs} + return protoreflect.ValueOfList(listValue) + case "cosmos.epoching.v1.QueryEpochMsgsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsResponse 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_QueryEpochMsgsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsResponse.msgs": + lv := value.List() + clv := lv.(*_QueryEpochMsgsResponse_1_list) + x.Msgs = *clv.list + case "cosmos.epoching.v1.QueryEpochMsgsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsResponse 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_QueryEpochMsgsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsResponse.msgs": + if x.Msgs == nil { + x.Msgs = []*QueuedMessage{} + } + value := &_QueryEpochMsgsResponse_1_list{list: &x.Msgs} + return protoreflect.ValueOfList(value) + case "cosmos.epoching.v1.QueryEpochMsgsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsResponse 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_QueryEpochMsgsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochMsgsResponse.msgs": + list := []*QueuedMessage{} + return protoreflect.ValueOfList(&_QueryEpochMsgsResponse_1_list{list: &list}) + case "cosmos.epoching.v1.QueryEpochMsgsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochMsgsResponse 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_QueryEpochMsgsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryEpochMsgsResponse", 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_QueryEpochMsgsResponse) 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_QueryEpochMsgsResponse) 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_QueryEpochMsgsResponse) 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_QueryEpochMsgsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochMsgsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Msgs) > 0 { + for _, e := range x.Msgs { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryEpochMsgsResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.Msgs) > 0 { + for iNdEx := len(x.Msgs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Msgs[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...) + } 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().(*QueryEpochMsgsResponse) + 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: QueryEpochMsgsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochMsgsResponse: 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 Msgs", 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.Msgs = append(x.Msgs, &QueuedMessage{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Msgs[len(x.Msgs)-1]); 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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_QueryLatestEpochMsgsRequest protoreflect.MessageDescriptor + fd_QueryLatestEpochMsgsRequest_end_epoch protoreflect.FieldDescriptor + fd_QueryLatestEpochMsgsRequest_epoch_count protoreflect.FieldDescriptor + fd_QueryLatestEpochMsgsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryLatestEpochMsgsRequest = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryLatestEpochMsgsRequest") + fd_QueryLatestEpochMsgsRequest_end_epoch = md_QueryLatestEpochMsgsRequest.Fields().ByName("end_epoch") + fd_QueryLatestEpochMsgsRequest_epoch_count = md_QueryLatestEpochMsgsRequest.Fields().ByName("epoch_count") + fd_QueryLatestEpochMsgsRequest_pagination = md_QueryLatestEpochMsgsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryLatestEpochMsgsRequest)(nil) + +type fastReflection_QueryLatestEpochMsgsRequest QueryLatestEpochMsgsRequest + +func (x *QueryLatestEpochMsgsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestEpochMsgsRequest)(x) +} + +func (x *QueryLatestEpochMsgsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[10] + 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_QueryLatestEpochMsgsRequest_messageType fastReflection_QueryLatestEpochMsgsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestEpochMsgsRequest_messageType{} + +type fastReflection_QueryLatestEpochMsgsRequest_messageType struct{} + +func (x fastReflection_QueryLatestEpochMsgsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestEpochMsgsRequest)(nil) +} +func (x fastReflection_QueryLatestEpochMsgsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestEpochMsgsRequest) +} +func (x fastReflection_QueryLatestEpochMsgsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestEpochMsgsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryLatestEpochMsgsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestEpochMsgsRequest +} + +// 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_QueryLatestEpochMsgsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestEpochMsgsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryLatestEpochMsgsRequest) New() protoreflect.Message { + return new(fastReflection_QueryLatestEpochMsgsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryLatestEpochMsgsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryLatestEpochMsgsRequest)(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_QueryLatestEpochMsgsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EndEpoch != uint64(0) { + value := protoreflect.ValueOfUint64(x.EndEpoch) + if !f(fd_QueryLatestEpochMsgsRequest_end_epoch, value) { + return + } + } + if x.EpochCount != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochCount) + if !f(fd_QueryLatestEpochMsgsRequest_epoch_count, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryLatestEpochMsgsRequest_pagination, 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_QueryLatestEpochMsgsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.end_epoch": + return x.EndEpoch != uint64(0) + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.epoch_count": + return x.EpochCount != uint64(0) + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsRequest 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_QueryLatestEpochMsgsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.end_epoch": + x.EndEpoch = uint64(0) + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.epoch_count": + x.EpochCount = uint64(0) + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsRequest 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_QueryLatestEpochMsgsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.end_epoch": + value := x.EndEpoch + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.epoch_count": + value := x.EpochCount + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsRequest 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_QueryLatestEpochMsgsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.end_epoch": + x.EndEpoch = value.Uint() + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.epoch_count": + x.EpochCount = value.Uint() + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsRequest 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_QueryLatestEpochMsgsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.end_epoch": + panic(fmt.Errorf("field end_epoch of message cosmos.epoching.v1.QueryLatestEpochMsgsRequest is not mutable")) + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.epoch_count": + panic(fmt.Errorf("field epoch_count of message cosmos.epoching.v1.QueryLatestEpochMsgsRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsRequest 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_QueryLatestEpochMsgsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.end_epoch": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.epoch_count": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.QueryLatestEpochMsgsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsRequest 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_QueryLatestEpochMsgsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryLatestEpochMsgsRequest", 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_QueryLatestEpochMsgsRequest) 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_QueryLatestEpochMsgsRequest) 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_QueryLatestEpochMsgsRequest) 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_QueryLatestEpochMsgsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryLatestEpochMsgsRequest) + 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.EndEpoch != 0 { + n += 1 + runtime.Sov(uint64(x.EndEpoch)) + } + if x.EpochCount != 0 { + n += 1 + runtime.Sov(uint64(x.EpochCount)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryLatestEpochMsgsRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.EpochCount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochCount)) + i-- + dAtA[i] = 0x10 + } + if x.EndEpoch != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EndEpoch)) + 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().(*QueryLatestEpochMsgsRequest) + 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: QueryLatestEpochMsgsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestEpochMsgsRequest: 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 EndEpoch", wireType) + } + x.EndEpoch = 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.EndEpoch |= 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 EpochCount", wireType) + } + x.EpochCount = 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.EpochCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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 = (*_QueryLatestEpochMsgsResponse_1_list)(nil) + +type _QueryLatestEpochMsgsResponse_1_list struct { + list *[]*QueuedMessageList +} + +func (x *_QueryLatestEpochMsgsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryLatestEpochMsgsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryLatestEpochMsgsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueuedMessageList) + (*x.list)[i] = concreteValue +} + +func (x *_QueryLatestEpochMsgsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueuedMessageList) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryLatestEpochMsgsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(QueuedMessageList) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryLatestEpochMsgsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryLatestEpochMsgsResponse_1_list) NewElement() protoreflect.Value { + v := new(QueuedMessageList) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryLatestEpochMsgsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryLatestEpochMsgsResponse protoreflect.MessageDescriptor + fd_QueryLatestEpochMsgsResponse_latest_epoch_msgs protoreflect.FieldDescriptor + fd_QueryLatestEpochMsgsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryLatestEpochMsgsResponse = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryLatestEpochMsgsResponse") + fd_QueryLatestEpochMsgsResponse_latest_epoch_msgs = md_QueryLatestEpochMsgsResponse.Fields().ByName("latest_epoch_msgs") + fd_QueryLatestEpochMsgsResponse_pagination = md_QueryLatestEpochMsgsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryLatestEpochMsgsResponse)(nil) + +type fastReflection_QueryLatestEpochMsgsResponse QueryLatestEpochMsgsResponse + +func (x *QueryLatestEpochMsgsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestEpochMsgsResponse)(x) +} + +func (x *QueryLatestEpochMsgsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[11] + 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_QueryLatestEpochMsgsResponse_messageType fastReflection_QueryLatestEpochMsgsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestEpochMsgsResponse_messageType{} + +type fastReflection_QueryLatestEpochMsgsResponse_messageType struct{} + +func (x fastReflection_QueryLatestEpochMsgsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestEpochMsgsResponse)(nil) +} +func (x fastReflection_QueryLatestEpochMsgsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestEpochMsgsResponse) +} +func (x fastReflection_QueryLatestEpochMsgsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestEpochMsgsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryLatestEpochMsgsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestEpochMsgsResponse +} + +// 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_QueryLatestEpochMsgsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestEpochMsgsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryLatestEpochMsgsResponse) New() protoreflect.Message { + return new(fastReflection_QueryLatestEpochMsgsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryLatestEpochMsgsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryLatestEpochMsgsResponse)(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_QueryLatestEpochMsgsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.LatestEpochMsgs) != 0 { + value := protoreflect.ValueOfList(&_QueryLatestEpochMsgsResponse_1_list{list: &x.LatestEpochMsgs}) + if !f(fd_QueryLatestEpochMsgsResponse_latest_epoch_msgs, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryLatestEpochMsgsResponse_pagination, 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_QueryLatestEpochMsgsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.latest_epoch_msgs": + return len(x.LatestEpochMsgs) != 0 + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsResponse 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_QueryLatestEpochMsgsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.latest_epoch_msgs": + x.LatestEpochMsgs = nil + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsResponse 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_QueryLatestEpochMsgsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.latest_epoch_msgs": + if len(x.LatestEpochMsgs) == 0 { + return protoreflect.ValueOfList(&_QueryLatestEpochMsgsResponse_1_list{}) + } + listValue := &_QueryLatestEpochMsgsResponse_1_list{list: &x.LatestEpochMsgs} + return protoreflect.ValueOfList(listValue) + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsResponse 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_QueryLatestEpochMsgsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.latest_epoch_msgs": + lv := value.List() + clv := lv.(*_QueryLatestEpochMsgsResponse_1_list) + x.LatestEpochMsgs = *clv.list + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsResponse 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_QueryLatestEpochMsgsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.latest_epoch_msgs": + if x.LatestEpochMsgs == nil { + x.LatestEpochMsgs = []*QueuedMessageList{} + } + value := &_QueryLatestEpochMsgsResponse_1_list{list: &x.LatestEpochMsgs} + return protoreflect.ValueOfList(value) + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsResponse 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_QueryLatestEpochMsgsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.latest_epoch_msgs": + list := []*QueuedMessageList{} + return protoreflect.ValueOfList(&_QueryLatestEpochMsgsResponse_1_list{list: &list}) + case "cosmos.epoching.v1.QueryLatestEpochMsgsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryLatestEpochMsgsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryLatestEpochMsgsResponse 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_QueryLatestEpochMsgsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryLatestEpochMsgsResponse", 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_QueryLatestEpochMsgsResponse) 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_QueryLatestEpochMsgsResponse) 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_QueryLatestEpochMsgsResponse) 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_QueryLatestEpochMsgsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryLatestEpochMsgsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.LatestEpochMsgs) > 0 { + for _, e := range x.LatestEpochMsgs { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryLatestEpochMsgsResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.LatestEpochMsgs) > 0 { + for iNdEx := len(x.LatestEpochMsgs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestEpochMsgs[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...) + } 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().(*QueryLatestEpochMsgsResponse) + 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: QueryLatestEpochMsgsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestEpochMsgsResponse: 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 LatestEpochMsgs", 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.LatestEpochMsgs = append(x.LatestEpochMsgs, &QueuedMessageList{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestEpochMsgs[len(x.LatestEpochMsgs)-1]); 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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_QueryValidatorLifecycleRequest protoreflect.MessageDescriptor + fd_QueryValidatorLifecycleRequest_val_addr protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryValidatorLifecycleRequest = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryValidatorLifecycleRequest") + fd_QueryValidatorLifecycleRequest_val_addr = md_QueryValidatorLifecycleRequest.Fields().ByName("val_addr") +} + +var _ protoreflect.Message = (*fastReflection_QueryValidatorLifecycleRequest)(nil) + +type fastReflection_QueryValidatorLifecycleRequest QueryValidatorLifecycleRequest + +func (x *QueryValidatorLifecycleRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryValidatorLifecycleRequest)(x) +} + +func (x *QueryValidatorLifecycleRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_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_QueryValidatorLifecycleRequest_messageType fastReflection_QueryValidatorLifecycleRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryValidatorLifecycleRequest_messageType{} + +type fastReflection_QueryValidatorLifecycleRequest_messageType struct{} + +func (x fastReflection_QueryValidatorLifecycleRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryValidatorLifecycleRequest)(nil) +} +func (x fastReflection_QueryValidatorLifecycleRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryValidatorLifecycleRequest) +} +func (x fastReflection_QueryValidatorLifecycleRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorLifecycleRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryValidatorLifecycleRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorLifecycleRequest +} + +// 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_QueryValidatorLifecycleRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryValidatorLifecycleRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryValidatorLifecycleRequest) New() protoreflect.Message { + return new(fastReflection_QueryValidatorLifecycleRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryValidatorLifecycleRequest) Interface() protoreflect.ProtoMessage { + return (*QueryValidatorLifecycleRequest)(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_QueryValidatorLifecycleRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ValAddr != "" { + value := protoreflect.ValueOfString(x.ValAddr) + if !f(fd_QueryValidatorLifecycleRequest_val_addr, 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_QueryValidatorLifecycleRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleRequest.val_addr": + return x.ValAddr != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleRequest 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_QueryValidatorLifecycleRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleRequest.val_addr": + x.ValAddr = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleRequest 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_QueryValidatorLifecycleRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleRequest.val_addr": + value := x.ValAddr + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleRequest 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_QueryValidatorLifecycleRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleRequest.val_addr": + x.ValAddr = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleRequest 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_QueryValidatorLifecycleRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleRequest.val_addr": + panic(fmt.Errorf("field val_addr of message cosmos.epoching.v1.QueryValidatorLifecycleRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleRequest 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_QueryValidatorLifecycleRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleRequest.val_addr": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleRequest 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_QueryValidatorLifecycleRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryValidatorLifecycleRequest", 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_QueryValidatorLifecycleRequest) 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_QueryValidatorLifecycleRequest) 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_QueryValidatorLifecycleRequest) 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_QueryValidatorLifecycleRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryValidatorLifecycleRequest) + 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.ValAddr) + 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().(*QueryValidatorLifecycleRequest) + 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.ValAddr) > 0 { + i -= len(x.ValAddr) + copy(dAtA[i:], x.ValAddr) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ValAddr))) + 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().(*QueryValidatorLifecycleRequest) + 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: QueryValidatorLifecycleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryValidatorLifecycleRequest: 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 ValAddr", 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.ValAddr = 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_QueryValidatorLifecycleResponse protoreflect.MessageDescriptor + fd_QueryValidatorLifecycleResponse_val_life protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryValidatorLifecycleResponse = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryValidatorLifecycleResponse") + fd_QueryValidatorLifecycleResponse_val_life = md_QueryValidatorLifecycleResponse.Fields().ByName("val_life") +} + +var _ protoreflect.Message = (*fastReflection_QueryValidatorLifecycleResponse)(nil) + +type fastReflection_QueryValidatorLifecycleResponse QueryValidatorLifecycleResponse + +func (x *QueryValidatorLifecycleResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryValidatorLifecycleResponse)(x) +} + +func (x *QueryValidatorLifecycleResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_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_QueryValidatorLifecycleResponse_messageType fastReflection_QueryValidatorLifecycleResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryValidatorLifecycleResponse_messageType{} + +type fastReflection_QueryValidatorLifecycleResponse_messageType struct{} + +func (x fastReflection_QueryValidatorLifecycleResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryValidatorLifecycleResponse)(nil) +} +func (x fastReflection_QueryValidatorLifecycleResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryValidatorLifecycleResponse) +} +func (x fastReflection_QueryValidatorLifecycleResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorLifecycleResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryValidatorLifecycleResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorLifecycleResponse +} + +// 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_QueryValidatorLifecycleResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryValidatorLifecycleResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryValidatorLifecycleResponse) New() protoreflect.Message { + return new(fastReflection_QueryValidatorLifecycleResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryValidatorLifecycleResponse) Interface() protoreflect.ProtoMessage { + return (*QueryValidatorLifecycleResponse)(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_QueryValidatorLifecycleResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ValLife != nil { + value := protoreflect.ValueOfMessage(x.ValLife.ProtoReflect()) + if !f(fd_QueryValidatorLifecycleResponse_val_life, 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_QueryValidatorLifecycleResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleResponse.val_life": + return x.ValLife != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleResponse 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_QueryValidatorLifecycleResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleResponse.val_life": + x.ValLife = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleResponse 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_QueryValidatorLifecycleResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleResponse.val_life": + value := x.ValLife + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleResponse 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_QueryValidatorLifecycleResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleResponse.val_life": + x.ValLife = value.Message().Interface().(*ValidatorLifecycle) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleResponse 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_QueryValidatorLifecycleResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleResponse.val_life": + if x.ValLife == nil { + x.ValLife = new(ValidatorLifecycle) + } + return protoreflect.ValueOfMessage(x.ValLife.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleResponse 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_QueryValidatorLifecycleResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryValidatorLifecycleResponse.val_life": + m := new(ValidatorLifecycle) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryValidatorLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryValidatorLifecycleResponse 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_QueryValidatorLifecycleResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryValidatorLifecycleResponse", 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_QueryValidatorLifecycleResponse) 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_QueryValidatorLifecycleResponse) 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_QueryValidatorLifecycleResponse) 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_QueryValidatorLifecycleResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryValidatorLifecycleResponse) + 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.ValLife != nil { + l = options.Size(x.ValLife) + 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().(*QueryValidatorLifecycleResponse) + 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.ValLife != nil { + encoded, err := options.Marshal(x.ValLife) + 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...) + } 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().(*QueryValidatorLifecycleResponse) + 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: QueryValidatorLifecycleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryValidatorLifecycleResponse: 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 ValLife", 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.ValLife == nil { + x.ValLife = &ValidatorLifecycle{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ValLife); 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_QueryDelegationLifecycleRequest protoreflect.MessageDescriptor + fd_QueryDelegationLifecycleRequest_del_addr protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryDelegationLifecycleRequest = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryDelegationLifecycleRequest") + fd_QueryDelegationLifecycleRequest_del_addr = md_QueryDelegationLifecycleRequest.Fields().ByName("del_addr") +} + +var _ protoreflect.Message = (*fastReflection_QueryDelegationLifecycleRequest)(nil) + +type fastReflection_QueryDelegationLifecycleRequest QueryDelegationLifecycleRequest + +func (x *QueryDelegationLifecycleRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegationLifecycleRequest)(x) +} + +func (x *QueryDelegationLifecycleRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_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_QueryDelegationLifecycleRequest_messageType fastReflection_QueryDelegationLifecycleRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegationLifecycleRequest_messageType{} + +type fastReflection_QueryDelegationLifecycleRequest_messageType struct{} + +func (x fastReflection_QueryDelegationLifecycleRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegationLifecycleRequest)(nil) +} +func (x fastReflection_QueryDelegationLifecycleRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegationLifecycleRequest) +} +func (x fastReflection_QueryDelegationLifecycleRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegationLifecycleRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryDelegationLifecycleRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegationLifecycleRequest +} + +// 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_QueryDelegationLifecycleRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegationLifecycleRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryDelegationLifecycleRequest) New() protoreflect.Message { + return new(fastReflection_QueryDelegationLifecycleRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryDelegationLifecycleRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDelegationLifecycleRequest)(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_QueryDelegationLifecycleRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelAddr != "" { + value := protoreflect.ValueOfString(x.DelAddr) + if !f(fd_QueryDelegationLifecycleRequest_del_addr, 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_QueryDelegationLifecycleRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleRequest.del_addr": + return x.DelAddr != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleRequest 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_QueryDelegationLifecycleRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleRequest.del_addr": + x.DelAddr = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleRequest 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_QueryDelegationLifecycleRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleRequest.del_addr": + value := x.DelAddr + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleRequest 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_QueryDelegationLifecycleRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleRequest.del_addr": + x.DelAddr = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleRequest 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_QueryDelegationLifecycleRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleRequest.del_addr": + panic(fmt.Errorf("field del_addr of message cosmos.epoching.v1.QueryDelegationLifecycleRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleRequest 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_QueryDelegationLifecycleRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleRequest.del_addr": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleRequest 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_QueryDelegationLifecycleRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryDelegationLifecycleRequest", 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_QueryDelegationLifecycleRequest) 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_QueryDelegationLifecycleRequest) 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_QueryDelegationLifecycleRequest) 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_QueryDelegationLifecycleRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryDelegationLifecycleRequest) + 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.DelAddr) + 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().(*QueryDelegationLifecycleRequest) + 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.DelAddr) > 0 { + i -= len(x.DelAddr) + copy(dAtA[i:], x.DelAddr) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelAddr))) + 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().(*QueryDelegationLifecycleRequest) + 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: QueryDelegationLifecycleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegationLifecycleRequest: 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 DelAddr", 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.DelAddr = 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_QueryDelegationLifecycleResponse protoreflect.MessageDescriptor + fd_QueryDelegationLifecycleResponse_del_life protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryDelegationLifecycleResponse = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryDelegationLifecycleResponse") + fd_QueryDelegationLifecycleResponse_del_life = md_QueryDelegationLifecycleResponse.Fields().ByName("del_life") +} + +var _ protoreflect.Message = (*fastReflection_QueryDelegationLifecycleResponse)(nil) + +type fastReflection_QueryDelegationLifecycleResponse QueryDelegationLifecycleResponse + +func (x *QueryDelegationLifecycleResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegationLifecycleResponse)(x) +} + +func (x *QueryDelegationLifecycleResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[15] + 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_QueryDelegationLifecycleResponse_messageType fastReflection_QueryDelegationLifecycleResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegationLifecycleResponse_messageType{} + +type fastReflection_QueryDelegationLifecycleResponse_messageType struct{} + +func (x fastReflection_QueryDelegationLifecycleResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegationLifecycleResponse)(nil) +} +func (x fastReflection_QueryDelegationLifecycleResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegationLifecycleResponse) +} +func (x fastReflection_QueryDelegationLifecycleResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegationLifecycleResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryDelegationLifecycleResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegationLifecycleResponse +} + +// 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_QueryDelegationLifecycleResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegationLifecycleResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryDelegationLifecycleResponse) New() protoreflect.Message { + return new(fastReflection_QueryDelegationLifecycleResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryDelegationLifecycleResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDelegationLifecycleResponse)(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_QueryDelegationLifecycleResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelLife != nil { + value := protoreflect.ValueOfMessage(x.DelLife.ProtoReflect()) + if !f(fd_QueryDelegationLifecycleResponse_del_life, 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_QueryDelegationLifecycleResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleResponse.del_life": + return x.DelLife != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleResponse 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_QueryDelegationLifecycleResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleResponse.del_life": + x.DelLife = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleResponse 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_QueryDelegationLifecycleResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleResponse.del_life": + value := x.DelLife + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleResponse 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_QueryDelegationLifecycleResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleResponse.del_life": + x.DelLife = value.Message().Interface().(*DelegationLifecycle) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleResponse 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_QueryDelegationLifecycleResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleResponse.del_life": + if x.DelLife == nil { + x.DelLife = new(DelegationLifecycle) + } + return protoreflect.ValueOfMessage(x.DelLife.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleResponse 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_QueryDelegationLifecycleResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryDelegationLifecycleResponse.del_life": + m := new(DelegationLifecycle) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryDelegationLifecycleResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryDelegationLifecycleResponse 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_QueryDelegationLifecycleResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryDelegationLifecycleResponse", 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_QueryDelegationLifecycleResponse) 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_QueryDelegationLifecycleResponse) 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_QueryDelegationLifecycleResponse) 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_QueryDelegationLifecycleResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryDelegationLifecycleResponse) + 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.DelLife != nil { + l = options.Size(x.DelLife) + 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().(*QueryDelegationLifecycleResponse) + 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.DelLife != nil { + encoded, err := options.Marshal(x.DelLife) + 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...) + } 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().(*QueryDelegationLifecycleResponse) + 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: QueryDelegationLifecycleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegationLifecycleResponse: 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 DelLife", 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.DelLife == nil { + x.DelLife = &DelegationLifecycle{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DelLife); 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_QueryEpochValSetRequest protoreflect.MessageDescriptor + fd_QueryEpochValSetRequest_epoch_num protoreflect.FieldDescriptor + fd_QueryEpochValSetRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryEpochValSetRequest = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryEpochValSetRequest") + fd_QueryEpochValSetRequest_epoch_num = md_QueryEpochValSetRequest.Fields().ByName("epoch_num") + fd_QueryEpochValSetRequest_pagination = md_QueryEpochValSetRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochValSetRequest)(nil) + +type fastReflection_QueryEpochValSetRequest QueryEpochValSetRequest + +func (x *QueryEpochValSetRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochValSetRequest)(x) +} + +func (x *QueryEpochValSetRequest) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[16] + 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_QueryEpochValSetRequest_messageType fastReflection_QueryEpochValSetRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochValSetRequest_messageType{} + +type fastReflection_QueryEpochValSetRequest_messageType struct{} + +func (x fastReflection_QueryEpochValSetRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochValSetRequest)(nil) +} +func (x fastReflection_QueryEpochValSetRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochValSetRequest) +} +func (x fastReflection_QueryEpochValSetRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochValSetRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEpochValSetRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochValSetRequest +} + +// 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_QueryEpochValSetRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochValSetRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEpochValSetRequest) New() protoreflect.Message { + return new(fastReflection_QueryEpochValSetRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEpochValSetRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEpochValSetRequest)(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_QueryEpochValSetRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochNum != uint64(0) { + value := protoreflect.ValueOfUint64(x.EpochNum) + if !f(fd_QueryEpochValSetRequest_epoch_num, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryEpochValSetRequest_pagination, 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_QueryEpochValSetRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetRequest.epoch_num": + return x.EpochNum != uint64(0) + case "cosmos.epoching.v1.QueryEpochValSetRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetRequest 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_QueryEpochValSetRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetRequest.epoch_num": + x.EpochNum = uint64(0) + case "cosmos.epoching.v1.QueryEpochValSetRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetRequest 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_QueryEpochValSetRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetRequest.epoch_num": + value := x.EpochNum + return protoreflect.ValueOfUint64(value) + case "cosmos.epoching.v1.QueryEpochValSetRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetRequest 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_QueryEpochValSetRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetRequest.epoch_num": + x.EpochNum = value.Uint() + case "cosmos.epoching.v1.QueryEpochValSetRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetRequest 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_QueryEpochValSetRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "cosmos.epoching.v1.QueryEpochValSetRequest.epoch_num": + panic(fmt.Errorf("field epoch_num of message cosmos.epoching.v1.QueryEpochValSetRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetRequest 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_QueryEpochValSetRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetRequest.epoch_num": + return protoreflect.ValueOfUint64(uint64(0)) + case "cosmos.epoching.v1.QueryEpochValSetRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetRequest")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetRequest 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_QueryEpochValSetRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryEpochValSetRequest", 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_QueryEpochValSetRequest) 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_QueryEpochValSetRequest) 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_QueryEpochValSetRequest) 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_QueryEpochValSetRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochValSetRequest) + 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.EpochNum != 0 { + n += 1 + runtime.Sov(uint64(x.EpochNum)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryEpochValSetRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.EpochNum != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochNum)) + 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().(*QueryEpochValSetRequest) + 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: QueryEpochValSetRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochValSetRequest: 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 EpochNum", wireType) + } + x.EpochNum = 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.EpochNum |= 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 Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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 = (*_QueryEpochValSetResponse_1_list)(nil) + +type _QueryEpochValSetResponse_1_list struct { + list *[]*Validator +} + +func (x *_QueryEpochValSetResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryEpochValSetResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryEpochValSetResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Validator) + (*x.list)[i] = concreteValue +} + +func (x *_QueryEpochValSetResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Validator) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryEpochValSetResponse_1_list) AppendMutable() protoreflect.Value { + v := new(Validator) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryEpochValSetResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryEpochValSetResponse_1_list) NewElement() protoreflect.Value { + v := new(Validator) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryEpochValSetResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryEpochValSetResponse protoreflect.MessageDescriptor + fd_QueryEpochValSetResponse_validators protoreflect.FieldDescriptor + fd_QueryEpochValSetResponse_total_voting_power protoreflect.FieldDescriptor + fd_QueryEpochValSetResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_query_proto_init() + md_QueryEpochValSetResponse = File_cosmos_epoching_v1_query_proto.Messages().ByName("QueryEpochValSetResponse") + fd_QueryEpochValSetResponse_validators = md_QueryEpochValSetResponse.Fields().ByName("validators") + fd_QueryEpochValSetResponse_total_voting_power = md_QueryEpochValSetResponse.Fields().ByName("total_voting_power") + fd_QueryEpochValSetResponse_pagination = md_QueryEpochValSetResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochValSetResponse)(nil) + +type fastReflection_QueryEpochValSetResponse QueryEpochValSetResponse + +func (x *QueryEpochValSetResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochValSetResponse)(x) +} + +func (x *QueryEpochValSetResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[17] + 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_QueryEpochValSetResponse_messageType fastReflection_QueryEpochValSetResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochValSetResponse_messageType{} + +type fastReflection_QueryEpochValSetResponse_messageType struct{} + +func (x fastReflection_QueryEpochValSetResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochValSetResponse)(nil) +} +func (x fastReflection_QueryEpochValSetResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochValSetResponse) +} +func (x fastReflection_QueryEpochValSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochValSetResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEpochValSetResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochValSetResponse +} + +// 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_QueryEpochValSetResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochValSetResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEpochValSetResponse) New() protoreflect.Message { + return new(fastReflection_QueryEpochValSetResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEpochValSetResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEpochValSetResponse)(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_QueryEpochValSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Validators) != 0 { + value := protoreflect.ValueOfList(&_QueryEpochValSetResponse_1_list{list: &x.Validators}) + if !f(fd_QueryEpochValSetResponse_validators, value) { + return + } + } + if x.TotalVotingPower != int64(0) { + value := protoreflect.ValueOfInt64(x.TotalVotingPower) + if !f(fd_QueryEpochValSetResponse_total_voting_power, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryEpochValSetResponse_pagination, 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_QueryEpochValSetResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetResponse.validators": + return len(x.Validators) != 0 + case "cosmos.epoching.v1.QueryEpochValSetResponse.total_voting_power": + return x.TotalVotingPower != int64(0) + case "cosmos.epoching.v1.QueryEpochValSetResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetResponse 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_QueryEpochValSetResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetResponse.validators": + x.Validators = nil + case "cosmos.epoching.v1.QueryEpochValSetResponse.total_voting_power": + x.TotalVotingPower = int64(0) + case "cosmos.epoching.v1.QueryEpochValSetResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetResponse 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_QueryEpochValSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetResponse.validators": + if len(x.Validators) == 0 { + return protoreflect.ValueOfList(&_QueryEpochValSetResponse_1_list{}) + } + listValue := &_QueryEpochValSetResponse_1_list{list: &x.Validators} + return protoreflect.ValueOfList(listValue) + case "cosmos.epoching.v1.QueryEpochValSetResponse.total_voting_power": + value := x.TotalVotingPower + return protoreflect.ValueOfInt64(value) + case "cosmos.epoching.v1.QueryEpochValSetResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetResponse 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_QueryEpochValSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetResponse.validators": + lv := value.List() + clv := lv.(*_QueryEpochValSetResponse_1_list) + x.Validators = *clv.list + case "cosmos.epoching.v1.QueryEpochValSetResponse.total_voting_power": + x.TotalVotingPower = value.Int() + case "cosmos.epoching.v1.QueryEpochValSetResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetResponse 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_QueryEpochValSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetResponse.validators": + if x.Validators == nil { + x.Validators = []*Validator{} + } + value := &_QueryEpochValSetResponse_1_list{list: &x.Validators} + return protoreflect.ValueOfList(value) + case "cosmos.epoching.v1.QueryEpochValSetResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "cosmos.epoching.v1.QueryEpochValSetResponse.total_voting_power": + panic(fmt.Errorf("field total_voting_power of message cosmos.epoching.v1.QueryEpochValSetResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetResponse 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_QueryEpochValSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.QueryEpochValSetResponse.validators": + list := []*Validator{} + return protoreflect.ValueOfList(&_QueryEpochValSetResponse_1_list{list: &list}) + case "cosmos.epoching.v1.QueryEpochValSetResponse.total_voting_power": + return protoreflect.ValueOfInt64(int64(0)) + case "cosmos.epoching.v1.QueryEpochValSetResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.QueryEpochValSetResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.QueryEpochValSetResponse 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_QueryEpochValSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.QueryEpochValSetResponse", 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_QueryEpochValSetResponse) 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_QueryEpochValSetResponse) 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_QueryEpochValSetResponse) 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_QueryEpochValSetResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochValSetResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Validators) > 0 { + for _, e := range x.Validators { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.TotalVotingPower != 0 { + n += 1 + runtime.Sov(uint64(x.TotalVotingPower)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryEpochValSetResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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.TotalVotingPower != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalVotingPower)) + i-- + dAtA[i] = 0x10 + } + if len(x.Validators) > 0 { + for iNdEx := len(x.Validators) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Validators[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...) + } 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().(*QueryEpochValSetResponse) + 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: QueryEpochValSetResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochValSetResponse: 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 Validators", 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.Validators = append(x.Validators, &Validator{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Validators[len(x.Validators)-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 TotalVotingPower", wireType) + } + x.TotalVotingPower = 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.TotalVotingPower |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", 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.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cosmos/epoching/v1/query.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// QueryParamsRequest is the request type for the Query/Params RPC method. +type QueryParamsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryParamsRequest) Reset() { + *x = QueryParamsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryParamsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryParamsRequest) ProtoMessage() {} + +// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{0} +} + +// QueryParamsResponse is the response type for the Query/Params RPC method. +type QueryParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // params holds all the parameters of this module. + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *QueryParamsResponse) Reset() { + *x = QueryParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryParamsResponse) ProtoMessage() {} + +// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryParamsResponse) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +// QueryEpochInfoRequest is the request type for the Query/EpochInfo method +type QueryEpochInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EpochNum uint64 `protobuf:"varint,1,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"` +} + +func (x *QueryEpochInfoRequest) Reset() { + *x = QueryEpochInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochInfoRequest) ProtoMessage() {} + +// Deprecated: Use QueryEpochInfoRequest.ProtoReflect.Descriptor instead. +func (*QueryEpochInfoRequest) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryEpochInfoRequest) GetEpochNum() uint64 { + if x != nil { + return x.EpochNum + } + return 0 +} + +// QueryEpochInfoRequest is the response type for the Query/EpochInfo method +type QueryEpochInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Epoch *Epoch `protobuf:"bytes,1,opt,name=epoch,proto3" json:"epoch,omitempty"` +} + +func (x *QueryEpochInfoResponse) Reset() { + *x = QueryEpochInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochInfoResponse) ProtoMessage() {} + +// Deprecated: Use QueryEpochInfoResponse.ProtoReflect.Descriptor instead. +func (*QueryEpochInfoResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryEpochInfoResponse) GetEpoch() *Epoch { + if x != nil { + return x.Epoch + } + return nil +} + +// QueryEpochInfosRequest is the request type for the Query/EpochInfos method +type QueryEpochsInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // pagination defines whether to have the pagination in the request + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryEpochsInfoRequest) Reset() { + *x = QueryEpochsInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochsInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochsInfoRequest) ProtoMessage() {} + +// Deprecated: Use QueryEpochsInfoRequest.ProtoReflect.Descriptor instead. +func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{4} +} + +func (x *QueryEpochsInfoRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryEpochsInfoResponse is the response type for the Query/EpochInfos method +type QueryEpochsInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Epochs []*Epoch `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs,omitempty"` + // pagination defines the pagination in the response + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryEpochsInfoResponse) Reset() { + *x = QueryEpochsInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochsInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochsInfoResponse) ProtoMessage() {} + +// Deprecated: Use QueryEpochsInfoResponse.ProtoReflect.Descriptor instead. +func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryEpochsInfoResponse) GetEpochs() []*Epoch { + if x != nil { + return x.Epochs + } + return nil +} + +func (x *QueryEpochsInfoResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryCurrentEpochRequest is the request type for the Query/CurrentEpoch RPC +// method +type QueryCurrentEpochRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryCurrentEpochRequest) Reset() { + *x = QueryCurrentEpochRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryCurrentEpochRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryCurrentEpochRequest) ProtoMessage() {} + +// Deprecated: Use QueryCurrentEpochRequest.ProtoReflect.Descriptor instead. +func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{6} +} + +// QueryCurrentEpochResponse is the response type for the Query/CurrentEpoch RPC +// method +type QueryCurrentEpochResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // current_epoch is the current epoch number + CurrentEpoch uint64 `protobuf:"varint,1,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"` + // epoch_boundary is the height of this epoch's last block + EpochBoundary uint64 `protobuf:"varint,2,opt,name=epoch_boundary,json=epochBoundary,proto3" json:"epoch_boundary,omitempty"` +} + +func (x *QueryCurrentEpochResponse) Reset() { + *x = QueryCurrentEpochResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryCurrentEpochResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryCurrentEpochResponse) ProtoMessage() {} + +// Deprecated: Use QueryCurrentEpochResponse.ProtoReflect.Descriptor instead. +func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{7} +} + +func (x *QueryCurrentEpochResponse) GetCurrentEpoch() uint64 { + if x != nil { + return x.CurrentEpoch + } + return 0 +} + +func (x *QueryCurrentEpochResponse) GetEpochBoundary() uint64 { + if x != nil { + return x.EpochBoundary + } + return 0 +} + +// QueryEpochMsgsRequest is the request type for the Query/EpochMsgs RPC method +type QueryEpochMsgsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // epoch_num is the number of epoch of the requested msg queue + EpochNum uint64 `protobuf:"varint,1,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"` + // pagination defines whether to have the pagination in the request + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryEpochMsgsRequest) Reset() { + *x = QueryEpochMsgsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochMsgsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochMsgsRequest) ProtoMessage() {} + +// Deprecated: Use QueryEpochMsgsRequest.ProtoReflect.Descriptor instead. +func (*QueryEpochMsgsRequest) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{8} +} + +func (x *QueryEpochMsgsRequest) GetEpochNum() uint64 { + if x != nil { + return x.EpochNum + } + return 0 +} + +func (x *QueryEpochMsgsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryEpochMsgsResponse is the response type for the Query/EpochMsgs RPC +// method +type QueryEpochMsgsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // msgs is the list of messages queued in the current epoch + Msgs []*QueuedMessage `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs,omitempty"` + // pagination defines the pagination in the response + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryEpochMsgsResponse) Reset() { + *x = QueryEpochMsgsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochMsgsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochMsgsResponse) ProtoMessage() {} + +// Deprecated: Use QueryEpochMsgsResponse.ProtoReflect.Descriptor instead. +func (*QueryEpochMsgsResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryEpochMsgsResponse) GetMsgs() []*QueuedMessage { + if x != nil { + return x.Msgs + } + return nil +} + +func (x *QueryEpochMsgsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryLatestEpochMsgsRequest is the request type for the Query/LatestEpochMsgs +// RPC method it returns epoch msgs within epoch [max(1, +// end_epoch-epoch_count+1), end_epoch] +type QueryLatestEpochMsgsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // end_epoch is the number of the last epoch to query + EndEpoch uint64 `protobuf:"varint,1,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` + // epoch_count is the number of epochs to query + EpochCount uint64 `protobuf:"varint,2,opt,name=epoch_count,json=epochCount,proto3" json:"epoch_count,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryLatestEpochMsgsRequest) Reset() { + *x = QueryLatestEpochMsgsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryLatestEpochMsgsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryLatestEpochMsgsRequest) ProtoMessage() {} + +// Deprecated: Use QueryLatestEpochMsgsRequest.ProtoReflect.Descriptor instead. +func (*QueryLatestEpochMsgsRequest) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{10} +} + +func (x *QueryLatestEpochMsgsRequest) GetEndEpoch() uint64 { + if x != nil { + return x.EndEpoch + } + return 0 +} + +func (x *QueryLatestEpochMsgsRequest) GetEpochCount() uint64 { + if x != nil { + return x.EpochCount + } + return 0 +} + +func (x *QueryLatestEpochMsgsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryLatestEpochMsgsResponse is the response type for the +// Query/LatestEpochMsgs RPC method +type QueryLatestEpochMsgsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // epoch_msg_map is a list of QueuedMessageList + // each QueuedMessageList has a field identifying the epoch number + LatestEpochMsgs []*QueuedMessageList `protobuf:"bytes,1,rep,name=latest_epoch_msgs,json=latestEpochMsgs,proto3" json:"latest_epoch_msgs,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryLatestEpochMsgsResponse) Reset() { + *x = QueryLatestEpochMsgsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryLatestEpochMsgsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryLatestEpochMsgsResponse) ProtoMessage() {} + +// Deprecated: Use QueryLatestEpochMsgsResponse.ProtoReflect.Descriptor instead. +func (*QueryLatestEpochMsgsResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{11} +} + +func (x *QueryLatestEpochMsgsResponse) GetLatestEpochMsgs() []*QueuedMessageList { + if x != nil { + return x.LatestEpochMsgs + } + return nil +} + +func (x *QueryLatestEpochMsgsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryValidatorLifecycleRequest is the request type for the +// Query/ValidatorLifecycle RPC method +type QueryValidatorLifecycleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ValAddr string `protobuf:"bytes,1,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"` +} + +func (x *QueryValidatorLifecycleRequest) Reset() { + *x = QueryValidatorLifecycleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryValidatorLifecycleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryValidatorLifecycleRequest) ProtoMessage() {} + +// Deprecated: Use QueryValidatorLifecycleRequest.ProtoReflect.Descriptor instead. +func (*QueryValidatorLifecycleRequest) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{12} +} + +func (x *QueryValidatorLifecycleRequest) GetValAddr() string { + if x != nil { + return x.ValAddr + } + return "" +} + +// QueryValidatorLifecycleResponse is the response type for the +// Query/ValidatorLifecycle RPC method +type QueryValidatorLifecycleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ValLife *ValidatorLifecycle `protobuf:"bytes,1,opt,name=val_life,json=valLife,proto3" json:"val_life,omitempty"` +} + +func (x *QueryValidatorLifecycleResponse) Reset() { + *x = QueryValidatorLifecycleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryValidatorLifecycleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryValidatorLifecycleResponse) ProtoMessage() {} + +// Deprecated: Use QueryValidatorLifecycleResponse.ProtoReflect.Descriptor instead. +func (*QueryValidatorLifecycleResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{13} +} + +func (x *QueryValidatorLifecycleResponse) GetValLife() *ValidatorLifecycle { + if x != nil { + return x.ValLife + } + return nil +} + +// QueryDelegationLifecycleRequest is the request type for the +// Query/DelegationLifecycle RPC method +type QueryDelegationLifecycleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DelAddr string `protobuf:"bytes,1,opt,name=del_addr,json=delAddr,proto3" json:"del_addr,omitempty"` +} + +func (x *QueryDelegationLifecycleRequest) Reset() { + *x = QueryDelegationLifecycleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryDelegationLifecycleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryDelegationLifecycleRequest) ProtoMessage() {} + +// Deprecated: Use QueryDelegationLifecycleRequest.ProtoReflect.Descriptor instead. +func (*QueryDelegationLifecycleRequest) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{14} +} + +func (x *QueryDelegationLifecycleRequest) GetDelAddr() string { + if x != nil { + return x.DelAddr + } + return "" +} + +// QueryDelegationLifecycleRequest is the response type for the +// Query/DelegationLifecycle RPC method +type QueryDelegationLifecycleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DelLife *DelegationLifecycle `protobuf:"bytes,1,opt,name=del_life,json=delLife,proto3" json:"del_life,omitempty"` +} + +func (x *QueryDelegationLifecycleResponse) Reset() { + *x = QueryDelegationLifecycleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryDelegationLifecycleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryDelegationLifecycleResponse) ProtoMessage() {} + +// Deprecated: Use QueryDelegationLifecycleResponse.ProtoReflect.Descriptor instead. +func (*QueryDelegationLifecycleResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{15} +} + +func (x *QueryDelegationLifecycleResponse) GetDelLife() *DelegationLifecycle { + if x != nil { + return x.DelLife + } + return nil +} + +// QueryEpochValSetRequest is the request type for the Query/EpochValSet RPC +// method +type QueryEpochValSetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EpochNum uint64 `protobuf:"varint,1,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryEpochValSetRequest) Reset() { + *x = QueryEpochValSetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochValSetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochValSetRequest) ProtoMessage() {} + +// Deprecated: Use QueryEpochValSetRequest.ProtoReflect.Descriptor instead. +func (*QueryEpochValSetRequest) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{16} +} + +func (x *QueryEpochValSetRequest) GetEpochNum() uint64 { + if x != nil { + return x.EpochNum + } + return 0 +} + +func (x *QueryEpochValSetRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryEpochValSetRequest is the response type for the Query/EpochValSet RPC +// method +type QueryEpochValSetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` + TotalVotingPower int64 `protobuf:"varint,2,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryEpochValSetResponse) Reset() { + *x = QueryEpochValSetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_query_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochValSetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochValSetResponse) ProtoMessage() {} + +// Deprecated: Use QueryEpochValSetResponse.ProtoReflect.Descriptor instead. +func (*QueryEpochValSetResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_query_proto_rawDescGZIP(), []int{17} +} + +func (x *QueryEpochValSetResponse) GetValidators() []*Validator { + if x != nil { + return x.Validators + } + return nil +} + +func (x *QueryEpochValSetResponse) GetTotalVotingPower() int64 { + if x != nil { + return x.TotalVotingPower + } + return 0 +} + +func (x *QueryEpochValSetResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +var File_cosmos_epoching_v1_query_proto protoreflect.FileDescriptor + +var file_cosmos_epoching_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, + 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, + 0x34, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x22, 0x49, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2f, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x22, 0x60, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x95, 0x01, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, + 0x0a, 0x06, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x06, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1a, 0x0a, 0x18, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x67, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0d, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x22, + 0x7c, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x73, 0x67, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0x01, + 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x12, + 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa3, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x73, 0x67, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x6e, 0x64, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xba, + 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x51, 0x0a, 0x11, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, + 0x6d, 0x73, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x73, + 0x67, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x1e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x4c, 0x69, 0x66, + 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, + 0x08, 0x76, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x22, 0x64, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, + 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x76, + 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x66, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x4c, 0x69, 0x66, 0x65, + 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x07, 0x76, 0x61, 0x6c, 0x4c, 0x69, 0x66, 0x65, 0x22, 0x3c, + 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x22, 0x66, 0x0a, 0x20, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, + 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x42, 0x0a, 0x08, 0x64, 0x65, 0x6c, 0x5f, 0x6c, 0x69, 0x66, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x07, 0x64, 0x65, 0x6c, + 0x4c, 0x69, 0x66, 0x65, 0x22, 0x7e, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, + 0x63, 0x68, 0x56, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x08, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x12, 0x46, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd0, 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x56, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, + 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, + 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x47, + 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xb4, 0x0b, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x94, 0x01, 0x0a, 0x09, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x7b, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x5f, 0x6e, 0x75, 0x6d, 0x3d, 0x2a, 0x7d, 0x12, 0x89, 0x01, 0x0a, 0x0a, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, + 0x63, 0x68, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x73, 0x12, 0x96, 0x01, 0x0a, 0x0c, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x9d, 0x01, 0x0a, + 0x09, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x73, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x7b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, + 0x3d, 0x2a, 0x7d, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0xa8, 0x01, 0x0a, + 0x0f, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x73, + 0x12, 0x2f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, + 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x3a, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0xb9, 0x01, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x32, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, + 0x32, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x6c, + 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x7d, 0x12, 0xbd, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x33, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x34, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, + 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, + 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x0b, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x56, 0x61, 0x6c, + 0x53, 0x65, 0x74, 0x12, 0x2b, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x56, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x56, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x2f, 0x7b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6e, 0x75, 0x6d, 0x3d, 0x2a, 0x7d, + 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x42, 0xbe, + 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x45, 0x58, 0xaa, 0x02, 0x12, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cosmos_epoching_v1_query_proto_rawDescOnce sync.Once + file_cosmos_epoching_v1_query_proto_rawDescData = file_cosmos_epoching_v1_query_proto_rawDesc +) + +func file_cosmos_epoching_v1_query_proto_rawDescGZIP() []byte { + file_cosmos_epoching_v1_query_proto_rawDescOnce.Do(func() { + file_cosmos_epoching_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_epoching_v1_query_proto_rawDescData) + }) + return file_cosmos_epoching_v1_query_proto_rawDescData +} + +var file_cosmos_epoching_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_cosmos_epoching_v1_query_proto_goTypes = []interface{}{ + (*QueryParamsRequest)(nil), // 0: cosmos.epoching.v1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 1: cosmos.epoching.v1.QueryParamsResponse + (*QueryEpochInfoRequest)(nil), // 2: cosmos.epoching.v1.QueryEpochInfoRequest + (*QueryEpochInfoResponse)(nil), // 3: cosmos.epoching.v1.QueryEpochInfoResponse + (*QueryEpochsInfoRequest)(nil), // 4: cosmos.epoching.v1.QueryEpochsInfoRequest + (*QueryEpochsInfoResponse)(nil), // 5: cosmos.epoching.v1.QueryEpochsInfoResponse + (*QueryCurrentEpochRequest)(nil), // 6: cosmos.epoching.v1.QueryCurrentEpochRequest + (*QueryCurrentEpochResponse)(nil), // 7: cosmos.epoching.v1.QueryCurrentEpochResponse + (*QueryEpochMsgsRequest)(nil), // 8: cosmos.epoching.v1.QueryEpochMsgsRequest + (*QueryEpochMsgsResponse)(nil), // 9: cosmos.epoching.v1.QueryEpochMsgsResponse + (*QueryLatestEpochMsgsRequest)(nil), // 10: cosmos.epoching.v1.QueryLatestEpochMsgsRequest + (*QueryLatestEpochMsgsResponse)(nil), // 11: cosmos.epoching.v1.QueryLatestEpochMsgsResponse + (*QueryValidatorLifecycleRequest)(nil), // 12: cosmos.epoching.v1.QueryValidatorLifecycleRequest + (*QueryValidatorLifecycleResponse)(nil), // 13: cosmos.epoching.v1.QueryValidatorLifecycleResponse + (*QueryDelegationLifecycleRequest)(nil), // 14: cosmos.epoching.v1.QueryDelegationLifecycleRequest + (*QueryDelegationLifecycleResponse)(nil), // 15: cosmos.epoching.v1.QueryDelegationLifecycleResponse + (*QueryEpochValSetRequest)(nil), // 16: cosmos.epoching.v1.QueryEpochValSetRequest + (*QueryEpochValSetResponse)(nil), // 17: cosmos.epoching.v1.QueryEpochValSetResponse + (*Params)(nil), // 18: cosmos.epoching.v1.Params + (*Epoch)(nil), // 19: cosmos.epoching.v1.Epoch + (*v1beta1.PageRequest)(nil), // 20: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 21: cosmos.base.query.v1beta1.PageResponse + (*QueuedMessage)(nil), // 22: cosmos.epoching.v1.QueuedMessage + (*QueuedMessageList)(nil), // 23: cosmos.epoching.v1.QueuedMessageList + (*ValidatorLifecycle)(nil), // 24: cosmos.epoching.v1.ValidatorLifecycle + (*DelegationLifecycle)(nil), // 25: cosmos.epoching.v1.DelegationLifecycle + (*Validator)(nil), // 26: cosmos.epoching.v1.Validator +} +var file_cosmos_epoching_v1_query_proto_depIdxs = []int32{ + 18, // 0: cosmos.epoching.v1.QueryParamsResponse.params:type_name -> cosmos.epoching.v1.Params + 19, // 1: cosmos.epoching.v1.QueryEpochInfoResponse.epoch:type_name -> cosmos.epoching.v1.Epoch + 20, // 2: cosmos.epoching.v1.QueryEpochsInfoRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 19, // 3: cosmos.epoching.v1.QueryEpochsInfoResponse.epochs:type_name -> cosmos.epoching.v1.Epoch + 21, // 4: cosmos.epoching.v1.QueryEpochsInfoResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 20, // 5: cosmos.epoching.v1.QueryEpochMsgsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 22, // 6: cosmos.epoching.v1.QueryEpochMsgsResponse.msgs:type_name -> cosmos.epoching.v1.QueuedMessage + 21, // 7: cosmos.epoching.v1.QueryEpochMsgsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 20, // 8: cosmos.epoching.v1.QueryLatestEpochMsgsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 23, // 9: cosmos.epoching.v1.QueryLatestEpochMsgsResponse.latest_epoch_msgs:type_name -> cosmos.epoching.v1.QueuedMessageList + 21, // 10: cosmos.epoching.v1.QueryLatestEpochMsgsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 24, // 11: cosmos.epoching.v1.QueryValidatorLifecycleResponse.val_life:type_name -> cosmos.epoching.v1.ValidatorLifecycle + 25, // 12: cosmos.epoching.v1.QueryDelegationLifecycleResponse.del_life:type_name -> cosmos.epoching.v1.DelegationLifecycle + 20, // 13: cosmos.epoching.v1.QueryEpochValSetRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 26, // 14: cosmos.epoching.v1.QueryEpochValSetResponse.validators:type_name -> cosmos.epoching.v1.Validator + 21, // 15: cosmos.epoching.v1.QueryEpochValSetResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 0, // 16: cosmos.epoching.v1.Query.Params:input_type -> cosmos.epoching.v1.QueryParamsRequest + 2, // 17: cosmos.epoching.v1.Query.EpochInfo:input_type -> cosmos.epoching.v1.QueryEpochInfoRequest + 4, // 18: cosmos.epoching.v1.Query.EpochsInfo:input_type -> cosmos.epoching.v1.QueryEpochsInfoRequest + 6, // 19: cosmos.epoching.v1.Query.CurrentEpoch:input_type -> cosmos.epoching.v1.QueryCurrentEpochRequest + 8, // 20: cosmos.epoching.v1.Query.EpochMsgs:input_type -> cosmos.epoching.v1.QueryEpochMsgsRequest + 10, // 21: cosmos.epoching.v1.Query.LatestEpochMsgs:input_type -> cosmos.epoching.v1.QueryLatestEpochMsgsRequest + 12, // 22: cosmos.epoching.v1.Query.ValidatorLifecycle:input_type -> cosmos.epoching.v1.QueryValidatorLifecycleRequest + 14, // 23: cosmos.epoching.v1.Query.DelegationLifecycle:input_type -> cosmos.epoching.v1.QueryDelegationLifecycleRequest + 16, // 24: cosmos.epoching.v1.Query.EpochValSet:input_type -> cosmos.epoching.v1.QueryEpochValSetRequest + 1, // 25: cosmos.epoching.v1.Query.Params:output_type -> cosmos.epoching.v1.QueryParamsResponse + 3, // 26: cosmos.epoching.v1.Query.EpochInfo:output_type -> cosmos.epoching.v1.QueryEpochInfoResponse + 5, // 27: cosmos.epoching.v1.Query.EpochsInfo:output_type -> cosmos.epoching.v1.QueryEpochsInfoResponse + 7, // 28: cosmos.epoching.v1.Query.CurrentEpoch:output_type -> cosmos.epoching.v1.QueryCurrentEpochResponse + 9, // 29: cosmos.epoching.v1.Query.EpochMsgs:output_type -> cosmos.epoching.v1.QueryEpochMsgsResponse + 11, // 30: cosmos.epoching.v1.Query.LatestEpochMsgs:output_type -> cosmos.epoching.v1.QueryLatestEpochMsgsResponse + 13, // 31: cosmos.epoching.v1.Query.ValidatorLifecycle:output_type -> cosmos.epoching.v1.QueryValidatorLifecycleResponse + 15, // 32: cosmos.epoching.v1.Query.DelegationLifecycle:output_type -> cosmos.epoching.v1.QueryDelegationLifecycleResponse + 17, // 33: cosmos.epoching.v1.Query.EpochValSet:output_type -> cosmos.epoching.v1.QueryEpochValSetResponse + 25, // [25:34] is the sub-list for method output_type + 16, // [16:25] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name +} + +func init() { file_cosmos_epoching_v1_query_proto_init() } +func file_cosmos_epoching_v1_query_proto_init() { + if File_cosmos_epoching_v1_query_proto != nil { + return + } + file_cosmos_epoching_v1_params_proto_init() + file_cosmos_epoching_v1_epoching_proto_init() + if !protoimpl.UnsafeEnabled { + file_cosmos_epoching_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochsInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochsInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryCurrentEpochRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryCurrentEpochResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochMsgsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochMsgsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLatestEpochMsgsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLatestEpochMsgsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryValidatorLifecycleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryValidatorLifecycleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryDelegationLifecycleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryDelegationLifecycleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochValSetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochValSetResponse); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_epoching_v1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 18, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cosmos_epoching_v1_query_proto_goTypes, + DependencyIndexes: file_cosmos_epoching_v1_query_proto_depIdxs, + MessageInfos: file_cosmos_epoching_v1_query_proto_msgTypes, + }.Build() + File_cosmos_epoching_v1_query_proto = out.File + file_cosmos_epoching_v1_query_proto_rawDesc = nil + file_cosmos_epoching_v1_query_proto_goTypes = nil + file_cosmos_epoching_v1_query_proto_depIdxs = nil +} diff --git a/api/cosmos/epoching/v1/query_grpc.pb.go b/api/cosmos/epoching/v1/query_grpc.pb.go new file mode 100644 index 00000000000..3289cb6e83d --- /dev/null +++ b/api/cosmos/epoching/v1/query_grpc.pb.go @@ -0,0 +1,429 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: cosmos/epoching/v1/query.proto + +package epochingv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Query_Params_FullMethodName = "/cosmos.epoching.v1.Query/Params" + Query_EpochInfo_FullMethodName = "/cosmos.epoching.v1.Query/EpochInfo" + Query_EpochsInfo_FullMethodName = "/cosmos.epoching.v1.Query/EpochsInfo" + Query_CurrentEpoch_FullMethodName = "/cosmos.epoching.v1.Query/CurrentEpoch" + Query_EpochMsgs_FullMethodName = "/cosmos.epoching.v1.Query/EpochMsgs" + Query_LatestEpochMsgs_FullMethodName = "/cosmos.epoching.v1.Query/LatestEpochMsgs" + Query_ValidatorLifecycle_FullMethodName = "/cosmos.epoching.v1.Query/ValidatorLifecycle" + Query_DelegationLifecycle_FullMethodName = "/cosmos.epoching.v1.Query/DelegationLifecycle" + Query_EpochValSet_FullMethodName = "/cosmos.epoching.v1.Query/EpochValSet" +) + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type QueryClient interface { + // Params queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // EpochInfo queries the information of a given epoch + EpochInfo(ctx context.Context, in *QueryEpochInfoRequest, opts ...grpc.CallOption) (*QueryEpochInfoResponse, error) + // EpochsInfo queries the metadata of epochs in a given range, depending on + // the parameters in the pagination request. Th main use case will be querying + // the latest epochs in time order. + EpochsInfo(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) + // CurrentEpoch queries the current epoch + CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) + // EpochMsgs queries the messages of a given epoch + EpochMsgs(ctx context.Context, in *QueryEpochMsgsRequest, opts ...grpc.CallOption) (*QueryEpochMsgsResponse, error) + // LatestEpochMsgs queries the messages within a given number of most recent + // epochs + LatestEpochMsgs(ctx context.Context, in *QueryLatestEpochMsgsRequest, opts ...grpc.CallOption) (*QueryLatestEpochMsgsResponse, error) + // ValidatorLifecycle queries the lifecycle of a given validator + ValidatorLifecycle(ctx context.Context, in *QueryValidatorLifecycleRequest, opts ...grpc.CallOption) (*QueryValidatorLifecycleResponse, error) + // DelegationLifecycle queries the lifecycle of a given delegation + DelegationLifecycle(ctx context.Context, in *QueryDelegationLifecycleRequest, opts ...grpc.CallOption) (*QueryDelegationLifecycleResponse, error) + // EpochValSet queries the validator set of a given epoch + EpochValSet(ctx context.Context, in *QueryEpochValSetRequest, opts ...grpc.CallOption) (*QueryEpochValSetResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochInfo(ctx context.Context, in *QueryEpochInfoRequest, opts ...grpc.CallOption) (*QueryEpochInfoResponse, error) { + out := new(QueryEpochInfoResponse) + err := c.cc.Invoke(ctx, Query_EpochInfo_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochsInfo(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) { + out := new(QueryEpochsInfoResponse) + err := c.cc.Invoke(ctx, Query_EpochsInfo_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) { + out := new(QueryCurrentEpochResponse) + err := c.cc.Invoke(ctx, Query_CurrentEpoch_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochMsgs(ctx context.Context, in *QueryEpochMsgsRequest, opts ...grpc.CallOption) (*QueryEpochMsgsResponse, error) { + out := new(QueryEpochMsgsResponse) + err := c.cc.Invoke(ctx, Query_EpochMsgs_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) LatestEpochMsgs(ctx context.Context, in *QueryLatestEpochMsgsRequest, opts ...grpc.CallOption) (*QueryLatestEpochMsgsResponse, error) { + out := new(QueryLatestEpochMsgsResponse) + err := c.cc.Invoke(ctx, Query_LatestEpochMsgs_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ValidatorLifecycle(ctx context.Context, in *QueryValidatorLifecycleRequest, opts ...grpc.CallOption) (*QueryValidatorLifecycleResponse, error) { + out := new(QueryValidatorLifecycleResponse) + err := c.cc.Invoke(ctx, Query_ValidatorLifecycle_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) DelegationLifecycle(ctx context.Context, in *QueryDelegationLifecycleRequest, opts ...grpc.CallOption) (*QueryDelegationLifecycleResponse, error) { + out := new(QueryDelegationLifecycleResponse) + err := c.cc.Invoke(ctx, Query_DelegationLifecycle_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochValSet(ctx context.Context, in *QueryEpochValSetRequest, opts ...grpc.CallOption) (*QueryEpochValSetResponse, error) { + out := new(QueryEpochValSetResponse) + err := c.cc.Invoke(ctx, Query_EpochValSet_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility +type QueryServer interface { + // Params queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // EpochInfo queries the information of a given epoch + EpochInfo(context.Context, *QueryEpochInfoRequest) (*QueryEpochInfoResponse, error) + // EpochsInfo queries the metadata of epochs in a given range, depending on + // the parameters in the pagination request. Th main use case will be querying + // the latest epochs in time order. + EpochsInfo(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) + // CurrentEpoch queries the current epoch + CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) + // EpochMsgs queries the messages of a given epoch + EpochMsgs(context.Context, *QueryEpochMsgsRequest) (*QueryEpochMsgsResponse, error) + // LatestEpochMsgs queries the messages within a given number of most recent + // epochs + LatestEpochMsgs(context.Context, *QueryLatestEpochMsgsRequest) (*QueryLatestEpochMsgsResponse, error) + // ValidatorLifecycle queries the lifecycle of a given validator + ValidatorLifecycle(context.Context, *QueryValidatorLifecycleRequest) (*QueryValidatorLifecycleResponse, error) + // DelegationLifecycle queries the lifecycle of a given delegation + DelegationLifecycle(context.Context, *QueryDelegationLifecycleRequest) (*QueryDelegationLifecycleResponse, error) + // EpochValSet queries the validator set of a given epoch + EpochValSet(context.Context, *QueryEpochValSetRequest) (*QueryEpochValSetResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (UnimplementedQueryServer) EpochInfo(context.Context, *QueryEpochInfoRequest) (*QueryEpochInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochInfo not implemented") +} +func (UnimplementedQueryServer) EpochsInfo(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochsInfo not implemented") +} +func (UnimplementedQueryServer) CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CurrentEpoch not implemented") +} +func (UnimplementedQueryServer) EpochMsgs(context.Context, *QueryEpochMsgsRequest) (*QueryEpochMsgsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochMsgs not implemented") +} +func (UnimplementedQueryServer) LatestEpochMsgs(context.Context, *QueryLatestEpochMsgsRequest) (*QueryLatestEpochMsgsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LatestEpochMsgs not implemented") +} +func (UnimplementedQueryServer) ValidatorLifecycle(context.Context, *QueryValidatorLifecycleRequest) (*QueryValidatorLifecycleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidatorLifecycle not implemented") +} +func (UnimplementedQueryServer) DelegationLifecycle(context.Context, *QueryDelegationLifecycleRequest) (*QueryDelegationLifecycleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelegationLifecycle not implemented") +} +func (UnimplementedQueryServer) EpochValSet(context.Context, *QueryEpochValSetRequest) (*QueryEpochValSetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochValSet not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Params_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_EpochInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochInfo(ctx, req.(*QueryEpochInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochsInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochsInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochsInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_EpochsInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochsInfo(ctx, req.(*QueryEpochsInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCurrentEpochRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CurrentEpoch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_CurrentEpoch_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CurrentEpoch(ctx, req.(*QueryCurrentEpochRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochMsgs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochMsgsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochMsgs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_EpochMsgs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochMsgs(ctx, req.(*QueryEpochMsgsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_LatestEpochMsgs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryLatestEpochMsgsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LatestEpochMsgs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_LatestEpochMsgs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LatestEpochMsgs(ctx, req.(*QueryLatestEpochMsgsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ValidatorLifecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryValidatorLifecycleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ValidatorLifecycle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_ValidatorLifecycle_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ValidatorLifecycle(ctx, req.(*QueryValidatorLifecycleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_DelegationLifecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDelegationLifecycleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DelegationLifecycle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_DelegationLifecycle_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DelegationLifecycle(ctx, req.(*QueryDelegationLifecycleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochValSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochValSetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochValSet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_EpochValSet_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochValSet(ctx, req.(*QueryEpochValSetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "cosmos.epoching.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "EpochInfo", + Handler: _Query_EpochInfo_Handler, + }, + { + MethodName: "EpochsInfo", + Handler: _Query_EpochsInfo_Handler, + }, + { + MethodName: "CurrentEpoch", + Handler: _Query_CurrentEpoch_Handler, + }, + { + MethodName: "EpochMsgs", + Handler: _Query_EpochMsgs_Handler, + }, + { + MethodName: "LatestEpochMsgs", + Handler: _Query_LatestEpochMsgs_Handler, + }, + { + MethodName: "ValidatorLifecycle", + Handler: _Query_ValidatorLifecycle_Handler, + }, + { + MethodName: "DelegationLifecycle", + Handler: _Query_DelegationLifecycle_Handler, + }, + { + MethodName: "EpochValSet", + Handler: _Query_EpochValSet_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cosmos/epoching/v1/query.proto", +} diff --git a/api/cosmos/epoching/v1/tx.pulsar.go b/api/cosmos/epoching/v1/tx.pulsar.go new file mode 100644 index 00000000000..f1429fa6729 --- /dev/null +++ b/api/cosmos/epoching/v1/tx.pulsar.go @@ -0,0 +1,3792 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package epochingv1 + +import ( + _ "cosmossdk.io/api/cosmos/msg/v1" + v1beta1 "cosmossdk.io/api/cosmos/staking/v1beta1" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_MsgWrappedDelegate protoreflect.MessageDescriptor + fd_MsgWrappedDelegate_msg protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_tx_proto_init() + md_MsgWrappedDelegate = File_cosmos_epoching_v1_tx_proto.Messages().ByName("MsgWrappedDelegate") + fd_MsgWrappedDelegate_msg = md_MsgWrappedDelegate.Fields().ByName("msg") +} + +var _ protoreflect.Message = (*fastReflection_MsgWrappedDelegate)(nil) + +type fastReflection_MsgWrappedDelegate MsgWrappedDelegate + +func (x *MsgWrappedDelegate) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgWrappedDelegate)(x) +} + +func (x *MsgWrappedDelegate) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[0] + 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_MsgWrappedDelegate_messageType fastReflection_MsgWrappedDelegate_messageType +var _ protoreflect.MessageType = fastReflection_MsgWrappedDelegate_messageType{} + +type fastReflection_MsgWrappedDelegate_messageType struct{} + +func (x fastReflection_MsgWrappedDelegate_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgWrappedDelegate)(nil) +} +func (x fastReflection_MsgWrappedDelegate_messageType) New() protoreflect.Message { + return new(fastReflection_MsgWrappedDelegate) +} +func (x fastReflection_MsgWrappedDelegate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedDelegate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgWrappedDelegate) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedDelegate +} + +// 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_MsgWrappedDelegate) Type() protoreflect.MessageType { + return _fastReflection_MsgWrappedDelegate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgWrappedDelegate) New() protoreflect.Message { + return new(fastReflection_MsgWrappedDelegate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgWrappedDelegate) Interface() protoreflect.ProtoMessage { + return (*MsgWrappedDelegate)(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_MsgWrappedDelegate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Msg != nil { + value := protoreflect.ValueOfMessage(x.Msg.ProtoReflect()) + if !f(fd_MsgWrappedDelegate_msg, 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_MsgWrappedDelegate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedDelegate.msg": + return x.Msg != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegate 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_MsgWrappedDelegate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedDelegate.msg": + x.Msg = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegate 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_MsgWrappedDelegate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.MsgWrappedDelegate.msg": + value := x.Msg + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegate 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_MsgWrappedDelegate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedDelegate.msg": + x.Msg = value.Message().Interface().(*v1beta1.MsgDelegate) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegate 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_MsgWrappedDelegate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedDelegate.msg": + if x.Msg == nil { + x.Msg = new(v1beta1.MsgDelegate) + } + return protoreflect.ValueOfMessage(x.Msg.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegate 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_MsgWrappedDelegate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedDelegate.msg": + m := new(v1beta1.MsgDelegate) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegate 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_MsgWrappedDelegate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.MsgWrappedDelegate", 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_MsgWrappedDelegate) 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_MsgWrappedDelegate) 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_MsgWrappedDelegate) 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_MsgWrappedDelegate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgWrappedDelegate) + 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.Msg != nil { + l = options.Size(x.Msg) + 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().(*MsgWrappedDelegate) + 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.Msg != nil { + encoded, err := options.Marshal(x.Msg) + 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...) + } 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().(*MsgWrappedDelegate) + 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: MsgWrappedDelegate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWrappedDelegate: 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 Msg", 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.Msg == nil { + x.Msg = &v1beta1.MsgDelegate{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Msg); 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_MsgWrappedDelegateResponse protoreflect.MessageDescriptor +) + +func init() { + file_cosmos_epoching_v1_tx_proto_init() + md_MsgWrappedDelegateResponse = File_cosmos_epoching_v1_tx_proto.Messages().ByName("MsgWrappedDelegateResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgWrappedDelegateResponse)(nil) + +type fastReflection_MsgWrappedDelegateResponse MsgWrappedDelegateResponse + +func (x *MsgWrappedDelegateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgWrappedDelegateResponse)(x) +} + +func (x *MsgWrappedDelegateResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_tx_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_MsgWrappedDelegateResponse_messageType fastReflection_MsgWrappedDelegateResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgWrappedDelegateResponse_messageType{} + +type fastReflection_MsgWrappedDelegateResponse_messageType struct{} + +func (x fastReflection_MsgWrappedDelegateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgWrappedDelegateResponse)(nil) +} +func (x fastReflection_MsgWrappedDelegateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgWrappedDelegateResponse) +} +func (x fastReflection_MsgWrappedDelegateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedDelegateResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgWrappedDelegateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedDelegateResponse +} + +// 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_MsgWrappedDelegateResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgWrappedDelegateResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgWrappedDelegateResponse) New() protoreflect.Message { + return new(fastReflection_MsgWrappedDelegateResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgWrappedDelegateResponse) Interface() protoreflect.ProtoMessage { + return (*MsgWrappedDelegateResponse)(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_MsgWrappedDelegateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgWrappedDelegateResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegateResponse 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_MsgWrappedDelegateResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegateResponse 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_MsgWrappedDelegateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegateResponse 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_MsgWrappedDelegateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegateResponse 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_MsgWrappedDelegateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegateResponse 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_MsgWrappedDelegateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedDelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedDelegateResponse 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_MsgWrappedDelegateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.MsgWrappedDelegateResponse", 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_MsgWrappedDelegateResponse) 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_MsgWrappedDelegateResponse) 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_MsgWrappedDelegateResponse) 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_MsgWrappedDelegateResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgWrappedDelegateResponse) + 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.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().(*MsgWrappedDelegateResponse) + 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 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().(*MsgWrappedDelegateResponse) + 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: MsgWrappedDelegateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWrappedDelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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_MsgWrappedUndelegate protoreflect.MessageDescriptor + fd_MsgWrappedUndelegate_msg protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_tx_proto_init() + md_MsgWrappedUndelegate = File_cosmos_epoching_v1_tx_proto.Messages().ByName("MsgWrappedUndelegate") + fd_MsgWrappedUndelegate_msg = md_MsgWrappedUndelegate.Fields().ByName("msg") +} + +var _ protoreflect.Message = (*fastReflection_MsgWrappedUndelegate)(nil) + +type fastReflection_MsgWrappedUndelegate MsgWrappedUndelegate + +func (x *MsgWrappedUndelegate) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgWrappedUndelegate)(x) +} + +func (x *MsgWrappedUndelegate) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_tx_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_MsgWrappedUndelegate_messageType fastReflection_MsgWrappedUndelegate_messageType +var _ protoreflect.MessageType = fastReflection_MsgWrappedUndelegate_messageType{} + +type fastReflection_MsgWrappedUndelegate_messageType struct{} + +func (x fastReflection_MsgWrappedUndelegate_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgWrappedUndelegate)(nil) +} +func (x fastReflection_MsgWrappedUndelegate_messageType) New() protoreflect.Message { + return new(fastReflection_MsgWrappedUndelegate) +} +func (x fastReflection_MsgWrappedUndelegate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedUndelegate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgWrappedUndelegate) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedUndelegate +} + +// 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_MsgWrappedUndelegate) Type() protoreflect.MessageType { + return _fastReflection_MsgWrappedUndelegate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgWrappedUndelegate) New() protoreflect.Message { + return new(fastReflection_MsgWrappedUndelegate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgWrappedUndelegate) Interface() protoreflect.ProtoMessage { + return (*MsgWrappedUndelegate)(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_MsgWrappedUndelegate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Msg != nil { + value := protoreflect.ValueOfMessage(x.Msg.ProtoReflect()) + if !f(fd_MsgWrappedUndelegate_msg, 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_MsgWrappedUndelegate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedUndelegate.msg": + return x.Msg != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegate 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_MsgWrappedUndelegate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedUndelegate.msg": + x.Msg = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegate 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_MsgWrappedUndelegate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.MsgWrappedUndelegate.msg": + value := x.Msg + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegate 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_MsgWrappedUndelegate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedUndelegate.msg": + x.Msg = value.Message().Interface().(*v1beta1.MsgUndelegate) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegate 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_MsgWrappedUndelegate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedUndelegate.msg": + if x.Msg == nil { + x.Msg = new(v1beta1.MsgUndelegate) + } + return protoreflect.ValueOfMessage(x.Msg.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegate 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_MsgWrappedUndelegate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedUndelegate.msg": + m := new(v1beta1.MsgUndelegate) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegate 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_MsgWrappedUndelegate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.MsgWrappedUndelegate", 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_MsgWrappedUndelegate) 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_MsgWrappedUndelegate) 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_MsgWrappedUndelegate) 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_MsgWrappedUndelegate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgWrappedUndelegate) + 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.Msg != nil { + l = options.Size(x.Msg) + 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().(*MsgWrappedUndelegate) + 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.Msg != nil { + encoded, err := options.Marshal(x.Msg) + 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...) + } 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().(*MsgWrappedUndelegate) + 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: MsgWrappedUndelegate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWrappedUndelegate: 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 Msg", 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.Msg == nil { + x.Msg = &v1beta1.MsgUndelegate{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Msg); 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_MsgWrappedUndelegateResponse protoreflect.MessageDescriptor +) + +func init() { + file_cosmos_epoching_v1_tx_proto_init() + md_MsgWrappedUndelegateResponse = File_cosmos_epoching_v1_tx_proto.Messages().ByName("MsgWrappedUndelegateResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgWrappedUndelegateResponse)(nil) + +type fastReflection_MsgWrappedUndelegateResponse MsgWrappedUndelegateResponse + +func (x *MsgWrappedUndelegateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgWrappedUndelegateResponse)(x) +} + +func (x *MsgWrappedUndelegateResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_tx_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_MsgWrappedUndelegateResponse_messageType fastReflection_MsgWrappedUndelegateResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgWrappedUndelegateResponse_messageType{} + +type fastReflection_MsgWrappedUndelegateResponse_messageType struct{} + +func (x fastReflection_MsgWrappedUndelegateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgWrappedUndelegateResponse)(nil) +} +func (x fastReflection_MsgWrappedUndelegateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgWrappedUndelegateResponse) +} +func (x fastReflection_MsgWrappedUndelegateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedUndelegateResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgWrappedUndelegateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedUndelegateResponse +} + +// 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_MsgWrappedUndelegateResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgWrappedUndelegateResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgWrappedUndelegateResponse) New() protoreflect.Message { + return new(fastReflection_MsgWrappedUndelegateResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgWrappedUndelegateResponse) Interface() protoreflect.ProtoMessage { + return (*MsgWrappedUndelegateResponse)(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_MsgWrappedUndelegateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgWrappedUndelegateResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegateResponse 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_MsgWrappedUndelegateResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegateResponse 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_MsgWrappedUndelegateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegateResponse 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_MsgWrappedUndelegateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegateResponse 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_MsgWrappedUndelegateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegateResponse 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_MsgWrappedUndelegateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedUndelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedUndelegateResponse 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_MsgWrappedUndelegateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.MsgWrappedUndelegateResponse", 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_MsgWrappedUndelegateResponse) 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_MsgWrappedUndelegateResponse) 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_MsgWrappedUndelegateResponse) 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_MsgWrappedUndelegateResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgWrappedUndelegateResponse) + 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.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().(*MsgWrappedUndelegateResponse) + 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 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().(*MsgWrappedUndelegateResponse) + 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: MsgWrappedUndelegateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWrappedUndelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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_MsgWrappedBeginRedelegate protoreflect.MessageDescriptor + fd_MsgWrappedBeginRedelegate_msg protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_tx_proto_init() + md_MsgWrappedBeginRedelegate = File_cosmos_epoching_v1_tx_proto.Messages().ByName("MsgWrappedBeginRedelegate") + fd_MsgWrappedBeginRedelegate_msg = md_MsgWrappedBeginRedelegate.Fields().ByName("msg") +} + +var _ protoreflect.Message = (*fastReflection_MsgWrappedBeginRedelegate)(nil) + +type fastReflection_MsgWrappedBeginRedelegate MsgWrappedBeginRedelegate + +func (x *MsgWrappedBeginRedelegate) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgWrappedBeginRedelegate)(x) +} + +func (x *MsgWrappedBeginRedelegate) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_tx_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_MsgWrappedBeginRedelegate_messageType fastReflection_MsgWrappedBeginRedelegate_messageType +var _ protoreflect.MessageType = fastReflection_MsgWrappedBeginRedelegate_messageType{} + +type fastReflection_MsgWrappedBeginRedelegate_messageType struct{} + +func (x fastReflection_MsgWrappedBeginRedelegate_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgWrappedBeginRedelegate)(nil) +} +func (x fastReflection_MsgWrappedBeginRedelegate_messageType) New() protoreflect.Message { + return new(fastReflection_MsgWrappedBeginRedelegate) +} +func (x fastReflection_MsgWrappedBeginRedelegate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedBeginRedelegate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgWrappedBeginRedelegate) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedBeginRedelegate +} + +// 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_MsgWrappedBeginRedelegate) Type() protoreflect.MessageType { + return _fastReflection_MsgWrappedBeginRedelegate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgWrappedBeginRedelegate) New() protoreflect.Message { + return new(fastReflection_MsgWrappedBeginRedelegate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgWrappedBeginRedelegate) Interface() protoreflect.ProtoMessage { + return (*MsgWrappedBeginRedelegate)(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_MsgWrappedBeginRedelegate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Msg != nil { + value := protoreflect.ValueOfMessage(x.Msg.ProtoReflect()) + if !f(fd_MsgWrappedBeginRedelegate_msg, 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_MsgWrappedBeginRedelegate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedBeginRedelegate.msg": + return x.Msg != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegate 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_MsgWrappedBeginRedelegate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedBeginRedelegate.msg": + x.Msg = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegate 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_MsgWrappedBeginRedelegate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.MsgWrappedBeginRedelegate.msg": + value := x.Msg + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegate 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_MsgWrappedBeginRedelegate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedBeginRedelegate.msg": + x.Msg = value.Message().Interface().(*v1beta1.MsgBeginRedelegate) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegate 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_MsgWrappedBeginRedelegate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedBeginRedelegate.msg": + if x.Msg == nil { + x.Msg = new(v1beta1.MsgBeginRedelegate) + } + return protoreflect.ValueOfMessage(x.Msg.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegate 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_MsgWrappedBeginRedelegate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgWrappedBeginRedelegate.msg": + m := new(v1beta1.MsgBeginRedelegate) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegate")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegate 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_MsgWrappedBeginRedelegate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.MsgWrappedBeginRedelegate", 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_MsgWrappedBeginRedelegate) 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_MsgWrappedBeginRedelegate) 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_MsgWrappedBeginRedelegate) 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_MsgWrappedBeginRedelegate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgWrappedBeginRedelegate) + 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.Msg != nil { + l = options.Size(x.Msg) + 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().(*MsgWrappedBeginRedelegate) + 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.Msg != nil { + encoded, err := options.Marshal(x.Msg) + 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...) + } 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().(*MsgWrappedBeginRedelegate) + 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: MsgWrappedBeginRedelegate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWrappedBeginRedelegate: 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 Msg", 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.Msg == nil { + x.Msg = &v1beta1.MsgBeginRedelegate{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Msg); 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_MsgWrappedBeginRedelegateResponse protoreflect.MessageDescriptor +) + +func init() { + file_cosmos_epoching_v1_tx_proto_init() + md_MsgWrappedBeginRedelegateResponse = File_cosmos_epoching_v1_tx_proto.Messages().ByName("MsgWrappedBeginRedelegateResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgWrappedBeginRedelegateResponse)(nil) + +type fastReflection_MsgWrappedBeginRedelegateResponse MsgWrappedBeginRedelegateResponse + +func (x *MsgWrappedBeginRedelegateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgWrappedBeginRedelegateResponse)(x) +} + +func (x *MsgWrappedBeginRedelegateResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_tx_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_MsgWrappedBeginRedelegateResponse_messageType fastReflection_MsgWrappedBeginRedelegateResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgWrappedBeginRedelegateResponse_messageType{} + +type fastReflection_MsgWrappedBeginRedelegateResponse_messageType struct{} + +func (x fastReflection_MsgWrappedBeginRedelegateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgWrappedBeginRedelegateResponse)(nil) +} +func (x fastReflection_MsgWrappedBeginRedelegateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgWrappedBeginRedelegateResponse) +} +func (x fastReflection_MsgWrappedBeginRedelegateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedBeginRedelegateResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgWrappedBeginRedelegateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgWrappedBeginRedelegateResponse +} + +// 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_MsgWrappedBeginRedelegateResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgWrappedBeginRedelegateResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgWrappedBeginRedelegateResponse) New() protoreflect.Message { + return new(fastReflection_MsgWrappedBeginRedelegateResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgWrappedBeginRedelegateResponse) Interface() protoreflect.ProtoMessage { + return (*MsgWrappedBeginRedelegateResponse)(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_MsgWrappedBeginRedelegateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgWrappedBeginRedelegateResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse 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_MsgWrappedBeginRedelegateResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse 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_MsgWrappedBeginRedelegateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse 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_MsgWrappedBeginRedelegateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse 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_MsgWrappedBeginRedelegateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse 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_MsgWrappedBeginRedelegateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse 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_MsgWrappedBeginRedelegateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse", 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_MsgWrappedBeginRedelegateResponse) 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_MsgWrappedBeginRedelegateResponse) 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_MsgWrappedBeginRedelegateResponse) 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_MsgWrappedBeginRedelegateResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgWrappedBeginRedelegateResponse) + 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.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().(*MsgWrappedBeginRedelegateResponse) + 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 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().(*MsgWrappedBeginRedelegateResponse) + 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: MsgWrappedBeginRedelegateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWrappedBeginRedelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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_MsgUpdateParams protoreflect.MessageDescriptor + fd_MsgUpdateParams_authority protoreflect.FieldDescriptor + fd_MsgUpdateParams_params protoreflect.FieldDescriptor +) + +func init() { + file_cosmos_epoching_v1_tx_proto_init() + md_MsgUpdateParams = File_cosmos_epoching_v1_tx_proto.Messages().ByName("MsgUpdateParams") + fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") + fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) + +type fastReflection_MsgUpdateParams MsgUpdateParams + +func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateParams)(x) +} + +func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[6] + 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_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{} + +type fastReflection_MsgUpdateParams_messageType struct{} + +func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateParams)(nil) +} +func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParams) +} +func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParams +} + +// 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_MsgUpdateParams) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateParams_authority, value) { + return + } + } + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgUpdateParams.authority": + return x.Authority != "" + case "cosmos.epoching.v1.MsgUpdateParams.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgUpdateParams.authority": + x.Authority = "" + case "cosmos.epoching.v1.MsgUpdateParams.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cosmos.epoching.v1.MsgUpdateParams.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "cosmos.epoching.v1.MsgUpdateParams.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgUpdateParams.authority": + x.Authority = value.Interface().(string) + case "cosmos.epoching.v1.MsgUpdateParams.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgUpdateParams.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "cosmos.epoching.v1.MsgUpdateParams.authority": + panic(fmt.Errorf("field authority of message cosmos.epoching.v1.MsgUpdateParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParams 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_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cosmos.epoching.v1.MsgUpdateParams.authority": + return protoreflect.ValueOfString("") + case "cosmos.epoching.v1.MsgUpdateParams.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParams 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_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateParams) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Params != nil { + l = options.Size(x.Params) + 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().(*MsgUpdateParams) + 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.Params != nil { + encoded, err := options.Marshal(x.Params) + 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.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateParams) + 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: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: 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 Authority", 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.Authority = 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 Params", 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.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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_MsgUpdateParamsResponse protoreflect.MessageDescriptor +) + +func init() { + file_cosmos_epoching_v1_tx_proto_init() + md_MsgUpdateParamsResponse = File_cosmos_epoching_v1_tx_proto.Messages().ByName("MsgUpdateParamsResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil) + +type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse + +func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateParamsResponse)(x) +} + +func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[7] + 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_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{} + +type fastReflection_MsgUpdateParamsResponse_messageType struct{} + +func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateParamsResponse)(nil) +} +func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParamsResponse) +} +func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParamsResponse +} + +// 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_MsgUpdateParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.epoching.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message cosmos.epoching.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cosmos.epoching.v1.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateParamsResponse) + 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.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().(*MsgUpdateParamsResponse) + 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 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().(*MsgUpdateParamsResponse) + 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: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 +// protoc (unknown) +// source: cosmos/epoching/v1/tx.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// MsgWrappedDelegate is the message for delegating stakes +type MsgWrappedDelegate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg *v1beta1.MsgDelegate `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` +} + +func (x *MsgWrappedDelegate) Reset() { + *x = MsgWrappedDelegate{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgWrappedDelegate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgWrappedDelegate) ProtoMessage() {} + +// Deprecated: Use MsgWrappedDelegate.ProtoReflect.Descriptor instead. +func (*MsgWrappedDelegate) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgWrappedDelegate) GetMsg() *v1beta1.MsgDelegate { + if x != nil { + return x.Msg + } + return nil +} + +// MsgWrappedDelegate is the response to the MsgWrappedDelegate message +type MsgWrappedDelegateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgWrappedDelegateResponse) Reset() { + *x = MsgWrappedDelegateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgWrappedDelegateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgWrappedDelegateResponse) ProtoMessage() {} + +// Deprecated: Use MsgWrappedDelegateResponse.ProtoReflect.Descriptor instead. +func (*MsgWrappedDelegateResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_tx_proto_rawDescGZIP(), []int{1} +} + +// MsgWrappedUndelegate is the message for undelegating stakes +type MsgWrappedUndelegate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg *v1beta1.MsgUndelegate `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` +} + +func (x *MsgWrappedUndelegate) Reset() { + *x = MsgWrappedUndelegate{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgWrappedUndelegate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgWrappedUndelegate) ProtoMessage() {} + +// Deprecated: Use MsgWrappedUndelegate.ProtoReflect.Descriptor instead. +func (*MsgWrappedUndelegate) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgWrappedUndelegate) GetMsg() *v1beta1.MsgUndelegate { + if x != nil { + return x.Msg + } + return nil +} + +// MsgWrappedUndelegateResponse is the response to the MsgWrappedUndelegate +// message +type MsgWrappedUndelegateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgWrappedUndelegateResponse) Reset() { + *x = MsgWrappedUndelegateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgWrappedUndelegateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgWrappedUndelegateResponse) ProtoMessage() {} + +// Deprecated: Use MsgWrappedUndelegateResponse.ProtoReflect.Descriptor instead. +func (*MsgWrappedUndelegateResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_tx_proto_rawDescGZIP(), []int{3} +} + +// MsgWrappedDelegate is the message for moving bonded stakes from a +// validator to another validator +type MsgWrappedBeginRedelegate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg *v1beta1.MsgBeginRedelegate `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` +} + +func (x *MsgWrappedBeginRedelegate) Reset() { + *x = MsgWrappedBeginRedelegate{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgWrappedBeginRedelegate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgWrappedBeginRedelegate) ProtoMessage() {} + +// Deprecated: Use MsgWrappedBeginRedelegate.ProtoReflect.Descriptor instead. +func (*MsgWrappedBeginRedelegate) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_tx_proto_rawDescGZIP(), []int{4} +} + +func (x *MsgWrappedBeginRedelegate) GetMsg() *v1beta1.MsgBeginRedelegate { + if x != nil { + return x.Msg + } + return nil +} + +// MsgWrappedBeginRedelegateResponse is the response to the +// MsgWrappedBeginRedelegate message +type MsgWrappedBeginRedelegateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgWrappedBeginRedelegateResponse) Reset() { + *x = MsgWrappedBeginRedelegateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgWrappedBeginRedelegateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgWrappedBeginRedelegateResponse) ProtoMessage() {} + +// Deprecated: Use MsgWrappedBeginRedelegateResponse.ProtoReflect.Descriptor instead. +func (*MsgWrappedBeginRedelegateResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_tx_proto_rawDescGZIP(), []int{5} +} + +// MsgUpdateParams defines a message for updating epoching module parameters. +type MsgUpdateParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // authority is the address of the governance account. + // just FYI: cosmos.AddressString marks that this field should use type alias + // for AddressString instead of string, but the functionality is not yet implemented + // in cosmos-proto + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the epoching paramaeters parameters to update. + // + // NOTE: All parameters must be supplied. + Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *MsgUpdateParams) Reset() { + *x = MsgUpdateParams{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParams) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_tx_proto_rawDescGZIP(), []int{6} +} + +func (x *MsgUpdateParams) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateParams) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +// MsgUpdateParamsResponse is the response to the MsgUpdateParams message. +type MsgUpdateParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateParamsResponse) Reset() { + *x = MsgUpdateParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cosmos_epoching_v1_tx_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParamsResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return file_cosmos_epoching_v1_tx_proto_rawDescGZIP(), []int{7} +} + +var File_cosmos_epoching_v1_tx_proto protoreflect.FileDescriptor + +var file_cosmos_epoching_v1_tx_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, + 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, + 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, + 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x55, 0x0a, + 0x12, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, + 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, + 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, + 0x65, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x59, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, + 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x03, 0x6d, 0x73, + 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x03, + 0x6d, 0x73, 0x67, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x1e, 0x0a, + 0x1c, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x55, 0x6e, 0x64, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, + 0x19, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x42, 0x65, 0x67, 0x69, 0x6e, + 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x03, 0x6d, 0x73, + 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, + 0x1f, 0x00, 0x22, 0x23, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, + 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, + 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x0e, 0x82, + 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x19, 0x0a, + 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xca, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, + 0x12, 0x69, 0x0a, 0x0f, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, + 0x70, 0x65, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x1a, 0x2e, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x11, 0x57, + 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x12, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, + 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x1a, 0x30, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x16, + 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x64, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, 0x2d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, + 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x64, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x65, 0x1a, 0x35, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x72, + 0x61, 0x70, 0x70, 0x65, 0x64, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0c, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x23, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x1a, 0x2b, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, + 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xbb, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, + 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, + 0x3b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x45, + 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cosmos_epoching_v1_tx_proto_rawDescOnce sync.Once + file_cosmos_epoching_v1_tx_proto_rawDescData = file_cosmos_epoching_v1_tx_proto_rawDesc +) + +func file_cosmos_epoching_v1_tx_proto_rawDescGZIP() []byte { + file_cosmos_epoching_v1_tx_proto_rawDescOnce.Do(func() { + file_cosmos_epoching_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_epoching_v1_tx_proto_rawDescData) + }) + return file_cosmos_epoching_v1_tx_proto_rawDescData +} + +var file_cosmos_epoching_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_cosmos_epoching_v1_tx_proto_goTypes = []interface{}{ + (*MsgWrappedDelegate)(nil), // 0: cosmos.epoching.v1.MsgWrappedDelegate + (*MsgWrappedDelegateResponse)(nil), // 1: cosmos.epoching.v1.MsgWrappedDelegateResponse + (*MsgWrappedUndelegate)(nil), // 2: cosmos.epoching.v1.MsgWrappedUndelegate + (*MsgWrappedUndelegateResponse)(nil), // 3: cosmos.epoching.v1.MsgWrappedUndelegateResponse + (*MsgWrappedBeginRedelegate)(nil), // 4: cosmos.epoching.v1.MsgWrappedBeginRedelegate + (*MsgWrappedBeginRedelegateResponse)(nil), // 5: cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse + (*MsgUpdateParams)(nil), // 6: cosmos.epoching.v1.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 7: cosmos.epoching.v1.MsgUpdateParamsResponse + (*v1beta1.MsgDelegate)(nil), // 8: cosmos.staking.v1beta1.MsgDelegate + (*v1beta1.MsgUndelegate)(nil), // 9: cosmos.staking.v1beta1.MsgUndelegate + (*v1beta1.MsgBeginRedelegate)(nil), // 10: cosmos.staking.v1beta1.MsgBeginRedelegate + (*Params)(nil), // 11: cosmos.epoching.v1.Params +} +var file_cosmos_epoching_v1_tx_proto_depIdxs = []int32{ + 8, // 0: cosmos.epoching.v1.MsgWrappedDelegate.msg:type_name -> cosmos.staking.v1beta1.MsgDelegate + 9, // 1: cosmos.epoching.v1.MsgWrappedUndelegate.msg:type_name -> cosmos.staking.v1beta1.MsgUndelegate + 10, // 2: cosmos.epoching.v1.MsgWrappedBeginRedelegate.msg:type_name -> cosmos.staking.v1beta1.MsgBeginRedelegate + 11, // 3: cosmos.epoching.v1.MsgUpdateParams.params:type_name -> cosmos.epoching.v1.Params + 0, // 4: cosmos.epoching.v1.Msg.WrappedDelegate:input_type -> cosmos.epoching.v1.MsgWrappedDelegate + 2, // 5: cosmos.epoching.v1.Msg.WrappedUndelegate:input_type -> cosmos.epoching.v1.MsgWrappedUndelegate + 4, // 6: cosmos.epoching.v1.Msg.WrappedBeginRedelegate:input_type -> cosmos.epoching.v1.MsgWrappedBeginRedelegate + 6, // 7: cosmos.epoching.v1.Msg.UpdateParams:input_type -> cosmos.epoching.v1.MsgUpdateParams + 1, // 8: cosmos.epoching.v1.Msg.WrappedDelegate:output_type -> cosmos.epoching.v1.MsgWrappedDelegateResponse + 3, // 9: cosmos.epoching.v1.Msg.WrappedUndelegate:output_type -> cosmos.epoching.v1.MsgWrappedUndelegateResponse + 5, // 10: cosmos.epoching.v1.Msg.WrappedBeginRedelegate:output_type -> cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse + 7, // 11: cosmos.epoching.v1.Msg.UpdateParams:output_type -> cosmos.epoching.v1.MsgUpdateParamsResponse + 8, // [8:12] is the sub-list for method output_type + 4, // [4:8] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_cosmos_epoching_v1_tx_proto_init() } +func file_cosmos_epoching_v1_tx_proto_init() { + if File_cosmos_epoching_v1_tx_proto != nil { + return + } + file_cosmos_epoching_v1_params_proto_init() + if !protoimpl.UnsafeEnabled { + file_cosmos_epoching_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgWrappedDelegate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgWrappedDelegateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgWrappedUndelegate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgWrappedUndelegateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgWrappedBeginRedelegate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgWrappedBeginRedelegateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cosmos_epoching_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateParamsResponse); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cosmos_epoching_v1_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cosmos_epoching_v1_tx_proto_goTypes, + DependencyIndexes: file_cosmos_epoching_v1_tx_proto_depIdxs, + MessageInfos: file_cosmos_epoching_v1_tx_proto_msgTypes, + }.Build() + File_cosmos_epoching_v1_tx_proto = out.File + file_cosmos_epoching_v1_tx_proto_rawDesc = nil + file_cosmos_epoching_v1_tx_proto_goTypes = nil + file_cosmos_epoching_v1_tx_proto_depIdxs = nil +} diff --git a/api/cosmos/epoching/v1/tx_grpc.pb.go b/api/cosmos/epoching/v1/tx_grpc.pb.go new file mode 100644 index 00000000000..2493cc9bab7 --- /dev/null +++ b/api/cosmos/epoching/v1/tx_grpc.pb.go @@ -0,0 +1,234 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: cosmos/epoching/v1/tx.proto + +package epochingv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Msg_WrappedDelegate_FullMethodName = "/cosmos.epoching.v1.Msg/WrappedDelegate" + Msg_WrappedUndelegate_FullMethodName = "/cosmos.epoching.v1.Msg/WrappedUndelegate" + Msg_WrappedBeginRedelegate_FullMethodName = "/cosmos.epoching.v1.Msg/WrappedBeginRedelegate" + Msg_UpdateParams_FullMethodName = "/cosmos.epoching.v1.Msg/UpdateParams" +) + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type MsgClient interface { + // WrappedDelegate defines a method for performing a delegation of coins from + // a delegator to a validator. + WrappedDelegate(ctx context.Context, in *MsgWrappedDelegate, opts ...grpc.CallOption) (*MsgWrappedDelegateResponse, error) + // WrappedUndelegate defines a method for performing an undelegation from a + // delegate and a validator. + WrappedUndelegate(ctx context.Context, in *MsgWrappedUndelegate, opts ...grpc.CallOption) (*MsgWrappedUndelegateResponse, error) + // WrappedBeginRedelegate defines a method for performing a redelegation of + // coins from a delegator and source validator to a destination validator. + WrappedBeginRedelegate(ctx context.Context, in *MsgWrappedBeginRedelegate, opts ...grpc.CallOption) (*MsgWrappedBeginRedelegateResponse, error) + // UpdateParams defines a method for updating epoching module parameters. + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) WrappedDelegate(ctx context.Context, in *MsgWrappedDelegate, opts ...grpc.CallOption) (*MsgWrappedDelegateResponse, error) { + out := new(MsgWrappedDelegateResponse) + err := c.cc.Invoke(ctx, Msg_WrappedDelegate_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) WrappedUndelegate(ctx context.Context, in *MsgWrappedUndelegate, opts ...grpc.CallOption) (*MsgWrappedUndelegateResponse, error) { + out := new(MsgWrappedUndelegateResponse) + err := c.cc.Invoke(ctx, Msg_WrappedUndelegate_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) WrappedBeginRedelegate(ctx context.Context, in *MsgWrappedBeginRedelegate, opts ...grpc.CallOption) (*MsgWrappedBeginRedelegateResponse, error) { + out := new(MsgWrappedBeginRedelegateResponse) + err := c.cc.Invoke(ctx, Msg_WrappedBeginRedelegate_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +// All implementations must embed UnimplementedMsgServer +// for forward compatibility +type MsgServer interface { + // WrappedDelegate defines a method for performing a delegation of coins from + // a delegator to a validator. + WrappedDelegate(context.Context, *MsgWrappedDelegate) (*MsgWrappedDelegateResponse, error) + // WrappedUndelegate defines a method for performing an undelegation from a + // delegate and a validator. + WrappedUndelegate(context.Context, *MsgWrappedUndelegate) (*MsgWrappedUndelegateResponse, error) + // WrappedBeginRedelegate defines a method for performing a redelegation of + // coins from a delegator and source validator to a destination validator. + WrappedBeginRedelegate(context.Context, *MsgWrappedBeginRedelegate) (*MsgWrappedBeginRedelegateResponse, error) + // UpdateParams defines a method for updating epoching module parameters. + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (UnimplementedMsgServer) WrappedDelegate(context.Context, *MsgWrappedDelegate) (*MsgWrappedDelegateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WrappedDelegate not implemented") +} +func (UnimplementedMsgServer) WrappedUndelegate(context.Context, *MsgWrappedUndelegate) (*MsgWrappedUndelegateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WrappedUndelegate not implemented") +} +func (UnimplementedMsgServer) WrappedBeginRedelegate(context.Context, *MsgWrappedBeginRedelegate) (*MsgWrappedBeginRedelegateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WrappedBeginRedelegate not implemented") +} +func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} + +// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MsgServer will +// result in compilation errors. +type UnsafeMsgServer interface { + mustEmbedUnimplementedMsgServer() +} + +func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_WrappedDelegate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgWrappedDelegate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).WrappedDelegate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_WrappedDelegate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).WrappedDelegate(ctx, req.(*MsgWrappedDelegate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_WrappedUndelegate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgWrappedUndelegate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).WrappedUndelegate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_WrappedUndelegate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).WrappedUndelegate(ctx, req.(*MsgWrappedUndelegate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_WrappedBeginRedelegate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgWrappedBeginRedelegate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).WrappedBeginRedelegate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_WrappedBeginRedelegate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).WrappedBeginRedelegate(ctx, req.(*MsgWrappedBeginRedelegate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateParams_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + +// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Msg_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "cosmos.epoching.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "WrappedDelegate", + Handler: _Msg_WrappedDelegate_Handler, + }, + { + MethodName: "WrappedUndelegate", + Handler: _Msg_WrappedUndelegate_Handler, + }, + { + MethodName: "WrappedBeginRedelegate", + Handler: _Msg_WrappedBeginRedelegate_Handler, + }, + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cosmos/epoching/v1/tx.proto", +} diff --git a/proto/cosmos/bls/v1/bls_key.proto b/proto/cosmos/bls/v1/bls_key.proto new file mode 100644 index 00000000000..8462ad5714c --- /dev/null +++ b/proto/cosmos/bls/v1/bls_key.proto @@ -0,0 +1,39 @@ +syntax = "proto3"; +package cosmos.bls.v1; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/bls/types"; + +// BlsKey wraps BLS public key with PoP +message BlsKey { + // pubkey is the BLS public key of a validator + bytes pubkey = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.PublicKey"]; + + // pop is the proof-of-possession of the BLS key + ProofOfPossession pop = 3; +} + +// ProofOfPossession defines proof for the ownership of Ed25519 and BLS private +// keys +message ProofOfPossession { + // ed25519_sig is used for verification, ed25519_sig = sign(key = Ed25519_sk, + // data = BLS_pk) + bytes ed25519_sig = 2; + // bls_sig is the result of PoP, bls_sig = sign(key = BLS_sk, data = + // ed25519_sig) + bytes bls_sig = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.Signature"]; +} + +// ValidatorWithBLSSet defines a set of validators with their BLS public keys +message ValidatorWithBlsKeySet { + repeated ValidatorWithBlsKey val_set = 1; +} + +// ValidatorWithBlsKey couples validator address, voting power, and its bls +// public key +message ValidatorWithBlsKey { + string validator_address = 1; + bytes bls_pub_key = 2; + uint64 voting_power = 3; +} diff --git a/proto/cosmos/bls/v1/checkpoint.proto b/proto/cosmos/bls/v1/checkpoint.proto new file mode 100644 index 00000000000..2a1403e2dc8 --- /dev/null +++ b/proto/cosmos/bls/v1/checkpoint.proto @@ -0,0 +1,86 @@ +syntax = "proto3"; +package cosmos.bls.v1; + +import "google/protobuf/timestamp.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/bls/types"; + +// RawCheckpoint wraps the BLS multi sig with meta data +message RawCheckpoint { + option (gogoproto.equal) = true; + + // epoch_num defines the epoch number the raw checkpoint is for + uint64 epoch_num = 1; + // last_commit_hash defines the 'LastCommitHash' that individual BLS sigs are + // signed on + bytes last_commit_hash = 2 [(gogoproto.customtype) = "LastCommitHash"]; + // bitmap defines the bitmap that indicates the signers of the BLS multi sig + bytes bitmap = 3; + // bls_multi_sig defines the multi sig that is aggregated from individual BLS + // sigs + bytes bls_multi_sig = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.Signature"]; +} + +// RawCheckpointWithMeta wraps the raw checkpoint with meta data. +message RawCheckpointWithMeta { + option (gogoproto.equal) = true; + + RawCheckpoint ckpt = 1; + // status defines the status of the checkpoint + CheckpointStatus status = 2; + // bls_aggr_pk defines the aggregated BLS public key + bytes bls_aggr_pk = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.PublicKey"]; + // power_sum defines the accumulated voting power for the checkpoint + uint64 power_sum = 4; + // lifecycle defines the lifecycle of this checkpoint, i.e., each state + // transition and the time (in both timestamp and block height) of this + // transition. + repeated CheckpointStateUpdate lifecycle = 5; +} + +// CheckpointStatus is the status of a checkpoint. +enum CheckpointStatus { + option (gogoproto.goproto_enum_prefix) = false; + + // ACCUMULATING defines a checkpoint that is awaiting for BLS signatures. + CKPT_STATUS_ACCUMULATING = 0 [(gogoproto.enumvalue_customname) = "Accumulating"]; + // SEALED defines a checkpoint that has accumulated sufficient BLS signatures. + CKPT_STATUS_SEALED = 1 [(gogoproto.enumvalue_customname) = "Sealed"]; + // SUBMITTED defines a checkpoint that is included on BTC. + CKPT_STATUS_SUBMITTED = 2 [(gogoproto.enumvalue_customname) = "Submitted"]; + // CONFIRMED defines a checkpoint that is k-deep on BTC. + CKPT_STATUS_CONFIRMED = 3 [(gogoproto.enumvalue_customname) = "Confirmed"]; + // FINALIZED defines a checkpoint that is w-deep on BTC. + CKPT_STATUS_FINALIZED = 4 [(gogoproto.enumvalue_customname) = "Finalized"]; +} + +// CheckpointStateUpdate defines a state transition on the checkpoint. +message CheckpointStateUpdate { + option (gogoproto.equal) = true; + + // state defines the event of a state transition towards this state + CheckpointStatus state = 1; + // block_height is the height of the Babylon block that triggers the state + // update + uint64 block_height = 2; + // block_time is the timestamp in the Babylon block that triggers the state + // update + google.protobuf.Timestamp block_time = 3 [(gogoproto.stdtime) = true]; +} + +// BlsSig wraps the BLS sig with meta data. +message BlsSig { + option (gogoproto.equal) = false; + + // epoch_num defines the epoch number that the BLS sig is signed on + uint64 epoch_num = 1; + // last_commit_hash defines the 'LastCommitHash' that the BLS sig is signed on + bytes last_commit_hash = 2 [(gogoproto.customtype) = "LastCommitHash"]; + bytes bls_sig = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.Signature"]; + // can't find cosmos_proto.scalar when compiling due to cosmos v0.45.4 does + // not support scalar string signer_address = 4 [(cosmos_proto.scalar) = + // "cosmos.AddressString"]; the signer_address defines the address of the + // signer + string signer_address = 4; +} diff --git a/proto/cosmos/bls/v1/events.proto b/proto/cosmos/bls/v1/events.proto new file mode 100644 index 00000000000..ce61c5f0408 --- /dev/null +++ b/proto/cosmos/bls/v1/events.proto @@ -0,0 +1,49 @@ +syntax = "proto3"; +package cosmos.bls.v1; + +import "cosmos/bls/v1/checkpoint.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/bls/types"; + +// EventCheckpointAccumulating is emitted when a checkpoint reaches the +// `Accumulating` state. +message EventCheckpointAccumulating { + RawCheckpointWithMeta checkpoint = 1; +} + +// EventCheckpointSealed is emitted when a checkpoint reaches the `Sealed` +// state. +message EventCheckpointSealed { + RawCheckpointWithMeta checkpoint = 1; +} + +// EventCheckpointSubmitted is emitted when a checkpoint reaches the `Submitted` +// state. +message EventCheckpointSubmitted { + RawCheckpointWithMeta checkpoint = 1; +} + +// EventCheckpointConfirmed is emitted when a checkpoint reaches the `Confirmed` +// state. +message EventCheckpointConfirmed { + RawCheckpointWithMeta checkpoint = 1; +} + +// EventCheckpointFinalized is emitted when a checkpoint reaches the `Finalized` +// state. +message EventCheckpointFinalized { + RawCheckpointWithMeta checkpoint = 1; +} + +// EventCheckpointForgotten is emitted when a checkpoint switches to a +// `Forgotten` state. +message EventCheckpointForgotten { + RawCheckpointWithMeta checkpoint = 1; +} + +// EventConflictingCheckpoint is emitted when two conflicting checkpoints are +// found. +message EventConflictingCheckpoint { + RawCheckpoint conflicting_checkpoint = 1; + RawCheckpointWithMeta local_checkpoint = 2; +} diff --git a/proto/cosmos/bls/v1/genesis.proto b/proto/cosmos/bls/v1/genesis.proto new file mode 100644 index 00000000000..8561715231a --- /dev/null +++ b/proto/cosmos/bls/v1/genesis.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package cosmos.bls.v1; + +import "cosmos/crypto/ed25519/keys.proto"; +import "cosmos/bls/v1/bls_key.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/bls/types"; + +// GenesisState defines the bls module's genesis state. +message GenesisState { + // genesis_keys defines the public keys for the genesis validators + repeated GenesisKey genesis_keys = 1; +} + +// GenesisKey defines public key information about the genesis validators +message GenesisKey { + // validator_address is the address corresponding to a validator + string validator_address = 1; + + // bls_key defines the BLS key of the validator at genesis + BlsKey bls_key = 2; + + // val_pubkey defines the ed25519 public key of the validator at genesis + cosmos.crypto.ed25519.PubKey val_pubkey = 3; +} diff --git a/proto/cosmos/bls/v1/query.proto b/proto/cosmos/bls/v1/query.proto new file mode 100644 index 00000000000..080a2a44e25 --- /dev/null +++ b/proto/cosmos/bls/v1/query.proto @@ -0,0 +1,159 @@ +syntax = "proto3"; +package cosmos.bls.v1; + +import "cosmos/bls/v1/bls_key.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "google/api/annotations.proto"; +import "cosmos/bls/v1/checkpoint.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/bls/types"; + +// Query defines the gRPC querier service. +service Query { + // RawCheckpointList queries all checkpoints that match the given status. + rpc RawCheckpointList(QueryRawCheckpointListRequest) returns (QueryRawCheckpointListResponse) { + option (google.api.http).get = "/cosmos/bls/v1/raw_checkpoints/{status}"; + } + + // RawCheckpoint queries a checkpoints at a given epoch number. + rpc RawCheckpoint(QueryRawCheckpointRequest) returns (QueryRawCheckpointResponse) { + option (google.api.http).get = "/cosmos/bls/v1/raw_checkpoint/{epoch_num}"; + } + + // RawCheckpoints queries checkpoints for a epoch range specified in pagination params. + rpc RawCheckpoints(QueryRawCheckpointsRequest) returns (QueryRawCheckpointsResponse) { + option (google.api.http).get = "/cosmos/bls/v1/raw_checkpoints"; + } + + // BlsPublicKeyList queries a list of bls public keys of the validators at a + // given epoch number. + rpc BlsPublicKeyList(QueryBlsPublicKeyListRequest) returns (QueryBlsPublicKeyListResponse) { + option (google.api.http).get = "/cosmos/bls/v1/bls_public_keys/{epoch_num}"; + } + + // EpochStatus queries the status of the checkpoint at a given epoch + rpc EpochStatus(QueryEpochStatusRequest) returns (QueryEpochStatusResponse) { + option (google.api.http).get = "/cosmos/bls/v1/epochs/{epoch_num}/status"; + } + + // RecentEpochStatusCount queries the number of epochs with each status in + // recent epochs + rpc RecentEpochStatusCount(QueryRecentEpochStatusCountRequest) returns (QueryRecentEpochStatusCountResponse) { + option (google.api.http).get = "/cosmos/bls/v1/epochs:status_count"; + } + + // LastCheckpointWithStatus queries the last checkpoint with a given status or + // a more matured status + rpc LastCheckpointWithStatus(QueryLastCheckpointWithStatusRequest) returns (QueryLastCheckpointWithStatusResponse) { + option (google.api.http).get = "/cosmos/bls/v1/last_raw_checkpoint/{status}"; + } +} + +// QueryRawCheckpointListRequest is the request type for the +// Query/RawCheckpoints RPC method. +message QueryRawCheckpointListRequest { + // status defines the status of the raw checkpoints of the query + CheckpointStatus status = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryRawCheckpointListResponse is the response type for the +// Query/RawCheckpoints RPC method. +message QueryRawCheckpointListResponse { + // the order is going from the newest to oldest based on the epoch number + repeated RawCheckpointWithMeta raw_checkpoints = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryRawCheckpointRequest is the request type for the Query/RawCheckpoint +// RPC method. +message QueryRawCheckpointRequest { + // epoch_num defines the epoch for the queried checkpoint + uint64 epoch_num = 1; +} + +// QueryRawCheckpointResponse is the response type for the Query/RawCheckpoint +// RPC method. +message QueryRawCheckpointResponse { + RawCheckpointWithMeta raw_checkpoint = 1; +} + +// QueryRawCheckpointsRequest is the request type for the Query/RawCheckpoints +// RPC method. +message QueryRawCheckpointsRequest { + // pagination defines whether to have the pagination in the request + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +// QueryRawCheckpointsResponse is the response type for the Query/RawCheckpoints +// RPC method. +message QueryRawCheckpointsResponse { + // the order is going from the newest to oldest based on the epoch number + repeated RawCheckpointWithMeta raw_checkpoints = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryBlsPublicKeyListRequest is the request type for the Query/BlsPublicKeys +// RPC method. +message QueryBlsPublicKeyListRequest { + // epoch_num defines the epoch for the queried bls public keys + uint64 epoch_num = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryBlsPublicKeyListResponse is the response type for the +// Query/BlsPublicKeys RPC method. +message QueryBlsPublicKeyListResponse { + repeated ValidatorWithBlsKey validator_with_bls_keys = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryEpochStatusRequest is the request type for the Query/EpochStatus +// RPC method. +message QueryEpochStatusRequest { + uint64 epoch_num = 1; +} + +// QueryEpochStatusResponse is the response type for the Query/EpochStatus +// RPC method. +message QueryEpochStatusResponse { + CheckpointStatus status = 1; +} + +// QueryRecentEpochStatusCountRequest is the request type for the +// Query/EpochStatusCount RPC method. +message QueryRecentEpochStatusCountRequest { + // epoch_count is the number of the most recent epochs to include in the + // aggregation + uint64 epoch_count = 1; +} + +// QueryRecentEpochStatusCountResponse is the response type for the +// Query/EpochStatusCount RPC method. +message QueryRecentEpochStatusCountResponse { + uint64 tip_epoch = 1; + uint64 epoch_count = 2; + map status_count = 3; +} + +// QueryLastCheckpointWithStatusRequest is the request type for the +// Query/LastCheckpointWithStatus RPC method. +message QueryLastCheckpointWithStatusRequest { + CheckpointStatus status = 1; +} + +// QueryLastCheckpointWithStatusResponse is the response type for the +// Query/LastCheckpointWithStatus RPC method. +message QueryLastCheckpointWithStatusResponse { + RawCheckpoint raw_checkpoint = 1; +} diff --git a/proto/cosmos/bls/v1/tx.proto b/proto/cosmos/bls/v1/tx.proto new file mode 100644 index 00000000000..d345881fb9f --- /dev/null +++ b/proto/cosmos/bls/v1/tx.proto @@ -0,0 +1,52 @@ +syntax = "proto3"; +package cosmos.bls.v1; + +import "gogoproto/gogo.proto"; +import "cosmos/bls/v1/checkpoint.proto"; +import "cosmos/bls/v1/bls_key.proto"; +import "cosmos/staking/v1beta1/tx.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/bls/types"; + +// Msg defines the bls Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // AddBlsSig defines a method for accumulating BLS signatures + rpc AddBlsSig(MsgAddBlsSig) returns (MsgAddBlsSigResponse); + + // WrappedCreateValidator defines a method for registering a new validator + rpc WrappedCreateValidator(MsgWrappedCreateValidator) returns (MsgWrappedCreateValidatorResponse); +} + +// MsgAddBlsSig defines a message to add a bls signature from a +// validator +message MsgAddBlsSig { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + // signer corresponds to the submitter of the transaction + // This might be a different entity compared to the one that created the BLS signature + // (i.e. the validator owner of the BLS key which is specified by the `bls_sig.signer_address`) + string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + BlsSig bls_sig = 2; +} + +// MsgAddBlsSigResponse defines the MsgAddBlsSig response type. +message MsgAddBlsSigResponse {} + +// MsgWrappedCreateValidator defines a wrapped message to create a validator +message MsgWrappedCreateValidator { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + BlsKey key = 1; + cosmos.staking.v1beta1.MsgCreateValidator msg_create_validator = 2; +} + +// MsgWrappedCreateValidatorResponse defines the MsgWrappedCreateValidator +// response type +message MsgWrappedCreateValidatorResponse {} diff --git a/proto/cosmos/epoching/v1/epoching.proto b/proto/cosmos/epoching/v1/epoching.proto new file mode 100644 index 00000000000..8efa79cf560 --- /dev/null +++ b/proto/cosmos/epoching/v1/epoching.proto @@ -0,0 +1,110 @@ +syntax = "proto3"; +package cosmos.epoching.v1; + +import "google/protobuf/timestamp.proto"; +import "gogoproto/gogo.proto"; +import "tendermint/types/types.proto"; +import "cosmos/staking/v1beta1/tx.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/epoching/types"; + +// Epoch is a structure that contains the metadata of an epoch +message Epoch { + uint64 epoch_number = 1; + uint64 current_epoch_interval = 2; + uint64 first_block_height = 3; + // last_block_header is the header of the last block in this epoch. + // Babylon needs to remember the last header of each epoch to complete + // unbonding validators/delegations when a previous epoch's checkpoint is + // finalised. The last_block_header field is nil in the epoch's beginning, and + // is set upon the end of this epoch. + tendermint.types.Header last_block_header = 4; + // app_hash_root is the Merkle root of all AppHashs in this epoch + // It will be used for proving a block is in an epoch + bytes app_hash_root = 5; + // sealer_header is the 2nd header of the next epoch + // This validator set has generated a BLS multisig on `last_commit_hash` of + // the sealer header + tendermint.types.Header sealer_header = 6; +} + +// QueuedMessage is a message that can change the validator set and is delayed +// to the epoch boundary +message QueuedMessage { + // tx_id is the ID of the tx that contains the message + bytes tx_id = 1; + // msg_id is the original message ID, i.e., hash of the marshaled message + bytes msg_id = 2; + // block_height is the height when this msg is submitted to Babylon + uint64 block_height = 3; + // block_time is the timestamp when this msg is submitted to Babylon + google.protobuf.Timestamp block_time = 4 [(gogoproto.stdtime) = true]; + // msg is the actual message that is sent by a user and is queued by the + // epoching module + oneof msg { + cosmos.staking.v1beta1.MsgCreateValidator msg_create_validator = 5; + cosmos.staking.v1beta1.MsgDelegate msg_delegate = 6; + cosmos.staking.v1beta1.MsgUndelegate msg_undelegate = 7; + cosmos.staking.v1beta1.MsgBeginRedelegate msg_begin_redelegate = 8; + // TODO: after we bump to Cosmos SDK v0.46, add MsgCancelUnbondingDelegation + } +} + +// QueuedMessageList is a message that contains a list of staking-related +// messages queued for an epoch +message QueuedMessageList { + uint64 epoch_number = 1; + repeated QueuedMessage msgs = 2; +} + +// BondState is the bond state of a validator or delegation +enum BondState { + // CREATED is when the validator/delegation has been created + CREATED = 0; + // CREATED is when the validator/delegation has become bonded + BONDED = 1; + // CREATED is when the validator/delegation has become unbonding + UNBONDING = 2; + // CREATED is when the validator/delegation has become unbonded + UNBONDED = 3; + // CREATED is when the validator/delegation has been removed + REMOVED = 4; +} + +// ValStateUpdate is a messages that records a state update of a validator +message ValStateUpdate { + BondState state = 1; + uint64 block_height = 2; + google.protobuf.Timestamp block_time = 3 [(gogoproto.stdtime) = true]; +} + +// ValidatorLifecycle is a message that records records the lifecycle of +// a validator +message ValidatorLifecycle { + string val_addr = 1; + repeated ValStateUpdate val_life = 2; +} + +// DelegationStateUpdate is the message that records a state update of a +// delegation +message DelegationStateUpdate { + BondState state = 1; + string val_addr = 2; + uint64 block_height = 3; + google.protobuf.Timestamp block_time = 4 [(gogoproto.stdtime) = true]; +} + +// ValidatorLifecycle is a message that records records the lifecycle of +// a delegation +message DelegationLifecycle { + string del_addr = 1; + repeated DelegationStateUpdate del_life = 2; +} + +// Validator is a message that denotes a validator +message Validator { + // addr is the validator's address (in sdk.ValAddress) + bytes addr = 1; + // power is the validator's voting power + int64 power = 2; +} diff --git a/proto/cosmos/epoching/v1/events.proto b/proto/cosmos/epoching/v1/events.proto new file mode 100644 index 00000000000..137f98886dd --- /dev/null +++ b/proto/cosmos/epoching/v1/events.proto @@ -0,0 +1,68 @@ +syntax = "proto3"; +package cosmos.epoching.v1; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/epoching/types"; + +// EventBeginEpoch is the event emitted when an epoch has started +message EventBeginEpoch { + uint64 epoch_number = 1; +} + +// EventEndEpoch is the event emitted when an epoch has ended +message EventEndEpoch { + uint64 epoch_number = 1; +} + +// EventHandleQueuedMsg is the event emitted when a queued message has been +// handled +message EventHandleQueuedMsg { + string original_event_type = 1; + uint64 epoch_number = 2; + uint64 height = 3; + bytes tx_id = 4; + bytes msg_id = 5; + repeated bytes original_attributes = 6 + [(gogoproto.customtype) = "github.com/cometbft/cometbft/abci/types.EventAttribute"]; + string error = 7; +} + +// EventSlashThreshold is the event emitted when a set of validators have been +// slashed +message EventSlashThreshold { + int64 slashed_voting_power = 1; + int64 total_voting_power = 2; + repeated bytes slashed_validators = 3; +} + +// EventWrappedDelegate is the event emitted when a MsgWrappedDelegate has been +// queued +message EventWrappedDelegate { + string delegator_address = 1; + string validator_address = 2; + uint64 amount = 3; + string denom = 4; + uint64 epoch_boundary = 5; +} + +// EventWrappedUndelegate is the event emitted when a MsgWrappedUndelegate has +// been queued +message EventWrappedUndelegate { + string delegator_address = 1; + string validator_address = 2; + uint64 amount = 3; + string denom = 4; + uint64 epoch_boundary = 5; +} + +// EventWrappedBeginRedelegate is the event emitted when a +// MsgWrappedBeginRedelegate has been queued +message EventWrappedBeginRedelegate { + string delegator_address = 1; + string source_validator_address = 2; + string destination_validator_address = 3; + uint64 amount = 4; + string denom = 5; + uint64 epoch_boundary = 6; +} diff --git a/proto/cosmos/epoching/v1/genesis.proto b/proto/cosmos/epoching/v1/genesis.proto new file mode 100644 index 00000000000..5f96b23e4ab --- /dev/null +++ b/proto/cosmos/epoching/v1/genesis.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package cosmos.epoching.v1; + +import "gogoproto/gogo.proto"; +import "cosmos/epoching/v1/params.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/epoching/types"; + +// GenesisState defines the epoching module's genesis state. +message GenesisState { + Params params = 1 [(gogoproto.nullable) = false]; +} diff --git a/proto/cosmos/epoching/v1/params.proto b/proto/cosmos/epoching/v1/params.proto new file mode 100644 index 00000000000..2a9f0780960 --- /dev/null +++ b/proto/cosmos/epoching/v1/params.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package cosmos.epoching.v1; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/epoching/types"; + +// Params defines the parameters for the module. +message Params { + option (gogoproto.equal) = true; + + // epoch_interval is the number of consecutive blocks to form an epoch + uint64 epoch_interval = 1 [(gogoproto.moretags) = "yaml:\"epoch_interval\""]; +} diff --git a/proto/cosmos/epoching/v1/query.proto b/proto/cosmos/epoching/v1/query.proto new file mode 100644 index 00000000000..8f7e556601d --- /dev/null +++ b/proto/cosmos/epoching/v1/query.proto @@ -0,0 +1,186 @@ +syntax = "proto3"; +package cosmos.epoching.v1; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "cosmos/epoching/v1/params.proto"; +import "cosmos/epoching/v1/epoching.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/epoching/types"; + +// Query defines the gRPC querier service. +service Query { + // Params queries the parameters of the module. + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/cosmos/epoching/v1/params"; + } + + // EpochInfo queries the information of a given epoch + rpc EpochInfo(QueryEpochInfoRequest) returns (QueryEpochInfoResponse) { + option (google.api.http).get = "/cosmos/epoching/v1/epochs/{epoch_num=*}"; + } + + // EpochsInfo queries the metadata of epochs in a given range, depending on + // the parameters in the pagination request. Th main use case will be querying + // the latest epochs in time order. + rpc EpochsInfo(QueryEpochsInfoRequest) returns (QueryEpochsInfoResponse) { + option (google.api.http).get = "/cosmos/epoching/v1/epochs"; + } + + // CurrentEpoch queries the current epoch + rpc CurrentEpoch(QueryCurrentEpochRequest) returns (QueryCurrentEpochResponse) { + option (google.api.http).get = "/cosmos/epoching/v1/current_epoch"; + } + + // EpochMsgs queries the messages of a given epoch + rpc EpochMsgs(QueryEpochMsgsRequest) returns (QueryEpochMsgsResponse) { + option (google.api.http).get = "/cosmos/epoching/v1/epochs/{epoch_num=*}/messages"; + } + + // LatestEpochMsgs queries the messages within a given number of most recent + // epochs + rpc LatestEpochMsgs(QueryLatestEpochMsgsRequest) returns (QueryLatestEpochMsgsResponse) { + option (google.api.http).get = "/cosmos/epoching/v1/epochs:latest/messages"; + } + + // ValidatorLifecycle queries the lifecycle of a given validator + rpc ValidatorLifecycle(QueryValidatorLifecycleRequest) returns (QueryValidatorLifecycleResponse) { + option (google.api.http).get = "/cosmos/epoching/v1/validator_lifecycle/{val_addr}"; + } + + // DelegationLifecycle queries the lifecycle of a given delegation + rpc DelegationLifecycle(QueryDelegationLifecycleRequest) returns (QueryDelegationLifecycleResponse) { + option (google.api.http).get = "/cosmos/epoching/v1/delegation_lifecycle/{del_addr}"; + } + + // EpochValSet queries the validator set of a given epoch + rpc EpochValSet(QueryEpochValSetRequest) returns (QueryEpochValSetResponse) { + option (google.api.http).get = "/cosmos/epoching/v1/epochs/{epoch_num=*}/validator_set"; + } +} + +// QueryParamsRequest is the request type for the Query/Params RPC method. +message QueryParamsRequest {} + +// QueryParamsResponse is the response type for the Query/Params RPC method. +message QueryParamsResponse { + // params holds all the parameters of this module. + cosmos.epoching.v1.Params params = 1 [(gogoproto.nullable) = false]; +} + +// QueryEpochInfoRequest is the request type for the Query/EpochInfo method +message QueryEpochInfoRequest { + uint64 epoch_num = 1; +} + +// QueryEpochInfoRequest is the response type for the Query/EpochInfo method +message QueryEpochInfoResponse { + cosmos.epoching.v1.Epoch epoch = 1; +} + +// QueryEpochInfosRequest is the request type for the Query/EpochInfos method +message QueryEpochsInfoRequest { + // pagination defines whether to have the pagination in the request + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +// QueryEpochsInfoResponse is the response type for the Query/EpochInfos method +message QueryEpochsInfoResponse { + repeated cosmos.epoching.v1.Epoch epochs = 1; + + // pagination defines the pagination in the response + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryCurrentEpochRequest is the request type for the Query/CurrentEpoch RPC +// method +message QueryCurrentEpochRequest {} + +// QueryCurrentEpochResponse is the response type for the Query/CurrentEpoch RPC +// method +message QueryCurrentEpochResponse { + // current_epoch is the current epoch number + uint64 current_epoch = 1; + // epoch_boundary is the height of this epoch's last block + uint64 epoch_boundary = 2; +} + +// QueryEpochMsgsRequest is the request type for the Query/EpochMsgs RPC method +message QueryEpochMsgsRequest { + // epoch_num is the number of epoch of the requested msg queue + uint64 epoch_num = 1; + + // pagination defines whether to have the pagination in the request + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryEpochMsgsResponse is the response type for the Query/EpochMsgs RPC +// method +message QueryEpochMsgsResponse { + // msgs is the list of messages queued in the current epoch + repeated cosmos.epoching.v1.QueuedMessage msgs = 1; + // pagination defines the pagination in the response + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryLatestEpochMsgsRequest is the request type for the Query/LatestEpochMsgs +// RPC method it returns epoch msgs within epoch [max(1, +// end_epoch-epoch_count+1), end_epoch] +message QueryLatestEpochMsgsRequest { + // end_epoch is the number of the last epoch to query + uint64 end_epoch = 1; + // epoch_count is the number of epochs to query + uint64 epoch_count = 2; + + cosmos.base.query.v1beta1.PageRequest pagination = 3; +} + +// QueryLatestEpochMsgsResponse is the response type for the +// Query/LatestEpochMsgs RPC method +message QueryLatestEpochMsgsResponse { + // epoch_msg_map is a list of QueuedMessageList + // each QueuedMessageList has a field identifying the epoch number + repeated cosmos.epoching.v1.QueuedMessageList latest_epoch_msgs = 1; + + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryValidatorLifecycleRequest is the request type for the +// Query/ValidatorLifecycle RPC method +message QueryValidatorLifecycleRequest { + string val_addr = 1; +} + +// QueryValidatorLifecycleResponse is the response type for the +// Query/ValidatorLifecycle RPC method +message QueryValidatorLifecycleResponse { + ValidatorLifecycle val_life = 1; +} + +// QueryDelegationLifecycleRequest is the request type for the +// Query/DelegationLifecycle RPC method +message QueryDelegationLifecycleRequest { + string del_addr = 1; +} + +// QueryDelegationLifecycleRequest is the response type for the +// Query/DelegationLifecycle RPC method +message QueryDelegationLifecycleResponse { + DelegationLifecycle del_life = 1; +} + +// QueryEpochValSetRequest is the request type for the Query/EpochValSet RPC +// method +message QueryEpochValSetRequest { + uint64 epoch_num = 1; + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryEpochValSetRequest is the response type for the Query/EpochValSet RPC +// method +message QueryEpochValSetResponse { + repeated cosmos.epoching.v1.Validator validators = 1; + int64 total_voting_power = 2; + cosmos.base.query.v1beta1.PageResponse pagination = 3; +} \ No newline at end of file diff --git a/proto/cosmos/epoching/v1/tx.proto b/proto/cosmos/epoching/v1/tx.proto new file mode 100644 index 00000000000..7b24ec53b34 --- /dev/null +++ b/proto/cosmos/epoching/v1/tx.proto @@ -0,0 +1,86 @@ +syntax = "proto3"; +package cosmos.epoching.v1; + +import "gogoproto/gogo.proto"; +import "cosmos/staking/v1beta1/tx.proto"; +import "cosmos/epoching/v1/params.proto"; + +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/epoching/types"; + +// Msg defines the Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // WrappedDelegate defines a method for performing a delegation of coins from + // a delegator to a validator. + rpc WrappedDelegate(MsgWrappedDelegate) returns (MsgWrappedDelegateResponse); + + // WrappedUndelegate defines a method for performing an undelegation from a + // delegate and a validator. + rpc WrappedUndelegate(MsgWrappedUndelegate) returns (MsgWrappedUndelegateResponse); + + // WrappedBeginRedelegate defines a method for performing a redelegation of + // coins from a delegator and source validator to a destination validator. + rpc WrappedBeginRedelegate(MsgWrappedBeginRedelegate) returns (MsgWrappedBeginRedelegateResponse); + + // UpdateParams defines a method for updating epoching module parameters. + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); +} + +// MsgWrappedDelegate is the message for delegating stakes +message MsgWrappedDelegate { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + cosmos.staking.v1beta1.MsgDelegate msg = 1; +} + +// MsgWrappedDelegate is the response to the MsgWrappedDelegate message +message MsgWrappedDelegateResponse {} + +// MsgWrappedUndelegate is the message for undelegating stakes +message MsgWrappedUndelegate { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + cosmos.staking.v1beta1.MsgUndelegate msg = 1; +} + +// MsgWrappedUndelegateResponse is the response to the MsgWrappedUndelegate +// message +message MsgWrappedUndelegateResponse {} + +// MsgWrappedDelegate is the message for moving bonded stakes from a +// validator to another validator +message MsgWrappedBeginRedelegate { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + cosmos.staking.v1beta1.MsgBeginRedelegate msg = 1; +} + +// MsgWrappedBeginRedelegateResponse is the response to the +// MsgWrappedBeginRedelegate message +message MsgWrappedBeginRedelegateResponse {} + +// MsgUpdateParams defines a message for updating epoching module parameters. +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + + // authority is the address of the governance account. + // just FYI: cosmos.AddressString marks that this field should use type alias + // for AddressString instead of string, but the functionality is not yet implemented + // in cosmos-proto + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // params defines the epoching paramaeters parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false]; +} + +// MsgUpdateParamsResponse is the response to the MsgUpdateParams message. +message MsgUpdateParamsResponse {} diff --git a/x/bls/types/bls_key.pb.go b/x/bls/types/bls_key.pb.go index b4ff5003ad4..8a64796096b 100644 --- a/x/bls/types/bls_key.pb.go +++ b/x/bls/types/bls_key.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/checkpointing/v1/bls_key.proto +// source: cosmos/bls/v1/bls_key.proto package types import ( fmt "fmt" - github_com_babylonchain_babylon_crypto_bls12381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12381" + github_com_cosmos_cosmos_sdk_crypto_keys_bls12381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12381" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" io "io" @@ -27,7 +27,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // BlsKey wraps BLS public key with PoP type BlsKey struct { // pubkey is the BLS public key of a validator - Pubkey *github_com_babylonchain_babylon_crypto_bls12381.PublicKey `protobuf:"bytes,2,opt,name=pubkey,proto3,customtype=github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.PublicKey" json:"pubkey,omitempty"` + Pubkey *github_com_cosmos_cosmos_sdk_crypto_keys_bls12381.PublicKey `protobuf:"bytes,2,opt,name=pubkey,proto3,customtype=github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.PublicKey" json:"pubkey,omitempty"` // pop is the proof-of-possession of the BLS key Pop *ProofOfPossession `protobuf:"bytes,3,opt,name=pop,proto3" json:"pop,omitempty"` } @@ -36,7 +36,7 @@ func (m *BlsKey) Reset() { *m = BlsKey{} } func (m *BlsKey) String() string { return proto.CompactTextString(m) } func (*BlsKey) ProtoMessage() {} func (*BlsKey) Descriptor() ([]byte, []int) { - return fileDescriptor_3a8c0d37ce63f038, []int{0} + return fileDescriptor_fb39a5959a0ea8b5, []int{0} } func (m *BlsKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,14 +80,14 @@ type ProofOfPossession struct { Ed25519Sig []byte `protobuf:"bytes,2,opt,name=ed25519_sig,json=ed25519Sig,proto3" json:"ed25519_sig,omitempty"` // bls_sig is the result of PoP, bls_sig = sign(key = BLS_sk, data = // ed25519_sig) - BlsSig *github_com_babylonchain_babylon_crypto_bls12381.Signature `protobuf:"bytes,3,opt,name=bls_sig,json=blsSig,proto3,customtype=github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.Signature" json:"bls_sig,omitempty"` + BlsSig *github_com_cosmos_cosmos_sdk_crypto_keys_bls12381.Signature `protobuf:"bytes,3,opt,name=bls_sig,json=blsSig,proto3,customtype=github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.Signature" json:"bls_sig,omitempty"` } func (m *ProofOfPossession) Reset() { *m = ProofOfPossession{} } func (m *ProofOfPossession) String() string { return proto.CompactTextString(m) } func (*ProofOfPossession) ProtoMessage() {} func (*ProofOfPossession) Descriptor() ([]byte, []int) { - return fileDescriptor_3a8c0d37ce63f038, []int{1} + return fileDescriptor_fb39a5959a0ea8b5, []int{1} } func (m *ProofOfPossession) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -132,7 +132,7 @@ func (m *ValidatorWithBlsKeySet) Reset() { *m = ValidatorWithBlsKeySet{} func (m *ValidatorWithBlsKeySet) String() string { return proto.CompactTextString(m) } func (*ValidatorWithBlsKeySet) ProtoMessage() {} func (*ValidatorWithBlsKeySet) Descriptor() ([]byte, []int) { - return fileDescriptor_3a8c0d37ce63f038, []int{2} + return fileDescriptor_fb39a5959a0ea8b5, []int{2} } func (m *ValidatorWithBlsKeySet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -180,7 +180,7 @@ func (m *ValidatorWithBlsKey) Reset() { *m = ValidatorWithBlsKey{} } func (m *ValidatorWithBlsKey) String() string { return proto.CompactTextString(m) } func (*ValidatorWithBlsKey) ProtoMessage() {} func (*ValidatorWithBlsKey) Descriptor() ([]byte, []int) { - return fileDescriptor_3a8c0d37ce63f038, []int{3} + return fileDescriptor_fb39a5959a0ea8b5, []int{3} } func (m *ValidatorWithBlsKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -231,46 +231,43 @@ func (m *ValidatorWithBlsKey) GetVotingPower() uint64 { } func init() { - proto.RegisterType((*BlsKey)(nil), "babylon.checkpointing.v1.BlsKey") - proto.RegisterType((*ProofOfPossession)(nil), "babylon.checkpointing.v1.ProofOfPossession") - proto.RegisterType((*ValidatorWithBlsKeySet)(nil), "babylon.checkpointing.v1.ValidatorWithBlsKeySet") - proto.RegisterType((*ValidatorWithBlsKey)(nil), "babylon.checkpointing.v1.ValidatorWithBlsKey") + proto.RegisterType((*BlsKey)(nil), "cosmos.bls.v1.BlsKey") + proto.RegisterType((*ProofOfPossession)(nil), "cosmos.bls.v1.ProofOfPossession") + proto.RegisterType((*ValidatorWithBlsKeySet)(nil), "cosmos.bls.v1.ValidatorWithBlsKeySet") + proto.RegisterType((*ValidatorWithBlsKey)(nil), "cosmos.bls.v1.ValidatorWithBlsKey") } -func init() { - proto.RegisterFile("babylon/checkpointing/v1/bls_key.proto", fileDescriptor_3a8c0d37ce63f038) -} +func init() { proto.RegisterFile("cosmos/bls/v1/bls_key.proto", fileDescriptor_fb39a5959a0ea8b5) } -var fileDescriptor_3a8c0d37ce63f038 = []byte{ - // 433 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x52, 0x41, 0x6b, 0xd4, 0x40, - 0x18, 0xdd, 0x71, 0x25, 0xa5, 0x93, 0x1e, 0x6c, 0x14, 0x09, 0x1e, 0xd2, 0x75, 0x0f, 0xb2, 0x50, - 0x4c, 0xc8, 0x96, 0x05, 0x7b, 0xe8, 0xc1, 0x3d, 0x78, 0xe9, 0xa1, 0x21, 0xc1, 0x0a, 0x5e, 0xe2, - 0x4c, 0x76, 0x3a, 0x3b, 0xec, 0x98, 0x6f, 0xc8, 0x4c, 0xa2, 0xf9, 0x01, 0xde, 0x3c, 0xf8, 0x0b, - 0xfc, 0x3d, 0x1e, 0x7b, 0x14, 0x0f, 0x22, 0xbb, 0x7f, 0x44, 0x66, 0x13, 0x17, 0xd4, 0x16, 0xc1, - 0x5b, 0x78, 0xef, 0xe5, 0xf1, 0xde, 0x9b, 0x0f, 0x3f, 0xa1, 0x84, 0xb6, 0x12, 0xca, 0xa8, 0x58, - 0xb2, 0x62, 0xa5, 0x40, 0x94, 0x46, 0x94, 0x3c, 0x6a, 0xe2, 0x88, 0x4a, 0x9d, 0xaf, 0x58, 0x1b, - 0xaa, 0x0a, 0x0c, 0x78, 0x7e, 0xaf, 0x0b, 0x7f, 0xd3, 0x85, 0x4d, 0xfc, 0xe8, 0x01, 0x07, 0x0e, - 0x5b, 0x51, 0x64, 0xbf, 0x3a, 0xfd, 0xf8, 0x33, 0xc2, 0xce, 0x5c, 0xea, 0x73, 0xd6, 0x7a, 0x2f, - 0xb1, 0xa3, 0x6a, 0xba, 0x62, 0xad, 0x7f, 0x67, 0x84, 0x26, 0x07, 0xf3, 0xb3, 0x6f, 0xdf, 0x8f, - 0x4e, 0xb9, 0x30, 0xcb, 0x9a, 0x86, 0x05, 0xbc, 0x8d, 0x7a, 0xe7, 0x62, 0x49, 0x44, 0x19, 0xed, - 0xe2, 0x54, 0xad, 0x32, 0x60, 0x43, 0xc4, 0xd3, 0x93, 0x67, 0x71, 0x98, 0xd4, 0x54, 0x8a, 0xe2, - 0x9c, 0xb5, 0x69, 0x6f, 0xe6, 0x9d, 0xe1, 0xa1, 0x02, 0xe5, 0x0f, 0x47, 0x68, 0xe2, 0x4e, 0x8f, - 0xc3, 0xdb, 0xf2, 0x85, 0x49, 0x05, 0x70, 0x75, 0x71, 0x95, 0x80, 0xd6, 0x4c, 0x6b, 0x01, 0x65, - 0x6a, 0xff, 0x1b, 0x7f, 0x44, 0xf8, 0xf0, 0x2f, 0xca, 0x3b, 0xc2, 0x2e, 0x5b, 0x4c, 0x67, 0xb3, - 0xf8, 0x34, 0xd7, 0x82, 0x77, 0x81, 0x53, 0xdc, 0x43, 0x99, 0xe0, 0xde, 0x25, 0xde, 0xb3, 0xc3, - 0x58, 0x72, 0xf8, 0xff, 0x6d, 0x32, 0xc1, 0x4b, 0x62, 0xea, 0x8a, 0xa5, 0x0e, 0x95, 0x3a, 0x13, - 0x7c, 0xfc, 0x06, 0x3f, 0xbc, 0x24, 0x52, 0x2c, 0x88, 0x81, 0xea, 0x95, 0x30, 0xcb, 0x6e, 0xbb, - 0x8c, 0x19, 0xef, 0x05, 0xde, 0x6b, 0x88, 0xcc, 0x35, 0x33, 0x3e, 0x1a, 0x0d, 0x27, 0xee, 0xf4, - 0xe9, 0xed, 0x5d, 0x6f, 0xb0, 0x48, 0x9d, 0x86, 0xc8, 0x8c, 0x99, 0xf1, 0x07, 0x84, 0xef, 0xdf, - 0xc0, 0x7b, 0xc7, 0xf8, 0xb0, 0xf9, 0x05, 0xe7, 0x64, 0xb1, 0xa8, 0x98, 0xd6, 0x3e, 0x1a, 0xa1, - 0xc9, 0x7e, 0x7a, 0x6f, 0x47, 0x3c, 0xef, 0x70, 0x2f, 0xc0, 0xae, 0xad, 0xaf, 0x6a, 0x9a, 0xef, - 0x1e, 0x34, 0xdd, 0xa7, 0x52, 0x27, 0x35, 0xb5, 0x66, 0x8f, 0xf1, 0x41, 0x03, 0x36, 0x4d, 0xae, - 0xe0, 0x1d, 0xab, 0xb6, 0x1b, 0xdd, 0x4d, 0xdd, 0x0e, 0x4b, 0x2c, 0x34, 0xbf, 0xf8, 0xb2, 0x0e, - 0xd0, 0xf5, 0x3a, 0x40, 0x3f, 0xd6, 0x01, 0xfa, 0xb4, 0x09, 0x06, 0xd7, 0x9b, 0x60, 0xf0, 0x75, - 0x13, 0x0c, 0x5e, 0xcf, 0xfe, 0x35, 0xe3, 0xfb, 0x3f, 0xae, 0xd4, 0xb4, 0x8a, 0x69, 0xea, 0x6c, - 0x2f, 0xee, 0xe4, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x90, 0xb1, 0x5b, 0xcb, 0x02, 0x00, - 0x00, +var fileDescriptor_fb39a5959a0ea8b5 = []byte{ + // 424 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x41, 0x6b, 0xd4, 0x40, + 0x14, 0xc7, 0x77, 0x5c, 0x49, 0xe9, 0xa4, 0x82, 0x8d, 0x22, 0x8b, 0x42, 0x1a, 0x73, 0x0a, 0x88, + 0x09, 0x49, 0x29, 0x28, 0x3d, 0x88, 0x7b, 0xed, 0xc1, 0x90, 0xa0, 0x15, 0x2f, 0x21, 0xb3, 0x99, + 0xa6, 0xc3, 0x4e, 0xf7, 0x0d, 0x79, 0x93, 0x68, 0x3e, 0x80, 0x57, 0xf1, 0xe2, 0x77, 0xf2, 0xd8, + 0xa3, 0x78, 0x10, 0xd9, 0xfd, 0x22, 0x32, 0xc9, 0x5a, 0x50, 0x8b, 0x97, 0x9e, 0xde, 0xf0, 0xff, + 0xbd, 0x79, 0xf3, 0xde, 0x7f, 0x1e, 0x7d, 0xb4, 0x00, 0xbc, 0x00, 0x8c, 0x98, 0xc4, 0xa8, 0x8b, + 0x4d, 0x28, 0x96, 0xbc, 0x0f, 0x55, 0x03, 0x1a, 0x9c, 0x3b, 0x23, 0x0c, 0x99, 0xc4, 0xb0, 0x8b, + 0x1f, 0xde, 0xaf, 0xa1, 0x86, 0x81, 0x44, 0xe6, 0x34, 0x26, 0xf9, 0x5f, 0x08, 0xb5, 0xe6, 0x12, + 0x4f, 0x78, 0xef, 0x9c, 0x52, 0x4b, 0xb5, 0x6c, 0xc9, 0xfb, 0xd9, 0x2d, 0x8f, 0x04, 0x7b, 0xf3, + 0x17, 0xdf, 0x7f, 0x1c, 0x1c, 0xd7, 0x42, 0x9f, 0xb7, 0x2c, 0x5c, 0xc0, 0x45, 0xb4, 0x7d, 0x6b, + 0x0c, 0x4f, 0xb1, 0x5a, 0x46, 0x8b, 0xa6, 0x57, 0x1a, 0xa2, 0x25, 0xef, 0x87, 0x16, 0xe2, 0xe4, + 0xf0, 0x59, 0x1c, 0xa6, 0x2d, 0x93, 0x62, 0x71, 0xc2, 0xfb, 0x6c, 0x5b, 0xce, 0x49, 0xe8, 0x54, + 0x81, 0x9a, 0x4d, 0x3d, 0x12, 0xd8, 0x89, 0x17, 0xfe, 0xd1, 0x56, 0x98, 0x36, 0x00, 0x67, 0xaf, + 0xce, 0x52, 0x40, 0xe4, 0x88, 0x02, 0x56, 0x99, 0x49, 0xf6, 0x3f, 0x11, 0xba, 0xff, 0x0f, 0x72, + 0x0e, 0xa8, 0xcd, 0xab, 0xe4, 0xe8, 0x28, 0x7e, 0x5e, 0xa0, 0xa8, 0xc7, 0x3e, 0x33, 0xba, 0x95, + 0x72, 0x51, 0x3b, 0x6f, 0xe9, 0x8e, 0x31, 0xc1, 0xc0, 0xe9, 0x4d, 0x86, 0xc8, 0x45, 0xbd, 0x2a, + 0x75, 0xdb, 0xf0, 0xcc, 0x62, 0x12, 0x73, 0x51, 0xfb, 0xaf, 0xe9, 0x83, 0x37, 0xa5, 0x14, 0x55, + 0xa9, 0xa1, 0x39, 0x15, 0xfa, 0x7c, 0x34, 0x2d, 0xe7, 0xda, 0x39, 0xa6, 0x3b, 0x5d, 0x29, 0x0b, + 0xe4, 0x7a, 0x46, 0xbc, 0x69, 0x60, 0x27, 0xfe, 0x5f, 0x23, 0x5e, 0x73, 0x2f, 0xb3, 0xba, 0x52, + 0xe6, 0x5c, 0xfb, 0x1f, 0x09, 0xbd, 0x77, 0x0d, 0x77, 0x9e, 0xd0, 0xfd, 0xee, 0xb7, 0x5c, 0x94, + 0x55, 0xd5, 0x70, 0xc4, 0x19, 0xf1, 0x48, 0xb0, 0x9b, 0xdd, 0xbd, 0x02, 0x2f, 0x47, 0xdd, 0x71, + 0xa9, 0x6d, 0xa6, 0x56, 0x2d, 0x2b, 0xae, 0xbe, 0x2f, 0xdb, 0x65, 0x12, 0xd3, 0x96, 0x99, 0x62, + 0x8f, 0xe9, 0x5e, 0x07, 0x5a, 0xac, 0xea, 0x42, 0xc1, 0x7b, 0xde, 0x0c, 0xd6, 0xdc, 0xce, 0xec, + 0x51, 0x4b, 0x8d, 0x34, 0x9f, 0x7f, 0x5d, 0xbb, 0xe4, 0x72, 0xed, 0x92, 0x9f, 0x6b, 0x97, 0x7c, + 0xde, 0xb8, 0x93, 0xcb, 0x8d, 0x3b, 0xf9, 0xb6, 0x71, 0x27, 0xef, 0x82, 0xff, 0xba, 0xf7, 0x61, + 0xd8, 0x3d, 0xdd, 0x2b, 0x8e, 0xcc, 0x1a, 0x56, 0xea, 0xf0, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x49, 0x25, 0x3a, 0x32, 0x96, 0x02, 0x00, 0x00, } func (m *BlsKey) Marshal() (dAtA []byte, err error) { @@ -585,7 +582,7 @@ func (m *BlsKey) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_babylonchain_babylon_crypto_bls12381.PublicKey + var v github_com_cosmos_cosmos_sdk_crypto_keys_bls12381.PublicKey m.Pubkey = &v if err := m.Pubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -740,7 +737,7 @@ func (m *ProofOfPossession) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_babylonchain_babylon_crypto_bls12381.Signature + var v github_com_cosmos_cosmos_sdk_crypto_keys_bls12381.Signature m.BlsSig = &v if err := m.BlsSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/x/bls/types/checkpoint.pb.go b/x/bls/types/checkpoint.pb.go index 1505823a117..fe724283c98 100644 --- a/x/bls/types/checkpoint.pb.go +++ b/x/bls/types/checkpoint.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/checkpointing/v1/checkpoint.proto +// source: cosmos/bls/v1/checkpoint.proto package types import ( bytes "bytes" fmt "fmt" - github_com_babylonchain_babylon_crypto_bls12381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12381" + github_com_cosmos_cosmos_sdk_crypto_keys_bls12381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12381" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" @@ -66,7 +66,7 @@ func (x CheckpointStatus) String() string { } func (CheckpointStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_73996df9c6aabde4, []int{0} + return fileDescriptor_b0ec43bdbba80584, []int{0} } // RawCheckpoint wraps the BLS multi sig with meta data @@ -80,14 +80,14 @@ type RawCheckpoint struct { Bitmap []byte `protobuf:"bytes,3,opt,name=bitmap,proto3" json:"bitmap,omitempty"` // bls_multi_sig defines the multi sig that is aggregated from individual BLS // sigs - BlsMultiSig *github_com_babylonchain_babylon_crypto_bls12381.Signature `protobuf:"bytes,4,opt,name=bls_multi_sig,json=blsMultiSig,proto3,customtype=github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.Signature" json:"bls_multi_sig,omitempty"` + BlsMultiSig *github_com_cosmos_cosmos_sdk_crypto_keys_bls12381.Signature `protobuf:"bytes,4,opt,name=bls_multi_sig,json=blsMultiSig,proto3,customtype=github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.Signature" json:"bls_multi_sig,omitempty"` } func (m *RawCheckpoint) Reset() { *m = RawCheckpoint{} } func (m *RawCheckpoint) String() string { return proto.CompactTextString(m) } func (*RawCheckpoint) ProtoMessage() {} func (*RawCheckpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_73996df9c6aabde4, []int{0} + return fileDescriptor_b0ec43bdbba80584, []int{0} } func (m *RawCheckpoint) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -134,9 +134,9 @@ func (m *RawCheckpoint) GetBitmap() []byte { type RawCheckpointWithMeta struct { Ckpt *RawCheckpoint `protobuf:"bytes,1,opt,name=ckpt,proto3" json:"ckpt,omitempty"` // status defines the status of the checkpoint - Status CheckpointStatus `protobuf:"varint,2,opt,name=status,proto3,enum=babylon.checkpointing.v1.CheckpointStatus" json:"status,omitempty"` + Status CheckpointStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cosmos.bls.v1.CheckpointStatus" json:"status,omitempty"` // bls_aggr_pk defines the aggregated BLS public key - BlsAggrPk *github_com_babylonchain_babylon_crypto_bls12381.PublicKey `protobuf:"bytes,3,opt,name=bls_aggr_pk,json=blsAggrPk,proto3,customtype=github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.PublicKey" json:"bls_aggr_pk,omitempty"` + BlsAggrPk *github_com_cosmos_cosmos_sdk_crypto_keys_bls12381.PublicKey `protobuf:"bytes,3,opt,name=bls_aggr_pk,json=blsAggrPk,proto3,customtype=github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.PublicKey" json:"bls_aggr_pk,omitempty"` // power_sum defines the accumulated voting power for the checkpoint PowerSum uint64 `protobuf:"varint,4,opt,name=power_sum,json=powerSum,proto3" json:"power_sum,omitempty"` // lifecycle defines the lifecycle of this checkpoint, i.e., each state @@ -149,7 +149,7 @@ func (m *RawCheckpointWithMeta) Reset() { *m = RawCheckpointWithMeta{} } func (m *RawCheckpointWithMeta) String() string { return proto.CompactTextString(m) } func (*RawCheckpointWithMeta) ProtoMessage() {} func (*RawCheckpointWithMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_73996df9c6aabde4, []int{1} + return fileDescriptor_b0ec43bdbba80584, []int{1} } func (m *RawCheckpointWithMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -209,7 +209,7 @@ func (m *RawCheckpointWithMeta) GetLifecycle() []*CheckpointStateUpdate { // CheckpointStateUpdate defines a state transition on the checkpoint. type CheckpointStateUpdate struct { // state defines the event of a state transition towards this state - State CheckpointStatus `protobuf:"varint,1,opt,name=state,proto3,enum=babylon.checkpointing.v1.CheckpointStatus" json:"state,omitempty"` + State CheckpointStatus `protobuf:"varint,1,opt,name=state,proto3,enum=cosmos.bls.v1.CheckpointStatus" json:"state,omitempty"` // block_height is the height of the Babylon block that triggers the state // update BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` @@ -222,7 +222,7 @@ func (m *CheckpointStateUpdate) Reset() { *m = CheckpointStateUpdate{} } func (m *CheckpointStateUpdate) String() string { return proto.CompactTextString(m) } func (*CheckpointStateUpdate) ProtoMessage() {} func (*CheckpointStateUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_73996df9c6aabde4, []int{2} + return fileDescriptor_b0ec43bdbba80584, []int{2} } func (m *CheckpointStateUpdate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -277,8 +277,8 @@ type BlsSig struct { // epoch_num defines the epoch number that the BLS sig is signed on EpochNum uint64 `protobuf:"varint,1,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"` // last_commit_hash defines the 'LastCommitHash' that the BLS sig is signed on - LastCommitHash *LastCommitHash `protobuf:"bytes,2,opt,name=last_commit_hash,json=lastCommitHash,proto3,customtype=LastCommitHash" json:"last_commit_hash,omitempty"` - BlsSig *github_com_babylonchain_babylon_crypto_bls12381.Signature `protobuf:"bytes,3,opt,name=bls_sig,json=blsSig,proto3,customtype=github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.Signature" json:"bls_sig,omitempty"` + LastCommitHash *LastCommitHash `protobuf:"bytes,2,opt,name=last_commit_hash,json=lastCommitHash,proto3,customtype=LastCommitHash" json:"last_commit_hash,omitempty"` + BlsSig *github_com_cosmos_cosmos_sdk_crypto_keys_bls12381.Signature `protobuf:"bytes,3,opt,name=bls_sig,json=blsSig,proto3,customtype=github.com/cosmos/cosmos-sdk/crypto/keys/bls12381.Signature" json:"bls_sig,omitempty"` // can't find cosmos_proto.scalar when compiling due to cosmos v0.45.4 does // not support scalar string signer_address = 4 [(cosmos_proto.scalar) = // "cosmos.AddressString"]; the signer_address defines the address of the @@ -290,7 +290,7 @@ func (m *BlsSig) Reset() { *m = BlsSig{} } func (m *BlsSig) String() string { return proto.CompactTextString(m) } func (*BlsSig) ProtoMessage() {} func (*BlsSig) Descriptor() ([]byte, []int) { - return fileDescriptor_73996df9c6aabde4, []int{3} + return fileDescriptor_b0ec43bdbba80584, []int{3} } func (m *BlsSig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -334,67 +334,65 @@ func (m *BlsSig) GetSignerAddress() string { } func init() { - proto.RegisterEnum("babylon.checkpointing.v1.CheckpointStatus", CheckpointStatus_name, CheckpointStatus_value) - proto.RegisterType((*RawCheckpoint)(nil), "babylon.checkpointing.v1.RawCheckpoint") - proto.RegisterType((*RawCheckpointWithMeta)(nil), "babylon.checkpointing.v1.RawCheckpointWithMeta") - proto.RegisterType((*CheckpointStateUpdate)(nil), "babylon.checkpointing.v1.CheckpointStateUpdate") - proto.RegisterType((*BlsSig)(nil), "babylon.checkpointing.v1.BlsSig") + proto.RegisterEnum("cosmos.bls.v1.CheckpointStatus", CheckpointStatus_name, CheckpointStatus_value) + proto.RegisterType((*RawCheckpoint)(nil), "cosmos.bls.v1.RawCheckpoint") + proto.RegisterType((*RawCheckpointWithMeta)(nil), "cosmos.bls.v1.RawCheckpointWithMeta") + proto.RegisterType((*CheckpointStateUpdate)(nil), "cosmos.bls.v1.CheckpointStateUpdate") + proto.RegisterType((*BlsSig)(nil), "cosmos.bls.v1.BlsSig") } -func init() { - proto.RegisterFile("babylon/checkpointing/v1/checkpoint.proto", fileDescriptor_73996df9c6aabde4) -} +func init() { proto.RegisterFile("cosmos/bls/v1/checkpoint.proto", fileDescriptor_b0ec43bdbba80584) } -var fileDescriptor_73996df9c6aabde4 = []byte{ - // 764 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x4d, 0x8b, 0xdb, 0x46, - 0x18, 0xc7, 0xad, 0x5d, 0xc5, 0x8d, 0xc7, 0x6b, 0x23, 0x86, 0x6e, 0x31, 0x2e, 0xd8, 0xee, 0x42, - 0xa9, 0x9b, 0x83, 0x84, 0x1d, 0x0a, 0x7d, 0xa5, 0x95, 0x5f, 0xb6, 0x31, 0xb1, 0x9d, 0x45, 0xb2, - 0x5b, 0x08, 0x14, 0x31, 0x92, 0x67, 0x47, 0x83, 0x47, 0x1a, 0xa1, 0x19, 0x25, 0x75, 0x3f, 0x41, - 0xd9, 0x53, 0xbe, 0xc0, 0x42, 0xa1, 0x1f, 0xa5, 0x97, 0x1e, 0x73, 0x2c, 0x39, 0xa4, 0x65, 0xf7, - 0x92, 0xb6, 0x5f, 0xa2, 0x68, 0xe4, 0xbc, 0x38, 0xe9, 0xd2, 0x17, 0xda, 0x9b, 0xe6, 0xef, 0xff, - 0xff, 0x61, 0x9e, 0xdf, 0x33, 0x8f, 0xc1, 0xbb, 0x3e, 0xf2, 0x37, 0x8c, 0xc7, 0x56, 0x10, 0xe2, - 0x60, 0x9d, 0x70, 0x1a, 0x4b, 0x1a, 0x13, 0xeb, 0x5e, 0xef, 0x05, 0xc1, 0x4c, 0x52, 0x2e, 0x39, - 0x6c, 0x6c, 0xad, 0xe6, 0x8e, 0xd5, 0xbc, 0xd7, 0x6b, 0xb6, 0x09, 0xe7, 0x84, 0x61, 0x4b, 0xf9, - 0xfc, 0xec, 0xd4, 0x92, 0x34, 0xc2, 0x42, 0xa2, 0x28, 0x29, 0xa2, 0xcd, 0xd7, 0x09, 0x27, 0x5c, - 0x7d, 0x5a, 0xf9, 0x57, 0xa1, 0x1e, 0xfd, 0xae, 0x81, 0x9a, 0x83, 0xee, 0x0f, 0x9f, 0x95, 0x83, - 0x6f, 0x82, 0x0a, 0x4e, 0x78, 0x10, 0x7a, 0x71, 0x16, 0x35, 0xb4, 0x8e, 0xd6, 0xd5, 0x9d, 0xeb, - 0x4a, 0x98, 0x67, 0x11, 0xfc, 0x18, 0x18, 0x0c, 0x09, 0xe9, 0x05, 0x3c, 0x8a, 0xa8, 0xf4, 0x42, - 0x24, 0xc2, 0xc6, 0x5e, 0x47, 0xeb, 0x1e, 0x0c, 0xe0, 0xa3, 0xc7, 0xed, 0xfa, 0x14, 0x09, 0x39, - 0x54, 0x3f, 0xdd, 0x42, 0x22, 0x74, 0xea, 0x6c, 0xe7, 0x0c, 0xdf, 0x00, 0x65, 0x9f, 0xca, 0x08, - 0x25, 0x8d, 0xfd, 0x3c, 0xe3, 0x6c, 0x4f, 0x10, 0x81, 0x9a, 0xcf, 0x84, 0x17, 0x65, 0x4c, 0x52, - 0x4f, 0x50, 0xd2, 0xd0, 0x55, 0xc9, 0x4f, 0x1e, 0x3d, 0x6e, 0x7f, 0x40, 0xa8, 0x0c, 0x33, 0xdf, - 0x0c, 0x78, 0x64, 0x6d, 0x7b, 0x0f, 0x42, 0x44, 0x63, 0xeb, 0x19, 0xb3, 0x74, 0x93, 0x48, 0x6e, - 0xf9, 0x4c, 0xf4, 0xfa, 0x37, 0xdf, 0xef, 0x99, 0x2e, 0x25, 0x31, 0x92, 0x59, 0x8a, 0x9d, 0xaa, - 0xcf, 0xc4, 0x2c, 0x2f, 0xe9, 0x52, 0xf2, 0xa1, 0xfe, 0xe4, 0xbb, 0xb6, 0x76, 0xf4, 0xeb, 0x1e, - 0x38, 0xdc, 0xe9, 0xf6, 0x4b, 0x2a, 0xc3, 0x19, 0x96, 0x08, 0x7e, 0x04, 0xf4, 0x60, 0x9d, 0x48, - 0xd5, 0x70, 0xb5, 0xff, 0x8e, 0x79, 0x15, 0x67, 0x73, 0x27, 0xee, 0xa8, 0x10, 0x1c, 0x80, 0xb2, - 0x90, 0x48, 0x66, 0x42, 0xb1, 0xa8, 0xf7, 0x6f, 0x5c, 0x1d, 0x7f, 0x9e, 0x75, 0x55, 0xc2, 0xd9, - 0x26, 0xe1, 0x57, 0x20, 0xbf, 0xaf, 0x87, 0x08, 0x49, 0xbd, 0x64, 0x5d, 0x00, 0xfa, 0x77, 0x04, - 0x4e, 0x32, 0x9f, 0xd1, 0xe0, 0x36, 0xde, 0x38, 0x15, 0x9f, 0x09, 0x9b, 0x90, 0xf4, 0x64, 0x9d, - 0x4f, 0x35, 0xe1, 0xf7, 0x71, 0xea, 0x89, 0x2c, 0x52, 0x78, 0x75, 0xe7, 0xba, 0x12, 0xdc, 0x2c, - 0x82, 0x33, 0x50, 0x61, 0xf4, 0x14, 0x07, 0x9b, 0x80, 0xe1, 0xc6, 0xb5, 0xce, 0x7e, 0xb7, 0xda, - 0xb7, 0xfe, 0x6e, 0x0b, 0x78, 0x99, 0xac, 0x90, 0xc4, 0xce, 0xf3, 0x0a, 0x5b, 0xd6, 0x3f, 0x68, - 0xe0, 0xf0, 0x4f, 0xad, 0xf0, 0x33, 0x70, 0x2d, 0x6f, 0x1a, 0x2b, 0xd8, 0xff, 0x8c, 0x56, 0x11, - 0x84, 0x6f, 0x81, 0x03, 0x9f, 0xf1, 0x60, 0xed, 0x85, 0x98, 0x92, 0x50, 0x2a, 0xec, 0x7a, 0x3e, - 0x70, 0x1e, 0xac, 0x6f, 0x29, 0x09, 0x7e, 0x0a, 0x40, 0x61, 0xc9, 0xf7, 0x40, 0xe1, 0xac, 0xf6, - 0x9b, 0x66, 0xb1, 0x24, 0xe6, 0xd3, 0x25, 0x31, 0x17, 0x4f, 0x97, 0x64, 0xa0, 0x3f, 0xf8, 0xb9, - 0xad, 0xe5, 0xc4, 0x78, 0xb0, 0xce, 0xd5, 0x6d, 0x17, 0x4f, 0x34, 0x50, 0x1e, 0x30, 0xe1, 0x52, - 0xf2, 0x7f, 0x2e, 0xc6, 0x17, 0xe0, 0xb5, 0x7c, 0xf8, 0xf9, 0xd3, 0xdf, 0xff, 0x2f, 0x9e, 0x7e, - 0xd9, 0x2f, 0xae, 0xfc, 0x36, 0xa8, 0x0b, 0x4a, 0x62, 0x9c, 0x7a, 0x68, 0xb5, 0x4a, 0xb1, 0x10, - 0x6a, 0xf4, 0x15, 0xa7, 0x56, 0xa8, 0x76, 0x21, 0xaa, 0x56, 0x4b, 0x37, 0x7e, 0xd3, 0x80, 0xf1, - 0x32, 0x70, 0x68, 0x82, 0xc6, 0xf0, 0xf6, 0xc9, 0xc2, 0x73, 0x17, 0xf6, 0x62, 0xe9, 0x7a, 0xf6, - 0x70, 0xb8, 0x9c, 0x2d, 0xa7, 0xf6, 0x62, 0x32, 0xff, 0xdc, 0x28, 0x35, 0x8d, 0xb3, 0xf3, 0xce, - 0x81, 0x1d, 0x04, 0x59, 0x94, 0x31, 0x94, 0x0f, 0x0d, 0x1e, 0x01, 0xf8, 0xa2, 0xdf, 0x1d, 0xdb, - 0xd3, 0xf1, 0xc8, 0xd0, 0x9a, 0xe0, 0xec, 0xbc, 0x53, 0x76, 0x31, 0x62, 0x78, 0x05, 0xbb, 0xe0, - 0x70, 0xc7, 0xb3, 0x1c, 0xcc, 0x26, 0x8b, 0xc5, 0x78, 0x64, 0xec, 0x35, 0x6b, 0x67, 0xe7, 0x9d, - 0x8a, 0x9b, 0xf9, 0x11, 0x95, 0xf2, 0x55, 0xe7, 0xf0, 0xce, 0xfc, 0x78, 0xe2, 0xcc, 0xc6, 0x23, - 0x63, 0xbf, 0x70, 0x0e, 0x79, 0x7c, 0x4a, 0xd3, 0xe8, 0x55, 0xe7, 0xf1, 0x64, 0x6e, 0x4f, 0x27, - 0x77, 0xc7, 0x23, 0x43, 0x2f, 0x9c, 0xc7, 0x34, 0x46, 0x8c, 0x7e, 0x83, 0x57, 0x4d, 0xfd, 0xdb, - 0xef, 0x5b, 0xa5, 0xc1, 0x9d, 0x1f, 0x2f, 0x5a, 0xda, 0xc3, 0x8b, 0x96, 0xf6, 0xcb, 0x45, 0x4b, - 0x7b, 0x70, 0xd9, 0x2a, 0x3d, 0xbc, 0x6c, 0x95, 0x7e, 0xba, 0x6c, 0x95, 0xee, 0xbe, 0xf7, 0x57, - 0xd8, 0xbf, 0x7e, 0xe9, 0x7f, 0x5a, 0x6e, 0x12, 0x2c, 0xfc, 0xb2, 0x7a, 0x53, 0x37, 0xff, 0x08, - 0x00, 0x00, 0xff, 0xff, 0xad, 0xde, 0x97, 0x7b, 0xcd, 0x05, 0x00, 0x00, +var fileDescriptor_b0ec43bdbba80584 = []byte{ + // 763 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x61, 0x8b, 0xe3, 0x44, + 0x18, 0xc7, 0x9b, 0xdd, 0x5c, 0xbd, 0xce, 0x6e, 0x97, 0x30, 0xb8, 0x52, 0xaa, 0xa4, 0x75, 0x51, + 0x28, 0x82, 0x89, 0xdb, 0x43, 0x14, 0x15, 0x8e, 0xb4, 0xdb, 0xf5, 0xca, 0xb5, 0x75, 0x49, 0x5a, + 0x94, 0x7b, 0x13, 0x26, 0xd3, 0xd9, 0xc9, 0x90, 0x49, 0x27, 0x64, 0x26, 0x77, 0xd6, 0x4f, 0x20, + 0xfb, 0xea, 0xbe, 0xc0, 0x82, 0xe0, 0x97, 0xf0, 0x23, 0x88, 0xaf, 0xee, 0xa5, 0xdc, 0x8b, 0x53, + 0x76, 0xdf, 0xc8, 0x81, 0xdf, 0x41, 0x32, 0xe9, 0x79, 0xf6, 0x4e, 0x0e, 0x11, 0x7d, 0xd5, 0xcc, + 0x7f, 0xfe, 0xcf, 0xf0, 0x3c, 0xbf, 0xe7, 0x4f, 0x81, 0x8d, 0x85, 0x4c, 0x85, 0x74, 0x23, 0x2e, + 0xdd, 0xfb, 0xc7, 0x2e, 0x8e, 0x09, 0x4e, 0x32, 0xc1, 0x56, 0xca, 0xc9, 0x72, 0xa1, 0x04, 0x6c, + 0x56, 0xf7, 0x4e, 0xc4, 0xa5, 0x73, 0xff, 0xb8, 0xdd, 0xa1, 0x42, 0x50, 0x4e, 0x5c, 0x7d, 0x19, + 0x15, 0xe7, 0xae, 0x62, 0x29, 0x91, 0x0a, 0xa5, 0x59, 0xe5, 0x6f, 0xbf, 0x4e, 0x05, 0x15, 0xfa, + 0xd3, 0x2d, 0xbf, 0x2a, 0xf5, 0xe8, 0x77, 0x03, 0x34, 0x7d, 0xf4, 0x60, 0xf8, 0xe7, 0xeb, 0xf0, + 0x4d, 0xd0, 0x20, 0x99, 0xc0, 0x71, 0xb8, 0x2a, 0xd2, 0x96, 0xd1, 0x35, 0x7a, 0xa6, 0x7f, 0x53, + 0x0b, 0xb3, 0x22, 0x85, 0x9f, 0x01, 0x8b, 0x23, 0xa9, 0x42, 0x2c, 0xd2, 0x94, 0xa9, 0x30, 0x46, + 0x32, 0x6e, 0xed, 0x74, 0x8d, 0xde, 0xfe, 0x00, 0x3e, 0x7e, 0xd2, 0x39, 0x98, 0x20, 0xa9, 0x86, + 0xfa, 0xea, 0x0e, 0x92, 0xb1, 0x7f, 0xc0, 0xb7, 0xce, 0xf0, 0x0d, 0x50, 0x8f, 0x98, 0x4a, 0x51, + 0xd6, 0xda, 0x2d, 0x6b, 0xfc, 0xcd, 0x09, 0x62, 0xd0, 0x8c, 0xb8, 0x0c, 0xd3, 0x82, 0x2b, 0x16, + 0x4a, 0x46, 0x5b, 0xa6, 0x7e, 0xf2, 0xf6, 0xe3, 0x27, 0x9d, 0x4f, 0x29, 0x53, 0x71, 0x11, 0x39, + 0x58, 0xa4, 0xee, 0x06, 0x48, 0xf5, 0xf3, 0xbe, 0x5c, 0x26, 0x2e, 0xce, 0xd7, 0x99, 0x12, 0x6e, + 0x42, 0xd6, 0x9a, 0xd3, 0x71, 0xff, 0xd6, 0xc7, 0xc7, 0x4e, 0xc0, 0xe8, 0x0a, 0xa9, 0x22, 0x27, + 0xfe, 0x5e, 0xc4, 0xe5, 0xb4, 0x7c, 0x34, 0x60, 0xf4, 0x13, 0xf3, 0xb7, 0xef, 0x3a, 0xc6, 0xd1, + 0x4f, 0x3b, 0xe0, 0x70, 0x6b, 0xde, 0x2f, 0x99, 0x8a, 0xa7, 0x44, 0x21, 0xf8, 0x01, 0x30, 0x71, + 0x92, 0x29, 0x3d, 0xf2, 0x5e, 0xff, 0x2d, 0x67, 0x0b, 0xaf, 0xb3, 0x55, 0xe3, 0x6b, 0x27, 0xfc, + 0x08, 0xd4, 0xa5, 0x42, 0xaa, 0x90, 0x1a, 0xc1, 0x41, 0xbf, 0xf3, 0x42, 0xcd, 0xf3, 0x82, 0x40, + 0xdb, 0xfc, 0x8d, 0x1d, 0x86, 0xa0, 0xec, 0x2c, 0x44, 0x94, 0xe6, 0x61, 0x96, 0x54, 0x30, 0xfe, + 0xed, 0xb4, 0x67, 0x45, 0xc4, 0x19, 0xbe, 0x4b, 0xd6, 0x7e, 0x23, 0xe2, 0xd2, 0xa3, 0x34, 0x3f, + 0x4b, 0xca, 0x1d, 0x66, 0xe2, 0x01, 0xc9, 0x43, 0x59, 0xa4, 0x1a, 0xa6, 0xe9, 0xdf, 0xd4, 0x42, + 0x50, 0xa4, 0x70, 0x00, 0x1a, 0x9c, 0x9d, 0x13, 0xbc, 0xc6, 0x9c, 0xb4, 0x6e, 0x74, 0x77, 0x7b, + 0x7b, 0xfd, 0x77, 0x5e, 0xd9, 0x39, 0x59, 0x64, 0x4b, 0xa4, 0x88, 0xff, 0xbc, 0x6c, 0x03, 0xf3, + 0x07, 0x03, 0x1c, 0xfe, 0xad, 0x15, 0x7e, 0x08, 0x6e, 0x94, 0xb3, 0x12, 0x4d, 0xf3, 0x1f, 0x90, + 0xa9, 0xdc, 0xf0, 0x6d, 0xb0, 0x1f, 0x71, 0x81, 0x93, 0x30, 0x26, 0x8c, 0xc6, 0x4a, 0x73, 0x35, + 0xcb, 0x35, 0x0a, 0x9c, 0xdc, 0xd1, 0x12, 0xbc, 0x0d, 0x40, 0x65, 0x29, 0xf3, 0xad, 0xd1, 0xed, + 0xf5, 0xdb, 0x4e, 0x15, 0x7e, 0xe7, 0x59, 0xf8, 0x9d, 0xf9, 0xb3, 0xf0, 0x0f, 0xcc, 0x87, 0xbf, + 0x74, 0x8c, 0x92, 0x8d, 0xc0, 0x49, 0xa9, 0x6e, 0x5a, 0x7f, 0x6a, 0x80, 0xfa, 0x80, 0xcb, 0x80, + 0xd1, 0xff, 0x33, 0xf0, 0x5f, 0x81, 0xd7, 0xca, 0x45, 0x97, 0x91, 0xde, 0xfd, 0x6f, 0x22, 0x5d, + 0x8f, 0xaa, 0xa6, 0xdf, 0x05, 0x07, 0x92, 0xd1, 0x15, 0xc9, 0x43, 0xb4, 0x5c, 0xe6, 0x44, 0x4a, + 0xbd, 0xe6, 0x86, 0xdf, 0xac, 0x54, 0xaf, 0x12, 0xf5, 0xb0, 0xb5, 0xf7, 0x9e, 0x1a, 0xc0, 0x7a, + 0x11, 0x39, 0x74, 0x40, 0x6b, 0x78, 0xf7, 0x6c, 0x1e, 0x06, 0x73, 0x6f, 0xbe, 0x08, 0x42, 0x6f, + 0x38, 0x5c, 0x4c, 0x17, 0x13, 0x6f, 0x3e, 0x9e, 0x7d, 0x6e, 0xd5, 0xda, 0xd6, 0xc5, 0x65, 0x77, + 0xdf, 0xc3, 0xb8, 0x48, 0x0b, 0x8e, 0x14, 0x5b, 0x51, 0x78, 0x04, 0xe0, 0x5f, 0xfd, 0xc1, 0xc8, + 0x9b, 0x8c, 0x4e, 0x2c, 0xa3, 0x0d, 0x2e, 0x2e, 0xbb, 0xf5, 0x80, 0x20, 0x4e, 0x96, 0xb0, 0x07, + 0x0e, 0xb7, 0x3c, 0x8b, 0xc1, 0x74, 0x3c, 0x9f, 0x8f, 0x4e, 0xac, 0x9d, 0x76, 0xf3, 0xe2, 0xb2, + 0xdb, 0x08, 0x8a, 0x28, 0x65, 0x4a, 0xbd, 0xec, 0x1c, 0x7e, 0x31, 0x3b, 0x1d, 0xfb, 0xd3, 0xd1, + 0x89, 0xb5, 0x5b, 0x39, 0x87, 0x62, 0x75, 0xce, 0xf2, 0xf4, 0x65, 0xe7, 0xe9, 0x78, 0xe6, 0x4d, + 0xc6, 0xf7, 0x46, 0x27, 0x96, 0x59, 0x39, 0x4f, 0xd9, 0x0a, 0x71, 0xf6, 0x0d, 0x59, 0xb6, 0xcd, + 0x6f, 0xbf, 0xb7, 0x6b, 0x83, 0xc1, 0x8f, 0x57, 0xb6, 0xf1, 0xe8, 0xca, 0x36, 0x7e, 0xbd, 0xb2, + 0x8d, 0x87, 0xd7, 0x76, 0xed, 0xd1, 0xb5, 0x5d, 0xfb, 0xf9, 0xda, 0xae, 0xdd, 0xeb, 0xbd, 0x12, + 0xfc, 0xd7, 0xfa, 0x9f, 0x56, 0xad, 0x33, 0x22, 0xa3, 0xba, 0x0e, 0xd2, 0xad, 0x3f, 0x02, 0x00, + 0x00, 0xff, 0xff, 0xa0, 0x57, 0x06, 0x7c, 0x84, 0x05, 0x00, 0x00, } func (this *RawCheckpoint) Equal(that interface{}) bool { @@ -1008,7 +1006,7 @@ func (m *RawCheckpoint) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_babylonchain_babylon_crypto_bls12381.Signature + var v github_com_cosmos_cosmos_sdk_crypto_keys_bls12381.Signature m.BlsMultiSig = &v if err := m.BlsMultiSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1148,7 +1146,7 @@ func (m *RawCheckpointWithMeta) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_babylonchain_babylon_crypto_bls12381.PublicKey + var v github_com_cosmos_cosmos_sdk_crypto_keys_bls12381.PublicKey m.BlsAggrPk = &v if err := m.BlsAggrPk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1464,7 +1462,7 @@ func (m *BlsSig) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_babylonchain_babylon_crypto_bls12381.Signature + var v github_com_cosmos_cosmos_sdk_crypto_keys_bls12381.Signature m.BlsSig = &v if err := m.BlsSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/x/bls/types/events.pb.go b/x/bls/types/events.pb.go index 10e283497f3..b491cb8702c 100644 --- a/x/bls/types/events.pb.go +++ b/x/bls/types/events.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/checkpointing/v1/events.proto +// source: cosmos/bls/v1/events.proto package types @@ -32,7 +32,7 @@ func (m *EventCheckpointAccumulating) Reset() { *m = EventCheckpointAccu func (m *EventCheckpointAccumulating) String() string { return proto.CompactTextString(m) } func (*EventCheckpointAccumulating) ProtoMessage() {} func (*EventCheckpointAccumulating) Descriptor() ([]byte, []int) { - return fileDescriptor_950b7bd81c59f78a, []int{0} + return fileDescriptor_f3d8a834b8972a15, []int{0} } func (m *EventCheckpointAccumulating) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,7 +78,7 @@ func (m *EventCheckpointSealed) Reset() { *m = EventCheckpointSealed{} } func (m *EventCheckpointSealed) String() string { return proto.CompactTextString(m) } func (*EventCheckpointSealed) ProtoMessage() {} func (*EventCheckpointSealed) Descriptor() ([]byte, []int) { - return fileDescriptor_950b7bd81c59f78a, []int{1} + return fileDescriptor_f3d8a834b8972a15, []int{1} } func (m *EventCheckpointSealed) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -124,7 +124,7 @@ func (m *EventCheckpointSubmitted) Reset() { *m = EventCheckpointSubmitt func (m *EventCheckpointSubmitted) String() string { return proto.CompactTextString(m) } func (*EventCheckpointSubmitted) ProtoMessage() {} func (*EventCheckpointSubmitted) Descriptor() ([]byte, []int) { - return fileDescriptor_950b7bd81c59f78a, []int{2} + return fileDescriptor_f3d8a834b8972a15, []int{2} } func (m *EventCheckpointSubmitted) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -170,7 +170,7 @@ func (m *EventCheckpointConfirmed) Reset() { *m = EventCheckpointConfirm func (m *EventCheckpointConfirmed) String() string { return proto.CompactTextString(m) } func (*EventCheckpointConfirmed) ProtoMessage() {} func (*EventCheckpointConfirmed) Descriptor() ([]byte, []int) { - return fileDescriptor_950b7bd81c59f78a, []int{3} + return fileDescriptor_f3d8a834b8972a15, []int{3} } func (m *EventCheckpointConfirmed) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -216,7 +216,7 @@ func (m *EventCheckpointFinalized) Reset() { *m = EventCheckpointFinaliz func (m *EventCheckpointFinalized) String() string { return proto.CompactTextString(m) } func (*EventCheckpointFinalized) ProtoMessage() {} func (*EventCheckpointFinalized) Descriptor() ([]byte, []int) { - return fileDescriptor_950b7bd81c59f78a, []int{4} + return fileDescriptor_f3d8a834b8972a15, []int{4} } func (m *EventCheckpointFinalized) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -262,7 +262,7 @@ func (m *EventCheckpointForgotten) Reset() { *m = EventCheckpointForgott func (m *EventCheckpointForgotten) String() string { return proto.CompactTextString(m) } func (*EventCheckpointForgotten) ProtoMessage() {} func (*EventCheckpointForgotten) Descriptor() ([]byte, []int) { - return fileDescriptor_950b7bd81c59f78a, []int{5} + return fileDescriptor_f3d8a834b8972a15, []int{5} } func (m *EventCheckpointForgotten) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -309,7 +309,7 @@ func (m *EventConflictingCheckpoint) Reset() { *m = EventConflictingChec func (m *EventConflictingCheckpoint) String() string { return proto.CompactTextString(m) } func (*EventConflictingCheckpoint) ProtoMessage() {} func (*EventConflictingCheckpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_950b7bd81c59f78a, []int{6} + return fileDescriptor_f3d8a834b8972a15, []int{6} } func (m *EventConflictingCheckpoint) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -353,41 +353,39 @@ func (m *EventConflictingCheckpoint) GetLocalCheckpoint() *RawCheckpointWithMeta } func init() { - proto.RegisterType((*EventCheckpointAccumulating)(nil), "babylon.checkpointing.v1.EventCheckpointAccumulating") - proto.RegisterType((*EventCheckpointSealed)(nil), "babylon.checkpointing.v1.EventCheckpointSealed") - proto.RegisterType((*EventCheckpointSubmitted)(nil), "babylon.checkpointing.v1.EventCheckpointSubmitted") - proto.RegisterType((*EventCheckpointConfirmed)(nil), "babylon.checkpointing.v1.EventCheckpointConfirmed") - proto.RegisterType((*EventCheckpointFinalized)(nil), "babylon.checkpointing.v1.EventCheckpointFinalized") - proto.RegisterType((*EventCheckpointForgotten)(nil), "babylon.checkpointing.v1.EventCheckpointForgotten") - proto.RegisterType((*EventConflictingCheckpoint)(nil), "babylon.checkpointing.v1.EventConflictingCheckpoint") -} - -func init() { - proto.RegisterFile("babylon/checkpointing/v1/events.proto", fileDescriptor_950b7bd81c59f78a) -} - -var fileDescriptor_950b7bd81c59f78a = []byte{ - // 314 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4d, 0x4a, 0x4c, 0xaa, - 0xcc, 0xc9, 0xcf, 0xd3, 0x4f, 0xce, 0x48, 0x4d, 0xce, 0x2e, 0xc8, 0xcf, 0xcc, 0x2b, 0xc9, 0xcc, - 0x4b, 0xd7, 0x2f, 0x33, 0xd4, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, - 0xc9, 0x17, 0x92, 0x80, 0x2a, 0xd3, 0x43, 0x51, 0xa6, 0x57, 0x66, 0x28, 0xa5, 0x89, 0xd3, 0x00, - 0x84, 0x00, 0xc4, 0x10, 0xa5, 0x3c, 0x2e, 0x69, 0x57, 0x90, 0xa1, 0xce, 0x70, 0x09, 0xc7, 0xe4, - 0xe4, 0xd2, 0xdc, 0xd2, 0x9c, 0x44, 0x90, 0x16, 0x21, 0x7f, 0x2e, 0x2e, 0x84, 0x16, 0x09, 0x46, - 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x7d, 0x3d, 0x5c, 0x16, 0xeb, 0x05, 0x25, 0x96, 0x23, 0x0c, 0x0a, - 0xcf, 0x2c, 0xc9, 0xf0, 0x4d, 0x2d, 0x49, 0x0c, 0x42, 0x32, 0x42, 0x29, 0x83, 0x4b, 0x14, 0xcd, - 0xbe, 0xe0, 0xd4, 0xc4, 0x9c, 0xd4, 0x14, 0xea, 0xdb, 0x94, 0xcd, 0x25, 0x81, 0x6e, 0x53, 0x69, - 0x52, 0x6e, 0x66, 0x49, 0x09, 0x7d, 0x2c, 0x73, 0xce, 0xcf, 0x4b, 0xcb, 0x2c, 0xca, 0xa5, 0x8f, - 0x65, 0x6e, 0x99, 0x79, 0x89, 0x39, 0x99, 0x55, 0x74, 0xb2, 0x2c, 0xbf, 0x28, 0x3d, 0xbf, 0xa4, - 0x24, 0x35, 0x8f, 0xfa, 0x96, 0xdd, 0x60, 0xe4, 0x92, 0x82, 0xd8, 0x96, 0x9f, 0x97, 0x96, 0x93, - 0x99, 0x0c, 0xd2, 0x89, 0xd0, 0x22, 0x14, 0xc7, 0x25, 0x96, 0x8c, 0x90, 0x88, 0xc7, 0xb0, 0x5b, - 0x9d, 0x48, 0xbb, 0x83, 0x44, 0x93, 0xb1, 0x9a, 0x1f, 0xc5, 0x25, 0x90, 0x93, 0x9f, 0x9c, 0x98, - 0x83, 0x6c, 0x32, 0x13, 0x79, 0xbe, 0xe2, 0x07, 0x1b, 0x84, 0x90, 0x70, 0xf2, 0x3f, 0xf1, 0x48, - 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, - 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xd3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, - 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x2d, 0xc9, 0x19, 0x89, 0x99, 0x79, 0x30, 0x8e, 0x7e, 0x05, 0x5a, - 0x3e, 0x2e, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x67, 0x60, 0x63, 0x40, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x47, 0xbc, 0x3a, 0x24, 0x2e, 0x04, 0x00, 0x00, + proto.RegisterType((*EventCheckpointAccumulating)(nil), "cosmos.bls.v1.EventCheckpointAccumulating") + proto.RegisterType((*EventCheckpointSealed)(nil), "cosmos.bls.v1.EventCheckpointSealed") + proto.RegisterType((*EventCheckpointSubmitted)(nil), "cosmos.bls.v1.EventCheckpointSubmitted") + proto.RegisterType((*EventCheckpointConfirmed)(nil), "cosmos.bls.v1.EventCheckpointConfirmed") + proto.RegisterType((*EventCheckpointFinalized)(nil), "cosmos.bls.v1.EventCheckpointFinalized") + proto.RegisterType((*EventCheckpointForgotten)(nil), "cosmos.bls.v1.EventCheckpointForgotten") + proto.RegisterType((*EventConflictingCheckpoint)(nil), "cosmos.bls.v1.EventConflictingCheckpoint") +} + +func init() { proto.RegisterFile("cosmos/bls/v1/events.proto", fileDescriptor_f3d8a834b8972a15) } + +var fileDescriptor_f3d8a834b8972a15 = []byte{ + // 312 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0x2f, 0xce, + 0xcd, 0x2f, 0xd6, 0x4f, 0xca, 0x29, 0xd6, 0x2f, 0x33, 0xd4, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, + 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x85, 0xc8, 0xe9, 0x25, 0xe5, 0x14, 0xeb, 0x95, + 0x19, 0x4a, 0xc9, 0xa1, 0x2a, 0x4d, 0xce, 0x48, 0x4d, 0xce, 0x2e, 0xc8, 0xcf, 0xcc, 0x2b, 0x81, + 0x28, 0x57, 0x4a, 0xe6, 0x92, 0x76, 0x05, 0x69, 0x77, 0x86, 0x4b, 0x38, 0x26, 0x27, 0x97, 0xe6, + 0x96, 0xe6, 0x24, 0x96, 0x64, 0xe6, 0xa5, 0x0b, 0xb9, 0x70, 0x71, 0x21, 0xb4, 0x48, 0x30, 0x2a, + 0x30, 0x6a, 0x70, 0x1b, 0xa9, 0xe8, 0xa1, 0x58, 0xa1, 0x17, 0x94, 0x58, 0x8e, 0xd0, 0x1d, 0x9e, + 0x59, 0x92, 0xe1, 0x9b, 0x5a, 0x92, 0x18, 0x84, 0xa4, 0x4f, 0x29, 0x96, 0x4b, 0x14, 0xcd, 0x92, + 0xe0, 0xd4, 0xc4, 0x9c, 0xd4, 0x14, 0x2a, 0x19, 0x9f, 0xc0, 0x25, 0x81, 0x6e, 0x7c, 0x69, 0x52, + 0x6e, 0x66, 0x49, 0x09, 0x0d, 0x6d, 0x70, 0xce, 0xcf, 0x4b, 0xcb, 0x2c, 0xca, 0xa5, 0xa1, 0x0d, + 0x6e, 0x99, 0x79, 0x89, 0x39, 0x99, 0x55, 0xb4, 0xb4, 0x21, 0xbf, 0x28, 0x3d, 0xbf, 0xa4, 0x24, + 0x35, 0x8f, 0x4a, 0x36, 0x1c, 0x62, 0xe4, 0x92, 0x82, 0x58, 0x91, 0x9f, 0x97, 0x96, 0x93, 0x99, + 0x0c, 0x4a, 0x41, 0x08, 0x2d, 0x42, 0xc1, 0x5c, 0x62, 0xc9, 0x08, 0x89, 0x78, 0x0c, 0x0b, 0x65, + 0xf0, 0x59, 0x18, 0x24, 0x9a, 0x8c, 0xd5, 0x50, 0x7f, 0x2e, 0x81, 0x9c, 0xfc, 0xe4, 0xc4, 0x1c, + 0x64, 0xe3, 0x98, 0x48, 0x70, 0x3f, 0x3f, 0x58, 0x37, 0x42, 0xc2, 0xc9, 0xe9, 0xc4, 0x23, 0x39, + 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, + 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x34, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, + 0xf3, 0x73, 0xf5, 0xa1, 0xb9, 0x0a, 0x42, 0xe9, 0x16, 0xa7, 0x64, 0xeb, 0x57, 0x80, 0xb3, 0x58, + 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0x38, 0x6f, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, + 0xcb, 0xd4, 0xb7, 0x4a, 0xa8, 0x03, 0x00, 0x00, } func (m *EventCheckpointAccumulating) Marshal() (dAtA []byte, err error) { diff --git a/x/bls/types/genesis.pb.go b/x/bls/types/genesis.pb.go index 380afef3d62..bc7184b8d85 100644 --- a/x/bls/types/genesis.pb.go +++ b/x/bls/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/checkpointing/v1/genesis.proto +// source: cosmos/bls/v1/genesis.proto package types @@ -23,7 +23,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// GenesisState defines the checkpointing module's genesis state. +// GenesisState defines the bls module's genesis state. type GenesisState struct { // genesis_keys defines the public keys for the genesis validators GenesisKeys []*GenesisKey `protobuf:"bytes,1,rep,name=genesis_keys,json=genesisKeys,proto3" json:"genesis_keys,omitempty"` @@ -33,7 +33,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_bf2c524ebc9800de, []int{0} + return fileDescriptor_0d53f971b2cfc447, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -83,7 +83,7 @@ func (m *GenesisKey) Reset() { *m = GenesisKey{} } func (m *GenesisKey) String() string { return proto.CompactTextString(m) } func (*GenesisKey) ProtoMessage() {} func (*GenesisKey) Descriptor() ([]byte, []int) { - return fileDescriptor_bf2c524ebc9800de, []int{1} + return fileDescriptor_0d53f971b2cfc447, []int{1} } func (m *GenesisKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -134,37 +134,34 @@ func (m *GenesisKey) GetValPubkey() *ed25519.PubKey { } func init() { - proto.RegisterType((*GenesisState)(nil), "babylon.checkpointing.v1.GenesisState") - proto.RegisterType((*GenesisKey)(nil), "babylon.checkpointing.v1.GenesisKey") + proto.RegisterType((*GenesisState)(nil), "cosmos.bls.v1.GenesisState") + proto.RegisterType((*GenesisKey)(nil), "cosmos.bls.v1.GenesisKey") } -func init() { - proto.RegisterFile("babylon/checkpointing/v1/genesis.proto", fileDescriptor_bf2c524ebc9800de) -} +func init() { proto.RegisterFile("cosmos/bls/v1/genesis.proto", fileDescriptor_0d53f971b2cfc447) } -var fileDescriptor_bf2c524ebc9800de = []byte{ - // 325 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xcf, 0x6a, 0x2a, 0x31, - 0x18, 0xc5, 0xcd, 0x15, 0xbc, 0x18, 0x5d, 0xb4, 0xb3, 0x12, 0xa1, 0x61, 0x90, 0x52, 0x84, 0x42, - 0x82, 0x16, 0x17, 0x42, 0x37, 0x75, 0xe3, 0xa2, 0x8b, 0x8a, 0x5d, 0x14, 0xba, 0x91, 0x24, 0x13, - 0xc6, 0x60, 0x9c, 0x0c, 0x93, 0x38, 0x34, 0x6f, 0xd1, 0x67, 0xe9, 0x53, 0x74, 0xe9, 0xb2, 0xcb, - 0xa2, 0x2f, 0x52, 0x66, 0x26, 0xb5, 0xb4, 0x30, 0xab, 0xfc, 0xf9, 0xce, 0xf9, 0xce, 0xe1, 0x07, - 0xaf, 0x18, 0x65, 0x4e, 0xe9, 0x84, 0xf0, 0xb5, 0xe0, 0x9b, 0x54, 0xcb, 0xc4, 0xca, 0x24, 0x26, - 0xf9, 0x88, 0xc4, 0x22, 0x11, 0x46, 0x1a, 0x9c, 0x66, 0xda, 0xea, 0xa0, 0xe7, 0x75, 0xf8, 0x97, - 0x0e, 0xe7, 0xa3, 0x7e, 0xc8, 0xb5, 0xd9, 0x6a, 0x43, 0x78, 0xe6, 0x52, 0xab, 0x89, 0x88, 0xc6, - 0x93, 0xc9, 0x68, 0x4a, 0x36, 0xc2, 0x79, 0x6f, 0xbf, 0x3e, 0x83, 0x29, 0xb3, 0xda, 0x08, 0x57, - 0xe9, 0x06, 0x4f, 0xb0, 0x3b, 0xaf, 0x42, 0x1f, 0x2d, 0xb5, 0x22, 0x98, 0xc3, 0xae, 0x2f, 0x51, - 0x88, 0x4c, 0x0f, 0x84, 0xcd, 0x61, 0x67, 0x7c, 0x89, 0xeb, 0xaa, 0x60, 0xef, 0xbe, 0x17, 0x6e, - 0xd9, 0x89, 0x4f, 0x77, 0x33, 0x78, 0x03, 0x10, 0xfe, 0xcc, 0x82, 0x6b, 0x78, 0x9e, 0x53, 0x25, - 0x23, 0x6a, 0x75, 0xb6, 0xa2, 0x51, 0x94, 0x09, 0x53, 0x2c, 0x07, 0xc3, 0xf6, 0xf2, 0xec, 0x34, - 0xb8, 0xab, 0xfe, 0x83, 0x29, 0xfc, 0xef, 0x5b, 0xf6, 0xfe, 0x85, 0x60, 0xd8, 0x19, 0x87, 0xf5, - 0xf9, 0x33, 0x55, 0x66, 0xb7, 0x58, 0x79, 0x06, 0xb7, 0x10, 0xe6, 0x54, 0xad, 0xd2, 0x1d, 0x2b, - 0xdc, 0xcd, 0xd2, 0x7d, 0x81, 0x2b, 0x5c, 0xb8, 0xc2, 0x85, 0x3d, 0x2e, 0xbc, 0xd8, 0xb1, 0xc2, - 0xda, 0xce, 0xa9, 0x5a, 0x94, 0xfa, 0xd9, 0xc3, 0xfb, 0x01, 0x81, 0xfd, 0x01, 0x81, 0xcf, 0x03, - 0x02, 0xaf, 0x47, 0xd4, 0xd8, 0x1f, 0x51, 0xe3, 0xe3, 0x88, 0x1a, 0xcf, 0x93, 0x58, 0xda, 0xf5, - 0x8e, 0x61, 0xae, 0xb7, 0xc4, 0x77, 0xe1, 0x6b, 0x2a, 0x93, 0xef, 0x07, 0x79, 0xf9, 0x43, 0xda, - 0xba, 0x54, 0x18, 0xd6, 0x2a, 0x29, 0xdf, 0x7c, 0x05, 0x00, 0x00, 0xff, 0xff, 0x1c, 0xab, 0xd1, - 0x3a, 0xf3, 0x01, 0x00, 0x00, +var fileDescriptor_0d53f971b2cfc447 = []byte{ + // 307 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x41, 0x4b, 0xc3, 0x30, + 0x1c, 0xc5, 0x17, 0x07, 0x93, 0x65, 0x13, 0xb4, 0x20, 0xcc, 0x89, 0x61, 0xec, 0x54, 0x10, 0x13, + 0x36, 0xd9, 0x41, 0xd8, 0xc5, 0x5d, 0x3c, 0xe8, 0x61, 0xcc, 0x9b, 0x97, 0x91, 0xac, 0x61, 0x96, + 0x66, 0xa6, 0xf4, 0x9f, 0x16, 0xfb, 0x2d, 0xfc, 0x16, 0x7e, 0x15, 0x8f, 0x3b, 0x7a, 0x94, 0xf6, + 0x8b, 0x48, 0xd3, 0x6c, 0xe2, 0x4e, 0xff, 0xd2, 0xf7, 0x7e, 0xef, 0x85, 0x87, 0x2f, 0x57, 0x1a, + 0x36, 0x1a, 0x98, 0x50, 0xc0, 0xb2, 0x11, 0x5b, 0xcb, 0x37, 0x09, 0x21, 0xd0, 0x38, 0xd1, 0x46, + 0x7b, 0x27, 0xb5, 0x48, 0x85, 0x02, 0x9a, 0x8d, 0xfa, 0x03, 0xe7, 0x5d, 0x25, 0x79, 0x6c, 0x34, + 0x93, 0xc1, 0x78, 0x32, 0x19, 0xdd, 0xb1, 0x48, 0xe6, 0x0e, 0xe8, 0x1f, 0xa4, 0x09, 0x05, 0xcb, + 0x48, 0xe6, 0xb5, 0x38, 0x7c, 0xc2, 0xdd, 0x87, 0x3a, 0xfe, 0xd9, 0x70, 0x23, 0xbd, 0x29, 0xee, + 0xba, 0xba, 0xca, 0x04, 0x3d, 0x34, 0x68, 0xfa, 0x9d, 0xf1, 0x05, 0xfd, 0x57, 0x4a, 0x1d, 0xf2, + 0x28, 0xf3, 0x45, 0x67, 0xbd, 0xff, 0x86, 0xe1, 0x27, 0xc2, 0xf8, 0x4f, 0xf3, 0xae, 0xf1, 0x59, + 0xc6, 0x55, 0x18, 0x70, 0xa3, 0x93, 0x25, 0x0f, 0x82, 0x44, 0x42, 0x95, 0x88, 0xfc, 0xf6, 0xe2, + 0x74, 0x2f, 0xdc, 0xd7, 0xff, 0x3d, 0x8a, 0x8f, 0xdd, 0xd3, 0x7a, 0x47, 0x03, 0xe4, 0x77, 0xc6, + 0xe7, 0x07, 0xa5, 0x33, 0x65, 0x0b, 0x5b, 0xc2, 0x5e, 0x6f, 0x8a, 0x71, 0xc6, 0xd5, 0x32, 0x4e, + 0x45, 0x85, 0x34, 0x2d, 0x72, 0xb5, 0x43, 0xea, 0x35, 0xa8, 0x5b, 0x83, 0xce, 0x53, 0x51, 0xa1, + 0xed, 0x8c, 0xab, 0xb9, 0xf5, 0xcf, 0x66, 0x5f, 0x05, 0x41, 0xdb, 0x82, 0xa0, 0x9f, 0x82, 0xa0, + 0x8f, 0x92, 0x34, 0xb6, 0x25, 0x69, 0x7c, 0x97, 0xa4, 0xf1, 0xe2, 0xaf, 0x43, 0xf3, 0x9a, 0x0a, + 0xba, 0xd2, 0x1b, 0xb6, 0xdb, 0xd6, 0x9e, 0x1b, 0x08, 0x22, 0xf6, 0x6e, 0x67, 0x34, 0x79, 0x2c, + 0x41, 0xb4, 0xec, 0x84, 0xb7, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x5c, 0x6e, 0xf4, 0xaf, + 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/bls/types/query.pb.go b/x/bls/types/query.pb.go index 96dcf8fc1fd..55cfdc0a675 100644 --- a/x/bls/types/query.pb.go +++ b/x/bls/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/checkpointing/v1/query.proto +// source: cosmos/bls/v1/query.proto package types @@ -33,7 +33,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Query/RawCheckpoints RPC method. type QueryRawCheckpointListRequest struct { // status defines the status of the raw checkpoints of the query - Status CheckpointStatus `protobuf:"varint,1,opt,name=status,proto3,enum=babylon.checkpointing.v1.CheckpointStatus" json:"status,omitempty"` + Status CheckpointStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cosmos.bls.v1.CheckpointStatus" json:"status,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -42,7 +42,7 @@ func (m *QueryRawCheckpointListRequest) Reset() { *m = QueryRawCheckpoin func (m *QueryRawCheckpointListRequest) String() string { return proto.CompactTextString(m) } func (*QueryRawCheckpointListRequest) ProtoMessage() {} func (*QueryRawCheckpointListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{0} + return fileDescriptor_3a689ef328eacdb9, []int{0} } func (m *QueryRawCheckpointListRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -98,7 +98,7 @@ func (m *QueryRawCheckpointListResponse) Reset() { *m = QueryRawCheckpoi func (m *QueryRawCheckpointListResponse) String() string { return proto.CompactTextString(m) } func (*QueryRawCheckpointListResponse) ProtoMessage() {} func (*QueryRawCheckpointListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{1} + return fileDescriptor_3a689ef328eacdb9, []int{1} } func (m *QueryRawCheckpointListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -152,7 +152,7 @@ func (m *QueryRawCheckpointRequest) Reset() { *m = QueryRawCheckpointReq func (m *QueryRawCheckpointRequest) String() string { return proto.CompactTextString(m) } func (*QueryRawCheckpointRequest) ProtoMessage() {} func (*QueryRawCheckpointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{2} + return fileDescriptor_3a689ef328eacdb9, []int{2} } func (m *QueryRawCheckpointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -198,7 +198,7 @@ func (m *QueryRawCheckpointResponse) Reset() { *m = QueryRawCheckpointRe func (m *QueryRawCheckpointResponse) String() string { return proto.CompactTextString(m) } func (*QueryRawCheckpointResponse) ProtoMessage() {} func (*QueryRawCheckpointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{3} + return fileDescriptor_3a689ef328eacdb9, []int{3} } func (m *QueryRawCheckpointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -245,7 +245,7 @@ func (m *QueryRawCheckpointsRequest) Reset() { *m = QueryRawCheckpointsR func (m *QueryRawCheckpointsRequest) String() string { return proto.CompactTextString(m) } func (*QueryRawCheckpointsRequest) ProtoMessage() {} func (*QueryRawCheckpointsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{4} + return fileDescriptor_3a689ef328eacdb9, []int{4} } func (m *QueryRawCheckpointsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -294,7 +294,7 @@ func (m *QueryRawCheckpointsResponse) Reset() { *m = QueryRawCheckpoints func (m *QueryRawCheckpointsResponse) String() string { return proto.CompactTextString(m) } func (*QueryRawCheckpointsResponse) ProtoMessage() {} func (*QueryRawCheckpointsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{5} + return fileDescriptor_3a689ef328eacdb9, []int{5} } func (m *QueryRawCheckpointsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -350,7 +350,7 @@ func (m *QueryBlsPublicKeyListRequest) Reset() { *m = QueryBlsPublicKeyL func (m *QueryBlsPublicKeyListRequest) String() string { return proto.CompactTextString(m) } func (*QueryBlsPublicKeyListRequest) ProtoMessage() {} func (*QueryBlsPublicKeyListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{6} + return fileDescriptor_3a689ef328eacdb9, []int{6} } func (m *QueryBlsPublicKeyListRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -405,7 +405,7 @@ func (m *QueryBlsPublicKeyListResponse) Reset() { *m = QueryBlsPublicKey func (m *QueryBlsPublicKeyListResponse) String() string { return proto.CompactTextString(m) } func (*QueryBlsPublicKeyListResponse) ProtoMessage() {} func (*QueryBlsPublicKeyListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{7} + return fileDescriptor_3a689ef328eacdb9, []int{7} } func (m *QueryBlsPublicKeyListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -458,7 +458,7 @@ func (m *QueryEpochStatusRequest) Reset() { *m = QueryEpochStatusRequest func (m *QueryEpochStatusRequest) String() string { return proto.CompactTextString(m) } func (*QueryEpochStatusRequest) ProtoMessage() {} func (*QueryEpochStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{8} + return fileDescriptor_3a689ef328eacdb9, []int{8} } func (m *QueryEpochStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -497,14 +497,14 @@ func (m *QueryEpochStatusRequest) GetEpochNum() uint64 { // QueryEpochStatusResponse is the response type for the Query/EpochStatus // RPC method. type QueryEpochStatusResponse struct { - Status CheckpointStatus `protobuf:"varint,1,opt,name=status,proto3,enum=babylon.checkpointing.v1.CheckpointStatus" json:"status,omitempty"` + Status CheckpointStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cosmos.bls.v1.CheckpointStatus" json:"status,omitempty"` } func (m *QueryEpochStatusResponse) Reset() { *m = QueryEpochStatusResponse{} } func (m *QueryEpochStatusResponse) String() string { return proto.CompactTextString(m) } func (*QueryEpochStatusResponse) ProtoMessage() {} func (*QueryEpochStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{9} + return fileDescriptor_3a689ef328eacdb9, []int{9} } func (m *QueryEpochStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -552,7 +552,7 @@ func (m *QueryRecentEpochStatusCountRequest) Reset() { *m = QueryRecentE func (m *QueryRecentEpochStatusCountRequest) String() string { return proto.CompactTextString(m) } func (*QueryRecentEpochStatusCountRequest) ProtoMessage() {} func (*QueryRecentEpochStatusCountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{10} + return fileDescriptor_3a689ef328eacdb9, []int{10} } func (m *QueryRecentEpochStatusCountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -600,7 +600,7 @@ func (m *QueryRecentEpochStatusCountResponse) Reset() { *m = QueryRecent func (m *QueryRecentEpochStatusCountResponse) String() string { return proto.CompactTextString(m) } func (*QueryRecentEpochStatusCountResponse) ProtoMessage() {} func (*QueryRecentEpochStatusCountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{11} + return fileDescriptor_3a689ef328eacdb9, []int{11} } func (m *QueryRecentEpochStatusCountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -653,14 +653,14 @@ func (m *QueryRecentEpochStatusCountResponse) GetStatusCount() map[string]uint64 // QueryLastCheckpointWithStatusRequest is the request type for the // Query/LastCheckpointWithStatus RPC method. type QueryLastCheckpointWithStatusRequest struct { - Status CheckpointStatus `protobuf:"varint,1,opt,name=status,proto3,enum=babylon.checkpointing.v1.CheckpointStatus" json:"status,omitempty"` + Status CheckpointStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cosmos.bls.v1.CheckpointStatus" json:"status,omitempty"` } func (m *QueryLastCheckpointWithStatusRequest) Reset() { *m = QueryLastCheckpointWithStatusRequest{} } func (m *QueryLastCheckpointWithStatusRequest) String() string { return proto.CompactTextString(m) } func (*QueryLastCheckpointWithStatusRequest) ProtoMessage() {} func (*QueryLastCheckpointWithStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{12} + return fileDescriptor_3a689ef328eacdb9, []int{12} } func (m *QueryLastCheckpointWithStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -706,7 +706,7 @@ func (m *QueryLastCheckpointWithStatusResponse) Reset() { *m = QueryLast func (m *QueryLastCheckpointWithStatusResponse) String() string { return proto.CompactTextString(m) } func (*QueryLastCheckpointWithStatusResponse) ProtoMessage() {} func (*QueryLastCheckpointWithStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_113f1ca5c3c2ca44, []int{13} + return fileDescriptor_3a689ef328eacdb9, []int{13} } func (m *QueryLastCheckpointWithStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -743,88 +743,85 @@ func (m *QueryLastCheckpointWithStatusResponse) GetRawCheckpoint() *RawCheckpoin } func init() { - proto.RegisterType((*QueryRawCheckpointListRequest)(nil), "babylon.checkpointing.v1.QueryRawCheckpointListRequest") - proto.RegisterType((*QueryRawCheckpointListResponse)(nil), "babylon.checkpointing.v1.QueryRawCheckpointListResponse") - proto.RegisterType((*QueryRawCheckpointRequest)(nil), "babylon.checkpointing.v1.QueryRawCheckpointRequest") - proto.RegisterType((*QueryRawCheckpointResponse)(nil), "babylon.checkpointing.v1.QueryRawCheckpointResponse") - proto.RegisterType((*QueryRawCheckpointsRequest)(nil), "babylon.checkpointing.v1.QueryRawCheckpointsRequest") - proto.RegisterType((*QueryRawCheckpointsResponse)(nil), "babylon.checkpointing.v1.QueryRawCheckpointsResponse") - proto.RegisterType((*QueryBlsPublicKeyListRequest)(nil), "babylon.checkpointing.v1.QueryBlsPublicKeyListRequest") - proto.RegisterType((*QueryBlsPublicKeyListResponse)(nil), "babylon.checkpointing.v1.QueryBlsPublicKeyListResponse") - proto.RegisterType((*QueryEpochStatusRequest)(nil), "babylon.checkpointing.v1.QueryEpochStatusRequest") - proto.RegisterType((*QueryEpochStatusResponse)(nil), "babylon.checkpointing.v1.QueryEpochStatusResponse") - proto.RegisterType((*QueryRecentEpochStatusCountRequest)(nil), "babylon.checkpointing.v1.QueryRecentEpochStatusCountRequest") - proto.RegisterType((*QueryRecentEpochStatusCountResponse)(nil), "babylon.checkpointing.v1.QueryRecentEpochStatusCountResponse") - proto.RegisterMapType((map[string]uint64)(nil), "babylon.checkpointing.v1.QueryRecentEpochStatusCountResponse.StatusCountEntry") - proto.RegisterType((*QueryLastCheckpointWithStatusRequest)(nil), "babylon.checkpointing.v1.QueryLastCheckpointWithStatusRequest") - proto.RegisterType((*QueryLastCheckpointWithStatusResponse)(nil), "babylon.checkpointing.v1.QueryLastCheckpointWithStatusResponse") -} - -func init() { - proto.RegisterFile("babylon/checkpointing/v1/query.proto", fileDescriptor_113f1ca5c3c2ca44) -} - -var fileDescriptor_113f1ca5c3c2ca44 = []byte{ - // 938 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x97, 0xd1, 0x6f, 0xdb, 0x44, - 0x1c, 0xc7, 0x7b, 0x29, 0x9b, 0xe8, 0x2f, 0xac, 0x94, 0xd3, 0xc4, 0x82, 0x3b, 0xc2, 0x64, 0xc6, - 0xd6, 0x0d, 0xcd, 0x56, 0xd2, 0xa6, 0x8d, 0xca, 0x56, 0xa4, 0x4c, 0x85, 0x87, 0x8d, 0x32, 0x8c, - 0x34, 0x10, 0x0f, 0x44, 0x67, 0xf7, 0x94, 0x98, 0x3a, 0xb6, 0x9b, 0x3b, 0x27, 0x44, 0xd3, 0x5e, - 0xe0, 0x1f, 0x40, 0x42, 0xe2, 0x9f, 0xe0, 0x05, 0xde, 0x78, 0x44, 0xf0, 0xc2, 0x03, 0x42, 0x93, - 0x78, 0x41, 0xe2, 0x65, 0x6a, 0xf9, 0x43, 0x90, 0xcf, 0xe7, 0x26, 0x76, 0xe2, 0x3a, 0x09, 0x79, - 0xe1, 0xad, 0x3d, 0xdf, 0xf7, 0x7e, 0x9f, 0xef, 0xef, 0x7c, 0xdf, 0x73, 0xe0, 0xba, 0x49, 0xcc, - 0x81, 0xe3, 0xb9, 0xba, 0xd5, 0xa6, 0xd6, 0x91, 0xef, 0xd9, 0x2e, 0xb7, 0xdd, 0x96, 0xde, 0xab, - 0xe8, 0xc7, 0x01, 0xed, 0x0e, 0x34, 0xbf, 0xeb, 0x71, 0x0f, 0x97, 0xe4, 0x2c, 0x2d, 0x31, 0x4b, - 0xeb, 0x55, 0x94, 0x1b, 0x99, 0x7a, 0xd3, 0x61, 0xcd, 0x23, 0x2a, 0x57, 0x50, 0x6e, 0x5b, 0x1e, - 0xeb, 0x78, 0x4c, 0x37, 0x09, 0xa3, 0xd1, 0xd2, 0x7a, 0xaf, 0x62, 0x52, 0x4e, 0x2a, 0xba, 0x4f, - 0x5a, 0xb6, 0x4b, 0xb8, 0xed, 0xb9, 0x72, 0xee, 0xd5, 0x96, 0xe7, 0xb5, 0x1c, 0xaa, 0x13, 0xdf, - 0xd6, 0x89, 0xeb, 0x7a, 0x5c, 0x3c, 0x64, 0xf2, 0xe9, 0xad, 0xcc, 0x8a, 0xc3, 0x81, 0x68, 0xaa, - 0xfa, 0x3d, 0x82, 0xd7, 0x3f, 0x0a, 0x6b, 0x19, 0xa4, 0x7f, 0xff, 0xec, 0xe1, 0x43, 0x9b, 0x71, - 0x83, 0x1e, 0x07, 0x94, 0x71, 0xdc, 0x80, 0x8b, 0x8c, 0x13, 0x1e, 0xb0, 0x12, 0xba, 0x86, 0x36, - 0x56, 0xab, 0xb7, 0xb5, 0x2c, 0xa7, 0xda, 0x70, 0x81, 0x8f, 0x85, 0xc2, 0x90, 0x4a, 0xfc, 0x1e, - 0xc0, 0xd0, 0x42, 0xa9, 0x70, 0x0d, 0x6d, 0x14, 0xab, 0x37, 0xb4, 0xc8, 0xaf, 0x16, 0xfa, 0xd5, - 0xa2, 0x56, 0x4a, 0xbf, 0xda, 0x23, 0xd2, 0xa2, 0xb2, 0xbe, 0x31, 0xa2, 0x54, 0x7f, 0x45, 0x50, - 0xce, 0xa2, 0x65, 0xbe, 0xe7, 0x32, 0x8a, 0x3f, 0x85, 0x97, 0xbb, 0xa4, 0xdf, 0x1c, 0xb2, 0x85, - 0xdc, 0xcb, 0x1b, 0xc5, 0xaa, 0x9e, 0xcd, 0x9d, 0x58, 0xed, 0x13, 0x9b, 0xb7, 0x3f, 0xa0, 0x9c, - 0x18, 0xab, 0xdd, 0xd1, 0x61, 0x86, 0xdf, 0x9f, 0x60, 0xe2, 0x66, 0xae, 0x89, 0x08, 0x2b, 0xe1, - 0xa2, 0x0e, 0xaf, 0x8d, 0x9b, 0x88, 0xdb, 0xbd, 0x0e, 0x2b, 0xd4, 0xf7, 0xac, 0x76, 0xd3, 0x0d, - 0x3a, 0xa2, 0xe3, 0x2f, 0x18, 0x2f, 0x8a, 0x81, 0x83, 0xa0, 0xa3, 0x72, 0x50, 0x26, 0x29, 0xa5, - 0xf5, 0xc7, 0xb0, 0x9a, 0xb4, 0x2e, 0xf4, 0x73, 0x38, 0xbf, 0x94, 0x70, 0xae, 0x1e, 0x4e, 0xaa, - 0xca, 0x62, 0xe0, 0xe4, 0xde, 0xa2, 0xb9, 0xf7, 0xf6, 0x67, 0x04, 0xeb, 0x13, 0xcb, 0xfc, 0x7f, - 0x36, 0xf6, 0x6b, 0x04, 0x57, 0x85, 0x85, 0x86, 0xc3, 0x1e, 0x05, 0xa6, 0x63, 0x5b, 0x0f, 0xe8, - 0x60, 0xf4, 0x2c, 0x9d, 0xb7, 0xb9, 0x0b, 0x3b, 0x24, 0x7f, 0xc4, 0x47, 0x7a, 0x9c, 0x42, 0xb6, - 0xf2, 0x10, 0xae, 0xf4, 0x88, 0x63, 0x1f, 0x12, 0xee, 0x75, 0x9b, 0x7d, 0x9b, 0xb7, 0x9b, 0x32, - 0x89, 0xe2, 0x96, 0xde, 0xc9, 0x6e, 0xe9, 0xe3, 0x58, 0x18, 0xb6, 0xb3, 0xe1, 0xb0, 0x07, 0x74, - 0x60, 0x5c, 0xee, 0x8d, 0x0f, 0x2e, 0xb0, 0xad, 0xdb, 0x70, 0x45, 0xf8, 0xd9, 0x0f, 0x3b, 0x25, - 0x93, 0x65, 0x9a, 0xd3, 0xf2, 0x39, 0x94, 0xc6, 0x75, 0xb2, 0x05, 0x0b, 0x48, 0x35, 0x75, 0x1f, - 0xd4, 0xe8, 0x85, 0xa5, 0x16, 0x75, 0xf9, 0x48, 0x95, 0xfb, 0x5e, 0x30, 0x3c, 0xd0, 0x6f, 0x40, - 0x31, 0x42, 0xb4, 0xc2, 0x51, 0x09, 0x09, 0x62, 0x48, 0xcc, 0x53, 0xbf, 0x2b, 0xc0, 0x9b, 0xe7, - 0xae, 0x23, 0x91, 0xd7, 0x61, 0x85, 0xdb, 0x7e, 0x53, 0x28, 0x63, 0xaf, 0xdc, 0xf6, 0xc5, 0xfc, - 0x74, 0x95, 0x42, 0xba, 0x0a, 0x3e, 0x86, 0x97, 0x22, 0x6c, 0x39, 0x63, 0x59, 0x6c, 0xf4, 0x41, - 0xb6, 0xed, 0x29, 0x90, 0xb4, 0x91, 0xb1, 0x7d, 0x97, 0x77, 0x07, 0x46, 0x91, 0x0d, 0x47, 0x94, - 0x3d, 0x58, 0x4b, 0x4f, 0xc0, 0x6b, 0xb0, 0x7c, 0x44, 0x07, 0x02, 0x7f, 0xc5, 0x08, 0xff, 0xc4, - 0x97, 0xe1, 0x42, 0x8f, 0x38, 0x01, 0x95, 0xcc, 0xd1, 0x3f, 0xbb, 0x85, 0x3a, 0x52, 0xbf, 0x80, - 0xeb, 0x02, 0xe2, 0x21, 0x61, 0x3c, 0x79, 0x8c, 0x93, 0x2f, 0xc1, 0x22, 0xf6, 0xb2, 0x0f, 0x6f, - 0xe5, 0xd4, 0x92, 0xbb, 0x70, 0x90, 0x11, 0xb2, 0x37, 0xa7, 0x4c, 0xa1, 0x54, 0xb8, 0x56, 0x9f, - 0x03, 0x5c, 0x10, 0x95, 0xf1, 0x2f, 0x08, 0x5e, 0x19, 0xbb, 0xd7, 0xf0, 0x4e, 0xde, 0x0e, 0x65, - 0xdc, 0xdb, 0x4a, 0x7d, 0x76, 0x61, 0x64, 0x51, 0xdd, 0xfd, 0xea, 0xcf, 0x7f, 0xbe, 0x2d, 0x6c, - 0xe1, 0xaa, 0x9e, 0xf9, 0x1d, 0x91, 0x4a, 0x62, 0xfd, 0x49, 0xd4, 0xc6, 0xa7, 0xf8, 0x27, 0x04, - 0x97, 0x12, 0x2b, 0xe3, 0xcd, 0x59, 0x38, 0x62, 0xf8, 0xad, 0xd9, 0x44, 0x12, 0xfc, 0xae, 0x00, - 0xdf, 0xc6, 0x5b, 0xd3, 0x82, 0xeb, 0x4f, 0xce, 0xd2, 0xe3, 0x29, 0xfe, 0x01, 0xc1, 0x6a, 0xf2, - 0xee, 0xc1, 0x33, 0x61, 0xc4, 0xef, 0xa3, 0x52, 0x9b, 0x51, 0x25, 0xe9, 0x2b, 0x82, 0xfe, 0x6d, - 0x7c, 0x6b, 0xea, 0xb6, 0x87, 0xaf, 0xcc, 0x5a, 0x3a, 0xe5, 0xf1, 0x76, 0x4e, 0xf9, 0x8c, 0xcb, - 0x49, 0xd9, 0x99, 0x59, 0x27, 0xc1, 0xef, 0x09, 0xf0, 0x1d, 0x5c, 0xd3, 0xcf, 0xfd, 0xd2, 0xf5, - 0x85, 0x58, 0x5c, 0x33, 0x89, 0xbe, 0xff, 0x88, 0xa0, 0x38, 0x92, 0x30, 0xb8, 0x92, 0xc3, 0x31, - 0x7e, 0x0d, 0x28, 0xd5, 0x59, 0x24, 0x92, 0xfa, 0x1d, 0x41, 0x5d, 0xc3, 0x9b, 0xd9, 0xd4, 0x02, - 0x32, 0x01, 0xab, 0xcb, 0x0f, 0xda, 0xdf, 0x11, 0xbc, 0x3a, 0x39, 0x1b, 0xf1, 0xdd, 0x39, 0x23, - 0x35, 0x72, 0x72, 0xef, 0x3f, 0x05, 0xb2, 0x5a, 0x13, 0xa6, 0x74, 0x7c, 0x27, 0xcf, 0xd4, 0xee, - 0xe8, 0x65, 0x80, 0xff, 0x46, 0x50, 0xca, 0x4a, 0x3e, 0xbc, 0x97, 0x83, 0x94, 0x13, 0xcf, 0xca, - 0xbb, 0x73, 0xeb, 0xa5, 0xa9, 0x3d, 0x61, 0xaa, 0x8e, 0xb7, 0xb3, 0x4d, 0x39, 0x84, 0xf1, 0x66, - 0xfa, 0x6c, 0xcb, 0x4c, 0x6a, 0x7c, 0xf8, 0xdb, 0x49, 0x19, 0x3d, 0x3b, 0x29, 0xa3, 0xe7, 0x27, - 0x65, 0xf4, 0xcd, 0x69, 0x79, 0xe9, 0xd9, 0x69, 0x79, 0xe9, 0xaf, 0xd3, 0xf2, 0xd2, 0x67, 0xb5, - 0x96, 0xcd, 0xdb, 0x81, 0xa9, 0x59, 0x5e, 0x27, 0x5e, 0xdb, 0x6a, 0x13, 0xdb, 0x3d, 0x2b, 0xf4, - 0x65, 0xaa, 0x14, 0x1f, 0xf8, 0x94, 0x99, 0x17, 0xc5, 0x6f, 0xa7, 0xcd, 0x7f, 0x03, 0x00, 0x00, - 0xff, 0xff, 0x27, 0x4c, 0x94, 0xaf, 0x1a, 0x0e, 0x00, 0x00, + proto.RegisterType((*QueryRawCheckpointListRequest)(nil), "cosmos.bls.v1.QueryRawCheckpointListRequest") + proto.RegisterType((*QueryRawCheckpointListResponse)(nil), "cosmos.bls.v1.QueryRawCheckpointListResponse") + proto.RegisterType((*QueryRawCheckpointRequest)(nil), "cosmos.bls.v1.QueryRawCheckpointRequest") + proto.RegisterType((*QueryRawCheckpointResponse)(nil), "cosmos.bls.v1.QueryRawCheckpointResponse") + proto.RegisterType((*QueryRawCheckpointsRequest)(nil), "cosmos.bls.v1.QueryRawCheckpointsRequest") + proto.RegisterType((*QueryRawCheckpointsResponse)(nil), "cosmos.bls.v1.QueryRawCheckpointsResponse") + proto.RegisterType((*QueryBlsPublicKeyListRequest)(nil), "cosmos.bls.v1.QueryBlsPublicKeyListRequest") + proto.RegisterType((*QueryBlsPublicKeyListResponse)(nil), "cosmos.bls.v1.QueryBlsPublicKeyListResponse") + proto.RegisterType((*QueryEpochStatusRequest)(nil), "cosmos.bls.v1.QueryEpochStatusRequest") + proto.RegisterType((*QueryEpochStatusResponse)(nil), "cosmos.bls.v1.QueryEpochStatusResponse") + proto.RegisterType((*QueryRecentEpochStatusCountRequest)(nil), "cosmos.bls.v1.QueryRecentEpochStatusCountRequest") + proto.RegisterType((*QueryRecentEpochStatusCountResponse)(nil), "cosmos.bls.v1.QueryRecentEpochStatusCountResponse") + proto.RegisterMapType((map[string]uint64)(nil), "cosmos.bls.v1.QueryRecentEpochStatusCountResponse.StatusCountEntry") + proto.RegisterType((*QueryLastCheckpointWithStatusRequest)(nil), "cosmos.bls.v1.QueryLastCheckpointWithStatusRequest") + proto.RegisterType((*QueryLastCheckpointWithStatusResponse)(nil), "cosmos.bls.v1.QueryLastCheckpointWithStatusResponse") +} + +func init() { proto.RegisterFile("cosmos/bls/v1/query.proto", fileDescriptor_3a689ef328eacdb9) } + +var fileDescriptor_3a689ef328eacdb9 = []byte{ + // 917 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0xcf, 0x6f, 0xe3, 0x44, + 0x14, 0xc7, 0x3b, 0x29, 0xbb, 0xda, 0xbe, 0xd0, 0x50, 0x46, 0x2b, 0x36, 0xeb, 0x14, 0x6f, 0x65, + 0x4a, 0x9b, 0xa6, 0xad, 0x4d, 0x52, 0x04, 0xab, 0x3d, 0x70, 0x48, 0x54, 0x38, 0x74, 0x17, 0x2d, + 0x5e, 0x09, 0x04, 0x17, 0x6b, 0xe2, 0x0e, 0x89, 0x15, 0xc7, 0xf6, 0x66, 0xc6, 0x29, 0xd1, 0x6a, + 0x2f, 0x70, 0xe4, 0x40, 0x25, 0x0e, 0x5c, 0xe1, 0xcc, 0x19, 0x09, 0x71, 0xe5, 0xc2, 0xb1, 0x12, + 0x17, 0x8e, 0xa8, 0xe5, 0x9f, 0xe0, 0x86, 0x32, 0x1e, 0x37, 0xb1, 0xe3, 0xfc, 0x68, 0xd5, 0x03, + 0xa7, 0x36, 0x33, 0xef, 0xc7, 0xe7, 0xbd, 0xe7, 0xf7, 0xb5, 0xe1, 0xbe, 0xed, 0xb3, 0xae, 0xcf, + 0x8c, 0xa6, 0xcb, 0x8c, 0x7e, 0xd5, 0x78, 0x1e, 0xd2, 0xde, 0x40, 0x0f, 0x7a, 0x3e, 0xf7, 0xf1, + 0x6a, 0x74, 0xa5, 0x37, 0x5d, 0xa6, 0xf7, 0xab, 0x4a, 0x29, 0x69, 0xd9, 0x74, 0x99, 0xd5, 0xa1, + 0xd2, 0x56, 0xa9, 0xc4, 0x97, 0x84, 0xd1, 0x28, 0x88, 0xd1, 0xaf, 0x36, 0x29, 0x27, 0x55, 0x23, + 0x20, 0x2d, 0xc7, 0x23, 0xdc, 0xf1, 0x3d, 0x69, 0xbb, 0xde, 0xf2, 0xfd, 0x96, 0x4b, 0x0d, 0x12, + 0x38, 0x06, 0xf1, 0x3c, 0x9f, 0x8b, 0x4b, 0x26, 0x6f, 0xd5, 0x64, 0x1a, 0xbb, 0x4d, 0xed, 0x4e, + 0xe0, 0x3b, 0x1e, 0x8f, 0xee, 0xb5, 0x1f, 0x11, 0xbc, 0xf9, 0xc9, 0x30, 0x81, 0x49, 0x4e, 0x1a, + 0x97, 0x97, 0x8f, 0x1d, 0xc6, 0x4d, 0xfa, 0x3c, 0xa4, 0x8c, 0xe3, 0xf7, 0xe1, 0x36, 0xe3, 0x84, + 0x87, 0xac, 0x88, 0x36, 0x50, 0xb9, 0x50, 0x7b, 0xa0, 0x27, 0x0a, 0xd1, 0x47, 0x5e, 0xcf, 0x84, + 0x99, 0x29, 0xcd, 0xf1, 0x87, 0x00, 0x23, 0xd8, 0x62, 0x6e, 0x03, 0x95, 0xf3, 0xb5, 0xad, 0x4b, + 0x67, 0xc2, 0xa8, 0x1e, 0xb5, 0x47, 0x56, 0xa6, 0x3f, 0x25, 0x2d, 0x2a, 0x93, 0x9a, 0x63, 0x9e, + 0xda, 0xaf, 0x08, 0xd4, 0x69, 0x88, 0x2c, 0xf0, 0x3d, 0x46, 0xf1, 0x13, 0x78, 0xad, 0x47, 0x4e, + 0xac, 0x51, 0x75, 0x43, 0xd8, 0xe5, 0x72, 0xbe, 0xb6, 0x99, 0x82, 0x4d, 0x84, 0xf8, 0xcc, 0xe1, + 0xed, 0x27, 0x94, 0x13, 0xb3, 0xd0, 0x1b, 0x3f, 0x66, 0xf8, 0xa3, 0x0c, 0xf2, 0xed, 0xb9, 0xe4, + 0x11, 0x4b, 0x02, 0xfd, 0x21, 0xdc, 0x9f, 0x24, 0x8f, 0x1b, 0x5b, 0x82, 0x15, 0x1a, 0xf8, 0x76, + 0xdb, 0xf2, 0xc2, 0xae, 0xe8, 0xed, 0x2b, 0xe6, 0x1d, 0x71, 0xf0, 0x71, 0xd8, 0xd5, 0x1c, 0x50, + 0xb2, 0x3c, 0x65, 0xbd, 0x47, 0x50, 0x48, 0xd6, 0x2b, 0xfc, 0x17, 0x2d, 0x77, 0x35, 0x51, 0xae, + 0x76, 0x9c, 0x95, 0x8a, 0xc5, 0x94, 0xc9, 0x29, 0xa2, 0x6b, 0x4f, 0xf1, 0x17, 0x04, 0xa5, 0xcc, + 0x34, 0xff, 0xf3, 0x11, 0x7e, 0x83, 0x60, 0x5d, 0x70, 0xd7, 0x5d, 0xf6, 0x34, 0x6c, 0xba, 0x8e, + 0x7d, 0x44, 0x07, 0xe3, 0xfb, 0x31, 0x6b, 0x8c, 0x37, 0xb6, 0x03, 0xbf, 0xc7, 0x6b, 0x3a, 0x49, + 0x21, 0xfb, 0xf7, 0x39, 0xdc, 0xeb, 0x13, 0xd7, 0x39, 0x26, 0xdc, 0xef, 0x59, 0x27, 0x0e, 0x6f, + 0x5b, 0x52, 0x52, 0xe2, 0x3e, 0x6a, 0xa9, 0x3e, 0x7e, 0x1a, 0x5b, 0x0f, 0x7b, 0x58, 0x77, 0xd9, + 0x11, 0x1d, 0x98, 0x77, 0xfb, 0x93, 0x87, 0x37, 0xd8, 0xcb, 0xf7, 0xe0, 0x9e, 0x28, 0xe2, 0x70, + 0xd8, 0x1e, 0xa9, 0x16, 0x8b, 0x2c, 0xc3, 0x33, 0x28, 0x4e, 0xfa, 0xc9, 0xba, 0xaf, 0x2b, 0x4f, + 0xda, 0x21, 0x68, 0xd1, 0xf3, 0x48, 0x6d, 0xea, 0xf1, 0xb1, 0xd0, 0x0d, 0x3f, 0x1c, 0x2d, 0xe9, + 0x03, 0xc8, 0x47, 0x5c, 0xf6, 0xf0, 0x54, 0x92, 0x81, 0x38, 0x12, 0x76, 0xda, 0xb7, 0x39, 0x78, + 0x6b, 0x66, 0x1c, 0xc9, 0x59, 0x82, 0x15, 0xee, 0x04, 0x96, 0xf0, 0x8c, 0x0b, 0xe4, 0x4e, 0x20, + 0xec, 0xd3, 0x59, 0x72, 0xe9, 0x2c, 0xf8, 0x4b, 0x78, 0x35, 0xc2, 0x96, 0x16, 0xcb, 0x62, 0xa4, + 0x8d, 0x54, 0xad, 0x0b, 0x70, 0xe8, 0x63, 0x67, 0x87, 0x1e, 0xef, 0x0d, 0xcc, 0x3c, 0x1b, 0x9d, + 0x28, 0x1f, 0xc0, 0x5a, 0xda, 0x00, 0xaf, 0xc1, 0x72, 0x87, 0x0e, 0x04, 0xf3, 0x8a, 0x39, 0xfc, + 0x17, 0xdf, 0x85, 0x5b, 0x7d, 0xe2, 0x86, 0x54, 0x82, 0x46, 0x3f, 0x1e, 0xe5, 0x1e, 0x22, 0xcd, + 0x82, 0x4d, 0x01, 0xf1, 0x98, 0x30, 0x9e, 0xdc, 0xd2, 0xe4, 0xb8, 0xaf, 0x3d, 0x35, 0x17, 0xde, + 0x9e, 0x93, 0x40, 0xf6, 0xbb, 0x31, 0x45, 0x22, 0xd7, 0x67, 0xc9, 0x49, 0x4a, 0x1a, 0x6b, 0xff, + 0xde, 0x81, 0x5b, 0x22, 0x1d, 0xfe, 0x09, 0xc1, 0xeb, 0x13, 0xef, 0x1f, 0xbc, 0x97, 0x39, 0x80, + 0x29, 0x6f, 0x52, 0x65, 0x7f, 0x41, 0xeb, 0xa8, 0x02, 0xcd, 0xf8, 0xfa, 0xcf, 0x7f, 0xbe, 0xcf, + 0xed, 0xe0, 0x6d, 0x23, 0xf9, 0x0e, 0x4f, 0xc9, 0xa4, 0xf1, 0x22, 0x6a, 0xcd, 0x4b, 0xfc, 0x03, + 0x82, 0xd5, 0x44, 0x38, 0x5c, 0x9e, 0x9b, 0x31, 0x66, 0xdb, 0x59, 0xc0, 0x52, 0x72, 0x55, 0x05, + 0xd7, 0x2e, 0xde, 0x99, 0xc9, 0x65, 0xbc, 0xb8, 0xdc, 0xe7, 0x97, 0xf8, 0x3b, 0x04, 0x85, 0xa4, + 0xee, 0xe3, 0xf9, 0x09, 0xe3, 0x87, 0x45, 0xa9, 0x2c, 0x62, 0x2a, 0xe1, 0xb6, 0x04, 0xdc, 0x06, + 0x56, 0x67, 0x37, 0x6d, 0x38, 0xcf, 0xb5, 0xb4, 0x96, 0xe2, 0xdd, 0xac, 0x44, 0x53, 0x74, 0x5f, + 0xd9, 0x5b, 0xcc, 0x58, 0x72, 0xd5, 0x04, 0xd7, 0x1e, 0xae, 0x18, 0x93, 0xdf, 0x7d, 0x81, 0xf0, + 0x10, 0x5a, 0x9d, 0xe8, 0xda, 0x29, 0x82, 0xfc, 0xd8, 0x1e, 0xe3, 0xad, 0xac, 0x8c, 0x93, 0x5a, + 0xaa, 0x6c, 0xcf, 0xb5, 0x93, 0x50, 0xef, 0x08, 0xa8, 0x0a, 0x2e, 0xa7, 0xa0, 0x04, 0x43, 0x82, + 0xc5, 0x90, 0xdf, 0x74, 0x3f, 0x23, 0x78, 0x23, 0x5b, 0x60, 0x70, 0xf5, 0x2a, 0x62, 0x14, 0x81, + 0xd6, 0xae, 0xae, 0x5f, 0x5a, 0x45, 0x30, 0x6f, 0x62, 0x2d, 0x93, 0xf9, 0xd1, 0xb8, 0x4a, 0xe2, + 0xdf, 0x10, 0x14, 0xa7, 0x09, 0x05, 0x3e, 0xc8, 0x4a, 0x3e, 0x47, 0xb7, 0x94, 0x77, 0xaf, 0xe6, + 0x24, 0x99, 0x0f, 0x04, 0xf3, 0x3e, 0xde, 0x4d, 0x31, 0xbb, 0x84, 0x71, 0x2b, 0xbd, 0x36, 0x72, + 0x9b, 0xeb, 0xf5, 0x3f, 0xce, 0x55, 0x74, 0x76, 0xae, 0xa2, 0xbf, 0xcf, 0x55, 0x74, 0x7a, 0xa1, + 0x2e, 0x9d, 0x5d, 0xa8, 0x4b, 0x7f, 0x5d, 0xa8, 0x4b, 0x5f, 0x94, 0x5b, 0x0e, 0x6f, 0x87, 0x4d, + 0xdd, 0xf6, 0xbb, 0x71, 0xc0, 0xe8, 0xcf, 0x3e, 0x3b, 0xee, 0x18, 0x5f, 0x89, 0xe8, 0x7c, 0x10, + 0x50, 0xd6, 0xbc, 0x2d, 0x3e, 0xf2, 0x0f, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x2a, 0x6f, 0x25, + 0xfe, 0x97, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -868,7 +865,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) RawCheckpointList(ctx context.Context, in *QueryRawCheckpointListRequest, opts ...grpc.CallOption) (*QueryRawCheckpointListResponse, error) { out := new(QueryRawCheckpointListResponse) - err := c.cc.Invoke(ctx, "/babylon.checkpointing.v1.Query/RawCheckpointList", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bls.v1.Query/RawCheckpointList", in, out, opts...) if err != nil { return nil, err } @@ -877,7 +874,7 @@ func (c *queryClient) RawCheckpointList(ctx context.Context, in *QueryRawCheckpo func (c *queryClient) RawCheckpoint(ctx context.Context, in *QueryRawCheckpointRequest, opts ...grpc.CallOption) (*QueryRawCheckpointResponse, error) { out := new(QueryRawCheckpointResponse) - err := c.cc.Invoke(ctx, "/babylon.checkpointing.v1.Query/RawCheckpoint", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bls.v1.Query/RawCheckpoint", in, out, opts...) if err != nil { return nil, err } @@ -886,7 +883,7 @@ func (c *queryClient) RawCheckpoint(ctx context.Context, in *QueryRawCheckpointR func (c *queryClient) RawCheckpoints(ctx context.Context, in *QueryRawCheckpointsRequest, opts ...grpc.CallOption) (*QueryRawCheckpointsResponse, error) { out := new(QueryRawCheckpointsResponse) - err := c.cc.Invoke(ctx, "/babylon.checkpointing.v1.Query/RawCheckpoints", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bls.v1.Query/RawCheckpoints", in, out, opts...) if err != nil { return nil, err } @@ -895,7 +892,7 @@ func (c *queryClient) RawCheckpoints(ctx context.Context, in *QueryRawCheckpoint func (c *queryClient) BlsPublicKeyList(ctx context.Context, in *QueryBlsPublicKeyListRequest, opts ...grpc.CallOption) (*QueryBlsPublicKeyListResponse, error) { out := new(QueryBlsPublicKeyListResponse) - err := c.cc.Invoke(ctx, "/babylon.checkpointing.v1.Query/BlsPublicKeyList", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bls.v1.Query/BlsPublicKeyList", in, out, opts...) if err != nil { return nil, err } @@ -904,7 +901,7 @@ func (c *queryClient) BlsPublicKeyList(ctx context.Context, in *QueryBlsPublicKe func (c *queryClient) EpochStatus(ctx context.Context, in *QueryEpochStatusRequest, opts ...grpc.CallOption) (*QueryEpochStatusResponse, error) { out := new(QueryEpochStatusResponse) - err := c.cc.Invoke(ctx, "/babylon.checkpointing.v1.Query/EpochStatus", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bls.v1.Query/EpochStatus", in, out, opts...) if err != nil { return nil, err } @@ -913,7 +910,7 @@ func (c *queryClient) EpochStatus(ctx context.Context, in *QueryEpochStatusReque func (c *queryClient) RecentEpochStatusCount(ctx context.Context, in *QueryRecentEpochStatusCountRequest, opts ...grpc.CallOption) (*QueryRecentEpochStatusCountResponse, error) { out := new(QueryRecentEpochStatusCountResponse) - err := c.cc.Invoke(ctx, "/babylon.checkpointing.v1.Query/RecentEpochStatusCount", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bls.v1.Query/RecentEpochStatusCount", in, out, opts...) if err != nil { return nil, err } @@ -922,7 +919,7 @@ func (c *queryClient) RecentEpochStatusCount(ctx context.Context, in *QueryRecen func (c *queryClient) LastCheckpointWithStatus(ctx context.Context, in *QueryLastCheckpointWithStatusRequest, opts ...grpc.CallOption) (*QueryLastCheckpointWithStatusResponse, error) { out := new(QueryLastCheckpointWithStatusResponse) - err := c.cc.Invoke(ctx, "/babylon.checkpointing.v1.Query/LastCheckpointWithStatus", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bls.v1.Query/LastCheckpointWithStatus", in, out, opts...) if err != nil { return nil, err } @@ -990,7 +987,7 @@ func _Query_RawCheckpointList_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.checkpointing.v1.Query/RawCheckpointList", + FullMethod: "/cosmos.bls.v1.Query/RawCheckpointList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).RawCheckpointList(ctx, req.(*QueryRawCheckpointListRequest)) @@ -1008,7 +1005,7 @@ func _Query_RawCheckpoint_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.checkpointing.v1.Query/RawCheckpoint", + FullMethod: "/cosmos.bls.v1.Query/RawCheckpoint", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).RawCheckpoint(ctx, req.(*QueryRawCheckpointRequest)) @@ -1026,7 +1023,7 @@ func _Query_RawCheckpoints_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.checkpointing.v1.Query/RawCheckpoints", + FullMethod: "/cosmos.bls.v1.Query/RawCheckpoints", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).RawCheckpoints(ctx, req.(*QueryRawCheckpointsRequest)) @@ -1044,7 +1041,7 @@ func _Query_BlsPublicKeyList_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.checkpointing.v1.Query/BlsPublicKeyList", + FullMethod: "/cosmos.bls.v1.Query/BlsPublicKeyList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BlsPublicKeyList(ctx, req.(*QueryBlsPublicKeyListRequest)) @@ -1062,7 +1059,7 @@ func _Query_EpochStatus_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.checkpointing.v1.Query/EpochStatus", + FullMethod: "/cosmos.bls.v1.Query/EpochStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).EpochStatus(ctx, req.(*QueryEpochStatusRequest)) @@ -1080,7 +1077,7 @@ func _Query_RecentEpochStatusCount_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.checkpointing.v1.Query/RecentEpochStatusCount", + FullMethod: "/cosmos.bls.v1.Query/RecentEpochStatusCount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).RecentEpochStatusCount(ctx, req.(*QueryRecentEpochStatusCountRequest)) @@ -1098,7 +1095,7 @@ func _Query_LastCheckpointWithStatus_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.checkpointing.v1.Query/LastCheckpointWithStatus", + FullMethod: "/cosmos.bls.v1.Query/LastCheckpointWithStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).LastCheckpointWithStatus(ctx, req.(*QueryLastCheckpointWithStatusRequest)) @@ -1107,7 +1104,7 @@ func _Query_LastCheckpointWithStatus_Handler(srv interface{}, ctx context.Contex } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "babylon.checkpointing.v1.Query", + ServiceName: "cosmos.bls.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1140,7 +1137,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "babylon/checkpointing/v1/query.proto", + Metadata: "cosmos/bls/v1/query.proto", } func (m *QueryRawCheckpointListRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/bls/types/query.pb.gw.go b/x/bls/types/query.pb.gw.go index 7914c5bba0d..ee1dfebadc5 100644 --- a/x/bls/types/query.pb.gw.go +++ b/x/bls/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: babylon/checkpointing/v1/query.proto +// source: cosmos/bls/v1/query.proto /* Package types is a reverse proxy. @@ -775,19 +775,19 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_RawCheckpointList_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"babylon", "checkpointing", "v1", "raw_checkpoints", "status"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_RawCheckpointList_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "bls", "v1", "raw_checkpoints", "status"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RawCheckpoint_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"babylon", "checkpointing", "v1", "raw_checkpoint", "epoch_num"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_RawCheckpoint_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "bls", "v1", "raw_checkpoint", "epoch_num"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RawCheckpoints_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"babylon", "checkpointing", "v1", "raw_checkpoints"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_RawCheckpoints_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "bls", "v1", "raw_checkpoints"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_BlsPublicKeyList_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"babylon", "checkpointing", "v1", "bls_public_keys", "epoch_num"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_BlsPublicKeyList_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "bls", "v1", "bls_public_keys", "epoch_num"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EpochStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"babylon", "checkpointing", "v1", "epochs", "epoch_num", "status"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_EpochStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "bls", "v1", "epochs", "epoch_num", "status"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RecentEpochStatusCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"babylon", "checkpointing", "v1", "epochs"}, "status_count", runtime.AssumeColonVerbOpt(false))) + pattern_Query_RecentEpochStatusCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "bls", "v1", "epochs"}, "status_count", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LastCheckpointWithStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"babylon", "checkpointing", "v1", "last_raw_checkpoint", "status"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_LastCheckpointWithStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "bls", "v1", "last_raw_checkpoint", "status"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/bls/types/tx.pb.go b/x/bls/types/tx.pb.go index 83b25f08abe..c55922218a3 100644 --- a/x/bls/types/tx.pb.go +++ b/x/bls/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/checkpointing/v1/tx.proto +// source: cosmos/bls/v1/tx.proto package types @@ -7,6 +7,7 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" types "github.com/cosmos/cosmos-sdk/x/staking/types" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" @@ -44,7 +45,7 @@ func (m *MsgAddBlsSig) Reset() { *m = MsgAddBlsSig{} } func (m *MsgAddBlsSig) String() string { return proto.CompactTextString(m) } func (*MsgAddBlsSig) ProtoMessage() {} func (*MsgAddBlsSig) Descriptor() ([]byte, []int) { - return fileDescriptor_6b16c54750152c21, []int{0} + return fileDescriptor_a3948939a89201ee, []int{0} } func (m *MsgAddBlsSig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -81,7 +82,7 @@ func (m *MsgAddBlsSigResponse) Reset() { *m = MsgAddBlsSigResponse{} } func (m *MsgAddBlsSigResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddBlsSigResponse) ProtoMessage() {} func (*MsgAddBlsSigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6b16c54750152c21, []int{1} + return fileDescriptor_a3948939a89201ee, []int{1} } func (m *MsgAddBlsSigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -120,7 +121,7 @@ func (m *MsgWrappedCreateValidator) Reset() { *m = MsgWrappedCreateValid func (m *MsgWrappedCreateValidator) String() string { return proto.CompactTextString(m) } func (*MsgWrappedCreateValidator) ProtoMessage() {} func (*MsgWrappedCreateValidator) Descriptor() ([]byte, []int) { - return fileDescriptor_6b16c54750152c21, []int{2} + return fileDescriptor_a3948939a89201ee, []int{2} } func (m *MsgWrappedCreateValidator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -158,7 +159,7 @@ func (m *MsgWrappedCreateValidatorResponse) Reset() { *m = MsgWrappedCre func (m *MsgWrappedCreateValidatorResponse) String() string { return proto.CompactTextString(m) } func (*MsgWrappedCreateValidatorResponse) ProtoMessage() {} func (*MsgWrappedCreateValidatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6b16c54750152c21, []int{3} + return fileDescriptor_a3948939a89201ee, []int{3} } func (m *MsgWrappedCreateValidatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -188,44 +189,45 @@ func (m *MsgWrappedCreateValidatorResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgWrappedCreateValidatorResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgAddBlsSig)(nil), "babylon.checkpointing.v1.MsgAddBlsSig") - proto.RegisterType((*MsgAddBlsSigResponse)(nil), "babylon.checkpointing.v1.MsgAddBlsSigResponse") - proto.RegisterType((*MsgWrappedCreateValidator)(nil), "babylon.checkpointing.v1.MsgWrappedCreateValidator") - proto.RegisterType((*MsgWrappedCreateValidatorResponse)(nil), "babylon.checkpointing.v1.MsgWrappedCreateValidatorResponse") -} - -func init() { proto.RegisterFile("babylon/checkpointing/v1/tx.proto", fileDescriptor_6b16c54750152c21) } - -var fileDescriptor_6b16c54750152c21 = []byte{ - // 447 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x4f, 0x6b, 0xd4, 0x40, - 0x18, 0xc6, 0x33, 0x16, 0x56, 0x3b, 0x7a, 0x1a, 0x96, 0x92, 0xe6, 0x90, 0xdd, 0xae, 0x50, 0xaa, - 0xe0, 0xc4, 0x6e, 0xf1, 0xa0, 0x9e, 0xba, 0x1e, 0x25, 0x08, 0x29, 0x28, 0x88, 0x10, 0x26, 0xc9, - 0x30, 0x3b, 0xe4, 0xcf, 0x84, 0xbc, 0xe3, 0xd2, 0x7c, 0x00, 0x41, 0x3c, 0xf9, 0x11, 0xfa, 0x21, - 0x04, 0xbf, 0x82, 0xc7, 0xe2, 0xc9, 0xa3, 0xec, 0x5e, 0xfc, 0x06, 0x5e, 0x65, 0x93, 0x09, 0xbb, - 0x56, 0xa3, 0xe2, 0x29, 0x99, 0x37, 0xbf, 0xf7, 0x7d, 0x9e, 0xf7, 0x49, 0x82, 0x0f, 0x22, 0x16, - 0xd5, 0x99, 0x2a, 0xbc, 0x78, 0xce, 0xe3, 0xb4, 0x54, 0xb2, 0xd0, 0xb2, 0x10, 0xde, 0xe2, 0xd8, - 0xd3, 0xe7, 0xb4, 0xac, 0x94, 0x56, 0xc4, 0x36, 0x08, 0xfd, 0x09, 0xa1, 0x8b, 0x63, 0x67, 0x28, - 0x94, 0x50, 0x0d, 0xe4, 0xad, 0xef, 0x5a, 0xde, 0xb9, 0xd3, 0x3b, 0x72, 0x53, 0x30, 0xe8, 0x61, - 0x2f, 0x1a, 0x65, 0x10, 0xa6, 0xbc, 0x36, 0xdc, 0x28, 0x56, 0x90, 0x2b, 0xf0, 0x40, 0xb3, 0xb4, - 0x05, 0x22, 0xae, 0xd9, 0xc6, 0xa3, 0xb3, 0xdf, 0x02, 0x61, 0x6b, 0xa6, 0x3d, 0xb4, 0x8f, 0x26, - 0x6f, 0x10, 0xbe, 0xe5, 0x83, 0x38, 0x4d, 0x92, 0x59, 0x06, 0x67, 0x52, 0x90, 0xfb, 0x78, 0x00, - 0x52, 0x14, 0xbc, 0xb2, 0xd1, 0x18, 0x1d, 0xed, 0xce, 0xec, 0xcf, 0x1f, 0xee, 0x0d, 0x4d, 0xcb, - 0x69, 0x92, 0x54, 0x1c, 0xe0, 0x4c, 0x57, 0xb2, 0x10, 0x81, 0xe1, 0xc8, 0x43, 0x7c, 0x7d, 0xed, - 0x07, 0xa4, 0xb0, 0xaf, 0x8d, 0xd1, 0xd1, 0xcd, 0xe9, 0x98, 0xf6, 0x65, 0x42, 0x5b, 0x91, 0x60, - 0x10, 0x35, 0xd7, 0x47, 0x37, 0xde, 0x5e, 0x8c, 0xac, 0x6f, 0x17, 0x23, 0x6b, 0xb2, 0x87, 0x87, - 0xdb, 0x36, 0x02, 0x0e, 0xa5, 0x2a, 0x80, 0x4f, 0x3e, 0x22, 0xbc, 0xef, 0x83, 0x78, 0x51, 0xb1, - 0xb2, 0xe4, 0xc9, 0x93, 0x8a, 0x33, 0xcd, 0x9f, 0xb3, 0x4c, 0x26, 0x4c, 0xab, 0x8a, 0x4c, 0xf1, - 0x4e, 0xca, 0xeb, 0xc6, 0xe9, 0xdf, 0x64, 0x9f, 0xf2, 0x3a, 0x58, 0xc3, 0xe4, 0x15, 0x1e, 0xe6, - 0x20, 0xc2, 0xb8, 0x19, 0x15, 0x2e, 0xba, 0x59, 0xc6, 0xfb, 0x5d, 0x6a, 0x76, 0x35, 0x61, 0x52, - 0x13, 0x26, 0xf5, 0x41, 0x5c, 0x51, 0x0f, 0x48, 0xfe, 0x4b, 0x6d, 0x6b, 0xa3, 0xdb, 0xf8, 0xa0, - 0xd7, 0x78, 0xb7, 0xde, 0xf4, 0x3b, 0xc2, 0x3b, 0x3e, 0x08, 0x12, 0xe3, 0xdd, 0xcd, 0x2b, 0x38, - 0xec, 0x5f, 0x64, 0x3b, 0x23, 0x87, 0xfe, 0x1b, 0xd7, 0x89, 0x91, 0x77, 0x08, 0xef, 0xf5, 0x04, - 0x79, 0xf2, 0xc7, 0x51, 0xbf, 0x6f, 0x72, 0x1e, 0xff, 0x47, 0x53, 0x67, 0x66, 0xf6, 0xec, 0xd3, - 0xd2, 0x45, 0x97, 0x4b, 0x17, 0x7d, 0x5d, 0xba, 0xe8, 0xfd, 0xca, 0xb5, 0x2e, 0x57, 0xae, 0xf5, - 0x65, 0xe5, 0x5a, 0x2f, 0x1f, 0x08, 0xa9, 0xe7, 0xaf, 0x23, 0x1a, 0xab, 0xdc, 0x33, 0x02, 0xf1, - 0x9c, 0xc9, 0xa2, 0x3b, 0x78, 0xe7, 0x57, 0x7e, 0x08, 0x5d, 0x97, 0x1c, 0xa2, 0x41, 0xf3, 0x41, - 0x9f, 0xfc, 0x08, 0x00, 0x00, 0xff, 0xff, 0x8e, 0xef, 0x32, 0xf7, 0xb4, 0x03, 0x00, 0x00, + proto.RegisterType((*MsgAddBlsSig)(nil), "cosmos.bls.v1.MsgAddBlsSig") + proto.RegisterType((*MsgAddBlsSigResponse)(nil), "cosmos.bls.v1.MsgAddBlsSigResponse") + proto.RegisterType((*MsgWrappedCreateValidator)(nil), "cosmos.bls.v1.MsgWrappedCreateValidator") + proto.RegisterType((*MsgWrappedCreateValidatorResponse)(nil), "cosmos.bls.v1.MsgWrappedCreateValidatorResponse") +} + +func init() { proto.RegisterFile("cosmos/bls/v1/tx.proto", fileDescriptor_a3948939a89201ee) } + +var fileDescriptor_a3948939a89201ee = []byte{ + // 450 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xbb, 0x6e, 0xd4, 0x40, + 0x14, 0xf5, 0x10, 0xb1, 0x90, 0x01, 0x9a, 0xd1, 0xb2, 0x6c, 0x1c, 0xc9, 0x1b, 0x36, 0x05, 0xab, + 0x48, 0x19, 0x67, 0x43, 0x47, 0x17, 0x53, 0x22, 0x37, 0x8e, 0x04, 0x12, 0x42, 0xb2, 0xfc, 0x18, + 0x4d, 0x46, 0x7e, 0x8c, 0xe5, 0x3b, 0x58, 0x31, 0x15, 0x25, 0x25, 0x9f, 0x90, 0x0f, 0xa0, 0xa0, + 0xe0, 0x23, 0x28, 0x03, 0x15, 0x25, 0xda, 0x2d, 0xe0, 0x33, 0x90, 0xed, 0xb1, 0xb2, 0x9b, 0x07, + 0x4a, 0x75, 0x2d, 0x9f, 0x73, 0xee, 0x39, 0x73, 0x74, 0xf1, 0x28, 0x92, 0x90, 0x49, 0xb0, 0xc3, + 0x14, 0xec, 0x6a, 0x6e, 0xab, 0x53, 0x5a, 0x94, 0x52, 0x49, 0xf2, 0xa8, 0xfb, 0x4f, 0xc3, 0x14, + 0x68, 0x35, 0x37, 0x87, 0x5c, 0x72, 0xd9, 0x22, 0x76, 0xf3, 0xd5, 0x91, 0x4c, 0x6b, 0x5d, 0x1c, + 0x9d, 0xb0, 0x28, 0x29, 0xa4, 0xc8, 0x95, 0xc6, 0xb7, 0xd7, 0xf1, 0x30, 0x05, 0x3f, 0x61, 0xb5, + 0x06, 0x27, 0x1a, 0x04, 0x15, 0x24, 0x22, 0xe7, 0x76, 0x35, 0x0f, 0x99, 0x0a, 0x2e, 0x22, 0x98, + 0x5b, 0x1d, 0xc1, 0xef, 0x6c, 0x75, 0x9e, 0x0e, 0x7a, 0xa2, 0xb5, 0x19, 0x34, 0xba, 0x66, 0x74, + 0xc0, 0xf4, 0x03, 0x7e, 0xe8, 0x02, 0x3f, 0x8a, 0x63, 0x27, 0x85, 0x63, 0xc1, 0xc9, 0x01, 0x1e, + 0x80, 0xe0, 0x39, 0x2b, 0xc7, 0x68, 0x07, 0xcd, 0x36, 0x9d, 0xf1, 0xcf, 0x6f, 0xfb, 0x43, 0xbd, + 0xea, 0x28, 0x8e, 0x4b, 0x06, 0x70, 0xac, 0x4a, 0x91, 0x73, 0x4f, 0xf3, 0x08, 0xc5, 0xf7, 0x9a, + 0x9c, 0x20, 0xf8, 0xf8, 0xce, 0x0e, 0x9a, 0x3d, 0x38, 0x7c, 0x4c, 0xd7, 0xaa, 0xa0, 0xdd, 0x66, + 0x6f, 0x10, 0xb6, 0xf3, 0xc5, 0xfd, 0x4f, 0x67, 0x13, 0xe3, 0xef, 0xd9, 0xc4, 0x98, 0x8e, 0xf0, + 0x70, 0xd5, 0xdb, 0x63, 0x50, 0xc8, 0x1c, 0xd8, 0xf4, 0x0b, 0xc2, 0x5b, 0x2e, 0xf0, 0x37, 0x65, + 0x50, 0x14, 0x2c, 0x7e, 0x59, 0xb2, 0x40, 0xb1, 0xd7, 0x41, 0x2a, 0xe2, 0x40, 0xc9, 0x92, 0x3c, + 0xc3, 0x1b, 0x09, 0xab, 0xdb, 0x78, 0xd7, 0x7a, 0xbd, 0x62, 0xb5, 0xd7, 0x30, 0xc8, 0x3b, 0x3c, + 0xcc, 0x80, 0xfb, 0x51, 0xab, 0xf7, 0xab, 0x7e, 0x81, 0x4e, 0xb9, 0xd7, 0x2b, 0x75, 0x9d, 0x54, + 0xd7, 0x49, 0x5d, 0xe0, 0x97, 0x2c, 0x3d, 0x92, 0x5d, 0xf9, 0xb7, 0xf2, 0x8c, 0x5d, 0xfc, 0xf4, + 0xc6, 0xb4, 0xfd, 0x9b, 0x0e, 0x7f, 0x20, 0xbc, 0xe1, 0x02, 0x27, 0x2e, 0xde, 0xbc, 0x28, 0x7b, + 0xfb, 0x52, 0xfa, 0xd5, 0x36, 0xcc, 0xdd, 0xff, 0x80, 0xfd, 0x5a, 0xa2, 0xf0, 0xe8, 0x86, 0x9a, + 0x66, 0x57, 0xe5, 0xd7, 0x33, 0xcd, 0x83, 0xdb, 0x32, 0x7b, 0x57, 0xf3, 0xee, 0xc7, 0x3f, 0x5f, + 0xf7, 0x90, 0xe3, 0x7c, 0x5f, 0x58, 0xe8, 0x7c, 0x61, 0xa1, 0xdf, 0x0b, 0x0b, 0x7d, 0x5e, 0x5a, + 0xc6, 0xf9, 0xd2, 0x32, 0x7e, 0x2d, 0x2d, 0xe3, 0xed, 0x8c, 0x0b, 0x75, 0xf2, 0x3e, 0xa4, 0x91, + 0xcc, 0xf4, 0x1d, 0xea, 0xb1, 0x0f, 0x71, 0x62, 0x9f, 0xb6, 0xf7, 0xad, 0xea, 0x82, 0x41, 0x38, + 0x68, 0xcf, 0xf0, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3d, 0x5d, 0xf9, 0xab, 0x57, 0x03, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -256,7 +258,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) AddBlsSig(ctx context.Context, in *MsgAddBlsSig, opts ...grpc.CallOption) (*MsgAddBlsSigResponse, error) { out := new(MsgAddBlsSigResponse) - err := c.cc.Invoke(ctx, "/babylon.checkpointing.v1.Msg/AddBlsSig", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bls.v1.Msg/AddBlsSig", in, out, opts...) if err != nil { return nil, err } @@ -265,7 +267,7 @@ func (c *msgClient) AddBlsSig(ctx context.Context, in *MsgAddBlsSig, opts ...grp func (c *msgClient) WrappedCreateValidator(ctx context.Context, in *MsgWrappedCreateValidator, opts ...grpc.CallOption) (*MsgWrappedCreateValidatorResponse, error) { out := new(MsgWrappedCreateValidatorResponse) - err := c.cc.Invoke(ctx, "/babylon.checkpointing.v1.Msg/WrappedCreateValidator", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.bls.v1.Msg/WrappedCreateValidator", in, out, opts...) if err != nil { return nil, err } @@ -305,7 +307,7 @@ func _Msg_AddBlsSig_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.checkpointing.v1.Msg/AddBlsSig", + FullMethod: "/cosmos.bls.v1.Msg/AddBlsSig", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AddBlsSig(ctx, req.(*MsgAddBlsSig)) @@ -323,7 +325,7 @@ func _Msg_WrappedCreateValidator_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.checkpointing.v1.Msg/WrappedCreateValidator", + FullMethod: "/cosmos.bls.v1.Msg/WrappedCreateValidator", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).WrappedCreateValidator(ctx, req.(*MsgWrappedCreateValidator)) @@ -332,7 +334,7 @@ func _Msg_WrappedCreateValidator_Handler(srv interface{}, ctx context.Context, d } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "babylon.checkpointing.v1.Msg", + ServiceName: "cosmos.bls.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -345,7 +347,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "babylon/checkpointing/v1/tx.proto", + Metadata: "cosmos/bls/v1/tx.proto", } func (m *MsgAddBlsSig) Marshal() (dAtA []byte, err error) { diff --git a/x/epoching/testepoching/helper.go b/x/epoching/testepoching/helper.go index 91f2675219f..78a6be529f9 100644 --- a/x/epoching/testepoching/helper.go +++ b/x/epoching/testepoching/helper.go @@ -4,7 +4,7 @@ package testepoching // "math/rand" // "testing" // -// "github.com/cosmos/cosmos-sdk/crypto/bls12381" +// "github.com/cosmos/cosmos-sdk/crypto/keys/bls12381" // "github.com/cosmos/cosmos-sdk/x/epoching/testepoching/datagen" // // "cosmossdk.io/math" diff --git a/x/epoching/types/epoching.pb.go b/x/epoching/types/epoching.pb.go index ffa316a795f..f43c3340ffb 100644 --- a/x/epoching/types/epoching.pb.go +++ b/x/epoching/types/epoching.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/epoching/v1/epoching.proto +// source: cosmos/epoching/v1/epoching.proto package types @@ -66,7 +66,7 @@ func (x BondState) String() string { } func (BondState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2f2f209d5311f84c, []int{0} + return fileDescriptor_c2f6f4cc4c270a86, []int{0} } // Epoch is a structure that contains the metadata of an epoch @@ -93,7 +93,7 @@ func (m *Epoch) Reset() { *m = Epoch{} } func (m *Epoch) String() string { return proto.CompactTextString(m) } func (*Epoch) ProtoMessage() {} func (*Epoch) Descriptor() ([]byte, []int) { - return fileDescriptor_2f2f209d5311f84c, []int{0} + return fileDescriptor_c2f6f4cc4c270a86, []int{0} } func (m *Epoch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -190,7 +190,7 @@ func (m *QueuedMessage) Reset() { *m = QueuedMessage{} } func (m *QueuedMessage) String() string { return proto.CompactTextString(m) } func (*QueuedMessage) ProtoMessage() {} func (*QueuedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_2f2f209d5311f84c, []int{1} + return fileDescriptor_c2f6f4cc4c270a86, []int{1} } func (m *QueuedMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -327,7 +327,7 @@ func (m *QueuedMessageList) Reset() { *m = QueuedMessageList{} } func (m *QueuedMessageList) String() string { return proto.CompactTextString(m) } func (*QueuedMessageList) ProtoMessage() {} func (*QueuedMessageList) Descriptor() ([]byte, []int) { - return fileDescriptor_2f2f209d5311f84c, []int{2} + return fileDescriptor_c2f6f4cc4c270a86, []int{2} } func (m *QueuedMessageList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -372,7 +372,7 @@ func (m *QueuedMessageList) GetMsgs() []*QueuedMessage { // ValStateUpdate is a messages that records a state update of a validator type ValStateUpdate struct { - State BondState `protobuf:"varint,1,opt,name=state,proto3,enum=babylon.epoching.v1.BondState" json:"state,omitempty"` + State BondState `protobuf:"varint,1,opt,name=state,proto3,enum=cosmos.epoching.v1.BondState" json:"state,omitempty"` BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` BlockTime *time.Time `protobuf:"bytes,3,opt,name=block_time,json=blockTime,proto3,stdtime" json:"block_time,omitempty"` } @@ -381,7 +381,7 @@ func (m *ValStateUpdate) Reset() { *m = ValStateUpdate{} } func (m *ValStateUpdate) String() string { return proto.CompactTextString(m) } func (*ValStateUpdate) ProtoMessage() {} func (*ValStateUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_2f2f209d5311f84c, []int{3} + return fileDescriptor_c2f6f4cc4c270a86, []int{3} } func (m *ValStateUpdate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -442,7 +442,7 @@ func (m *ValidatorLifecycle) Reset() { *m = ValidatorLifecycle{} } func (m *ValidatorLifecycle) String() string { return proto.CompactTextString(m) } func (*ValidatorLifecycle) ProtoMessage() {} func (*ValidatorLifecycle) Descriptor() ([]byte, []int) { - return fileDescriptor_2f2f209d5311f84c, []int{4} + return fileDescriptor_c2f6f4cc4c270a86, []int{4} } func (m *ValidatorLifecycle) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -488,7 +488,7 @@ func (m *ValidatorLifecycle) GetValLife() []*ValStateUpdate { // DelegationStateUpdate is the message that records a state update of a // delegation type DelegationStateUpdate struct { - State BondState `protobuf:"varint,1,opt,name=state,proto3,enum=babylon.epoching.v1.BondState" json:"state,omitempty"` + State BondState `protobuf:"varint,1,opt,name=state,proto3,enum=cosmos.epoching.v1.BondState" json:"state,omitempty"` ValAddr string `protobuf:"bytes,2,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"` BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` BlockTime *time.Time `protobuf:"bytes,4,opt,name=block_time,json=blockTime,proto3,stdtime" json:"block_time,omitempty"` @@ -498,7 +498,7 @@ func (m *DelegationStateUpdate) Reset() { *m = DelegationStateUpdate{} } func (m *DelegationStateUpdate) String() string { return proto.CompactTextString(m) } func (*DelegationStateUpdate) ProtoMessage() {} func (*DelegationStateUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_2f2f209d5311f84c, []int{5} + return fileDescriptor_c2f6f4cc4c270a86, []int{5} } func (m *DelegationStateUpdate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -566,7 +566,7 @@ func (m *DelegationLifecycle) Reset() { *m = DelegationLifecycle{} } func (m *DelegationLifecycle) String() string { return proto.CompactTextString(m) } func (*DelegationLifecycle) ProtoMessage() {} func (*DelegationLifecycle) Descriptor() ([]byte, []int) { - return fileDescriptor_2f2f209d5311f84c, []int{6} + return fileDescriptor_c2f6f4cc4c270a86, []int{6} } func (m *DelegationLifecycle) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -621,7 +621,7 @@ func (m *Validator) Reset() { *m = Validator{} } func (m *Validator) String() string { return proto.CompactTextString(m) } func (*Validator) ProtoMessage() {} func (*Validator) Descriptor() ([]byte, []int) { - return fileDescriptor_2f2f209d5311f84c, []int{7} + return fileDescriptor_c2f6f4cc4c270a86, []int{7} } func (m *Validator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -665,77 +665,75 @@ func (m *Validator) GetPower() int64 { } func init() { - proto.RegisterEnum("babylon.epoching.v1.BondState", BondState_name, BondState_value) - proto.RegisterType((*Epoch)(nil), "babylon.epoching.v1.Epoch") - proto.RegisterType((*QueuedMessage)(nil), "babylon.epoching.v1.QueuedMessage") - proto.RegisterType((*QueuedMessageList)(nil), "babylon.epoching.v1.QueuedMessageList") - proto.RegisterType((*ValStateUpdate)(nil), "babylon.epoching.v1.ValStateUpdate") - proto.RegisterType((*ValidatorLifecycle)(nil), "babylon.epoching.v1.ValidatorLifecycle") - proto.RegisterType((*DelegationStateUpdate)(nil), "babylon.epoching.v1.DelegationStateUpdate") - proto.RegisterType((*DelegationLifecycle)(nil), "babylon.epoching.v1.DelegationLifecycle") - proto.RegisterType((*Validator)(nil), "babylon.epoching.v1.Validator") -} - -func init() { - proto.RegisterFile("babylon/epoching/v1/epoching.proto", fileDescriptor_2f2f209d5311f84c) -} - -var fileDescriptor_2f2f209d5311f84c = []byte{ - // 864 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0x8e, 0xf3, 0xd3, 0x36, 0x27, 0x49, 0xc9, 0x4e, 0xbb, 0x28, 0x54, 0x28, 0x2d, 0x5e, 0x21, - 0x55, 0x15, 0xb2, 0x69, 0x59, 0xb8, 0x03, 0xb4, 0xd9, 0x44, 0xa4, 0x68, 0x9b, 0x15, 0x66, 0xdb, - 0x0b, 0x2e, 0xb0, 0xc6, 0xf6, 0xa9, 0x63, 0xad, 0xed, 0xb1, 0x3c, 0x93, 0x6c, 0x7a, 0xc7, 0x23, - 0xec, 0x73, 0xf0, 0x02, 0xbc, 0x02, 0x17, 0x5c, 0xec, 0x25, 0x77, 0xa0, 0xf6, 0x45, 0xd0, 0xcc, - 0x38, 0x7f, 0x6c, 0xb4, 0x05, 0x21, 0x71, 0x13, 0xcd, 0x39, 0xe7, 0x3b, 0xdf, 0x9c, 0xf3, 0xe9, - 0x1b, 0x07, 0x4c, 0x8f, 0x7a, 0x37, 0x31, 0x4b, 0x6d, 0xcc, 0x98, 0x3f, 0x8e, 0xd2, 0xd0, 0x9e, - 0x9e, 0x2e, 0xce, 0x56, 0x96, 0x33, 0xc1, 0xc8, 0x5e, 0x81, 0xb1, 0x16, 0xf9, 0xe9, 0xe9, 0xc1, - 0x61, 0xc8, 0x58, 0x18, 0xa3, 0xad, 0x20, 0xde, 0xe4, 0xda, 0x16, 0x51, 0x82, 0x5c, 0xd0, 0x24, - 0xd3, 0x5d, 0x07, 0xfb, 0x21, 0x0b, 0x99, 0x3a, 0xda, 0xf2, 0x54, 0x64, 0x3f, 0x14, 0x98, 0x06, - 0x98, 0x27, 0x51, 0x2a, 0x6c, 0x71, 0x93, 0x21, 0xd7, 0xbf, 0x45, 0xf5, 0xd0, 0x67, 0x3c, 0x61, - 0xdc, 0xe6, 0x82, 0xbe, 0xd4, 0xb3, 0x78, 0x28, 0xe8, 0xa9, 0x2d, 0x66, 0x1a, 0x60, 0xfe, 0x52, - 0x86, 0xda, 0x40, 0x4e, 0x41, 0x3e, 0x82, 0xa6, 0x1a, 0xc7, 0x4d, 0x27, 0x89, 0x87, 0x79, 0xc7, - 0x38, 0x32, 0x8e, 0xab, 0x4e, 0x43, 0xe5, 0x46, 0x2a, 0x45, 0x1e, 0xc3, 0xfb, 0xfe, 0x24, 0xcf, - 0x31, 0x15, 0xae, 0x86, 0x46, 0xa9, 0xc0, 0x7c, 0x4a, 0xe3, 0x4e, 0x59, 0x81, 0xf7, 0x8b, 0xaa, - 0x22, 0x3c, 0x2f, 0x6a, 0xe4, 0x13, 0x20, 0xd7, 0x51, 0xce, 0x85, 0xeb, 0xc5, 0xcc, 0x7f, 0xe9, - 0x8e, 0x31, 0x0a, 0xc7, 0xa2, 0x53, 0x51, 0x1d, 0x6d, 0x55, 0xe9, 0xc9, 0xc2, 0x50, 0xe5, 0x49, - 0x1f, 0x1e, 0xc4, 0x74, 0x05, 0x4c, 0x03, 0xcc, 0x3b, 0xd5, 0x23, 0xe3, 0xb8, 0x71, 0xd6, 0xb1, - 0x96, 0xbb, 0x5a, 0x7a, 0xcb, 0xa1, 0xaa, 0x3b, 0xef, 0xc9, 0x96, 0x82, 0x45, 0x26, 0x88, 0x09, - 0x2d, 0x9a, 0x65, 0xee, 0x98, 0xf2, 0xb1, 0x9b, 0x33, 0x26, 0x3a, 0xb5, 0x23, 0xe3, 0xb8, 0xe9, - 0x34, 0x68, 0x96, 0x0d, 0x29, 0x1f, 0x3b, 0x8c, 0x09, 0xf2, 0x25, 0xb4, 0x38, 0xd2, 0x18, 0xf3, - 0xf9, 0x2d, 0x5b, 0xf7, 0xdc, 0xd2, 0xd4, 0x70, 0x1d, 0x99, 0x3f, 0x55, 0xa1, 0xf5, 0xdd, 0x04, - 0x27, 0x18, 0x5c, 0x20, 0xe7, 0x34, 0x44, 0xb2, 0x07, 0x35, 0x31, 0x73, 0xa3, 0x40, 0x49, 0xd7, - 0x74, 0xaa, 0x62, 0x76, 0x1e, 0x90, 0x87, 0xb0, 0x95, 0xf0, 0x50, 0x66, 0xcb, 0x2a, 0x5b, 0x4b, - 0x78, 0x78, 0x1e, 0x48, 0xb5, 0x37, 0xc8, 0xd1, 0xf0, 0x56, 0x94, 0xf8, 0x1a, 0x40, 0x43, 0xa4, - 0x11, 0x0a, 0x09, 0x0e, 0x2c, 0xed, 0x12, 0x6b, 0xee, 0x12, 0xeb, 0xc5, 0xdc, 0x25, 0xbd, 0xea, - 0xeb, 0x3f, 0x0e, 0x0d, 0xa7, 0xae, 0x7a, 0x64, 0x96, 0xfc, 0x08, 0xfb, 0xf2, 0x6a, 0x3f, 0x47, - 0x2a, 0xd0, 0x9d, 0xd2, 0x38, 0x0a, 0xa8, 0x60, 0xb9, 0xd2, 0xa2, 0x71, 0x76, 0x62, 0x69, 0x6f, - 0x58, 0x85, 0x37, 0xac, 0xc2, 0x1b, 0xd6, 0x05, 0x0f, 0x9f, 0xaa, 0x96, 0xab, 0x79, 0xc7, 0xb0, - 0xe4, 0x90, 0xe4, 0xad, 0x2c, 0x19, 0x42, 0x53, 0xf2, 0x07, 0x18, 0x63, 0x48, 0x05, 0x16, 0xfa, - 0x3d, 0x7a, 0x07, 0x6f, 0xbf, 0x80, 0x0e, 0x4b, 0x4e, 0x23, 0x59, 0x86, 0x64, 0x04, 0xbb, 0x92, - 0x69, 0x92, 0x2e, 0xb8, 0xb6, 0x15, 0xd7, 0xc7, 0xef, 0xe0, 0xba, 0x5c, 0x80, 0x87, 0x25, 0xa7, - 0x95, 0xac, 0x26, 0xe6, 0x9b, 0x7b, 0x18, 0x46, 0xa9, 0x9b, 0xe3, 0x82, 0x75, 0xe7, 0xde, 0xcd, - 0x7b, 0xb2, 0xc5, 0xc1, 0x15, 0x6a, 0xb9, 0xf9, 0xdf, 0xb2, 0xbd, 0x1a, 0x54, 0x12, 0x1e, 0x9a, - 0x29, 0x3c, 0x58, 0x73, 0xc0, 0xb3, 0x88, 0x8b, 0x7f, 0xf2, 0x8e, 0xbe, 0x80, 0x6a, 0xc2, 0x43, - 0xde, 0x29, 0x1f, 0x55, 0x8e, 0x1b, 0x67, 0xa6, 0xb5, 0xe1, 0x73, 0x60, 0xad, 0x11, 0x3b, 0x0a, - 0x6f, 0xfe, 0x6c, 0xc0, 0xee, 0x15, 0x8d, 0xbf, 0x17, 0x54, 0xe0, 0x65, 0x16, 0xc8, 0x4d, 0x1f, - 0x43, 0x8d, 0xcb, 0x50, 0x5d, 0xb3, 0x7b, 0xd6, 0xdd, 0xc8, 0xd5, 0x63, 0x69, 0xa0, 0x9a, 0x1c, - 0x0d, 0x7e, 0xcb, 0x7d, 0xe5, 0xfb, 0xdc, 0x57, 0xf9, 0xd7, 0xee, 0x33, 0x19, 0x90, 0x85, 0x55, - 0x9e, 0x45, 0xd7, 0xe8, 0xdf, 0xf8, 0x31, 0x92, 0x0f, 0x60, 0x67, 0x4a, 0x63, 0x97, 0x06, 0x81, - 0x56, 0xa6, 0xee, 0x6c, 0x4f, 0x69, 0xfc, 0x24, 0x08, 0x72, 0xf2, 0x95, 0x2e, 0xc5, 0xd1, 0x35, - 0x16, 0xca, 0x3c, 0xda, 0xb8, 0xcd, 0xba, 0x02, 0xaa, 0x5f, 0xf2, 0x9b, 0xbf, 0x19, 0xf0, 0xb0, - 0x70, 0x54, 0xc4, 0xd2, 0xff, 0x2e, 0xd2, 0xea, 0xa8, 0xe5, 0xf5, 0x51, 0xff, 0x87, 0xd7, 0x6b, - 0xbe, 0x82, 0xbd, 0xe5, 0x36, 0x6b, 0x02, 0x06, 0xb8, 0x2e, 0x60, 0x80, 0x7a, 0xaa, 0x81, 0x2e, - 0xad, 0x08, 0x78, 0xb2, 0x71, 0xd3, 0x8d, 0x22, 0x29, 0x1a, 0xa5, 0xe3, 0xe7, 0x50, 0x5f, 0xbe, - 0x71, 0x02, 0xd5, 0xc5, 0x55, 0x4d, 0x47, 0x9d, 0xc9, 0x3e, 0xd4, 0x32, 0xf6, 0x0a, 0xb5, 0x2a, - 0x15, 0x47, 0x07, 0x27, 0x23, 0xa8, 0x2f, 0x24, 0x24, 0x0d, 0xd8, 0x7e, 0xea, 0x0c, 0x9e, 0xbc, - 0x18, 0xf4, 0xdb, 0x25, 0x02, 0xb0, 0xd5, 0x7b, 0x3e, 0xea, 0x0f, 0xfa, 0x6d, 0x83, 0xb4, 0xa0, - 0x7e, 0x39, 0x92, 0xd1, 0xf9, 0xe8, 0x9b, 0x76, 0x99, 0x34, 0x61, 0x47, 0x87, 0x83, 0x7e, 0xbb, - 0x22, 0xbb, 0x9c, 0xc1, 0xc5, 0xf3, 0xab, 0x41, 0xbf, 0x5d, 0xed, 0x7d, 0xfb, 0xeb, 0x6d, 0xd7, - 0x78, 0x73, 0xdb, 0x35, 0xfe, 0xbc, 0xed, 0x1a, 0xaf, 0xef, 0xba, 0xa5, 0x37, 0x77, 0xdd, 0xd2, - 0xef, 0x77, 0xdd, 0xd2, 0x0f, 0x9f, 0x86, 0x91, 0x18, 0x4f, 0x3c, 0xcb, 0x67, 0x89, 0x5d, 0xec, - 0xe7, 0x8f, 0x69, 0x94, 0xce, 0x03, 0x7b, 0xb6, 0xfc, 0xf3, 0x55, 0x1f, 0x70, 0x6f, 0x4b, 0x09, - 0xfe, 0xd9, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xf0, 0x87, 0xbf, 0x9d, 0x07, 0x00, 0x00, + proto.RegisterEnum("cosmos.epoching.v1.BondState", BondState_name, BondState_value) + proto.RegisterType((*Epoch)(nil), "cosmos.epoching.v1.Epoch") + proto.RegisterType((*QueuedMessage)(nil), "cosmos.epoching.v1.QueuedMessage") + proto.RegisterType((*QueuedMessageList)(nil), "cosmos.epoching.v1.QueuedMessageList") + proto.RegisterType((*ValStateUpdate)(nil), "cosmos.epoching.v1.ValStateUpdate") + proto.RegisterType((*ValidatorLifecycle)(nil), "cosmos.epoching.v1.ValidatorLifecycle") + proto.RegisterType((*DelegationStateUpdate)(nil), "cosmos.epoching.v1.DelegationStateUpdate") + proto.RegisterType((*DelegationLifecycle)(nil), "cosmos.epoching.v1.DelegationLifecycle") + proto.RegisterType((*Validator)(nil), "cosmos.epoching.v1.Validator") +} + +func init() { proto.RegisterFile("cosmos/epoching/v1/epoching.proto", fileDescriptor_c2f6f4cc4c270a86) } + +var fileDescriptor_c2f6f4cc4c270a86 = []byte{ + // 859 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x16, 0xf5, 0x63, 0x5b, 0x23, 0xc9, 0x55, 0x36, 0x4e, 0xa1, 0x1a, 0xad, 0x6c, 0xb3, 0x28, + 0xe0, 0x06, 0x0d, 0x09, 0x3b, 0xcd, 0x31, 0x28, 0xa2, 0x48, 0x88, 0x0c, 0xc4, 0x0a, 0xca, 0xc6, + 0x3e, 0xf4, 0x50, 0x62, 0xa5, 0x1d, 0x53, 0x84, 0x49, 0x2e, 0xc1, 0x5d, 0xa9, 0xce, 0xad, 0x8f, + 0x90, 0xd7, 0xe8, 0x13, 0xf4, 0x15, 0x0a, 0xf4, 0x92, 0x63, 0x6f, 0x2d, 0xec, 0x17, 0x29, 0x76, + 0x97, 0xfa, 0xab, 0x05, 0xbb, 0x45, 0x81, 0x5e, 0xa4, 0x9d, 0x99, 0x6f, 0xbe, 0x9d, 0xf9, 0xf0, + 0x91, 0x84, 0x83, 0x11, 0x17, 0x31, 0x17, 0x2e, 0xa6, 0x7c, 0x34, 0x0e, 0x93, 0xc0, 0x9d, 0x1e, + 0xcd, 0xcf, 0x4e, 0x9a, 0x71, 0xc9, 0x09, 0x31, 0x10, 0x67, 0x9e, 0x9e, 0x1e, 0xed, 0xee, 0x05, + 0x9c, 0x07, 0x11, 0xba, 0x1a, 0x31, 0x9c, 0x5c, 0xb8, 0x32, 0x8c, 0x51, 0x48, 0x1a, 0xa7, 0xa6, + 0x69, 0x77, 0x27, 0xe0, 0x01, 0xd7, 0x47, 0x57, 0x9d, 0xf2, 0xec, 0xa7, 0x12, 0x13, 0x86, 0x59, + 0x1c, 0x26, 0xd2, 0x95, 0xef, 0x52, 0x14, 0xe6, 0x37, 0xaf, 0xee, 0xe5, 0xb3, 0x08, 0x49, 0x2f, + 0xcd, 0x28, 0x43, 0x94, 0xf4, 0xc8, 0x95, 0x57, 0x06, 0x60, 0xff, 0x52, 0x84, 0x4a, 0x4f, 0x4d, + 0x41, 0x0e, 0xa0, 0xae, 0xc7, 0xf1, 0x93, 0x49, 0x3c, 0xc4, 0xac, 0x65, 0xed, 0x5b, 0x87, 0x65, + 0xaf, 0xa6, 0x73, 0x03, 0x9d, 0x22, 0x5f, 0xc3, 0xc7, 0xa3, 0x49, 0x96, 0x61, 0x22, 0x7d, 0x03, + 0x0d, 0x13, 0x89, 0xd9, 0x94, 0x46, 0xad, 0xa2, 0x06, 0xef, 0xe4, 0x55, 0x4d, 0x78, 0x92, 0xd7, + 0xc8, 0x57, 0x40, 0x2e, 0xc2, 0x4c, 0x48, 0x7f, 0x18, 0xf1, 0xd1, 0xa5, 0x3f, 0xc6, 0x30, 0x18, + 0xcb, 0x56, 0x49, 0x77, 0x34, 0x75, 0xa5, 0xa3, 0x0a, 0x7d, 0x9d, 0x27, 0x5d, 0x78, 0x10, 0xd1, + 0x25, 0x30, 0x65, 0x98, 0xb5, 0xca, 0xfb, 0xd6, 0x61, 0xed, 0xb8, 0xe5, 0x2c, 0x76, 0x75, 0xcc, + 0x96, 0x7d, 0x5d, 0xf7, 0x3e, 0x52, 0x2d, 0x39, 0x8b, 0x4a, 0x10, 0x1b, 0x1a, 0x34, 0x4d, 0xfd, + 0x31, 0x15, 0x63, 0x3f, 0xe3, 0x5c, 0xb6, 0x2a, 0xfb, 0xd6, 0x61, 0xdd, 0xab, 0xd1, 0x34, 0xed, + 0x53, 0x31, 0xf6, 0x38, 0x97, 0xe4, 0x39, 0x34, 0x04, 0xd2, 0x08, 0xb3, 0xd9, 0x2d, 0x1b, 0xf7, + 0xdc, 0x52, 0x37, 0x70, 0x13, 0xd9, 0x3f, 0x95, 0xa1, 0xf1, 0xed, 0x04, 0x27, 0xc8, 0x4e, 0x51, + 0x08, 0x1a, 0x20, 0x79, 0x08, 0x15, 0x79, 0xe5, 0x87, 0x4c, 0x4b, 0x57, 0xf7, 0xca, 0xf2, 0xea, + 0x84, 0x91, 0x47, 0xb0, 0x11, 0x8b, 0x40, 0x65, 0x8b, 0x3a, 0x5b, 0x89, 0x45, 0x70, 0xc2, 0x94, + 0xda, 0x6b, 0xe4, 0xa8, 0x0d, 0x97, 0x94, 0xf8, 0x06, 0xc0, 0x40, 0x94, 0x11, 0x72, 0x09, 0x76, + 0x1d, 0xe3, 0x12, 0x67, 0xe6, 0x12, 0xe7, 0xed, 0xcc, 0x25, 0x9d, 0xf2, 0xfb, 0x3f, 0xf6, 0x2c, + 0xaf, 0xaa, 0x7b, 0x54, 0x96, 0xfc, 0x00, 0x3b, 0xea, 0xea, 0x51, 0x86, 0x54, 0xa2, 0x3f, 0xa5, + 0x51, 0xc8, 0xa8, 0xe4, 0x99, 0xd6, 0xa2, 0x76, 0xfc, 0xd8, 0xc9, 0x4d, 0x98, 0x7b, 0xc3, 0xc9, + 0xbd, 0xe1, 0x9c, 0x8a, 0xe0, 0xa5, 0x6e, 0x39, 0x9f, 0x75, 0xf4, 0x0b, 0x1e, 0x89, 0x6f, 0x65, + 0x49, 0x1f, 0xea, 0x8a, 0x9f, 0x61, 0x84, 0x01, 0x95, 0x98, 0xeb, 0xf7, 0xf9, 0x1d, 0xbc, 0xdd, + 0x1c, 0xda, 0x2f, 0x78, 0xb5, 0x78, 0x11, 0x92, 0x01, 0x6c, 0x2b, 0xa6, 0x49, 0x32, 0xe7, 0xda, + 0xd4, 0x5c, 0x5f, 0xdc, 0xc1, 0x75, 0x36, 0x07, 0xf7, 0x0b, 0x5e, 0x23, 0x5e, 0x4e, 0xcc, 0x36, + 0x1f, 0x62, 0x10, 0x26, 0x7e, 0x86, 0x73, 0xd6, 0xad, 0x7b, 0x37, 0xef, 0xa8, 0x16, 0x0f, 0x97, + 0xa8, 0xd5, 0xe6, 0x7f, 0xcb, 0x76, 0x2a, 0x50, 0x8a, 0x45, 0x60, 0xc7, 0xf0, 0x60, 0xc5, 0x01, + 0xaf, 0x43, 0x21, 0xff, 0xc9, 0x73, 0xf4, 0x0c, 0xca, 0xb1, 0x08, 0x44, 0xab, 0xb8, 0x5f, 0x3a, + 0xac, 0x1d, 0x1f, 0x38, 0xb7, 0xdf, 0x06, 0xce, 0x0a, 0xaf, 0xa7, 0xe1, 0xf6, 0xcf, 0x16, 0x6c, + 0x9f, 0xd3, 0xe8, 0x3b, 0x49, 0x25, 0x9e, 0xa5, 0x4c, 0x2d, 0xfa, 0x14, 0x2a, 0x42, 0x85, 0xfa, + 0x96, 0xed, 0xe3, 0xcf, 0xd6, 0x51, 0x75, 0x78, 0xc2, 0x74, 0x8f, 0x67, 0xb0, 0xb7, 0xbc, 0x57, + 0xbc, 0xcf, 0x7b, 0xa5, 0x7f, 0xed, 0x3d, 0x3b, 0x01, 0x32, 0x37, 0xca, 0xeb, 0xf0, 0x02, 0x47, + 0xef, 0x46, 0x11, 0x92, 0x4f, 0x60, 0x6b, 0x4a, 0x23, 0x9f, 0x32, 0x66, 0x74, 0xa9, 0x7a, 0x9b, + 0x53, 0x1a, 0xbd, 0x60, 0x2c, 0x23, 0xcf, 0x4d, 0x29, 0x0a, 0x2f, 0x30, 0xd7, 0xc5, 0x5e, 0xb7, + 0xcc, 0xea, 0xfe, 0xba, 0x5d, 0xd1, 0xdb, 0xbf, 0x59, 0xf0, 0x28, 0xb7, 0x53, 0xc8, 0x93, 0xff, + 0x2c, 0xd1, 0xf2, 0xa0, 0xc5, 0xd5, 0x41, 0xff, 0x87, 0x27, 0xd7, 0x9e, 0xc2, 0xc3, 0xc5, 0x32, + 0x2b, 0xf2, 0x31, 0x5c, 0x95, 0x8f, 0xa1, 0x99, 0xaa, 0x6b, 0x4a, 0x4b, 0xf2, 0x7d, 0xb9, 0x6e, + 0xd1, 0xb5, 0x12, 0x69, 0x16, 0xad, 0xe2, 0x33, 0xa8, 0x2e, 0x1e, 0x6f, 0x02, 0xe5, 0xf9, 0x4d, + 0x75, 0x4f, 0x9f, 0xc9, 0x0e, 0x54, 0x52, 0xfe, 0x23, 0x1a, 0x51, 0x4a, 0x9e, 0x09, 0x1e, 0x0f, + 0xa0, 0x3a, 0x57, 0x90, 0xd4, 0x60, 0xf3, 0xa5, 0xd7, 0x7b, 0xf1, 0xb6, 0xd7, 0x6d, 0x16, 0x08, + 0xc0, 0x46, 0xe7, 0xcd, 0xa0, 0xdb, 0xeb, 0x36, 0x2d, 0xd2, 0x80, 0xea, 0xd9, 0x40, 0x45, 0x27, + 0x83, 0x57, 0xcd, 0x22, 0xa9, 0xc3, 0x96, 0x09, 0x7b, 0xdd, 0x66, 0x49, 0x75, 0x79, 0xbd, 0xd3, + 0x37, 0xe7, 0xbd, 0x6e, 0xb3, 0xdc, 0x79, 0xf5, 0xeb, 0x75, 0xdb, 0xfa, 0x70, 0xdd, 0xb6, 0xfe, + 0xbc, 0x6e, 0x5b, 0xef, 0x6f, 0xda, 0x85, 0x0f, 0x37, 0xed, 0xc2, 0xef, 0x37, 0xed, 0xc2, 0xf7, + 0x4f, 0x82, 0x50, 0x8e, 0x27, 0x43, 0x67, 0xc4, 0x63, 0x37, 0xff, 0xb4, 0x99, 0xbf, 0x27, 0x82, + 0x5d, 0xba, 0x57, 0x8b, 0x6f, 0xae, 0x7e, 0x71, 0x0f, 0x37, 0xb4, 0xd8, 0x4f, 0xff, 0x0a, 0x00, + 0x00, 0xff, 0xff, 0x25, 0xd9, 0xd6, 0x92, 0x93, 0x07, 0x00, 0x00, } func (m *Epoch) Marshal() (dAtA []byte, err error) { diff --git a/x/epoching/types/events.pb.go b/x/epoching/types/events.pb.go index 5037813b2b6..bcd10be0a96 100644 --- a/x/epoching/types/events.pb.go +++ b/x/epoching/types/events.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/epoching/v1/events.proto +// source: cosmos/epoching/v1/events.proto package types @@ -33,7 +33,7 @@ func (m *EventBeginEpoch) Reset() { *m = EventBeginEpoch{} } func (m *EventBeginEpoch) String() string { return proto.CompactTextString(m) } func (*EventBeginEpoch) ProtoMessage() {} func (*EventBeginEpoch) Descriptor() ([]byte, []int) { - return fileDescriptor_2f0a2c43c7aaeb43, []int{0} + return fileDescriptor_a193af644b535561, []int{0} } func (m *EventBeginEpoch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,7 +78,7 @@ func (m *EventEndEpoch) Reset() { *m = EventEndEpoch{} } func (m *EventEndEpoch) String() string { return proto.CompactTextString(m) } func (*EventEndEpoch) ProtoMessage() {} func (*EventEndEpoch) Descriptor() ([]byte, []int) { - return fileDescriptor_2f0a2c43c7aaeb43, []int{1} + return fileDescriptor_a193af644b535561, []int{1} } func (m *EventEndEpoch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -130,7 +130,7 @@ func (m *EventHandleQueuedMsg) Reset() { *m = EventHandleQueuedMsg{} } func (m *EventHandleQueuedMsg) String() string { return proto.CompactTextString(m) } func (*EventHandleQueuedMsg) ProtoMessage() {} func (*EventHandleQueuedMsg) Descriptor() ([]byte, []int) { - return fileDescriptor_2f0a2c43c7aaeb43, []int{2} + return fileDescriptor_a193af644b535561, []int{2} } func (m *EventHandleQueuedMsg) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -213,7 +213,7 @@ func (m *EventSlashThreshold) Reset() { *m = EventSlashThreshold{} } func (m *EventSlashThreshold) String() string { return proto.CompactTextString(m) } func (*EventSlashThreshold) ProtoMessage() {} func (*EventSlashThreshold) Descriptor() ([]byte, []int) { - return fileDescriptor_2f0a2c43c7aaeb43, []int{3} + return fileDescriptor_a193af644b535561, []int{3} } func (m *EventSlashThreshold) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -277,7 +277,7 @@ func (m *EventWrappedDelegate) Reset() { *m = EventWrappedDelegate{} } func (m *EventWrappedDelegate) String() string { return proto.CompactTextString(m) } func (*EventWrappedDelegate) ProtoMessage() {} func (*EventWrappedDelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_2f0a2c43c7aaeb43, []int{4} + return fileDescriptor_a193af644b535561, []int{4} } func (m *EventWrappedDelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -355,7 +355,7 @@ func (m *EventWrappedUndelegate) Reset() { *m = EventWrappedUndelegate{} func (m *EventWrappedUndelegate) String() string { return proto.CompactTextString(m) } func (*EventWrappedUndelegate) ProtoMessage() {} func (*EventWrappedUndelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_2f0a2c43c7aaeb43, []int{5} + return fileDescriptor_a193af644b535561, []int{5} } func (m *EventWrappedUndelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -434,7 +434,7 @@ func (m *EventWrappedBeginRedelegate) Reset() { *m = EventWrappedBeginRe func (m *EventWrappedBeginRedelegate) String() string { return proto.CompactTextString(m) } func (*EventWrappedBeginRedelegate) ProtoMessage() {} func (*EventWrappedBeginRedelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_2f0a2c43c7aaeb43, []int{6} + return fileDescriptor_a193af644b535561, []int{6} } func (m *EventWrappedBeginRedelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -506,58 +506,59 @@ func (m *EventWrappedBeginRedelegate) GetEpochBoundary() uint64 { } func init() { - proto.RegisterType((*EventBeginEpoch)(nil), "babylon.epoching.v1.EventBeginEpoch") - proto.RegisterType((*EventEndEpoch)(nil), "babylon.epoching.v1.EventEndEpoch") - proto.RegisterType((*EventHandleQueuedMsg)(nil), "babylon.epoching.v1.EventHandleQueuedMsg") - proto.RegisterType((*EventSlashThreshold)(nil), "babylon.epoching.v1.EventSlashThreshold") - proto.RegisterType((*EventWrappedDelegate)(nil), "babylon.epoching.v1.EventWrappedDelegate") - proto.RegisterType((*EventWrappedUndelegate)(nil), "babylon.epoching.v1.EventWrappedUndelegate") - proto.RegisterType((*EventWrappedBeginRedelegate)(nil), "babylon.epoching.v1.EventWrappedBeginRedelegate") -} - -func init() { proto.RegisterFile("babylon/epoching/v1/events.proto", fileDescriptor_2f0a2c43c7aaeb43) } - -var fileDescriptor_2f0a2c43c7aaeb43 = []byte{ - // 624 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0xdd, 0x6a, 0xd4, 0x4e, - 0x14, 0x6f, 0xf6, 0xeb, 0x4f, 0xe7, 0xdf, 0x6a, 0x3b, 0xbb, 0x2e, 0xc1, 0xe2, 0xba, 0x2e, 0x08, - 0x05, 0x75, 0xd3, 0xaa, 0x88, 0x78, 0xd7, 0xc5, 0x82, 0x15, 0x14, 0x8d, 0xb5, 0x82, 0x37, 0x61, - 0xb2, 0x73, 0x4c, 0x06, 0x93, 0x99, 0x30, 0x33, 0x59, 0xbb, 0x6f, 0xe1, 0x0b, 0x78, 0xe7, 0x03, - 0xf8, 0x12, 0xa2, 0x97, 0xbd, 0x14, 0x2f, 0x44, 0xda, 0x17, 0x91, 0x4c, 0x3e, 0x1a, 0x6d, 0x2b, - 0xe2, 0x9d, 0x77, 0x33, 0xbf, 0x8f, 0x33, 0xf9, 0x9d, 0x93, 0x19, 0x34, 0xf4, 0x89, 0x3f, 0x8f, - 0x04, 0x77, 0x20, 0x11, 0xd3, 0x90, 0xf1, 0xc0, 0x99, 0x6d, 0x3a, 0x30, 0x03, 0xae, 0xd5, 0x38, - 0x91, 0x42, 0x0b, 0xdc, 0x2d, 0x14, 0xe3, 0x52, 0x31, 0x9e, 0x6d, 0x5e, 0xec, 0x05, 0x22, 0x10, - 0x86, 0x77, 0xb2, 0x55, 0x2e, 0x1d, 0xdd, 0x46, 0xe7, 0xb7, 0x33, 0xeb, 0x04, 0x02, 0xc6, 0xb7, - 0x33, 0x39, 0xbe, 0x82, 0x96, 0x8c, 0xcf, 0xe3, 0x69, 0xec, 0x83, 0xb4, 0xad, 0xa1, 0xb5, 0xde, - 0x72, 0xff, 0x37, 0xd8, 0x63, 0x03, 0x8d, 0x6e, 0xa2, 0x65, 0xe3, 0xda, 0xe6, 0xf4, 0x8f, 0x3d, - 0x1f, 0x1a, 0xa8, 0x67, 0x4c, 0x0f, 0x08, 0xa7, 0x11, 0x3c, 0x4d, 0x21, 0x05, 0xfa, 0x48, 0x05, - 0x78, 0x8c, 0xba, 0x42, 0xb2, 0x80, 0x71, 0x12, 0x79, 0x26, 0x86, 0xa7, 0xe7, 0x09, 0x98, 0x12, - 0x8b, 0xee, 0x6a, 0x49, 0x19, 0xeb, 0xee, 0x3c, 0x81, 0x13, 0x67, 0x35, 0x4e, 0x9c, 0x85, 0xfb, - 0xa8, 0x13, 0x02, 0x0b, 0x42, 0x6d, 0x37, 0x0d, 0x59, 0xec, 0x70, 0x17, 0xb5, 0xf5, 0xbe, 0xc7, - 0xa8, 0xdd, 0x1a, 0x5a, 0xeb, 0x4b, 0x6e, 0x4b, 0xef, 0xef, 0x50, 0x7c, 0x01, 0x75, 0x62, 0x15, - 0x64, 0x68, 0xdb, 0xa0, 0xed, 0x58, 0x05, 0x3b, 0x14, 0xbf, 0xae, 0x7d, 0x16, 0xd1, 0x5a, 0x32, - 0x3f, 0xd5, 0xa0, 0xec, 0xce, 0xb0, 0xb9, 0xbe, 0x34, 0xb9, 0xf7, 0xf5, 0xdb, 0xe5, 0x3b, 0x01, - 0xd3, 0x61, 0xea, 0x8f, 0xa7, 0x22, 0x76, 0xa6, 0x22, 0x06, 0xed, 0xbf, 0xd2, 0xc7, 0x0b, 0xe2, - 0x4f, 0x99, 0x93, 0x05, 0x51, 0x63, 0xf3, 0xe9, 0x5b, 0x65, 0x09, 0x17, 0x97, 0x65, 0x2b, 0x48, - 0xe1, 0x1e, 0x6a, 0x83, 0x94, 0x42, 0xda, 0xff, 0x99, 0xd4, 0xf9, 0x66, 0xf4, 0xde, 0x42, 0x5d, - 0x63, 0x7e, 0x16, 0x11, 0x15, 0xee, 0x86, 0x12, 0x54, 0x28, 0x22, 0x8a, 0x37, 0x50, 0x4f, 0x65, - 0x08, 0x50, 0x6f, 0x26, 0x34, 0xe3, 0x81, 0x97, 0x88, 0x37, 0x45, 0xd7, 0x9b, 0x2e, 0x2e, 0xb8, - 0x3d, 0x43, 0x3d, 0xc9, 0x18, 0x7c, 0x1d, 0x61, 0x2d, 0x34, 0x89, 0x7e, 0xd6, 0x37, 0x8c, 0x7e, - 0xc5, 0x30, 0x75, 0xf5, 0x0d, 0x84, 0xab, 0xfa, 0x24, 0x62, 0x94, 0x68, 0x21, 0x95, 0xdd, 0xcc, - 0x92, 0xbb, 0xab, 0x65, 0xf5, 0x8a, 0x18, 0x7d, 0xb4, 0x8a, 0xc9, 0xbe, 0x90, 0x24, 0x49, 0x80, - 0xde, 0x87, 0x08, 0x02, 0xa2, 0x01, 0x5f, 0x43, 0xab, 0x34, 0x5f, 0x0b, 0xe9, 0x11, 0x4a, 0x25, - 0x28, 0x55, 0xcc, 0x75, 0xa5, 0x22, 0xb6, 0x72, 0x3c, 0x13, 0x57, 0x87, 0x55, 0xe2, 0x46, 0x2e, - 0xae, 0x88, 0x52, 0xdc, 0x47, 0x1d, 0x12, 0x8b, 0x94, 0x57, 0x03, 0xce, 0x77, 0x59, 0x1f, 0x29, - 0x70, 0x11, 0x9b, 0x01, 0x2f, 0xba, 0xf9, 0x06, 0x5f, 0x45, 0xe7, 0xf2, 0x3f, 0xc6, 0x17, 0x29, - 0xa7, 0x44, 0xce, 0xcd, 0xa4, 0x5b, 0xee, 0xb2, 0x41, 0x27, 0x05, 0x38, 0xfa, 0x64, 0xa1, 0x7e, - 0x3d, 0xc7, 0x73, 0x4e, 0xff, 0xd1, 0x24, 0xef, 0x1a, 0x68, 0xad, 0x9e, 0xc4, 0xdc, 0x6e, 0x17, - 0xfe, 0x2e, 0xce, 0x5d, 0x64, 0x2b, 0x91, 0xca, 0x29, 0x78, 0x67, 0xa5, 0xea, 0xe7, 0xfc, 0xde, - 0xaf, 0xd9, 0x26, 0xe8, 0x12, 0x05, 0xa5, 0x19, 0x27, 0x9a, 0x09, 0x7e, 0x8a, 0xbd, 0x69, 0xec, - 0x6b, 0x35, 0xd1, 0xde, 0xd9, 0xfd, 0x69, 0x9d, 0xde, 0x9f, 0xf6, 0xef, 0xfb, 0xd3, 0x39, 0xa5, - 0x3f, 0x93, 0x87, 0x9f, 0x0f, 0x07, 0xd6, 0xc1, 0xe1, 0xc0, 0xfa, 0x7e, 0x38, 0xb0, 0xde, 0x1e, - 0x0d, 0x16, 0x0e, 0x8e, 0x06, 0x0b, 0x5f, 0x8e, 0x06, 0x0b, 0x2f, 0x37, 0x6a, 0x97, 0xba, 0x78, - 0x45, 0xa7, 0x21, 0x61, 0xbc, 0xdc, 0x38, 0xfb, 0xc7, 0xcf, 0xae, 0xb9, 0xdd, 0x7e, 0xc7, 0x3c, - 0xa4, 0xb7, 0x7e, 0x04, 0x00, 0x00, 0xff, 0xff, 0x77, 0x37, 0xe9, 0x99, 0x97, 0x05, 0x00, 0x00, + proto.RegisterType((*EventBeginEpoch)(nil), "cosmos.epoching.v1.EventBeginEpoch") + proto.RegisterType((*EventEndEpoch)(nil), "cosmos.epoching.v1.EventEndEpoch") + proto.RegisterType((*EventHandleQueuedMsg)(nil), "cosmos.epoching.v1.EventHandleQueuedMsg") + proto.RegisterType((*EventSlashThreshold)(nil), "cosmos.epoching.v1.EventSlashThreshold") + proto.RegisterType((*EventWrappedDelegate)(nil), "cosmos.epoching.v1.EventWrappedDelegate") + proto.RegisterType((*EventWrappedUndelegate)(nil), "cosmos.epoching.v1.EventWrappedUndelegate") + proto.RegisterType((*EventWrappedBeginRedelegate)(nil), "cosmos.epoching.v1.EventWrappedBeginRedelegate") +} + +func init() { proto.RegisterFile("cosmos/epoching/v1/events.proto", fileDescriptor_a193af644b535561) } + +var fileDescriptor_a193af644b535561 = []byte{ + // 625 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0xcd, 0x6e, 0xd4, 0x3a, + 0x14, 0x6e, 0xe6, 0xef, 0xaa, 0xbe, 0xed, 0xbd, 0xad, 0x3b, 0x8c, 0x22, 0x2a, 0xa6, 0x65, 0x24, + 0xa4, 0x4a, 0xd0, 0x09, 0x05, 0x84, 0x10, 0xbb, 0x8e, 0xa8, 0xa0, 0x0b, 0x10, 0x84, 0x52, 0x24, + 0x36, 0x91, 0x33, 0x3e, 0x24, 0x56, 0x13, 0x3b, 0xb2, 0x9d, 0xa1, 0x7d, 0x0b, 0x5e, 0x80, 0x1d, + 0x0f, 0xc0, 0x4b, 0x20, 0x58, 0x76, 0x89, 0x58, 0x20, 0xd4, 0xbe, 0x08, 0xca, 0xc9, 0x4c, 0x3a, + 0xa5, 0x2d, 0x42, 0xec, 0x58, 0x8d, 0xfd, 0xfd, 0x1c, 0xe7, 0x3b, 0x67, 0x6c, 0xb2, 0x32, 0x54, + 0x26, 0x55, 0xc6, 0x83, 0x4c, 0x0d, 0x63, 0x21, 0x23, 0x6f, 0xb4, 0xe1, 0xc1, 0x08, 0xa4, 0x35, + 0xfd, 0x4c, 0x2b, 0xab, 0x28, 0x2d, 0x05, 0xfd, 0x89, 0xa0, 0x3f, 0xda, 0xb8, 0xdc, 0x8e, 0x54, + 0xa4, 0x90, 0xf6, 0x8a, 0x55, 0xa9, 0xec, 0xdd, 0x21, 0xff, 0x6f, 0x15, 0xce, 0x01, 0x44, 0x42, + 0x6e, 0x15, 0x72, 0x7a, 0x95, 0xcc, 0xa1, 0x2f, 0x90, 0x79, 0x1a, 0x82, 0x76, 0x9d, 0x55, 0x67, + 0xad, 0xe1, 0xff, 0x8b, 0xd8, 0x13, 0x84, 0x7a, 0xb7, 0xc8, 0x3c, 0xba, 0xb6, 0x24, 0xff, 0x6d, + 0xcf, 0x87, 0x1a, 0x69, 0xa3, 0xe9, 0x11, 0x93, 0x3c, 0x81, 0x67, 0x39, 0xe4, 0xc0, 0x1f, 0x9b, + 0x88, 0xf6, 0xc9, 0x92, 0xd2, 0x22, 0x12, 0x92, 0x25, 0x01, 0xa6, 0x08, 0xec, 0x41, 0x06, 0x58, + 0x62, 0xd6, 0x5f, 0x9c, 0x50, 0x68, 0xdd, 0x39, 0xc8, 0xe0, 0xcc, 0x59, 0xb5, 0x33, 0x67, 0xd1, + 0x0e, 0x69, 0xc5, 0x20, 0xa2, 0xd8, 0xba, 0x75, 0x24, 0xc7, 0x3b, 0xba, 0x44, 0x9a, 0x76, 0x3f, + 0x10, 0xdc, 0x6d, 0xac, 0x3a, 0x6b, 0x73, 0x7e, 0xc3, 0xee, 0x6f, 0x73, 0x7a, 0x89, 0xb4, 0x52, + 0x13, 0x15, 0x68, 0x13, 0xd1, 0x66, 0x6a, 0xa2, 0x6d, 0x4e, 0xf7, 0xa6, 0x3e, 0x8b, 0x59, 0xab, + 0x45, 0x98, 0x5b, 0x30, 0x6e, 0x6b, 0xb5, 0xbe, 0x36, 0x37, 0xb8, 0xff, 0xf5, 0xdb, 0xca, 0xdd, + 0x48, 0xd8, 0x38, 0x0f, 0xfb, 0x43, 0x95, 0x7a, 0x43, 0x95, 0x82, 0x0d, 0x5f, 0xdb, 0x93, 0x05, + 0x0b, 0x87, 0xc2, 0x2b, 0x82, 0x98, 0x3e, 0x7e, 0xfa, 0xe6, 0xa4, 0x84, 0x4f, 0x27, 0x65, 0x2b, + 0xc8, 0xd0, 0x36, 0x69, 0x82, 0xd6, 0x4a, 0xbb, 0xff, 0x60, 0xea, 0x72, 0xd3, 0x7b, 0xef, 0x90, + 0x25, 0x34, 0x3f, 0x4f, 0x98, 0x89, 0x77, 0x62, 0x0d, 0x26, 0x56, 0x09, 0xa7, 0x37, 0x49, 0xdb, + 0x14, 0x08, 0xf0, 0x60, 0xa4, 0xac, 0x90, 0x51, 0x90, 0xa9, 0x37, 0xe3, 0xae, 0xd7, 0x7d, 0x3a, + 0xe6, 0x76, 0x91, 0x7a, 0x5a, 0x30, 0xf4, 0x06, 0xa1, 0x56, 0x59, 0x96, 0x9c, 0xd6, 0xd7, 0x50, + 0xbf, 0x80, 0xcc, 0xb4, 0x7a, 0x9d, 0xd0, 0xaa, 0x3e, 0x4b, 0x04, 0x67, 0x56, 0x69, 0xe3, 0xd6, + 0x8b, 0xe4, 0xfe, 0xe2, 0xa4, 0x7a, 0x45, 0xf4, 0x3e, 0x3a, 0xe3, 0xc9, 0xbe, 0xd4, 0x2c, 0xcb, + 0x80, 0x3f, 0x80, 0x04, 0x22, 0x66, 0x81, 0x5e, 0x27, 0x8b, 0xbc, 0x5c, 0x2b, 0x1d, 0x30, 0xce, + 0x35, 0x18, 0x33, 0x9e, 0xeb, 0x42, 0x45, 0x6c, 0x96, 0x78, 0x21, 0xae, 0x0e, 0xab, 0xc4, 0xb5, + 0x52, 0x5c, 0x11, 0x13, 0x71, 0x87, 0xb4, 0x58, 0xaa, 0x72, 0x59, 0x0d, 0xb8, 0xdc, 0x15, 0x7d, + 0xe4, 0x20, 0x55, 0x8a, 0x03, 0x9e, 0xf5, 0xcb, 0x0d, 0xbd, 0x46, 0xfe, 0x2b, 0xff, 0x31, 0xa1, + 0xca, 0x25, 0x67, 0xfa, 0x00, 0x27, 0xdd, 0xf0, 0xe7, 0x11, 0x1d, 0x8c, 0xc1, 0xde, 0x27, 0x87, + 0x74, 0xa6, 0x73, 0xbc, 0x90, 0xfc, 0x2f, 0x4d, 0xf2, 0xae, 0x46, 0x96, 0xa7, 0x93, 0xe0, 0xed, + 0xf6, 0xe1, 0xcf, 0xe2, 0xdc, 0x23, 0xae, 0x51, 0xb9, 0x1e, 0x42, 0x70, 0x51, 0xaa, 0x4e, 0xc9, + 0xef, 0xfe, 0x9c, 0x6d, 0x40, 0xae, 0x70, 0x30, 0x56, 0x48, 0x66, 0x85, 0x92, 0xe7, 0xd8, 0xeb, + 0x68, 0x5f, 0x9e, 0x12, 0xed, 0x5e, 0xdc, 0x9f, 0xc6, 0xf9, 0xfd, 0x69, 0xfe, 0xba, 0x3f, 0xad, + 0x73, 0xfa, 0x33, 0x78, 0xf8, 0xf9, 0xa8, 0xeb, 0x1c, 0x1e, 0x75, 0x9d, 0xef, 0x47, 0x5d, 0xe7, + 0xed, 0x71, 0x77, 0xe6, 0xf0, 0xb8, 0x3b, 0xf3, 0xe5, 0xb8, 0x3b, 0xf3, 0x6a, 0xfd, 0xd4, 0xa5, + 0xc6, 0x57, 0xb6, 0xfc, 0x59, 0x37, 0x7c, 0xcf, 0xdb, 0x3f, 0x79, 0x72, 0xf1, 0x6a, 0x87, 0x2d, + 0x7c, 0x45, 0x6f, 0xff, 0x08, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x2b, 0x75, 0x2f, 0x92, 0x05, 0x00, + 0x00, } func (m *EventBeginEpoch) Marshal() (dAtA []byte, err error) { diff --git a/x/epoching/types/genesis.pb.go b/x/epoching/types/genesis.pb.go index 77f300cdf4b..7315f2f3b65 100644 --- a/x/epoching/types/genesis.pb.go +++ b/x/epoching/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/epoching/v1/genesis.proto +// source: cosmos/epoching/v1/genesis.proto package types @@ -32,7 +32,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_2ef836361c424501, []int{0} + return fileDescriptor_380ee9f3887211c3, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -69,26 +69,26 @@ func (m *GenesisState) GetParams() Params { } func init() { - proto.RegisterType((*GenesisState)(nil), "babylon.epoching.v1.GenesisState") + proto.RegisterType((*GenesisState)(nil), "cosmos.epoching.v1.GenesisState") } -func init() { proto.RegisterFile("babylon/epoching/v1/genesis.proto", fileDescriptor_2ef836361c424501) } +func init() { proto.RegisterFile("cosmos/epoching/v1/genesis.proto", fileDescriptor_380ee9f3887211c3) } -var fileDescriptor_2ef836361c424501 = []byte{ - // 200 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0x4a, 0x4c, 0xaa, - 0xcc, 0xc9, 0xcf, 0xd3, 0x4f, 0x2d, 0xc8, 0x4f, 0xce, 0xc8, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0xd4, - 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, - 0x2a, 0xd1, 0x83, 0x29, 0xd1, 0x2b, 0x33, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb, - 0x83, 0x58, 0x10, 0xa5, 0x52, 0x0a, 0xd8, 0x4c, 0x2b, 0x48, 0x2c, 0x4a, 0xcc, 0x85, 0x1a, 0xa6, - 0xe4, 0xc9, 0xc5, 0xe3, 0x0e, 0x31, 0x3d, 0xb8, 0x24, 0xb1, 0x24, 0x55, 0xc8, 0x92, 0x8b, 0x0d, - 0x22, 0x2f, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xad, 0x87, 0xc5, 0x36, 0xbd, 0x00, 0xb0, - 0x12, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0xa0, 0x1a, 0x9c, 0xbc, 0x4e, 0x3c, 0x92, 0x63, - 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, - 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x20, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, - 0x3f, 0x57, 0x1f, 0x6a, 0x5c, 0x72, 0x46, 0x62, 0x66, 0x1e, 0x8c, 0xa3, 0x5f, 0x81, 0x70, 0x60, - 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x75, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xa9, 0x51, 0x6f, 0x4e, 0x0f, 0x01, 0x00, 0x00, +var fileDescriptor_380ee9f3887211c3 = []byte{ + // 198 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xce, 0x2f, 0xce, + 0xcd, 0x2f, 0xd6, 0x4f, 0x2d, 0xc8, 0x4f, 0xce, 0xc8, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0xd4, 0x4f, + 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xa8, + 0xd0, 0x83, 0xa9, 0xd0, 0x2b, 0x33, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xeb, 0x83, + 0x58, 0x10, 0x95, 0x52, 0xf2, 0x58, 0xcc, 0x2a, 0x48, 0x2c, 0x4a, 0xcc, 0x85, 0x1a, 0xa5, 0xe4, + 0xc1, 0xc5, 0xe3, 0x0e, 0x31, 0x3b, 0xb8, 0x24, 0xb1, 0x24, 0x55, 0xc8, 0x82, 0x8b, 0x0d, 0x22, + 0x2f, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa5, 0x87, 0x69, 0x97, 0x5e, 0x00, 0x58, 0x85, + 0x13, 0xcb, 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x50, 0xf5, 0x4e, 0xee, 0x27, 0x1e, 0xc9, 0x31, 0x5e, + 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, + 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x9b, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, + 0xab, 0x0f, 0x75, 0x0f, 0x84, 0xd2, 0x2d, 0x4e, 0xc9, 0xd6, 0xaf, 0x40, 0x38, 0xae, 0xa4, 0xb2, + 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x32, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x8e, + 0x84, 0x4e, 0x08, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/epoching/types/params.pb.go b/x/epoching/types/params.pb.go index 21ae0f84b0a..d2a00cb1495 100644 --- a/x/epoching/types/params.pb.go +++ b/x/epoching/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/epoching/v1/params.proto +// source: cosmos/epoching/v1/params.proto package types @@ -33,7 +33,7 @@ func (m *Params) Reset() { *m = Params{} } func (m *Params) String() string { return proto.CompactTextString(m) } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_c9e38cfe55335900, []int{0} + return fileDescriptor_c992311fc4f97a0e, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -70,26 +70,26 @@ func (m *Params) GetEpochInterval() uint64 { } func init() { - proto.RegisterType((*Params)(nil), "babylon.epoching.v1.Params") + proto.RegisterType((*Params)(nil), "cosmos.epoching.v1.Params") } -func init() { proto.RegisterFile("babylon/epoching/v1/params.proto", fileDescriptor_c9e38cfe55335900) } +func init() { proto.RegisterFile("cosmos/epoching/v1/params.proto", fileDescriptor_c992311fc4f97a0e) } -var fileDescriptor_c9e38cfe55335900 = []byte{ - // 201 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0x4a, 0x4c, 0xaa, - 0xcc, 0xc9, 0xcf, 0xd3, 0x4f, 0x2d, 0xc8, 0x4f, 0xce, 0xc8, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0xd4, - 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xaa, - 0xd0, 0x83, 0xa9, 0xd0, 0x2b, 0x33, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb, 0x83, - 0x58, 0x10, 0xa5, 0x4a, 0x01, 0x5c, 0x6c, 0x01, 0x60, 0xad, 0x42, 0x0e, 0x5c, 0x7c, 0x60, 0xe5, - 0xf1, 0x99, 0x79, 0x25, 0xa9, 0x45, 0x65, 0x89, 0x39, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x2c, 0x4e, - 0x92, 0x9f, 0xee, 0xc9, 0x8b, 0x56, 0x26, 0xe6, 0xe6, 0x58, 0x29, 0xa1, 0xca, 0x2b, 0x05, 0xf1, - 0x82, 0x05, 0x3c, 0xa1, 0x7c, 0x2b, 0x96, 0x17, 0x0b, 0xe4, 0x19, 0x9d, 0xbc, 0x4e, 0x3c, 0x92, - 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, - 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x20, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, - 0x39, 0x3f, 0x57, 0x1f, 0xea, 0xc2, 0xe4, 0x8c, 0xc4, 0xcc, 0x3c, 0x18, 0x47, 0xbf, 0x02, 0xe1, - 0xa5, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x23, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, - 0xff, 0xa6, 0x7d, 0x61, 0x54, 0xf3, 0x00, 0x00, 0x00, +var fileDescriptor_c992311fc4f97a0e = []byte{ + // 199 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xce, 0x2f, 0xce, + 0xcd, 0x2f, 0xd6, 0x4f, 0x2d, 0xc8, 0x4f, 0xce, 0xc8, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0xd4, 0x2f, + 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0x28, 0xd0, + 0x83, 0x29, 0xd0, 0x2b, 0x33, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xeb, 0x83, 0x58, + 0x10, 0x95, 0x4a, 0x01, 0x5c, 0x6c, 0x01, 0x60, 0x9d, 0x42, 0x0e, 0x5c, 0x7c, 0x60, 0xe5, 0xf1, + 0x99, 0x79, 0x25, 0xa9, 0x45, 0x65, 0x89, 0x39, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x2c, 0x4e, 0x92, + 0x9f, 0xee, 0xc9, 0x8b, 0x56, 0x26, 0xe6, 0xe6, 0x58, 0x29, 0xa1, 0xca, 0x2b, 0x05, 0xf1, 0x82, + 0x05, 0x3c, 0xa1, 0x7c, 0x2b, 0x96, 0x17, 0x0b, 0xe4, 0x19, 0x9d, 0xdc, 0x4f, 0x3c, 0x92, 0x63, + 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, + 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x37, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, + 0x3f, 0x57, 0x1f, 0xea, 0x03, 0x08, 0xa5, 0x5b, 0x9c, 0x92, 0xad, 0x5f, 0x81, 0xf0, 0x4e, 0x49, + 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x85, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, + 0x7b, 0xa9, 0x73, 0xee, 0x00, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { diff --git a/x/epoching/types/query.pb.go b/x/epoching/types/query.pb.go index 59bfc31b902..1a8a64b60c7 100644 --- a/x/epoching/types/query.pb.go +++ b/x/epoching/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/epoching/v1/query.proto +// source: cosmos/epoching/v1/query.proto package types @@ -38,7 +38,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{0} + return fileDescriptor_ad147d01d6596d02, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{1} + return fileDescriptor_ad147d01d6596d02, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -122,7 +122,7 @@ func (m *QueryEpochInfoRequest) Reset() { *m = QueryEpochInfoRequest{} } func (m *QueryEpochInfoRequest) String() string { return proto.CompactTextString(m) } func (*QueryEpochInfoRequest) ProtoMessage() {} func (*QueryEpochInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{2} + return fileDescriptor_ad147d01d6596d02, []int{2} } func (m *QueryEpochInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -167,7 +167,7 @@ func (m *QueryEpochInfoResponse) Reset() { *m = QueryEpochInfoResponse{} func (m *QueryEpochInfoResponse) String() string { return proto.CompactTextString(m) } func (*QueryEpochInfoResponse) ProtoMessage() {} func (*QueryEpochInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{3} + return fileDescriptor_ad147d01d6596d02, []int{3} } func (m *QueryEpochInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -213,7 +213,7 @@ func (m *QueryEpochsInfoRequest) Reset() { *m = QueryEpochsInfoRequest{} func (m *QueryEpochsInfoRequest) String() string { return proto.CompactTextString(m) } func (*QueryEpochsInfoRequest) ProtoMessage() {} func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{4} + return fileDescriptor_ad147d01d6596d02, []int{4} } func (m *QueryEpochsInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -260,7 +260,7 @@ func (m *QueryEpochsInfoResponse) Reset() { *m = QueryEpochsInfoResponse func (m *QueryEpochsInfoResponse) String() string { return proto.CompactTextString(m) } func (*QueryEpochsInfoResponse) ProtoMessage() {} func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{5} + return fileDescriptor_ad147d01d6596d02, []int{5} } func (m *QueryEpochsInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -312,7 +312,7 @@ func (m *QueryCurrentEpochRequest) Reset() { *m = QueryCurrentEpochReque func (m *QueryCurrentEpochRequest) String() string { return proto.CompactTextString(m) } func (*QueryCurrentEpochRequest) ProtoMessage() {} func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{6} + return fileDescriptor_ad147d01d6596d02, []int{6} } func (m *QueryCurrentEpochRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -354,7 +354,7 @@ func (m *QueryCurrentEpochResponse) Reset() { *m = QueryCurrentEpochResp func (m *QueryCurrentEpochResponse) String() string { return proto.CompactTextString(m) } func (*QueryCurrentEpochResponse) ProtoMessage() {} func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{7} + return fileDescriptor_ad147d01d6596d02, []int{7} } func (m *QueryCurrentEpochResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -409,7 +409,7 @@ func (m *QueryEpochMsgsRequest) Reset() { *m = QueryEpochMsgsRequest{} } func (m *QueryEpochMsgsRequest) String() string { return proto.CompactTextString(m) } func (*QueryEpochMsgsRequest) ProtoMessage() {} func (*QueryEpochMsgsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{8} + return fileDescriptor_ad147d01d6596d02, []int{8} } func (m *QueryEpochMsgsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -465,7 +465,7 @@ func (m *QueryEpochMsgsResponse) Reset() { *m = QueryEpochMsgsResponse{} func (m *QueryEpochMsgsResponse) String() string { return proto.CompactTextString(m) } func (*QueryEpochMsgsResponse) ProtoMessage() {} func (*QueryEpochMsgsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{9} + return fileDescriptor_ad147d01d6596d02, []int{9} } func (m *QueryEpochMsgsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -523,7 +523,7 @@ func (m *QueryLatestEpochMsgsRequest) Reset() { *m = QueryLatestEpochMsg func (m *QueryLatestEpochMsgsRequest) String() string { return proto.CompactTextString(m) } func (*QueryLatestEpochMsgsRequest) ProtoMessage() {} func (*QueryLatestEpochMsgsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{10} + return fileDescriptor_ad147d01d6596d02, []int{10} } func (m *QueryLatestEpochMsgsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -586,7 +586,7 @@ func (m *QueryLatestEpochMsgsResponse) Reset() { *m = QueryLatestEpochMs func (m *QueryLatestEpochMsgsResponse) String() string { return proto.CompactTextString(m) } func (*QueryLatestEpochMsgsResponse) ProtoMessage() {} func (*QueryLatestEpochMsgsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{11} + return fileDescriptor_ad147d01d6596d02, []int{11} } func (m *QueryLatestEpochMsgsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -639,7 +639,7 @@ func (m *QueryValidatorLifecycleRequest) Reset() { *m = QueryValidatorLi func (m *QueryValidatorLifecycleRequest) String() string { return proto.CompactTextString(m) } func (*QueryValidatorLifecycleRequest) ProtoMessage() {} func (*QueryValidatorLifecycleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{12} + return fileDescriptor_ad147d01d6596d02, []int{12} } func (m *QueryValidatorLifecycleRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -685,7 +685,7 @@ func (m *QueryValidatorLifecycleResponse) Reset() { *m = QueryValidatorL func (m *QueryValidatorLifecycleResponse) String() string { return proto.CompactTextString(m) } func (*QueryValidatorLifecycleResponse) ProtoMessage() {} func (*QueryValidatorLifecycleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{13} + return fileDescriptor_ad147d01d6596d02, []int{13} } func (m *QueryValidatorLifecycleResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -731,7 +731,7 @@ func (m *QueryDelegationLifecycleRequest) Reset() { *m = QueryDelegation func (m *QueryDelegationLifecycleRequest) String() string { return proto.CompactTextString(m) } func (*QueryDelegationLifecycleRequest) ProtoMessage() {} func (*QueryDelegationLifecycleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{14} + return fileDescriptor_ad147d01d6596d02, []int{14} } func (m *QueryDelegationLifecycleRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -777,7 +777,7 @@ func (m *QueryDelegationLifecycleResponse) Reset() { *m = QueryDelegatio func (m *QueryDelegationLifecycleResponse) String() string { return proto.CompactTextString(m) } func (*QueryDelegationLifecycleResponse) ProtoMessage() {} func (*QueryDelegationLifecycleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{15} + return fileDescriptor_ad147d01d6596d02, []int{15} } func (m *QueryDelegationLifecycleResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -824,7 +824,7 @@ func (m *QueryEpochValSetRequest) Reset() { *m = QueryEpochValSetRequest func (m *QueryEpochValSetRequest) String() string { return proto.CompactTextString(m) } func (*QueryEpochValSetRequest) ProtoMessage() {} func (*QueryEpochValSetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{16} + return fileDescriptor_ad147d01d6596d02, []int{16} } func (m *QueryEpochValSetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -879,7 +879,7 @@ func (m *QueryEpochValSetResponse) Reset() { *m = QueryEpochValSetRespon func (m *QueryEpochValSetResponse) String() string { return proto.CompactTextString(m) } func (*QueryEpochValSetResponse) ProtoMessage() {} func (*QueryEpochValSetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1821b530f2ec2711, []int{17} + return fileDescriptor_ad147d01d6596d02, []int{17} } func (m *QueryEpochValSetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -930,97 +930,97 @@ func (m *QueryEpochValSetResponse) GetPagination() *query.PageResponse { } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "babylon.epoching.v1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "babylon.epoching.v1.QueryParamsResponse") - proto.RegisterType((*QueryEpochInfoRequest)(nil), "babylon.epoching.v1.QueryEpochInfoRequest") - proto.RegisterType((*QueryEpochInfoResponse)(nil), "babylon.epoching.v1.QueryEpochInfoResponse") - proto.RegisterType((*QueryEpochsInfoRequest)(nil), "babylon.epoching.v1.QueryEpochsInfoRequest") - proto.RegisterType((*QueryEpochsInfoResponse)(nil), "babylon.epoching.v1.QueryEpochsInfoResponse") - proto.RegisterType((*QueryCurrentEpochRequest)(nil), "babylon.epoching.v1.QueryCurrentEpochRequest") - proto.RegisterType((*QueryCurrentEpochResponse)(nil), "babylon.epoching.v1.QueryCurrentEpochResponse") - proto.RegisterType((*QueryEpochMsgsRequest)(nil), "babylon.epoching.v1.QueryEpochMsgsRequest") - proto.RegisterType((*QueryEpochMsgsResponse)(nil), "babylon.epoching.v1.QueryEpochMsgsResponse") - proto.RegisterType((*QueryLatestEpochMsgsRequest)(nil), "babylon.epoching.v1.QueryLatestEpochMsgsRequest") - proto.RegisterType((*QueryLatestEpochMsgsResponse)(nil), "babylon.epoching.v1.QueryLatestEpochMsgsResponse") - proto.RegisterType((*QueryValidatorLifecycleRequest)(nil), "babylon.epoching.v1.QueryValidatorLifecycleRequest") - proto.RegisterType((*QueryValidatorLifecycleResponse)(nil), "babylon.epoching.v1.QueryValidatorLifecycleResponse") - proto.RegisterType((*QueryDelegationLifecycleRequest)(nil), "babylon.epoching.v1.QueryDelegationLifecycleRequest") - proto.RegisterType((*QueryDelegationLifecycleResponse)(nil), "babylon.epoching.v1.QueryDelegationLifecycleResponse") - proto.RegisterType((*QueryEpochValSetRequest)(nil), "babylon.epoching.v1.QueryEpochValSetRequest") - proto.RegisterType((*QueryEpochValSetResponse)(nil), "babylon.epoching.v1.QueryEpochValSetResponse") -} - -func init() { proto.RegisterFile("babylon/epoching/v1/query.proto", fileDescriptor_1821b530f2ec2711) } - -var fileDescriptor_1821b530f2ec2711 = []byte{ - // 1071 bytes of a gzipped FileDescriptorProto + proto.RegisterType((*QueryParamsRequest)(nil), "cosmos.epoching.v1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "cosmos.epoching.v1.QueryParamsResponse") + proto.RegisterType((*QueryEpochInfoRequest)(nil), "cosmos.epoching.v1.QueryEpochInfoRequest") + proto.RegisterType((*QueryEpochInfoResponse)(nil), "cosmos.epoching.v1.QueryEpochInfoResponse") + proto.RegisterType((*QueryEpochsInfoRequest)(nil), "cosmos.epoching.v1.QueryEpochsInfoRequest") + proto.RegisterType((*QueryEpochsInfoResponse)(nil), "cosmos.epoching.v1.QueryEpochsInfoResponse") + proto.RegisterType((*QueryCurrentEpochRequest)(nil), "cosmos.epoching.v1.QueryCurrentEpochRequest") + proto.RegisterType((*QueryCurrentEpochResponse)(nil), "cosmos.epoching.v1.QueryCurrentEpochResponse") + proto.RegisterType((*QueryEpochMsgsRequest)(nil), "cosmos.epoching.v1.QueryEpochMsgsRequest") + proto.RegisterType((*QueryEpochMsgsResponse)(nil), "cosmos.epoching.v1.QueryEpochMsgsResponse") + proto.RegisterType((*QueryLatestEpochMsgsRequest)(nil), "cosmos.epoching.v1.QueryLatestEpochMsgsRequest") + proto.RegisterType((*QueryLatestEpochMsgsResponse)(nil), "cosmos.epoching.v1.QueryLatestEpochMsgsResponse") + proto.RegisterType((*QueryValidatorLifecycleRequest)(nil), "cosmos.epoching.v1.QueryValidatorLifecycleRequest") + proto.RegisterType((*QueryValidatorLifecycleResponse)(nil), "cosmos.epoching.v1.QueryValidatorLifecycleResponse") + proto.RegisterType((*QueryDelegationLifecycleRequest)(nil), "cosmos.epoching.v1.QueryDelegationLifecycleRequest") + proto.RegisterType((*QueryDelegationLifecycleResponse)(nil), "cosmos.epoching.v1.QueryDelegationLifecycleResponse") + proto.RegisterType((*QueryEpochValSetRequest)(nil), "cosmos.epoching.v1.QueryEpochValSetRequest") + proto.RegisterType((*QueryEpochValSetResponse)(nil), "cosmos.epoching.v1.QueryEpochValSetResponse") +} + +func init() { proto.RegisterFile("cosmos/epoching/v1/query.proto", fileDescriptor_ad147d01d6596d02) } + +var fileDescriptor_ad147d01d6596d02 = []byte{ + // 1063 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x97, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xc7, 0xb3, 0x89, 0x1b, 0x92, 0x97, 0x96, 0xc2, 0xa4, 0x40, 0xbb, 0x29, 0x4e, 0xb4, 0x85, - 0x26, 0x24, 0xcd, 0x6e, 0x9c, 0xa4, 0x45, 0xfd, 0x01, 0x88, 0x84, 0x1f, 0xa2, 0x4a, 0x51, 0xba, - 0x48, 0x39, 0x70, 0x31, 0x63, 0xef, 0x64, 0xb3, 0xd2, 0x7a, 0xc7, 0xdd, 0x1f, 0x06, 0xab, 0x04, - 0x21, 0xce, 0x1c, 0x90, 0x90, 0x40, 0xbd, 0x21, 0x71, 0xe4, 0x4f, 0x80, 0x03, 0xc7, 0x1e, 0x83, - 0xb8, 0x70, 0x42, 0x28, 0xe1, 0x0f, 0x41, 0xfb, 0x66, 0xd6, 0x5e, 0xbb, 0xb3, 0xb1, 0x13, 0x45, - 0xdc, 0xda, 0x99, 0xf7, 0xe3, 0xf3, 0xde, 0x9b, 0x7d, 0x5f, 0x07, 0x66, 0x6b, 0xb4, 0xd6, 0xf6, - 0x79, 0x60, 0xb1, 0x26, 0xaf, 0xef, 0x79, 0x81, 0x6b, 0xb5, 0x2a, 0xd6, 0xa3, 0x84, 0x85, 0x6d, - 0xb3, 0x19, 0xf2, 0x98, 0x93, 0x69, 0x69, 0x60, 0x66, 0x06, 0x66, 0xab, 0xa2, 0x5f, 0x72, 0xb9, - 0xcb, 0xf1, 0xde, 0x4a, 0xff, 0x25, 0x4c, 0xf5, 0xab, 0x2e, 0xe7, 0xae, 0xcf, 0x2c, 0xda, 0xf4, - 0x2c, 0x1a, 0x04, 0x3c, 0xa6, 0xb1, 0xc7, 0x83, 0x48, 0xde, 0x2e, 0xd6, 0x79, 0xd4, 0xe0, 0x91, - 0x55, 0xa3, 0x11, 0x13, 0x19, 0xac, 0x56, 0xa5, 0xc6, 0x62, 0x5a, 0xb1, 0x9a, 0xd4, 0xf5, 0x02, - 0x34, 0x96, 0xb6, 0x73, 0x2a, 0xaa, 0x26, 0x0d, 0x69, 0x23, 0x8b, 0x66, 0xa8, 0x2c, 0x3a, 0x88, - 0x68, 0x63, 0x5c, 0x02, 0xf2, 0x30, 0xcd, 0xb3, 0x8d, 0x8e, 0x36, 0x7b, 0x94, 0xb0, 0x28, 0x36, - 0xb6, 0x61, 0xba, 0xe7, 0x34, 0x6a, 0xf2, 0x20, 0x62, 0xe4, 0x36, 0x8c, 0x8b, 0x04, 0x97, 0xb5, - 0x39, 0x6d, 0x61, 0x6a, 0x75, 0xc6, 0x54, 0x14, 0x6e, 0x0a, 0xa7, 0x8d, 0xd2, 0xd3, 0xbf, 0x67, - 0x47, 0x6c, 0xe9, 0x60, 0xac, 0xc3, 0x4b, 0x18, 0xf1, 0xfd, 0xd4, 0xf0, 0xa3, 0x60, 0x97, 0xcb, - 0x54, 0x64, 0x06, 0x26, 0xd1, 0xb9, 0x1a, 0x24, 0x0d, 0x0c, 0x5b, 0xb2, 0x27, 0xf0, 0xe0, 0xe3, - 0xa4, 0x61, 0xdc, 0x87, 0x97, 0xfb, 0xbd, 0x24, 0xca, 0x0a, 0x9c, 0x43, 0x2b, 0x49, 0xa2, 0x2b, - 0x49, 0xd0, 0xcd, 0x16, 0x86, 0xc6, 0x67, 0xf9, 0x58, 0x51, 0x1e, 0xe1, 0x03, 0x80, 0x6e, 0x77, - 0x65, 0xc0, 0xeb, 0xa6, 0x18, 0x85, 0x99, 0x8e, 0xc2, 0x14, 0xc3, 0x96, 0xa3, 0x30, 0xb7, 0xa9, - 0xcb, 0xa4, 0xaf, 0x9d, 0xf3, 0x34, 0x7e, 0xd0, 0xe0, 0x95, 0x67, 0x52, 0x48, 0xde, 0x55, 0x18, - 0x47, 0x8c, 0xb4, 0x75, 0x63, 0x03, 0x80, 0xa5, 0x25, 0xf9, 0xb0, 0x87, 0x6b, 0x14, 0xb9, 0xe6, - 0x07, 0x72, 0x89, 0x84, 0x3d, 0x60, 0x3a, 0x5c, 0x46, 0xae, 0xcd, 0x24, 0x0c, 0x59, 0x10, 0x8b, - 0x2c, 0x72, 0xd4, 0x2e, 0x5c, 0x51, 0xdc, 0x49, 0xea, 0x6b, 0x70, 0xa1, 0x2e, 0xce, 0xab, 0xdd, - 0x6e, 0x97, 0xec, 0xf3, 0xf5, 0x9c, 0x31, 0x79, 0x1d, 0x9e, 0x17, 0x13, 0xac, 0xf1, 0x24, 0x70, - 0x68, 0xd8, 0x46, 0xd4, 0x92, 0x7d, 0x01, 0x4f, 0x37, 0xe4, 0xa1, 0xf1, 0x65, 0xfe, 0x05, 0x3c, - 0x88, 0xdc, 0x68, 0x98, 0x17, 0xd0, 0x37, 0x9b, 0xd1, 0x53, 0xcf, 0xe6, 0x89, 0x96, 0x1f, 0xbf, - 0x48, 0x2f, 0x8b, 0xbc, 0x05, 0xa5, 0x46, 0xe4, 0x66, 0x83, 0x31, 0x94, 0x83, 0x79, 0x98, 0xb0, - 0x84, 0x39, 0x0f, 0x58, 0x14, 0xa5, 0xf1, 0xd1, 0xfe, 0xec, 0xc6, 0xf3, 0xb3, 0x06, 0x33, 0xc8, - 0xb6, 0x45, 0x63, 0x16, 0xc5, 0xca, 0x06, 0x05, 0x4e, 0xcf, 0x04, 0x26, 0x58, 0xe0, 0x88, 0xee, - 0xcf, 0xc2, 0x94, 0xe8, 0x5e, 0x9d, 0x27, 0x41, 0x2c, 0x5b, 0x0f, 0x78, 0xb4, 0x99, 0x9e, 0xf4, - 0x75, 0x70, 0xec, 0xd4, 0x1d, 0xfc, 0x55, 0x83, 0xab, 0x6a, 0x4a, 0xd9, 0x47, 0x1b, 0x5e, 0xf4, - 0xf1, 0x4a, 0x90, 0x56, 0x73, 0x4d, 0xbd, 0x3e, 0xb8, 0xa9, 0x5b, 0x5e, 0x14, 0xdb, 0x17, 0xfd, - 0xde, 0xd8, 0x67, 0xd7, 0xe3, 0xbb, 0x50, 0x46, 0xf8, 0x1d, 0xea, 0x7b, 0x0e, 0x8d, 0x79, 0xb8, - 0xe5, 0xed, 0xb2, 0x7a, 0xbb, 0xee, 0x67, 0xb5, 0x92, 0x2b, 0x30, 0xd1, 0xa2, 0x7e, 0x95, 0x3a, - 0x4e, 0x88, 0x4d, 0x9e, 0xb4, 0x9f, 0x6b, 0x51, 0xff, 0x5d, 0xc7, 0x09, 0x0d, 0x06, 0xb3, 0x85, - 0xce, 0xb2, 0xf8, 0x0d, 0xe1, 0xed, 0x7b, 0xbb, 0x4c, 0x6e, 0x90, 0x79, 0x65, 0xcd, 0x8a, 0x10, - 0x69, 0x9a, 0xf4, 0x7f, 0xc6, 0x3d, 0x99, 0xe6, 0x3d, 0xe6, 0x33, 0x17, 0xb1, 0x55, 0x90, 0x0e, - 0xeb, 0x85, 0x74, 0x98, 0x80, 0x74, 0x61, 0xae, 0xd8, 0x5b, 0x52, 0x6e, 0x0a, 0xf7, 0x1c, 0xe5, - 0x82, 0x92, 0x52, 0x15, 0x23, 0x4d, 0x84, 0x98, 0x5f, 0xe5, 0xb7, 0xdc, 0x0e, 0xf5, 0x3f, 0x61, - 0xf1, 0xff, 0xfa, 0x29, 0xff, 0xa1, 0xc9, 0x75, 0xd6, 0x03, 0x20, 0x2b, 0x7c, 0x1b, 0xa0, 0x95, - 0xb5, 0x38, 0x7b, 0x7d, 0xe5, 0xe3, 0x27, 0x61, 0xe7, 0x3c, 0xc8, 0x0d, 0x20, 0x31, 0x8f, 0xa9, - 0x5f, 0x6d, 0xf1, 0xd8, 0x0b, 0xdc, 0x6a, 0x93, 0x7f, 0xce, 0x42, 0x84, 0x1d, 0xb3, 0x5f, 0xc0, - 0x9b, 0x1d, 0xbc, 0xd8, 0x4e, 0xcf, 0xfb, 0x9e, 0xe7, 0xd8, 0xa9, 0x9f, 0xe7, 0xea, 0xc1, 0x14, - 0x9c, 0xc3, 0x9a, 0xc8, 0xd7, 0x1a, 0x8c, 0x0b, 0x05, 0x25, 0xf3, 0x45, 0x5f, 0x4d, 0x9f, 0x5c, - 0xeb, 0x0b, 0x83, 0x0d, 0x45, 0x4e, 0xe3, 0xda, 0x37, 0x7f, 0xfe, 0xfb, 0xfd, 0xe8, 0xab, 0x64, - 0xc6, 0x2a, 0xfe, 0xf5, 0x40, 0x7e, 0xd4, 0x60, 0xb2, 0xa3, 0xb8, 0x64, 0xb1, 0x38, 0x78, 0xbf, - 0x98, 0xeb, 0x4b, 0x43, 0xd9, 0x4a, 0x96, 0x0a, 0xb2, 0x2c, 0x91, 0x37, 0xac, 0xc2, 0xdf, 0x29, - 0x91, 0xf5, 0xb8, 0xf3, 0x9e, 0xde, 0x5a, 0xdc, 0x27, 0xdf, 0x6a, 0x00, 0x5d, 0x71, 0x25, 0x83, - 0xd2, 0xe5, 0x55, 0x5e, 0xbf, 0x31, 0x9c, 0xf1, 0x50, 0x8d, 0x92, 0x02, 0xfd, 0x44, 0x83, 0xf3, - 0x79, 0xdd, 0x24, 0xcb, 0xc5, 0x39, 0x14, 0xda, 0xab, 0x9b, 0xc3, 0x9a, 0x4b, 0xa8, 0x45, 0x84, - 0x7a, 0x8d, 0x18, 0x4a, 0xa8, 0x1e, 0xa5, 0x26, 0x3f, 0x65, 0x43, 0xc4, 0x3d, 0x3a, 0x68, 0x88, - 0x39, 0xb9, 0x19, 0x38, 0xc4, 0xfc, 0xd2, 0x37, 0xee, 0x20, 0xd2, 0x3a, 0x59, 0x1d, 0x7a, 0x88, - 0x56, 0x43, 0x2c, 0xfc, 0x88, 0xfc, 0xa2, 0xc1, 0xc5, 0x3e, 0x31, 0x21, 0x2b, 0xc5, 0xc9, 0xd5, - 0xea, 0xa8, 0x57, 0x4e, 0xe0, 0x21, 0xa1, 0xd7, 0x10, 0x7a, 0x99, 0x2c, 0x1d, 0x03, 0x7d, 0x47, - 0x48, 0x51, 0x97, 0xf6, 0x37, 0x0d, 0xc8, 0xb3, 0xdb, 0x9b, 0xac, 0x15, 0xa7, 0x2f, 0xd4, 0x1a, - 0x7d, 0xfd, 0x64, 0x4e, 0x12, 0xfb, 0x2e, 0x62, 0xdf, 0x24, 0x6b, 0x4a, 0xec, 0xce, 0x12, 0xc3, - 0xf5, 0x8e, 0x9e, 0xd6, 0xe3, 0x4c, 0xd1, 0xf6, 0xc9, 0xef, 0x1a, 0x4c, 0x2b, 0xd6, 0x3a, 0x39, - 0x06, 0xa5, 0x58, 0x87, 0xf4, 0x9b, 0x27, 0xf4, 0x92, 0x15, 0xdc, 0xc3, 0x0a, 0x6e, 0x91, 0x75, - 0x65, 0x05, 0x4e, 0xc7, 0x33, 0x5f, 0x42, 0xa6, 0x77, 0xfb, 0xe9, 0x7b, 0x99, 0xca, 0xed, 0x7c, - 0x32, 0xe8, 0x8b, 0xee, 0xd1, 0x26, 0x7d, 0x79, 0x48, 0x6b, 0x89, 0xfa, 0x0e, 0xa2, 0xde, 0x26, - 0x6f, 0x0e, 0xff, 0xb0, 0xbb, 0x13, 0x88, 0x58, 0xbc, 0x71, 0xff, 0xe9, 0x61, 0x59, 0x3b, 0x38, - 0x2c, 0x6b, 0xff, 0x1c, 0x96, 0xb5, 0xef, 0x8e, 0xca, 0x23, 0x07, 0x47, 0xe5, 0x91, 0xbf, 0x8e, - 0xca, 0x23, 0x9f, 0xae, 0xb8, 0x5e, 0xbc, 0x97, 0xd4, 0xcc, 0x3a, 0x6f, 0x64, 0xc1, 0xeb, 0x7b, - 0xd4, 0x0b, 0x3a, 0x99, 0xbe, 0xe8, 0xe6, 0x8a, 0xdb, 0x4d, 0x16, 0xd5, 0xc6, 0xf1, 0x8f, 0xb5, - 0xb5, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x76, 0x01, 0x0c, 0x73, 0x8a, 0x0e, 0x00, 0x00, + 0x14, 0xc7, 0xb3, 0x49, 0x1a, 0x92, 0x97, 0x96, 0xc2, 0xb4, 0x40, 0xb3, 0x0d, 0x4e, 0xb3, 0x55, + 0x9b, 0xd6, 0x24, 0xde, 0xda, 0x49, 0x51, 0x69, 0x29, 0x52, 0x53, 0xa0, 0xaa, 0x94, 0x42, 0xb2, + 0x48, 0x39, 0x70, 0x31, 0x63, 0xef, 0x64, 0xbb, 0x62, 0xbd, 0xe3, 0xee, 0xcc, 0x1a, 0xa2, 0x12, + 0x0e, 0xdc, 0xb8, 0x21, 0xf1, 0x43, 0x5c, 0x38, 0x71, 0xe1, 0x0f, 0xe0, 0x02, 0x12, 0xf7, 0x1e, + 0x23, 0x71, 0xe1, 0x84, 0x50, 0xc2, 0x1f, 0x82, 0xf6, 0xcd, 0xac, 0xbd, 0x76, 0x76, 0x6b, 0x37, + 0xaa, 0x38, 0xd9, 0x9e, 0x79, 0x3f, 0x3e, 0xf3, 0xde, 0xec, 0xfb, 0xae, 0xa1, 0xd4, 0xe4, 0xa2, + 0xc5, 0x85, 0xcd, 0xda, 0xbc, 0xf9, 0xd0, 0x0f, 0x3d, 0xbb, 0x53, 0xb5, 0x1f, 0xc5, 0x2c, 0xda, + 0xad, 0xb4, 0x23, 0x2e, 0x39, 0x21, 0x6a, 0xbf, 0x92, 0xee, 0x57, 0x3a, 0x55, 0xf3, 0xac, 0xc7, + 0x3d, 0x8e, 0xdb, 0x76, 0xf2, 0x4d, 0x59, 0x9a, 0xf3, 0x1e, 0xe7, 0x5e, 0xc0, 0x6c, 0xda, 0xf6, + 0x6d, 0x1a, 0x86, 0x5c, 0x52, 0xe9, 0xf3, 0x50, 0xe8, 0xdd, 0xb2, 0xce, 0xd3, 0xa0, 0x82, 0xa9, + 0x04, 0x76, 0xa7, 0xda, 0x60, 0x92, 0x56, 0xed, 0x36, 0xf5, 0xfc, 0x10, 0x8d, 0xb5, 0xed, 0x42, + 0x0e, 0x53, 0x9b, 0x46, 0xb4, 0x95, 0x06, 0x5b, 0xcc, 0x31, 0xe8, 0x02, 0xa2, 0x89, 0x75, 0x16, + 0xc8, 0x56, 0x92, 0x65, 0x13, 0xfd, 0x1c, 0xf6, 0x28, 0x66, 0x42, 0x5a, 0x1f, 0xc2, 0x99, 0xbe, + 0x55, 0xd1, 0xe6, 0xa1, 0x60, 0xe4, 0x06, 0x4c, 0xa9, 0xf8, 0xe7, 0x8c, 0x0b, 0xc6, 0x95, 0xd9, + 0x9a, 0x59, 0x39, 0x7a, 0xea, 0x8a, 0xf2, 0x59, 0x9f, 0x7c, 0xf2, 0xf7, 0xc2, 0x98, 0xa3, 0xed, + 0xad, 0x35, 0x78, 0x05, 0x03, 0xbe, 0x97, 0x18, 0xde, 0x0f, 0x77, 0xb8, 0xce, 0x44, 0xce, 0xc3, + 0x0c, 0x3a, 0xd7, 0xc3, 0xb8, 0x85, 0x51, 0x27, 0x9d, 0x69, 0x5c, 0xf8, 0x20, 0x6e, 0x59, 0xf7, + 0xe1, 0xd5, 0x41, 0x2f, 0x4d, 0x62, 0xc3, 0x09, 0xb4, 0xd2, 0x20, 0x73, 0x79, 0x20, 0xe8, 0xe5, + 0x28, 0x3b, 0xeb, 0x93, 0x6c, 0x28, 0x91, 0x25, 0x78, 0x1f, 0xa0, 0x57, 0x59, 0x1d, 0xef, 0x72, + 0x1a, 0x2f, 0x69, 0x43, 0x45, 0xf5, 0x59, 0xb7, 0xa1, 0xb2, 0x49, 0x3d, 0xa6, 0x7d, 0x9d, 0x8c, + 0xa7, 0xf5, 0xbd, 0x01, 0xaf, 0x1d, 0x49, 0xa1, 0x71, 0xab, 0x30, 0x85, 0x18, 0x49, 0xe1, 0x26, + 0x9e, 0xce, 0xab, 0x0d, 0xc9, 0xbd, 0x3e, 0xac, 0x71, 0xc4, 0x5a, 0x1a, 0x8a, 0xa5, 0xf2, 0xf5, + 0x71, 0x99, 0x70, 0x0e, 0xb1, 0xee, 0xc6, 0x51, 0xc4, 0x42, 0xa9, 0xb2, 0xe8, 0x3e, 0x7b, 0x30, + 0x97, 0xb3, 0xa7, 0xa1, 0x2f, 0xc2, 0xa9, 0xa6, 0x5a, 0xaf, 0xf7, 0x6a, 0x3d, 0xe9, 0x9c, 0x6c, + 0x66, 0x8c, 0xc9, 0x25, 0x78, 0x51, 0xf5, 0xaf, 0xc1, 0xe3, 0xd0, 0xa5, 0xd1, 0x2e, 0xa2, 0x4e, + 0x3a, 0xa7, 0x70, 0x75, 0x5d, 0x2f, 0x5a, 0x5f, 0x64, 0xfb, 0xff, 0x40, 0x78, 0x62, 0x94, 0xfe, + 0x0f, 0xb4, 0x66, 0xfc, 0xd8, 0xad, 0xf9, 0xd1, 0xc8, 0x76, 0x5f, 0xa5, 0xd7, 0x87, 0xbc, 0x0e, + 0x93, 0x2d, 0xe1, 0xa5, 0x7d, 0x59, 0xcc, 0xeb, 0xcb, 0x56, 0xcc, 0x62, 0xe6, 0x3e, 0x60, 0x42, + 0x24, 0xe1, 0xd1, 0xfc, 0xf9, 0x75, 0xe7, 0x67, 0x03, 0xce, 0x23, 0xda, 0x06, 0x95, 0x4c, 0xc8, + 0xdc, 0xfa, 0x84, 0x6e, 0x5f, 0x03, 0xa6, 0x59, 0xe8, 0xaa, 0xe2, 0x2f, 0xc0, 0xac, 0x2a, 0x5e, + 0x93, 0xc7, 0xa1, 0xd4, 0x95, 0x07, 0x5c, 0xba, 0x9b, 0xac, 0x0c, 0x14, 0x70, 0xe2, 0xd8, 0x05, + 0xfc, 0xdd, 0x80, 0xf9, 0x7c, 0x4a, 0x5d, 0xc6, 0x2d, 0x78, 0x39, 0xc0, 0x2d, 0x45, 0x5a, 0xcf, + 0xd4, 0xf4, 0xd2, 0xd0, 0x9a, 0x6e, 0xf8, 0x42, 0x3a, 0xa7, 0x83, 0xfe, 0xd0, 0xcf, 0xaf, 0xc4, + 0xb7, 0xa0, 0x84, 0xec, 0xdb, 0x34, 0xf0, 0x5d, 0x2a, 0x79, 0xb4, 0xe1, 0xef, 0xb0, 0xe6, 0x6e, + 0x33, 0x48, 0x8f, 0x4a, 0xe6, 0x60, 0xba, 0x43, 0x83, 0x3a, 0x75, 0xdd, 0x08, 0x6b, 0x3c, 0xe3, + 0xbc, 0xd0, 0xa1, 0xc1, 0x1d, 0xd7, 0x8d, 0x2c, 0x17, 0x16, 0x0a, 0x9d, 0xf5, 0xd9, 0xef, 0x28, + 0xef, 0xc0, 0xdf, 0x61, 0x83, 0xe3, 0x23, 0x7b, 0xe4, 0x9c, 0x08, 0x49, 0x96, 0xe4, 0x97, 0xf5, + 0xb6, 0xce, 0xf2, 0x2e, 0x0b, 0x98, 0x87, 0xd4, 0x79, 0x8c, 0x2e, 0xeb, 0x67, 0x74, 0x99, 0x62, + 0xdc, 0x81, 0x0b, 0xc5, 0xde, 0x1a, 0x72, 0x5d, 0xb9, 0x67, 0x20, 0x97, 0xf2, 0x20, 0xf3, 0x42, + 0x24, 0x79, 0x90, 0xf2, 0xcb, 0xec, 0x80, 0xdb, 0xa6, 0xc1, 0x47, 0x4c, 0xfe, 0xaf, 0x8f, 0xf1, + 0xbe, 0xa1, 0x47, 0x59, 0x1f, 0x80, 0x3e, 0xe0, 0x6d, 0x80, 0x4e, 0x5a, 0xe1, 0xf4, 0xea, 0xbd, + 0xfe, 0xd4, 0x3e, 0x38, 0x19, 0x07, 0xb2, 0x0c, 0x44, 0x72, 0x49, 0x83, 0x7a, 0x87, 0x4b, 0x3f, + 0xf4, 0xea, 0x6d, 0xfe, 0x19, 0x8b, 0x90, 0x75, 0xc2, 0x79, 0x09, 0x77, 0xb6, 0x71, 0x63, 0x33, + 0x59, 0x1f, 0xb8, 0x9b, 0x13, 0xc7, 0xbe, 0x9b, 0xb5, 0x5f, 0x67, 0xe1, 0x04, 0x1e, 0x89, 0xec, + 0xc1, 0x94, 0x52, 0x4e, 0x72, 0xb9, 0xe0, 0x81, 0x19, 0x10, 0x69, 0x73, 0x69, 0xa8, 0x9d, 0x4a, + 0x68, 0x59, 0x5f, 0xfd, 0xf9, 0xef, 0xb7, 0xe3, 0xf3, 0xc4, 0xb4, 0x0b, 0x5f, 0x18, 0xc8, 0x77, + 0x06, 0xcc, 0x74, 0x65, 0x96, 0x5c, 0x2d, 0x0c, 0x3d, 0x28, 0xe0, 0x66, 0x79, 0x14, 0x53, 0x0d, + 0x72, 0x0d, 0x41, 0xca, 0xe4, 0x8a, 0x5d, 0xf4, 0x62, 0x22, 0xec, 0xc7, 0xdd, 0x7b, 0x74, 0xbb, + 0xbc, 0x47, 0xbe, 0x36, 0x00, 0x7a, 0x7a, 0x4a, 0x86, 0x24, 0xcb, 0xea, 0xba, 0xf9, 0xc6, 0x48, + 0xb6, 0xa3, 0x94, 0x48, 0x2b, 0xf2, 0x0f, 0x06, 0x9c, 0xcc, 0x0a, 0x25, 0x59, 0x2e, 0xcc, 0x90, + 0xa3, 0xb5, 0xe6, 0xca, 0x88, 0xd6, 0x9a, 0xe8, 0x2a, 0x12, 0x5d, 0x24, 0x8b, 0x79, 0x44, 0x7d, + 0xba, 0x4c, 0x7e, 0x4a, 0x7b, 0x87, 0x73, 0x73, 0x48, 0xef, 0x32, 0xe2, 0x32, 0xac, 0x77, 0xd9, + 0x09, 0x6f, 0xbd, 0x85, 0x3c, 0xab, 0xa4, 0x3a, 0x6a, 0xef, 0xec, 0x96, 0x9a, 0xee, 0x82, 0xfc, + 0x62, 0xc0, 0xe9, 0x01, 0xe1, 0x20, 0x76, 0x61, 0xea, 0x7c, 0x21, 0x34, 0xaf, 0x8d, 0xee, 0xa0, + 0x89, 0x6b, 0x48, 0xbc, 0x4c, 0xca, 0xc5, 0xc4, 0x37, 0x95, 0xe8, 0xf4, 0x50, 0x7f, 0x33, 0x80, + 0x1c, 0x1d, 0xd4, 0xa4, 0x56, 0x98, 0xbc, 0x50, 0x54, 0xcc, 0xd5, 0x67, 0xf2, 0xd1, 0xcc, 0x37, + 0x91, 0x79, 0x8d, 0xd4, 0xf2, 0x98, 0xbb, 0xe3, 0x0a, 0xc7, 0x38, 0x3a, 0xda, 0x8f, 0x53, 0xe1, + 0xda, 0x23, 0x7f, 0x18, 0x70, 0x26, 0x67, 0x7e, 0x93, 0x62, 0x90, 0x62, 0xb9, 0x31, 0xd7, 0x9e, + 0xcd, 0x49, 0xe3, 0xdf, 0x42, 0xfc, 0xeb, 0x64, 0x35, 0x0f, 0xdf, 0xed, 0x3a, 0x66, 0xf9, 0x53, + 0x51, 0xdb, 0x4b, 0xae, 0xc9, 0x6c, 0x66, 0xb2, 0x93, 0x21, 0x0f, 0x70, 0x9f, 0x00, 0x99, 0xcb, + 0xa3, 0x19, 0x6b, 0xce, 0x77, 0x90, 0xf3, 0x06, 0x79, 0x73, 0xe4, 0xcb, 0xdc, 0xab, 0xbd, 0x60, + 0x72, 0xfd, 0xde, 0x93, 0x83, 0x92, 0xb1, 0x7f, 0x50, 0x32, 0xfe, 0x39, 0x28, 0x19, 0xdf, 0x1c, + 0x96, 0xc6, 0xf6, 0x0f, 0x4b, 0x63, 0x7f, 0x1d, 0x96, 0xc6, 0x3e, 0x5e, 0xf1, 0x7c, 0xf9, 0x30, + 0x6e, 0x54, 0x9a, 0xbc, 0x95, 0xc6, 0x56, 0x1f, 0x2b, 0xc2, 0xfd, 0xd4, 0xfe, 0xbc, 0x97, 0x48, + 0xee, 0xb6, 0x99, 0x68, 0x4c, 0xe1, 0xbf, 0xb0, 0xd5, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x88, + 0x51, 0x15, 0xa3, 0x5f, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1068,7 +1068,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -1077,7 +1077,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) EpochInfo(ctx context.Context, in *QueryEpochInfoRequest, opts ...grpc.CallOption) (*QueryEpochInfoResponse, error) { out := new(QueryEpochInfoResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Query/EpochInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Query/EpochInfo", in, out, opts...) if err != nil { return nil, err } @@ -1086,7 +1086,7 @@ func (c *queryClient) EpochInfo(ctx context.Context, in *QueryEpochInfoRequest, func (c *queryClient) EpochsInfo(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) { out := new(QueryEpochsInfoResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Query/EpochsInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Query/EpochsInfo", in, out, opts...) if err != nil { return nil, err } @@ -1095,7 +1095,7 @@ func (c *queryClient) EpochsInfo(ctx context.Context, in *QueryEpochsInfoRequest func (c *queryClient) CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) { out := new(QueryCurrentEpochResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Query/CurrentEpoch", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Query/CurrentEpoch", in, out, opts...) if err != nil { return nil, err } @@ -1104,7 +1104,7 @@ func (c *queryClient) CurrentEpoch(ctx context.Context, in *QueryCurrentEpochReq func (c *queryClient) EpochMsgs(ctx context.Context, in *QueryEpochMsgsRequest, opts ...grpc.CallOption) (*QueryEpochMsgsResponse, error) { out := new(QueryEpochMsgsResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Query/EpochMsgs", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Query/EpochMsgs", in, out, opts...) if err != nil { return nil, err } @@ -1113,7 +1113,7 @@ func (c *queryClient) EpochMsgs(ctx context.Context, in *QueryEpochMsgsRequest, func (c *queryClient) LatestEpochMsgs(ctx context.Context, in *QueryLatestEpochMsgsRequest, opts ...grpc.CallOption) (*QueryLatestEpochMsgsResponse, error) { out := new(QueryLatestEpochMsgsResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Query/LatestEpochMsgs", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Query/LatestEpochMsgs", in, out, opts...) if err != nil { return nil, err } @@ -1122,7 +1122,7 @@ func (c *queryClient) LatestEpochMsgs(ctx context.Context, in *QueryLatestEpochM func (c *queryClient) ValidatorLifecycle(ctx context.Context, in *QueryValidatorLifecycleRequest, opts ...grpc.CallOption) (*QueryValidatorLifecycleResponse, error) { out := new(QueryValidatorLifecycleResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Query/ValidatorLifecycle", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Query/ValidatorLifecycle", in, out, opts...) if err != nil { return nil, err } @@ -1131,7 +1131,7 @@ func (c *queryClient) ValidatorLifecycle(ctx context.Context, in *QueryValidator func (c *queryClient) DelegationLifecycle(ctx context.Context, in *QueryDelegationLifecycleRequest, opts ...grpc.CallOption) (*QueryDelegationLifecycleResponse, error) { out := new(QueryDelegationLifecycleResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Query/DelegationLifecycle", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Query/DelegationLifecycle", in, out, opts...) if err != nil { return nil, err } @@ -1140,7 +1140,7 @@ func (c *queryClient) DelegationLifecycle(ctx context.Context, in *QueryDelegati func (c *queryClient) EpochValSet(ctx context.Context, in *QueryEpochValSetRequest, opts ...grpc.CallOption) (*QueryEpochValSetResponse, error) { out := new(QueryEpochValSetResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Query/EpochValSet", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Query/EpochValSet", in, out, opts...) if err != nil { return nil, err } @@ -1218,7 +1218,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Query/Params", + FullMethod: "/cosmos.epoching.v1.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -1236,7 +1236,7 @@ func _Query_EpochInfo_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Query/EpochInfo", + FullMethod: "/cosmos.epoching.v1.Query/EpochInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).EpochInfo(ctx, req.(*QueryEpochInfoRequest)) @@ -1254,7 +1254,7 @@ func _Query_EpochsInfo_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Query/EpochsInfo", + FullMethod: "/cosmos.epoching.v1.Query/EpochsInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).EpochsInfo(ctx, req.(*QueryEpochsInfoRequest)) @@ -1272,7 +1272,7 @@ func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Query/CurrentEpoch", + FullMethod: "/cosmos.epoching.v1.Query/CurrentEpoch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).CurrentEpoch(ctx, req.(*QueryCurrentEpochRequest)) @@ -1290,7 +1290,7 @@ func _Query_EpochMsgs_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Query/EpochMsgs", + FullMethod: "/cosmos.epoching.v1.Query/EpochMsgs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).EpochMsgs(ctx, req.(*QueryEpochMsgsRequest)) @@ -1308,7 +1308,7 @@ func _Query_LatestEpochMsgs_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Query/LatestEpochMsgs", + FullMethod: "/cosmos.epoching.v1.Query/LatestEpochMsgs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).LatestEpochMsgs(ctx, req.(*QueryLatestEpochMsgsRequest)) @@ -1326,7 +1326,7 @@ func _Query_ValidatorLifecycle_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Query/ValidatorLifecycle", + FullMethod: "/cosmos.epoching.v1.Query/ValidatorLifecycle", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ValidatorLifecycle(ctx, req.(*QueryValidatorLifecycleRequest)) @@ -1344,7 +1344,7 @@ func _Query_DelegationLifecycle_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Query/DelegationLifecycle", + FullMethod: "/cosmos.epoching.v1.Query/DelegationLifecycle", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).DelegationLifecycle(ctx, req.(*QueryDelegationLifecycleRequest)) @@ -1362,7 +1362,7 @@ func _Query_EpochValSet_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Query/EpochValSet", + FullMethod: "/cosmos.epoching.v1.Query/EpochValSet", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).EpochValSet(ctx, req.(*QueryEpochValSetRequest)) @@ -1371,7 +1371,7 @@ func _Query_EpochValSet_Handler(srv interface{}, ctx context.Context, dec func(i } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "babylon.epoching.v1.Query", + ServiceName: "cosmos.epoching.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1412,7 +1412,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "babylon/epoching/v1/query.proto", + Metadata: "cosmos/epoching/v1/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/epoching/types/query.pb.gw.go b/x/epoching/types/query.pb.gw.go index 46850074f83..442c1551d46 100644 --- a/x/epoching/types/query.pb.gw.go +++ b/x/epoching/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: babylon/epoching/v1/query.proto +// source: cosmos/epoching/v1/query.proto /* Package types is a reverse proxy. @@ -885,23 +885,23 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"babylon", "epoching", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "epoching", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EpochInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"babylon", "epoching", "v1", "epochs", "epoch_num"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_EpochInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "epoching", "v1", "epochs", "epoch_num"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EpochsInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"babylon", "epoching", "v1", "epochs"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_EpochsInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "epoching", "v1", "epochs"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_CurrentEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"babylon", "epoching", "v1", "current_epoch"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_CurrentEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "epoching", "v1", "current_epoch"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EpochMsgs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"babylon", "epoching", "v1", "epochs", "epoch_num", "messages"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_EpochMsgs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "epoching", "v1", "epochs", "epoch_num", "messages"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LatestEpochMsgs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"babylon", "epoching", "v1", "epochs:latest", "messages"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_LatestEpochMsgs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"cosmos", "epoching", "v1", "epochs:latest", "messages"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ValidatorLifecycle_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"babylon", "epoching", "v1", "validator_lifecycle", "val_addr"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_ValidatorLifecycle_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "epoching", "v1", "validator_lifecycle", "val_addr"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DelegationLifecycle_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"babylon", "epoching", "v1", "delegation_lifecycle", "del_addr"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DelegationLifecycle_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "epoching", "v1", "delegation_lifecycle", "del_addr"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EpochValSet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"babylon", "epoching", "v1", "epochs", "epoch_num", "validator_set"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_EpochValSet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "epoching", "v1", "epochs", "epoch_num", "validator_set"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/epoching/types/tx.pb.go b/x/epoching/types/tx.pb.go index 56c8ce0b9f9..aad52db5ec1 100644 --- a/x/epoching/types/tx.pb.go +++ b/x/epoching/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylon/epoching/v1/tx.proto +// source: cosmos/epoching/v1/tx.proto package types @@ -40,7 +40,7 @@ func (m *MsgWrappedDelegate) Reset() { *m = MsgWrappedDelegate{} } func (m *MsgWrappedDelegate) String() string { return proto.CompactTextString(m) } func (*MsgWrappedDelegate) ProtoMessage() {} func (*MsgWrappedDelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_a5fc8fed8f4e58b6, []int{0} + return fileDescriptor_b879e61ea19b553c, []int{0} } func (m *MsgWrappedDelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ func (m *MsgWrappedDelegateResponse) Reset() { *m = MsgWrappedDelegateRe func (m *MsgWrappedDelegateResponse) String() string { return proto.CompactTextString(m) } func (*MsgWrappedDelegateResponse) ProtoMessage() {} func (*MsgWrappedDelegateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5fc8fed8f4e58b6, []int{1} + return fileDescriptor_b879e61ea19b553c, []int{1} } func (m *MsgWrappedDelegateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -115,7 +115,7 @@ func (m *MsgWrappedUndelegate) Reset() { *m = MsgWrappedUndelegate{} } func (m *MsgWrappedUndelegate) String() string { return proto.CompactTextString(m) } func (*MsgWrappedUndelegate) ProtoMessage() {} func (*MsgWrappedUndelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_a5fc8fed8f4e58b6, []int{2} + return fileDescriptor_b879e61ea19b553c, []int{2} } func (m *MsgWrappedUndelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -153,7 +153,7 @@ func (m *MsgWrappedUndelegateResponse) Reset() { *m = MsgWrappedUndelega func (m *MsgWrappedUndelegateResponse) String() string { return proto.CompactTextString(m) } func (*MsgWrappedUndelegateResponse) ProtoMessage() {} func (*MsgWrappedUndelegateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5fc8fed8f4e58b6, []int{3} + return fileDescriptor_b879e61ea19b553c, []int{3} } func (m *MsgWrappedUndelegateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -192,7 +192,7 @@ func (m *MsgWrappedBeginRedelegate) Reset() { *m = MsgWrappedBeginRedele func (m *MsgWrappedBeginRedelegate) String() string { return proto.CompactTextString(m) } func (*MsgWrappedBeginRedelegate) ProtoMessage() {} func (*MsgWrappedBeginRedelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_a5fc8fed8f4e58b6, []int{4} + return fileDescriptor_b879e61ea19b553c, []int{4} } func (m *MsgWrappedBeginRedelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -230,7 +230,7 @@ func (m *MsgWrappedBeginRedelegateResponse) Reset() { *m = MsgWrappedBeg func (m *MsgWrappedBeginRedelegateResponse) String() string { return proto.CompactTextString(m) } func (*MsgWrappedBeginRedelegateResponse) ProtoMessage() {} func (*MsgWrappedBeginRedelegateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5fc8fed8f4e58b6, []int{5} + return fileDescriptor_b879e61ea19b553c, []int{5} } func (m *MsgWrappedBeginRedelegateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -276,7 +276,7 @@ func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_a5fc8fed8f4e58b6, []int{6} + return fileDescriptor_b879e61ea19b553c, []int{6} } func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -327,7 +327,7 @@ func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5fc8fed8f4e58b6, []int{7} + return fileDescriptor_b879e61ea19b553c, []int{7} } func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -357,53 +357,52 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgWrappedDelegate)(nil), "babylon.epoching.v1.MsgWrappedDelegate") - proto.RegisterType((*MsgWrappedDelegateResponse)(nil), "babylon.epoching.v1.MsgWrappedDelegateResponse") - proto.RegisterType((*MsgWrappedUndelegate)(nil), "babylon.epoching.v1.MsgWrappedUndelegate") - proto.RegisterType((*MsgWrappedUndelegateResponse)(nil), "babylon.epoching.v1.MsgWrappedUndelegateResponse") - proto.RegisterType((*MsgWrappedBeginRedelegate)(nil), "babylon.epoching.v1.MsgWrappedBeginRedelegate") - proto.RegisterType((*MsgWrappedBeginRedelegateResponse)(nil), "babylon.epoching.v1.MsgWrappedBeginRedelegateResponse") - proto.RegisterType((*MsgUpdateParams)(nil), "babylon.epoching.v1.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "babylon.epoching.v1.MsgUpdateParamsResponse") -} - -func init() { proto.RegisterFile("babylon/epoching/v1/tx.proto", fileDescriptor_a5fc8fed8f4e58b6) } - -var fileDescriptor_a5fc8fed8f4e58b6 = []byte{ - // 514 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x31, 0x6f, 0xd3, 0x40, - 0x1c, 0xc5, 0x6d, 0x82, 0x2a, 0xfa, 0x07, 0x51, 0x61, 0x22, 0x9a, 0x98, 0xc8, 0x29, 0x29, 0x08, - 0xa8, 0xe0, 0x4c, 0x8a, 0x28, 0xa2, 0x62, 0x21, 0x62, 0x42, 0x8a, 0x84, 0x8c, 0x2a, 0x04, 0x0b, - 0x3a, 0xdb, 0xa7, 0x8b, 0xd5, 0xda, 0x67, 0x7c, 0xd7, 0xaa, 0xd9, 0x10, 0x13, 0x23, 0x03, 0x1f, - 0xa0, 0x1f, 0x81, 0x81, 0x0f, 0xd1, 0x81, 0xa1, 0x62, 0x62, 0x42, 0x28, 0x19, 0xe0, 0x63, 0xa0, - 0xd8, 0x67, 0x5f, 0x70, 0x92, 0x26, 0xdd, 0x62, 0xbd, 0xf7, 0x7f, 0xbf, 0x17, 0xf9, 0xc9, 0xd0, - 0x70, 0xb1, 0xdb, 0xdf, 0x63, 0x91, 0x4d, 0x62, 0xe6, 0xf5, 0x82, 0x88, 0xda, 0x07, 0x6d, 0x5b, - 0x1c, 0xa2, 0x38, 0x61, 0x82, 0x19, 0x57, 0xa5, 0x8a, 0x72, 0x15, 0x1d, 0xb4, 0xcd, 0x2a, 0x65, - 0x94, 0xa5, 0xba, 0x3d, 0xfa, 0x95, 0x59, 0xcd, 0xa6, 0xc7, 0x78, 0xc8, 0xb8, 0xcd, 0x05, 0xde, - 0xcd, 0x62, 0x5c, 0x22, 0xb0, 0xca, 0x32, 0xd7, 0xa6, 0x91, 0x62, 0x9c, 0xe0, 0x90, 0x4b, 0x47, - 0x3d, 0x8b, 0x78, 0x97, 0x65, 0x67, 0x0f, 0x52, 0x5a, 0x95, 0xe9, 0x21, 0x4f, 0xcf, 0x42, 0x4e, - 0x33, 0xa1, 0xb5, 0x03, 0x46, 0x97, 0xd3, 0xd7, 0x09, 0x8e, 0x63, 0xe2, 0x3f, 0x27, 0x7b, 0x84, - 0x62, 0x41, 0x8c, 0x47, 0x50, 0x09, 0x39, 0xad, 0xe9, 0x6b, 0xfa, 0x9d, 0x8b, 0x9b, 0xeb, 0x48, - 0x46, 0xc9, 0x6a, 0x48, 0x56, 0x43, 0x5d, 0x4e, 0xf3, 0x0b, 0x67, 0xe4, 0xdf, 0xbe, 0xf0, 0xe9, - 0xa8, 0xa9, 0xfd, 0x3d, 0x6a, 0x6a, 0xad, 0x06, 0x98, 0x93, 0xb1, 0x0e, 0xe1, 0x31, 0x8b, 0x38, - 0x69, 0xbd, 0x81, 0xaa, 0x52, 0x77, 0x22, 0x3f, 0xc7, 0x3e, 0x1e, 0xc7, 0xde, 0x3a, 0x05, 0xab, - 0x6e, 0xca, 0x60, 0x0b, 0x1a, 0xd3, 0xa2, 0x0b, 0xb4, 0x07, 0x75, 0xa5, 0x77, 0x08, 0x0d, 0x22, - 0x87, 0x14, 0xfc, 0xa7, 0xe3, 0xfc, 0x8d, 0x53, 0xf8, 0xa5, 0xc3, 0x72, 0x89, 0x75, 0xb8, 0x31, - 0x13, 0x52, 0x34, 0xf9, 0xa2, 0xc3, 0xca, 0xe8, 0xaf, 0xc4, 0x3e, 0x16, 0xe4, 0x65, 0xfa, 0x1e, - 0x8d, 0x2d, 0x58, 0xc6, 0xfb, 0xa2, 0xc7, 0x92, 0x40, 0xf4, 0xd3, 0x1a, 0xcb, 0x9d, 0xda, 0x8f, - 0x6f, 0xf7, 0xab, 0xb2, 0xc9, 0x33, 0xdf, 0x4f, 0x08, 0xe7, 0xaf, 0x44, 0x12, 0x44, 0xd4, 0x51, - 0x56, 0xe3, 0x09, 0x2c, 0x65, 0x4b, 0xa8, 0x9d, 0x4b, 0xbb, 0x5f, 0x47, 0x53, 0x86, 0x87, 0x32, - 0x48, 0xe7, 0xfc, 0xf1, 0xaf, 0xa6, 0xe6, 0xc8, 0x83, 0xed, 0xcb, 0x1f, 0xff, 0x7c, 0xdd, 0x50, - 0x51, 0xad, 0x3a, 0xac, 0x96, 0x5a, 0xe5, 0x8d, 0x37, 0xbf, 0x57, 0xa0, 0xd2, 0xe5, 0xd4, 0xd8, - 0x85, 0x95, 0xf2, 0x60, 0x6e, 0x4f, 0x05, 0x4e, 0x4e, 0xc0, 0xb4, 0x17, 0x34, 0xe6, 0x50, 0xe3, - 0x3d, 0x5c, 0x99, 0x1c, 0xca, 0xdd, 0x39, 0x29, 0xca, 0x6a, 0xb6, 0x17, 0xb6, 0x16, 0xc8, 0x0f, - 0x3a, 0x5c, 0x9b, 0xb1, 0x10, 0x34, 0x27, 0xad, 0xe4, 0x37, 0xb7, 0xce, 0xe6, 0x2f, 0x2a, 0xb8, - 0x70, 0xe9, 0xbf, 0x61, 0xdc, 0x9c, 0x95, 0x33, 0xee, 0x32, 0xef, 0x2d, 0xe2, 0xca, 0x19, 0x9d, - 0x17, 0xc7, 0x03, 0x4b, 0x3f, 0x19, 0x58, 0xfa, 0xef, 0x81, 0xa5, 0x7f, 0x1e, 0x5a, 0xda, 0xc9, - 0xd0, 0xd2, 0x7e, 0x0e, 0x2d, 0xed, 0xed, 0x03, 0x1a, 0x88, 0xde, 0xbe, 0x8b, 0x3c, 0x16, 0xda, - 0x32, 0xd1, 0xeb, 0xe1, 0x20, 0xca, 0x1f, 0xec, 0x43, 0xf5, 0x11, 0x12, 0xfd, 0x98, 0x70, 0x77, - 0x29, 0xfd, 0x9a, 0x3c, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x69, 0x5c, 0x18, 0x0f, 0x05, - 0x00, 0x00, + proto.RegisterType((*MsgWrappedDelegate)(nil), "cosmos.epoching.v1.MsgWrappedDelegate") + proto.RegisterType((*MsgWrappedDelegateResponse)(nil), "cosmos.epoching.v1.MsgWrappedDelegateResponse") + proto.RegisterType((*MsgWrappedUndelegate)(nil), "cosmos.epoching.v1.MsgWrappedUndelegate") + proto.RegisterType((*MsgWrappedUndelegateResponse)(nil), "cosmos.epoching.v1.MsgWrappedUndelegateResponse") + proto.RegisterType((*MsgWrappedBeginRedelegate)(nil), "cosmos.epoching.v1.MsgWrappedBeginRedelegate") + proto.RegisterType((*MsgWrappedBeginRedelegateResponse)(nil), "cosmos.epoching.v1.MsgWrappedBeginRedelegateResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "cosmos.epoching.v1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "cosmos.epoching.v1.MsgUpdateParamsResponse") +} + +func init() { proto.RegisterFile("cosmos/epoching/v1/tx.proto", fileDescriptor_b879e61ea19b553c) } + +var fileDescriptor_b879e61ea19b553c = []byte{ + // 512 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xc1, 0x6a, 0x13, 0x41, + 0x18, 0xc7, 0x77, 0x8d, 0x16, 0xfb, 0x29, 0x16, 0x97, 0x60, 0x93, 0xb1, 0x6c, 0x34, 0x41, 0x29, + 0x91, 0xcc, 0xda, 0x4a, 0x55, 0x8a, 0x17, 0x83, 0xe0, 0x29, 0x20, 0x2b, 0x45, 0xf4, 0xa2, 0x9b, + 0xec, 0x30, 0x59, 0xea, 0xee, 0x2c, 0x3b, 0xd3, 0xd2, 0x5e, 0x44, 0x3c, 0x79, 0x14, 0x7c, 0x81, + 0x3e, 0x42, 0x0f, 0x3e, 0x44, 0xf1, 0x54, 0x3c, 0x79, 0x12, 0x49, 0x0e, 0xf5, 0x31, 0x24, 0x3b, + 0xb3, 0x3b, 0x71, 0xd3, 0x2c, 0xf1, 0x94, 0xc0, 0xf7, 0xfb, 0xfe, 0xbf, 0x7f, 0xc8, 0xc7, 0xc0, + 0xcd, 0x01, 0xe3, 0x21, 0xe3, 0x0e, 0x89, 0xd9, 0x60, 0x18, 0x44, 0xd4, 0xd9, 0xdf, 0x70, 0xc4, + 0x01, 0x8e, 0x13, 0x26, 0x98, 0x65, 0xc9, 0x21, 0xce, 0x86, 0x78, 0x7f, 0x03, 0x55, 0x29, 0xa3, + 0x2c, 0x1d, 0x3b, 0x93, 0x6f, 0x92, 0x44, 0x0d, 0x15, 0xc3, 0x85, 0xb7, 0x2b, 0x53, 0xfa, 0x44, + 0x78, 0x3a, 0x2a, 0x07, 0xa6, 0x3d, 0xb1, 0x97, 0x78, 0x21, 0x57, 0x40, 0x5d, 0x02, 0x6f, 0x65, + 0xb4, 0x12, 0xcb, 0xd1, 0xaa, 0xda, 0x0d, 0x79, 0xba, 0x16, 0x72, 0x2a, 0x07, 0xcd, 0x1d, 0xb0, + 0x7a, 0x9c, 0xbe, 0x4a, 0xbc, 0x38, 0x26, 0xfe, 0x33, 0xf2, 0x9e, 0x50, 0x4f, 0x10, 0x6b, 0x0b, + 0x2a, 0x21, 0xa7, 0x35, 0xf3, 0x96, 0xb9, 0x7e, 0x65, 0xb3, 0x85, 0x55, 0x94, 0x6a, 0x86, 0x55, + 0x33, 0xdc, 0xe3, 0x34, 0xdb, 0x70, 0x27, 0xfc, 0xf6, 0xe5, 0xcf, 0x47, 0x0d, 0xe3, 0xcf, 0x51, + 0xc3, 0x68, 0xae, 0x01, 0x9a, 0x8d, 0x75, 0x09, 0x8f, 0x59, 0xc4, 0x49, 0xf3, 0x35, 0x54, 0xf5, + 0x74, 0x27, 0xf2, 0x33, 0xed, 0xa3, 0x69, 0xed, 0x9d, 0x12, 0xad, 0xde, 0x29, 0x8a, 0x6d, 0x58, + 0x3b, 0x2f, 0x3a, 0x57, 0x0f, 0xa0, 0xae, 0xe7, 0x5d, 0x42, 0x83, 0xc8, 0x25, 0xb9, 0xff, 0xc9, + 0xb4, 0xbf, 0x5d, 0xe2, 0x2f, 0x2c, 0x16, 0x4b, 0xb4, 0xe0, 0xf6, 0x5c, 0x49, 0xde, 0xe4, 0xab, + 0x09, 0x2b, 0x93, 0x9f, 0x12, 0xfb, 0x9e, 0x20, 0x2f, 0xd2, 0xff, 0xd1, 0x7a, 0x08, 0xcb, 0xde, + 0x9e, 0x18, 0xb2, 0x24, 0x10, 0x87, 0x69, 0x8d, 0xe5, 0x6e, 0xed, 0xc7, 0xb7, 0x4e, 0x55, 0x35, + 0x79, 0xea, 0xfb, 0x09, 0xe1, 0xfc, 0xa5, 0x48, 0x82, 0x88, 0xba, 0x1a, 0xb5, 0x1e, 0xc3, 0x92, + 0xbc, 0x84, 0xda, 0x85, 0xb4, 0x3b, 0xc2, 0xb3, 0x67, 0x87, 0xa5, 0xa3, 0x7b, 0xf1, 0xe4, 0x57, + 0xc3, 0x70, 0x15, 0xbf, 0x7d, 0xed, 0xd3, 0xd9, 0x71, 0x5b, 0x27, 0x35, 0xeb, 0xb0, 0x5a, 0x28, + 0x95, 0x15, 0xde, 0xfc, 0x5e, 0x81, 0x4a, 0x8f, 0x53, 0x2b, 0x80, 0x95, 0xe2, 0xbd, 0xdc, 0x3d, + 0xcf, 0x37, 0x7b, 0x00, 0x08, 0x2f, 0xc6, 0x65, 0x4a, 0x8b, 0xc1, 0xf5, 0xd9, 0x2b, 0x59, 0x2f, + 0x0f, 0xd1, 0x24, 0xba, 0xbf, 0x28, 0x99, 0x0b, 0x3f, 0xc0, 0x8d, 0x39, 0xb7, 0xd1, 0x29, 0xcf, + 0x2a, 0xe0, 0x68, 0xeb, 0xbf, 0xf0, 0xdc, 0xff, 0x0e, 0xae, 0xfe, 0x73, 0x10, 0xad, 0x39, 0x31, + 0xd3, 0x10, 0xba, 0xb7, 0x00, 0x94, 0x19, 0xd0, 0xa5, 0x8f, 0x67, 0xc7, 0x6d, 0xb3, 0xfb, 0xfc, + 0x64, 0x64, 0x9b, 0xa7, 0x23, 0xdb, 0xfc, 0x3d, 0xb2, 0xcd, 0x2f, 0x63, 0xdb, 0x38, 0x1d, 0xdb, + 0xc6, 0xcf, 0xb1, 0x6d, 0xbc, 0xe9, 0xd0, 0x40, 0x0c, 0xf7, 0xfa, 0x78, 0xc0, 0x42, 0xf5, 0x86, + 0xa8, 0x8f, 0x0e, 0xf7, 0x77, 0x9d, 0x03, 0xfd, 0xfc, 0x88, 0xc3, 0x98, 0xf0, 0xfe, 0x52, 0xfa, + 0x8e, 0x3c, 0xf8, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x52, 0xad, 0x33, 0x06, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -441,7 +440,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) WrappedDelegate(ctx context.Context, in *MsgWrappedDelegate, opts ...grpc.CallOption) (*MsgWrappedDelegateResponse, error) { out := new(MsgWrappedDelegateResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Msg/WrappedDelegate", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Msg/WrappedDelegate", in, out, opts...) if err != nil { return nil, err } @@ -450,7 +449,7 @@ func (c *msgClient) WrappedDelegate(ctx context.Context, in *MsgWrappedDelegate, func (c *msgClient) WrappedUndelegate(ctx context.Context, in *MsgWrappedUndelegate, opts ...grpc.CallOption) (*MsgWrappedUndelegateResponse, error) { out := new(MsgWrappedUndelegateResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Msg/WrappedUndelegate", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Msg/WrappedUndelegate", in, out, opts...) if err != nil { return nil, err } @@ -459,7 +458,7 @@ func (c *msgClient) WrappedUndelegate(ctx context.Context, in *MsgWrappedUndeleg func (c *msgClient) WrappedBeginRedelegate(ctx context.Context, in *MsgWrappedBeginRedelegate, opts ...grpc.CallOption) (*MsgWrappedBeginRedelegateResponse, error) { out := new(MsgWrappedBeginRedelegateResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Msg/WrappedBeginRedelegate", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Msg/WrappedBeginRedelegate", in, out, opts...) if err != nil { return nil, err } @@ -468,7 +467,7 @@ func (c *msgClient) WrappedBeginRedelegate(ctx context.Context, in *MsgWrappedBe func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/babylon.epoching.v1.Msg/UpdateParams", in, out, opts...) + err := c.cc.Invoke(ctx, "/cosmos.epoching.v1.Msg/UpdateParams", in, out, opts...) if err != nil { return nil, err } @@ -521,7 +520,7 @@ func _Msg_WrappedDelegate_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Msg/WrappedDelegate", + FullMethod: "/cosmos.epoching.v1.Msg/WrappedDelegate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).WrappedDelegate(ctx, req.(*MsgWrappedDelegate)) @@ -539,7 +538,7 @@ func _Msg_WrappedUndelegate_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Msg/WrappedUndelegate", + FullMethod: "/cosmos.epoching.v1.Msg/WrappedUndelegate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).WrappedUndelegate(ctx, req.(*MsgWrappedUndelegate)) @@ -557,7 +556,7 @@ func _Msg_WrappedBeginRedelegate_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Msg/WrappedBeginRedelegate", + FullMethod: "/cosmos.epoching.v1.Msg/WrappedBeginRedelegate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).WrappedBeginRedelegate(ctx, req.(*MsgWrappedBeginRedelegate)) @@ -575,7 +574,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylon.epoching.v1.Msg/UpdateParams", + FullMethod: "/cosmos.epoching.v1.Msg/UpdateParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) @@ -584,7 +583,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "babylon.epoching.v1.Msg", + ServiceName: "cosmos.epoching.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -605,7 +604,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "babylon/epoching/v1/tx.proto", + Metadata: "cosmos/epoching/v1/tx.proto", } func (m *MsgWrappedDelegate) Marshal() (dAtA []byte, err error) {