diff --git a/api/regen/ecocredit/marketplace/v1/tx.pulsar.go b/api/regen/ecocredit/marketplace/v1/tx.pulsar.go index 917f9c6339..48f16558e4 100644 --- a/api/regen/ecocredit/marketplace/v1/tx.pulsar.go +++ b/api/regen/ecocredit/marketplace/v1/tx.pulsar.go @@ -9415,12 +9415,12 @@ var file_regen_ecocredit_marketplace_v1_tx_proto_rawDesc = []byte{ 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 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, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, - 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 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, 0x1a, 0x14, 0x67, + 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, + 0x6f, 0x69, 0x6e, 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, 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, diff --git a/api/regen/ecocredit/v1/events.pulsar.go b/api/regen/ecocredit/v1/events.pulsar.go index 9582938c32..10ed170a78 100644 --- a/api/regen/ecocredit/v1/events.pulsar.go +++ b/api/regen/ecocredit/v1/events.pulsar.go @@ -9637,6 +9637,1310 @@ func (x *fastReflection_EventBurnRegen) ProtoMethods() *protoiface.Methods { } } +var ( + md_EventUpdateApplication protoreflect.MessageDescriptor + fd_EventUpdateApplication_project_id protoreflect.FieldDescriptor + fd_EventUpdateApplication_class_id protoreflect.FieldDescriptor + fd_EventUpdateApplication_action protoreflect.FieldDescriptor + fd_EventUpdateApplication_new_application_metadata protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_events_proto_init() + md_EventUpdateApplication = File_regen_ecocredit_v1_events_proto.Messages().ByName("EventUpdateApplication") + fd_EventUpdateApplication_project_id = md_EventUpdateApplication.Fields().ByName("project_id") + fd_EventUpdateApplication_class_id = md_EventUpdateApplication.Fields().ByName("class_id") + fd_EventUpdateApplication_action = md_EventUpdateApplication.Fields().ByName("action") + fd_EventUpdateApplication_new_application_metadata = md_EventUpdateApplication.Fields().ByName("new_application_metadata") +} + +var _ protoreflect.Message = (*fastReflection_EventUpdateApplication)(nil) + +type fastReflection_EventUpdateApplication EventUpdateApplication + +func (x *EventUpdateApplication) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventUpdateApplication)(x) +} + +func (x *EventUpdateApplication) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_events_proto_msgTypes[19] + 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_EventUpdateApplication_messageType fastReflection_EventUpdateApplication_messageType +var _ protoreflect.MessageType = fastReflection_EventUpdateApplication_messageType{} + +type fastReflection_EventUpdateApplication_messageType struct{} + +func (x fastReflection_EventUpdateApplication_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventUpdateApplication)(nil) +} +func (x fastReflection_EventUpdateApplication_messageType) New() protoreflect.Message { + return new(fastReflection_EventUpdateApplication) +} +func (x fastReflection_EventUpdateApplication_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventUpdateApplication +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventUpdateApplication) Descriptor() protoreflect.MessageDescriptor { + return md_EventUpdateApplication +} + +// 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_EventUpdateApplication) Type() protoreflect.MessageType { + return _fastReflection_EventUpdateApplication_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventUpdateApplication) New() protoreflect.Message { + return new(fastReflection_EventUpdateApplication) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventUpdateApplication) Interface() protoreflect.ProtoMessage { + return (*EventUpdateApplication)(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_EventUpdateApplication) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_EventUpdateApplication_project_id, value) { + return + } + } + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_EventUpdateApplication_class_id, value) { + return + } + } + if x.Action != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Action)) + if !f(fd_EventUpdateApplication_action, value) { + return + } + } + if x.NewApplicationMetadata != "" { + value := protoreflect.ValueOfString(x.NewApplicationMetadata) + if !f(fd_EventUpdateApplication_new_application_metadata, 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_EventUpdateApplication) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.EventUpdateApplication.project_id": + return x.ProjectId != "" + case "regen.ecocredit.v1.EventUpdateApplication.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.EventUpdateApplication.action": + return x.Action != 0 + case "regen.ecocredit.v1.EventUpdateApplication.new_application_metadata": + return x.NewApplicationMetadata != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateApplication")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateApplication 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_EventUpdateApplication) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.EventUpdateApplication.project_id": + x.ProjectId = "" + case "regen.ecocredit.v1.EventUpdateApplication.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.EventUpdateApplication.action": + x.Action = 0 + case "regen.ecocredit.v1.EventUpdateApplication.new_application_metadata": + x.NewApplicationMetadata = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateApplication")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateApplication 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_EventUpdateApplication) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.EventUpdateApplication.project_id": + value := x.ProjectId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.EventUpdateApplication.class_id": + value := x.ClassId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.EventUpdateApplication.action": + value := x.Action + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "regen.ecocredit.v1.EventUpdateApplication.new_application_metadata": + value := x.NewApplicationMetadata + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateApplication")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateApplication 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_EventUpdateApplication) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.EventUpdateApplication.project_id": + x.ProjectId = value.Interface().(string) + case "regen.ecocredit.v1.EventUpdateApplication.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.EventUpdateApplication.action": + x.Action = (EventUpdateApplication_Action)(value.Enum()) + case "regen.ecocredit.v1.EventUpdateApplication.new_application_metadata": + x.NewApplicationMetadata = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateApplication")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateApplication 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_EventUpdateApplication) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.EventUpdateApplication.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.EventUpdateApplication is not mutable")) + case "regen.ecocredit.v1.EventUpdateApplication.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.EventUpdateApplication is not mutable")) + case "regen.ecocredit.v1.EventUpdateApplication.action": + panic(fmt.Errorf("field action of message regen.ecocredit.v1.EventUpdateApplication is not mutable")) + case "regen.ecocredit.v1.EventUpdateApplication.new_application_metadata": + panic(fmt.Errorf("field new_application_metadata of message regen.ecocredit.v1.EventUpdateApplication is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateApplication")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateApplication 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_EventUpdateApplication) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.EventUpdateApplication.project_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.EventUpdateApplication.class_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.EventUpdateApplication.action": + return protoreflect.ValueOfEnum(0) + case "regen.ecocredit.v1.EventUpdateApplication.new_application_metadata": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateApplication")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateApplication 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_EventUpdateApplication) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.EventUpdateApplication", 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_EventUpdateApplication) 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_EventUpdateApplication) 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_EventUpdateApplication) 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_EventUpdateApplication) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventUpdateApplication) + 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.ProjectId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ClassId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Action != 0 { + n += 1 + runtime.Sov(uint64(x.Action)) + } + l = len(x.NewApplicationMetadata) + 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().(*EventUpdateApplication) + 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.NewApplicationMetadata) > 0 { + i -= len(x.NewApplicationMetadata) + copy(dAtA[i:], x.NewApplicationMetadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewApplicationMetadata))) + i-- + dAtA[i] = 0x22 + } + if x.Action != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Action)) + i-- + dAtA[i] = 0x18 + } + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) + 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().(*EventUpdateApplication) + 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: EventUpdateApplication: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateApplication: 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 ProjectId", 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.ProjectId = 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 ClassId", 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.ClassId = 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 Action", wireType) + } + x.Action = 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.Action |= EventUpdateApplication_Action(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 NewApplicationMetadata", 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.NewApplicationMetadata = 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_EventUpdateProjectEnrollment protoreflect.MessageDescriptor + fd_EventUpdateProjectEnrollment_issuer protoreflect.FieldDescriptor + fd_EventUpdateProjectEnrollment_project_id protoreflect.FieldDescriptor + fd_EventUpdateProjectEnrollment_class_id protoreflect.FieldDescriptor + fd_EventUpdateProjectEnrollment_old_status protoreflect.FieldDescriptor + fd_EventUpdateProjectEnrollment_new_status protoreflect.FieldDescriptor + fd_EventUpdateProjectEnrollment_new_enrollment_metadata protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_events_proto_init() + md_EventUpdateProjectEnrollment = File_regen_ecocredit_v1_events_proto.Messages().ByName("EventUpdateProjectEnrollment") + fd_EventUpdateProjectEnrollment_issuer = md_EventUpdateProjectEnrollment.Fields().ByName("issuer") + fd_EventUpdateProjectEnrollment_project_id = md_EventUpdateProjectEnrollment.Fields().ByName("project_id") + fd_EventUpdateProjectEnrollment_class_id = md_EventUpdateProjectEnrollment.Fields().ByName("class_id") + fd_EventUpdateProjectEnrollment_old_status = md_EventUpdateProjectEnrollment.Fields().ByName("old_status") + fd_EventUpdateProjectEnrollment_new_status = md_EventUpdateProjectEnrollment.Fields().ByName("new_status") + fd_EventUpdateProjectEnrollment_new_enrollment_metadata = md_EventUpdateProjectEnrollment.Fields().ByName("new_enrollment_metadata") +} + +var _ protoreflect.Message = (*fastReflection_EventUpdateProjectEnrollment)(nil) + +type fastReflection_EventUpdateProjectEnrollment EventUpdateProjectEnrollment + +func (x *EventUpdateProjectEnrollment) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventUpdateProjectEnrollment)(x) +} + +func (x *EventUpdateProjectEnrollment) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_events_proto_msgTypes[20] + 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_EventUpdateProjectEnrollment_messageType fastReflection_EventUpdateProjectEnrollment_messageType +var _ protoreflect.MessageType = fastReflection_EventUpdateProjectEnrollment_messageType{} + +type fastReflection_EventUpdateProjectEnrollment_messageType struct{} + +func (x fastReflection_EventUpdateProjectEnrollment_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventUpdateProjectEnrollment)(nil) +} +func (x fastReflection_EventUpdateProjectEnrollment_messageType) New() protoreflect.Message { + return new(fastReflection_EventUpdateProjectEnrollment) +} +func (x fastReflection_EventUpdateProjectEnrollment_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventUpdateProjectEnrollment +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventUpdateProjectEnrollment) Descriptor() protoreflect.MessageDescriptor { + return md_EventUpdateProjectEnrollment +} + +// 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_EventUpdateProjectEnrollment) Type() protoreflect.MessageType { + return _fastReflection_EventUpdateProjectEnrollment_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventUpdateProjectEnrollment) New() protoreflect.Message { + return new(fastReflection_EventUpdateProjectEnrollment) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventUpdateProjectEnrollment) Interface() protoreflect.ProtoMessage { + return (*EventUpdateProjectEnrollment)(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_EventUpdateProjectEnrollment) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Issuer != "" { + value := protoreflect.ValueOfString(x.Issuer) + if !f(fd_EventUpdateProjectEnrollment_issuer, value) { + return + } + } + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_EventUpdateProjectEnrollment_project_id, value) { + return + } + } + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_EventUpdateProjectEnrollment_class_id, value) { + return + } + } + if x.OldStatus != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.OldStatus)) + if !f(fd_EventUpdateProjectEnrollment_old_status, value) { + return + } + } + if x.NewStatus != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.NewStatus)) + if !f(fd_EventUpdateProjectEnrollment_new_status, value) { + return + } + } + if x.NewEnrollmentMetadata != "" { + value := protoreflect.ValueOfString(x.NewEnrollmentMetadata) + if !f(fd_EventUpdateProjectEnrollment_new_enrollment_metadata, 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_EventUpdateProjectEnrollment) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.issuer": + return x.Issuer != "" + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.project_id": + return x.ProjectId != "" + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.old_status": + return x.OldStatus != 0 + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_status": + return x.NewStatus != 0 + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_enrollment_metadata": + return x.NewEnrollmentMetadata != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateProjectEnrollment 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_EventUpdateProjectEnrollment) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.issuer": + x.Issuer = "" + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.project_id": + x.ProjectId = "" + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.old_status": + x.OldStatus = 0 + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_status": + x.NewStatus = 0 + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_enrollment_metadata": + x.NewEnrollmentMetadata = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateProjectEnrollment 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_EventUpdateProjectEnrollment) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.issuer": + value := x.Issuer + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.project_id": + value := x.ProjectId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.class_id": + value := x.ClassId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.old_status": + value := x.OldStatus + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_status": + value := x.NewStatus + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_enrollment_metadata": + value := x.NewEnrollmentMetadata + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateProjectEnrollment 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_EventUpdateProjectEnrollment) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.issuer": + x.Issuer = value.Interface().(string) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.project_id": + x.ProjectId = value.Interface().(string) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.old_status": + x.OldStatus = (ProjectEnrollmentStatus)(value.Enum()) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_status": + x.NewStatus = (ProjectEnrollmentStatus)(value.Enum()) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_enrollment_metadata": + x.NewEnrollmentMetadata = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateProjectEnrollment 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_EventUpdateProjectEnrollment) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.issuer": + panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.EventUpdateProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.EventUpdateProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.EventUpdateProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.old_status": + panic(fmt.Errorf("field old_status of message regen.ecocredit.v1.EventUpdateProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_status": + panic(fmt.Errorf("field new_status of message regen.ecocredit.v1.EventUpdateProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_enrollment_metadata": + panic(fmt.Errorf("field new_enrollment_metadata of message regen.ecocredit.v1.EventUpdateProjectEnrollment is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateProjectEnrollment 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_EventUpdateProjectEnrollment) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.issuer": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.project_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.class_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.old_status": + return protoreflect.ValueOfEnum(0) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_status": + return protoreflect.ValueOfEnum(0) + case "regen.ecocredit.v1.EventUpdateProjectEnrollment.new_enrollment_metadata": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.EventUpdateProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.EventUpdateProjectEnrollment 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_EventUpdateProjectEnrollment) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.EventUpdateProjectEnrollment", 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_EventUpdateProjectEnrollment) 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_EventUpdateProjectEnrollment) 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_EventUpdateProjectEnrollment) 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_EventUpdateProjectEnrollment) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventUpdateProjectEnrollment) + 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.Issuer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ProjectId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ClassId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.OldStatus != 0 { + n += 1 + runtime.Sov(uint64(x.OldStatus)) + } + if x.NewStatus != 0 { + n += 1 + runtime.Sov(uint64(x.NewStatus)) + } + l = len(x.NewEnrollmentMetadata) + 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().(*EventUpdateProjectEnrollment) + 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.NewEnrollmentMetadata) > 0 { + i -= len(x.NewEnrollmentMetadata) + copy(dAtA[i:], x.NewEnrollmentMetadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewEnrollmentMetadata))) + i-- + dAtA[i] = 0x32 + } + if x.NewStatus != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NewStatus)) + i-- + dAtA[i] = 0x28 + } + if x.OldStatus != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.OldStatus)) + i-- + dAtA[i] = 0x20 + } + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + i-- + dAtA[i] = 0x1a + } + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Issuer) > 0 { + i -= len(x.Issuer) + copy(dAtA[i:], x.Issuer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) + 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().(*EventUpdateProjectEnrollment) + 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: EventUpdateProjectEnrollment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateProjectEnrollment: 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 Issuer", 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.Issuer = 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 ProjectId", 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.ProjectId = 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 ClassId", 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.ClassId = 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 OldStatus", wireType) + } + x.OldStatus = 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.OldStatus |= ProjectEnrollmentStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewStatus", wireType) + } + x.NewStatus = 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.NewStatus |= ProjectEnrollmentStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewEnrollmentMetadata", 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.NewEnrollmentMetadata = 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 @@ -9650,6 +10954,66 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// Action describes an action taken on an application. +type EventUpdateApplication_Action int32 + +const ( + // ACTION_UNSPECIFIED is the default value for the action and is invalid. + EventUpdateApplication_ACTION_UNSPECIFIED EventUpdateApplication_Action = 0 + // ACTION_CREATE is the action taken when a project admin creates an + // application to a credit class. + EventUpdateApplication_ACTION_CREATE EventUpdateApplication_Action = 1 + // ACTION_UPDATE is the action taken when a project admin updates an + // application to a credit class. + EventUpdateApplication_ACTION_UPDATE EventUpdateApplication_Action = 2 + // ACTION_WITHDRAW is the action taken when a project admin withdraws an + // application to a credit class. + EventUpdateApplication_ACTION_WITHDRAW EventUpdateApplication_Action = 3 +) + +// Enum value maps for EventUpdateApplication_Action. +var ( + EventUpdateApplication_Action_name = map[int32]string{ + 0: "ACTION_UNSPECIFIED", + 1: "ACTION_CREATE", + 2: "ACTION_UPDATE", + 3: "ACTION_WITHDRAW", + } + EventUpdateApplication_Action_value = map[string]int32{ + "ACTION_UNSPECIFIED": 0, + "ACTION_CREATE": 1, + "ACTION_UPDATE": 2, + "ACTION_WITHDRAW": 3, + } +) + +func (x EventUpdateApplication_Action) Enum() *EventUpdateApplication_Action { + p := new(EventUpdateApplication_Action) + *p = x + return p +} + +func (x EventUpdateApplication_Action) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EventUpdateApplication_Action) Descriptor() protoreflect.EnumDescriptor { + return file_regen_ecocredit_v1_events_proto_enumTypes[0].Descriptor() +} + +func (EventUpdateApplication_Action) Type() protoreflect.EnumType { + return &file_regen_ecocredit_v1_events_proto_enumTypes[0] +} + +func (x EventUpdateApplication_Action) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use EventUpdateApplication_Action.Descriptor instead. +func (EventUpdateApplication_Action) EnumDescriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_events_proto_rawDescGZIP(), []int{19, 0} +} + // EventCreateClass is an event emitted when a credit class is created. type EventCreateClass struct { state protoimpl.MessageState @@ -10625,6 +11989,156 @@ func (x *EventBurnRegen) GetReason() string { return "" } +// EventUpdateApplication is emitted when a project admin creates, updates +// or withdraws a project's application to a credit class. +type EventUpdateApplication struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // project_id is the unique identifier of the project that was updated. + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // class_id is the unique identifier of the class that was updated. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // action is the action that was taken on the application. + Action EventUpdateApplication_Action `protobuf:"varint,3,opt,name=action,proto3,enum=regen.ecocredit.v1.EventUpdateApplication_Action" json:"action,omitempty"` + // new_application_metadata is any new application metadata. + NewApplicationMetadata string `protobuf:"bytes,4,opt,name=new_application_metadata,json=newApplicationMetadata,proto3" json:"new_application_metadata,omitempty"` +} + +func (x *EventUpdateApplication) Reset() { + *x = EventUpdateApplication{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_events_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventUpdateApplication) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventUpdateApplication) ProtoMessage() {} + +// Deprecated: Use EventUpdateApplication.ProtoReflect.Descriptor instead. +func (*EventUpdateApplication) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_events_proto_rawDescGZIP(), []int{19} +} + +func (x *EventUpdateApplication) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *EventUpdateApplication) GetClassId() string { + if x != nil { + return x.ClassId + } + return "" +} + +func (x *EventUpdateApplication) GetAction() EventUpdateApplication_Action { + if x != nil { + return x.Action + } + return EventUpdateApplication_ACTION_UNSPECIFIED +} + +func (x *EventUpdateApplication) GetNewApplicationMetadata() string { + if x != nil { + return x.NewApplicationMetadata + } + return "" +} + +// EventUpdateProjectEnrollment is emitted when a credit class issuer updates +// the enrollment status of a project. +type EventUpdateProjectEnrollment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // issuer is the address of the credit class issuer which evaluated the + // project. + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + // project_id is the unique identifier of the project that was evaluated. + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // class_id is the unique identifier of the class in which the project was + // evaluated. + ClassId string `protobuf:"bytes,3,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // old_status is the old status of the project class relationship. + OldStatus ProjectEnrollmentStatus `protobuf:"varint,4,opt,name=old_status,json=oldStatus,proto3,enum=regen.ecocredit.v1.ProjectEnrollmentStatus" json:"old_status,omitempty"` + // new_status is the new status of the project class relationship. + NewStatus ProjectEnrollmentStatus `protobuf:"varint,5,opt,name=new_status,json=newStatus,proto3,enum=regen.ecocredit.v1.ProjectEnrollmentStatus" json:"new_status,omitempty"` + // new_enrollment_metadata is any new enrollment metadata. + NewEnrollmentMetadata string `protobuf:"bytes,6,opt,name=new_enrollment_metadata,json=newEnrollmentMetadata,proto3" json:"new_enrollment_metadata,omitempty"` +} + +func (x *EventUpdateProjectEnrollment) Reset() { + *x = EventUpdateProjectEnrollment{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_events_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventUpdateProjectEnrollment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventUpdateProjectEnrollment) ProtoMessage() {} + +// Deprecated: Use EventUpdateProjectEnrollment.ProtoReflect.Descriptor instead. +func (*EventUpdateProjectEnrollment) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_events_proto_rawDescGZIP(), []int{20} +} + +func (x *EventUpdateProjectEnrollment) GetIssuer() string { + if x != nil { + return x.Issuer + } + return "" +} + +func (x *EventUpdateProjectEnrollment) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *EventUpdateProjectEnrollment) GetClassId() string { + if x != nil { + return x.ClassId + } + return "" +} + +func (x *EventUpdateProjectEnrollment) GetOldStatus() ProjectEnrollmentStatus { + if x != nil { + return x.OldStatus + } + return ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_UNSPECIFIED +} + +func (x *EventUpdateProjectEnrollment) GetNewStatus() ProjectEnrollmentStatus { + if x != nil { + return x.NewStatus + } + return ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_UNSPECIFIED +} + +func (x *EventUpdateProjectEnrollment) GetNewEnrollmentMetadata() string { + if x != nil { + return x.NewEnrollmentMetadata + } + return "" +} + var File_regen_ecocredit_v1_events_proto protoreflect.FileDescriptor var file_regen_ecocredit_v1_events_proto_rawDesc = []byte{ @@ -10632,6 +12146,8 @@ var file_regen_ecocredit_v1_events_proto_rawDesc = []byte{ 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, @@ -10745,22 +12261,61 @@ var file_regen_ecocredit_v1_events_proto_rawDesc = []byte{ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x72, 0x6e, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x42, 0xd9, 0x01, - 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, - 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, - 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xb4, 0x02, + 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x49, 0x64, 0x12, 0x49, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, + 0x18, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x16, 0x6e, 0x65, 0x77, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5b, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x43, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, + 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, + 0x13, 0x0a, 0x0f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, + 0x41, 0x57, 0x10, 0x03, 0x22, 0xc0, 0x02, 0x0a, 0x1c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, + 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x0a, 0x6f, 0x6c, 0x64, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, + 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x6f, 0x6c, 0x64, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x4a, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x36, 0x0a, 0x17, 0x6e, 0x65, 0x77, 0x5f, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, + 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x15, 0x6e, 0x65, 0x77, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0xd9, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, + 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, + 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, + 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -10775,38 +12330,46 @@ func file_regen_ecocredit_v1_events_proto_rawDescGZIP() []byte { return file_regen_ecocredit_v1_events_proto_rawDescData } -var file_regen_ecocredit_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_regen_ecocredit_v1_events_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_regen_ecocredit_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 21) var file_regen_ecocredit_v1_events_proto_goTypes = []interface{}{ - (*EventCreateClass)(nil), // 0: regen.ecocredit.v1.EventCreateClass - (*EventCreateProject)(nil), // 1: regen.ecocredit.v1.EventCreateProject - (*EventCreateBatch)(nil), // 2: regen.ecocredit.v1.EventCreateBatch - (*EventMint)(nil), // 3: regen.ecocredit.v1.EventMint - (*EventMintBatchCredits)(nil), // 4: regen.ecocredit.v1.EventMintBatchCredits - (*EventTransfer)(nil), // 5: regen.ecocredit.v1.EventTransfer - (*EventRetire)(nil), // 6: regen.ecocredit.v1.EventRetire - (*EventCancel)(nil), // 7: regen.ecocredit.v1.EventCancel - (*EventUpdateClassAdmin)(nil), // 8: regen.ecocredit.v1.EventUpdateClassAdmin - (*EventUpdateClassIssuers)(nil), // 9: regen.ecocredit.v1.EventUpdateClassIssuers - (*EventUpdateClassMetadata)(nil), // 10: regen.ecocredit.v1.EventUpdateClassMetadata - (*EventUpdateProjectAdmin)(nil), // 11: regen.ecocredit.v1.EventUpdateProjectAdmin - (*EventUpdateProjectMetadata)(nil), // 12: regen.ecocredit.v1.EventUpdateProjectMetadata - (*EventUpdateBatchMetadata)(nil), // 13: regen.ecocredit.v1.EventUpdateBatchMetadata - (*EventSealBatch)(nil), // 14: regen.ecocredit.v1.EventSealBatch - (*EventAddCreditType)(nil), // 15: regen.ecocredit.v1.EventAddCreditType - (*EventBridge)(nil), // 16: regen.ecocredit.v1.EventBridge - (*EventBridgeReceive)(nil), // 17: regen.ecocredit.v1.EventBridgeReceive - (*EventBurnRegen)(nil), // 18: regen.ecocredit.v1.EventBurnRegen - (*OriginTx)(nil), // 19: regen.ecocredit.v1.OriginTx + (EventUpdateApplication_Action)(0), // 0: regen.ecocredit.v1.EventUpdateApplication.Action + (*EventCreateClass)(nil), // 1: regen.ecocredit.v1.EventCreateClass + (*EventCreateProject)(nil), // 2: regen.ecocredit.v1.EventCreateProject + (*EventCreateBatch)(nil), // 3: regen.ecocredit.v1.EventCreateBatch + (*EventMint)(nil), // 4: regen.ecocredit.v1.EventMint + (*EventMintBatchCredits)(nil), // 5: regen.ecocredit.v1.EventMintBatchCredits + (*EventTransfer)(nil), // 6: regen.ecocredit.v1.EventTransfer + (*EventRetire)(nil), // 7: regen.ecocredit.v1.EventRetire + (*EventCancel)(nil), // 8: regen.ecocredit.v1.EventCancel + (*EventUpdateClassAdmin)(nil), // 9: regen.ecocredit.v1.EventUpdateClassAdmin + (*EventUpdateClassIssuers)(nil), // 10: regen.ecocredit.v1.EventUpdateClassIssuers + (*EventUpdateClassMetadata)(nil), // 11: regen.ecocredit.v1.EventUpdateClassMetadata + (*EventUpdateProjectAdmin)(nil), // 12: regen.ecocredit.v1.EventUpdateProjectAdmin + (*EventUpdateProjectMetadata)(nil), // 13: regen.ecocredit.v1.EventUpdateProjectMetadata + (*EventUpdateBatchMetadata)(nil), // 14: regen.ecocredit.v1.EventUpdateBatchMetadata + (*EventSealBatch)(nil), // 15: regen.ecocredit.v1.EventSealBatch + (*EventAddCreditType)(nil), // 16: regen.ecocredit.v1.EventAddCreditType + (*EventBridge)(nil), // 17: regen.ecocredit.v1.EventBridge + (*EventBridgeReceive)(nil), // 18: regen.ecocredit.v1.EventBridgeReceive + (*EventBurnRegen)(nil), // 19: regen.ecocredit.v1.EventBurnRegen + (*EventUpdateApplication)(nil), // 20: regen.ecocredit.v1.EventUpdateApplication + (*EventUpdateProjectEnrollment)(nil), // 21: regen.ecocredit.v1.EventUpdateProjectEnrollment + (*OriginTx)(nil), // 22: regen.ecocredit.v1.OriginTx + (ProjectEnrollmentStatus)(0), // 23: regen.ecocredit.v1.ProjectEnrollmentStatus } var file_regen_ecocredit_v1_events_proto_depIdxs = []int32{ - 19, // 0: regen.ecocredit.v1.EventCreateBatch.origin_tx:type_name -> regen.ecocredit.v1.OriginTx - 19, // 1: regen.ecocredit.v1.EventMintBatchCredits.origin_tx:type_name -> regen.ecocredit.v1.OriginTx - 19, // 2: regen.ecocredit.v1.EventBridgeReceive.origin_tx:type_name -> regen.ecocredit.v1.OriginTx - 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 + 22, // 0: regen.ecocredit.v1.EventCreateBatch.origin_tx:type_name -> regen.ecocredit.v1.OriginTx + 22, // 1: regen.ecocredit.v1.EventMintBatchCredits.origin_tx:type_name -> regen.ecocredit.v1.OriginTx + 22, // 2: regen.ecocredit.v1.EventBridgeReceive.origin_tx:type_name -> regen.ecocredit.v1.OriginTx + 0, // 3: regen.ecocredit.v1.EventUpdateApplication.action:type_name -> regen.ecocredit.v1.EventUpdateApplication.Action + 23, // 4: regen.ecocredit.v1.EventUpdateProjectEnrollment.old_status:type_name -> regen.ecocredit.v1.ProjectEnrollmentStatus + 23, // 5: regen.ecocredit.v1.EventUpdateProjectEnrollment.new_status:type_name -> regen.ecocredit.v1.ProjectEnrollmentStatus + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_regen_ecocredit_v1_events_proto_init() } @@ -10814,6 +12377,7 @@ func file_regen_ecocredit_v1_events_proto_init() { if File_regen_ecocredit_v1_events_proto != nil { return } + file_regen_ecocredit_v1_state_proto_init() file_regen_ecocredit_v1_types_proto_init() if !protoimpl.UnsafeEnabled { file_regen_ecocredit_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { @@ -11044,19 +12608,44 @@ func file_regen_ecocredit_v1_events_proto_init() { return nil } } + file_regen_ecocredit_v1_events_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventUpdateApplication); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_events_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventUpdateProjectEnrollment); 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_regen_ecocredit_v1_events_proto_rawDesc, - NumEnums: 0, - NumMessages: 19, + NumEnums: 1, + NumMessages: 21, NumExtensions: 0, NumServices: 0, }, GoTypes: file_regen_ecocredit_v1_events_proto_goTypes, DependencyIndexes: file_regen_ecocredit_v1_events_proto_depIdxs, + EnumInfos: file_regen_ecocredit_v1_events_proto_enumTypes, MessageInfos: file_regen_ecocredit_v1_events_proto_msgTypes, }.Build() File_regen_ecocredit_v1_events_proto = out.File diff --git a/api/regen/ecocredit/v1/query.pulsar.go b/api/regen/ecocredit/v1/query.pulsar.go index 132a34ba8c..b552a26042 100644 --- a/api/regen/ecocredit/v1/query.pulsar.go +++ b/api/regen/ecocredit/v1/query.pulsar.go @@ -28020,6 +28020,1997 @@ func (x *fastReflection_QueryAllowedBridgeChainsResponse) ProtoMethods() *protoi } } +var ( + md_QueryProjectEnrollmentRequest protoreflect.MessageDescriptor + fd_QueryProjectEnrollmentRequest_project_id protoreflect.FieldDescriptor + fd_QueryProjectEnrollmentRequest_class_id protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_query_proto_init() + md_QueryProjectEnrollmentRequest = File_regen_ecocredit_v1_query_proto.Messages().ByName("QueryProjectEnrollmentRequest") + fd_QueryProjectEnrollmentRequest_project_id = md_QueryProjectEnrollmentRequest.Fields().ByName("project_id") + fd_QueryProjectEnrollmentRequest_class_id = md_QueryProjectEnrollmentRequest.Fields().ByName("class_id") +} + +var _ protoreflect.Message = (*fastReflection_QueryProjectEnrollmentRequest)(nil) + +type fastReflection_QueryProjectEnrollmentRequest QueryProjectEnrollmentRequest + +func (x *QueryProjectEnrollmentRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProjectEnrollmentRequest)(x) +} + +func (x *QueryProjectEnrollmentRequest) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[56] + 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_QueryProjectEnrollmentRequest_messageType fastReflection_QueryProjectEnrollmentRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryProjectEnrollmentRequest_messageType{} + +type fastReflection_QueryProjectEnrollmentRequest_messageType struct{} + +func (x fastReflection_QueryProjectEnrollmentRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProjectEnrollmentRequest)(nil) +} +func (x fastReflection_QueryProjectEnrollmentRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProjectEnrollmentRequest) +} +func (x fastReflection_QueryProjectEnrollmentRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectEnrollmentRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProjectEnrollmentRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectEnrollmentRequest +} + +// 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_QueryProjectEnrollmentRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryProjectEnrollmentRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProjectEnrollmentRequest) New() protoreflect.Message { + return new(fastReflection_QueryProjectEnrollmentRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProjectEnrollmentRequest) Interface() protoreflect.ProtoMessage { + return (*QueryProjectEnrollmentRequest)(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_QueryProjectEnrollmentRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_QueryProjectEnrollmentRequest_project_id, value) { + return + } + } + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_QueryProjectEnrollmentRequest_class_id, 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_QueryProjectEnrollmentRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.project_id": + return x.ProjectId != "" + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.class_id": + return x.ClassId != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentRequest 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_QueryProjectEnrollmentRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.project_id": + x.ProjectId = "" + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.class_id": + x.ClassId = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentRequest 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_QueryProjectEnrollmentRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.project_id": + value := x.ProjectId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.class_id": + value := x.ClassId + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentRequest 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_QueryProjectEnrollmentRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.project_id": + x.ProjectId = value.Interface().(string) + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.class_id": + x.ClassId = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentRequest 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_QueryProjectEnrollmentRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.QueryProjectEnrollmentRequest is not mutable")) + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.QueryProjectEnrollmentRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentRequest 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_QueryProjectEnrollmentRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.project_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.QueryProjectEnrollmentRequest.class_id": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentRequest 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_QueryProjectEnrollmentRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.QueryProjectEnrollmentRequest", 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_QueryProjectEnrollmentRequest) 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_QueryProjectEnrollmentRequest) 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_QueryProjectEnrollmentRequest) 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_QueryProjectEnrollmentRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProjectEnrollmentRequest) + 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.ProjectId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ClassId) + 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().(*QueryProjectEnrollmentRequest) + 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.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) + 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().(*QueryProjectEnrollmentRequest) + 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: QueryProjectEnrollmentRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProjectEnrollmentRequest: 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 ProjectId", 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.ProjectId = 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 ClassId", 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.ClassId = 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_QueryProjectEnrollmentResponse protoreflect.MessageDescriptor + fd_QueryProjectEnrollmentResponse_project_class protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_query_proto_init() + md_QueryProjectEnrollmentResponse = File_regen_ecocredit_v1_query_proto.Messages().ByName("QueryProjectEnrollmentResponse") + fd_QueryProjectEnrollmentResponse_project_class = md_QueryProjectEnrollmentResponse.Fields().ByName("project_class") +} + +var _ protoreflect.Message = (*fastReflection_QueryProjectEnrollmentResponse)(nil) + +type fastReflection_QueryProjectEnrollmentResponse QueryProjectEnrollmentResponse + +func (x *QueryProjectEnrollmentResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProjectEnrollmentResponse)(x) +} + +func (x *QueryProjectEnrollmentResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[57] + 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_QueryProjectEnrollmentResponse_messageType fastReflection_QueryProjectEnrollmentResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryProjectEnrollmentResponse_messageType{} + +type fastReflection_QueryProjectEnrollmentResponse_messageType struct{} + +func (x fastReflection_QueryProjectEnrollmentResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProjectEnrollmentResponse)(nil) +} +func (x fastReflection_QueryProjectEnrollmentResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProjectEnrollmentResponse) +} +func (x fastReflection_QueryProjectEnrollmentResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectEnrollmentResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProjectEnrollmentResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectEnrollmentResponse +} + +// 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_QueryProjectEnrollmentResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryProjectEnrollmentResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProjectEnrollmentResponse) New() protoreflect.Message { + return new(fastReflection_QueryProjectEnrollmentResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProjectEnrollmentResponse) Interface() protoreflect.ProtoMessage { + return (*QueryProjectEnrollmentResponse)(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_QueryProjectEnrollmentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ProjectClass != nil { + value := protoreflect.ValueOfMessage(x.ProjectClass.ProtoReflect()) + if !f(fd_QueryProjectEnrollmentResponse_project_class, 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_QueryProjectEnrollmentResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentResponse.project_class": + return x.ProjectClass != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentResponse 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_QueryProjectEnrollmentResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentResponse.project_class": + x.ProjectClass = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentResponse 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_QueryProjectEnrollmentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentResponse.project_class": + value := x.ProjectClass + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentResponse 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_QueryProjectEnrollmentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentResponse.project_class": + x.ProjectClass = value.Message().Interface().(*ProjectEnrollment) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentResponse 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_QueryProjectEnrollmentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentResponse.project_class": + if x.ProjectClass == nil { + x.ProjectClass = new(ProjectEnrollment) + } + return protoreflect.ValueOfMessage(x.ProjectClass.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentResponse 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_QueryProjectEnrollmentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentResponse.project_class": + m := new(ProjectEnrollment) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentResponse 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_QueryProjectEnrollmentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.QueryProjectEnrollmentResponse", 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_QueryProjectEnrollmentResponse) 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_QueryProjectEnrollmentResponse) 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_QueryProjectEnrollmentResponse) 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_QueryProjectEnrollmentResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProjectEnrollmentResponse) + 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.ProjectClass != nil { + l = options.Size(x.ProjectClass) + 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().(*QueryProjectEnrollmentResponse) + 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.ProjectClass != nil { + encoded, err := options.Marshal(x.ProjectClass) + 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().(*QueryProjectEnrollmentResponse) + 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: QueryProjectEnrollmentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProjectEnrollmentResponse: 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 ProjectClass", 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.ProjectClass == nil { + x.ProjectClass = &ProjectEnrollment{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ProjectClass); 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_QueryProjectEnrollmentsRequest protoreflect.MessageDescriptor + fd_QueryProjectEnrollmentsRequest_project_id protoreflect.FieldDescriptor + fd_QueryProjectEnrollmentsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_query_proto_init() + md_QueryProjectEnrollmentsRequest = File_regen_ecocredit_v1_query_proto.Messages().ByName("QueryProjectEnrollmentsRequest") + fd_QueryProjectEnrollmentsRequest_project_id = md_QueryProjectEnrollmentsRequest.Fields().ByName("project_id") + fd_QueryProjectEnrollmentsRequest_pagination = md_QueryProjectEnrollmentsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryProjectEnrollmentsRequest)(nil) + +type fastReflection_QueryProjectEnrollmentsRequest QueryProjectEnrollmentsRequest + +func (x *QueryProjectEnrollmentsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProjectEnrollmentsRequest)(x) +} + +func (x *QueryProjectEnrollmentsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[58] + 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_QueryProjectEnrollmentsRequest_messageType fastReflection_QueryProjectEnrollmentsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryProjectEnrollmentsRequest_messageType{} + +type fastReflection_QueryProjectEnrollmentsRequest_messageType struct{} + +func (x fastReflection_QueryProjectEnrollmentsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProjectEnrollmentsRequest)(nil) +} +func (x fastReflection_QueryProjectEnrollmentsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProjectEnrollmentsRequest) +} +func (x fastReflection_QueryProjectEnrollmentsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectEnrollmentsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProjectEnrollmentsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectEnrollmentsRequest +} + +// 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_QueryProjectEnrollmentsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryProjectEnrollmentsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProjectEnrollmentsRequest) New() protoreflect.Message { + return new(fastReflection_QueryProjectEnrollmentsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProjectEnrollmentsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryProjectEnrollmentsRequest)(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_QueryProjectEnrollmentsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_QueryProjectEnrollmentsRequest_project_id, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryProjectEnrollmentsRequest_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_QueryProjectEnrollmentsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.project_id": + return x.ProjectId != "" + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsRequest 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_QueryProjectEnrollmentsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.project_id": + x.ProjectId = "" + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsRequest 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_QueryProjectEnrollmentsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.project_id": + value := x.ProjectId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsRequest 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_QueryProjectEnrollmentsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.project_id": + x.ProjectId = value.Interface().(string) + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsRequest 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_QueryProjectEnrollmentsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.QueryProjectEnrollmentsRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsRequest 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_QueryProjectEnrollmentsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.project_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.QueryProjectEnrollmentsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsRequest 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_QueryProjectEnrollmentsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.QueryProjectEnrollmentsRequest", 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_QueryProjectEnrollmentsRequest) 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_QueryProjectEnrollmentsRequest) 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_QueryProjectEnrollmentsRequest) 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_QueryProjectEnrollmentsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProjectEnrollmentsRequest) + 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.ProjectId) + if l > 0 { + 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().(*QueryProjectEnrollmentsRequest) + 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.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) + 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().(*QueryProjectEnrollmentsRequest) + 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: QueryProjectEnrollmentsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProjectEnrollmentsRequest: 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 ProjectId", 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.ProjectId = 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 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 = (*_QueryProjectEnrollmentsResponse_1_list)(nil) + +type _QueryProjectEnrollmentsResponse_1_list struct { + list *[]*ProjectEnrollment +} + +func (x *_QueryProjectEnrollmentsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryProjectEnrollmentsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryProjectEnrollmentsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ProjectEnrollment) + (*x.list)[i] = concreteValue +} + +func (x *_QueryProjectEnrollmentsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ProjectEnrollment) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryProjectEnrollmentsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(ProjectEnrollment) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProjectEnrollmentsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryProjectEnrollmentsResponse_1_list) NewElement() protoreflect.Value { + v := new(ProjectEnrollment) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProjectEnrollmentsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryProjectEnrollmentsResponse protoreflect.MessageDescriptor + fd_QueryProjectEnrollmentsResponse_enrollments protoreflect.FieldDescriptor + fd_QueryProjectEnrollmentsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_query_proto_init() + md_QueryProjectEnrollmentsResponse = File_regen_ecocredit_v1_query_proto.Messages().ByName("QueryProjectEnrollmentsResponse") + fd_QueryProjectEnrollmentsResponse_enrollments = md_QueryProjectEnrollmentsResponse.Fields().ByName("enrollments") + fd_QueryProjectEnrollmentsResponse_pagination = md_QueryProjectEnrollmentsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryProjectEnrollmentsResponse)(nil) + +type fastReflection_QueryProjectEnrollmentsResponse QueryProjectEnrollmentsResponse + +func (x *QueryProjectEnrollmentsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProjectEnrollmentsResponse)(x) +} + +func (x *QueryProjectEnrollmentsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[59] + 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_QueryProjectEnrollmentsResponse_messageType fastReflection_QueryProjectEnrollmentsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryProjectEnrollmentsResponse_messageType{} + +type fastReflection_QueryProjectEnrollmentsResponse_messageType struct{} + +func (x fastReflection_QueryProjectEnrollmentsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProjectEnrollmentsResponse)(nil) +} +func (x fastReflection_QueryProjectEnrollmentsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProjectEnrollmentsResponse) +} +func (x fastReflection_QueryProjectEnrollmentsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectEnrollmentsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProjectEnrollmentsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectEnrollmentsResponse +} + +// 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_QueryProjectEnrollmentsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryProjectEnrollmentsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProjectEnrollmentsResponse) New() protoreflect.Message { + return new(fastReflection_QueryProjectEnrollmentsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProjectEnrollmentsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryProjectEnrollmentsResponse)(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_QueryProjectEnrollmentsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Enrollments) != 0 { + value := protoreflect.ValueOfList(&_QueryProjectEnrollmentsResponse_1_list{list: &x.Enrollments}) + if !f(fd_QueryProjectEnrollmentsResponse_enrollments, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryProjectEnrollmentsResponse_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_QueryProjectEnrollmentsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.enrollments": + return len(x.Enrollments) != 0 + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsResponse 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_QueryProjectEnrollmentsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.enrollments": + x.Enrollments = nil + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsResponse 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_QueryProjectEnrollmentsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.enrollments": + if len(x.Enrollments) == 0 { + return protoreflect.ValueOfList(&_QueryProjectEnrollmentsResponse_1_list{}) + } + listValue := &_QueryProjectEnrollmentsResponse_1_list{list: &x.Enrollments} + return protoreflect.ValueOfList(listValue) + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsResponse 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_QueryProjectEnrollmentsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.enrollments": + lv := value.List() + clv := lv.(*_QueryProjectEnrollmentsResponse_1_list) + x.Enrollments = *clv.list + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsResponse 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_QueryProjectEnrollmentsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.enrollments": + if x.Enrollments == nil { + x.Enrollments = []*ProjectEnrollment{} + } + value := &_QueryProjectEnrollmentsResponse_1_list{list: &x.Enrollments} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.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: regen.ecocredit.v1.QueryProjectEnrollmentsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsResponse 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_QueryProjectEnrollmentsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.enrollments": + list := []*ProjectEnrollment{} + return protoreflect.ValueOfList(&_QueryProjectEnrollmentsResponse_1_list{list: &list}) + case "regen.ecocredit.v1.QueryProjectEnrollmentsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectEnrollmentsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectEnrollmentsResponse 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_QueryProjectEnrollmentsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.QueryProjectEnrollmentsResponse", 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_QueryProjectEnrollmentsResponse) 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_QueryProjectEnrollmentsResponse) 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_QueryProjectEnrollmentsResponse) 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_QueryProjectEnrollmentsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProjectEnrollmentsResponse) + 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.Enrollments) > 0 { + for _, e := range x.Enrollments { + 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().(*QueryProjectEnrollmentsResponse) + 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.Enrollments) > 0 { + for iNdEx := len(x.Enrollments) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Enrollments[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().(*QueryProjectEnrollmentsResponse) + 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: QueryProjectEnrollmentsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProjectEnrollmentsResponse: 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 Enrollments", 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.Enrollments = append(x.Enrollments, &ProjectEnrollment{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Enrollments[len(x.Enrollments)-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, + } +} + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -30384,149 +32375,332 @@ func (x *QueryAllowedClassCreatorsResponse) GetClassCreators() []string { return nil } -func (x *QueryAllowedClassCreatorsResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryAllowedClassCreatorsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryClassFeeRequest is the Query/ClassFee request type. +// +// Since Revision 2 +type QueryClassFeeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryClassFeeRequest) Reset() { + *x = QueryClassFeeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryClassFeeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryClassFeeRequest) ProtoMessage() {} + +// Deprecated: Use QueryClassFeeRequest.ProtoReflect.Descriptor instead. +func (*QueryClassFeeRequest) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{52} +} + +// QueryClassFeeResponse is the Query/ClassFee response type. +// +// Since Revision 2 +type QueryClassFeeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // fee is the credit class creation fee. If not set, a credit class creation + // fee is not required. + Fee *v1beta11.Coin `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"` +} + +func (x *QueryClassFeeResponse) Reset() { + *x = QueryClassFeeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryClassFeeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryClassFeeResponse) ProtoMessage() {} + +// Deprecated: Use QueryClassFeeResponse.ProtoReflect.Descriptor instead. +func (*QueryClassFeeResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{53} +} + +func (x *QueryClassFeeResponse) GetFee() *v1beta11.Coin { + if x != nil { + return x.Fee + } + return nil +} + +// QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request +// type. +// +// Since Revision 2 +type QueryAllowedBridgeChainsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryAllowedBridgeChainsRequest) Reset() { + *x = QueryAllowedBridgeChainsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllowedBridgeChainsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllowedBridgeChainsRequest) ProtoMessage() {} + +// Deprecated: Use QueryAllowedBridgeChainsRequest.ProtoReflect.Descriptor instead. +func (*QueryAllowedBridgeChainsRequest) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{54} +} + +// QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response +// type. +// +// Since Revision 2 +type QueryAllowedBridgeChainsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // allowed_bridge_chains is a list of chains that are allowed to be used in + // bridge operations. + AllowedBridgeChains []string `protobuf:"bytes,1,rep,name=allowed_bridge_chains,json=allowedBridgeChains,proto3" json:"allowed_bridge_chains,omitempty"` +} + +func (x *QueryAllowedBridgeChainsResponse) Reset() { + *x = QueryAllowedBridgeChainsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllowedBridgeChainsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllowedBridgeChainsResponse) ProtoMessage() {} + +// Deprecated: Use QueryAllowedBridgeChainsResponse.ProtoReflect.Descriptor instead. +func (*QueryAllowedBridgeChainsResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{55} +} + +func (x *QueryAllowedBridgeChainsResponse) GetAllowedBridgeChains() []string { if x != nil { - return x.Pagination + return x.AllowedBridgeChains } return nil } -// QueryClassFeeRequest is the Query/ClassFee request type. +// QueryProjectEnrollmentRequest is the Query/ProjectEnrollment request type. // -// Since Revision 2 -type QueryClassFeeRequest struct { +// Since Revision 3 +type QueryProjectEnrollmentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // project_id is the unique identifier of the project to query. + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // class_id is the unique identifier of the credit class to query. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` } -func (x *QueryClassFeeRequest) Reset() { - *x = QueryClassFeeRequest{} +func (x *QueryProjectEnrollmentRequest) Reset() { + *x = QueryProjectEnrollmentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[52] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryClassFeeRequest) String() string { +func (x *QueryProjectEnrollmentRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryClassFeeRequest) ProtoMessage() {} +func (*QueryProjectEnrollmentRequest) ProtoMessage() {} -// Deprecated: Use QueryClassFeeRequest.ProtoReflect.Descriptor instead. -func (*QueryClassFeeRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{52} +// Deprecated: Use QueryProjectEnrollmentRequest.ProtoReflect.Descriptor instead. +func (*QueryProjectEnrollmentRequest) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{56} } -// QueryClassFeeResponse is the Query/ClassFee response type. +func (x *QueryProjectEnrollmentRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *QueryProjectEnrollmentRequest) GetClassId() string { + if x != nil { + return x.ClassId + } + return "" +} + +// QueryProjectEnrollmentResponse is the Query/ProjectEnrollment response type. // -// Since Revision 2 -type QueryClassFeeResponse struct { +// Since Revision 3 +type QueryProjectEnrollmentResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // fee is the credit class creation fee. If not set, a credit class creation - // fee is not required. - Fee *v1beta11.Coin `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"` + // project_class is the fetched project class relationship. + ProjectClass *ProjectEnrollment `protobuf:"bytes,1,opt,name=project_class,json=projectClass,proto3" json:"project_class,omitempty"` } -func (x *QueryClassFeeResponse) Reset() { - *x = QueryClassFeeResponse{} +func (x *QueryProjectEnrollmentResponse) Reset() { + *x = QueryProjectEnrollmentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[53] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryClassFeeResponse) String() string { +func (x *QueryProjectEnrollmentResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryClassFeeResponse) ProtoMessage() {} +func (*QueryProjectEnrollmentResponse) ProtoMessage() {} -// Deprecated: Use QueryClassFeeResponse.ProtoReflect.Descriptor instead. -func (*QueryClassFeeResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{53} +// Deprecated: Use QueryProjectEnrollmentResponse.ProtoReflect.Descriptor instead. +func (*QueryProjectEnrollmentResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{57} } -func (x *QueryClassFeeResponse) GetFee() *v1beta11.Coin { +func (x *QueryProjectEnrollmentResponse) GetProjectClass() *ProjectEnrollment { if x != nil { - return x.Fee + return x.ProjectClass } return nil } -// QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request -// type. +// QueryProjectEnrollmentsRequest is the Query/ProjectEnrollments request type. // -// Since Revision 2 -type QueryAllowedBridgeChainsRequest struct { +// Since Revision 3 +type QueryProjectEnrollmentsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // project_id is the unique identifier of the project to query. + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllowedBridgeChainsRequest) Reset() { - *x = QueryAllowedBridgeChainsRequest{} +func (x *QueryProjectEnrollmentsRequest) Reset() { + *x = QueryProjectEnrollmentsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[54] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryAllowedBridgeChainsRequest) String() string { +func (x *QueryProjectEnrollmentsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllowedBridgeChainsRequest) ProtoMessage() {} +func (*QueryProjectEnrollmentsRequest) ProtoMessage() {} -// Deprecated: Use QueryAllowedBridgeChainsRequest.ProtoReflect.Descriptor instead. -func (*QueryAllowedBridgeChainsRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{54} +// Deprecated: Use QueryProjectEnrollmentsRequest.ProtoReflect.Descriptor instead. +func (*QueryProjectEnrollmentsRequest) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{58} } -// QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response -// type. +func (x *QueryProjectEnrollmentsRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *QueryProjectEnrollmentsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryProjectEnrollmentsResponse is the Query/ProjectEnrollments response type. // -// Since Revision 2 -type QueryAllowedBridgeChainsResponse struct { +// Since Revision 3 +type QueryProjectEnrollmentsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // allowed_bridge_chains is a list of chains that are allowed to be used in - // bridge operations. - AllowedBridgeChains []string `protobuf:"bytes,1,rep,name=allowed_bridge_chains,json=allowedBridgeChains,proto3" json:"allowed_bridge_chains,omitempty"` + // enrollments are the fetched project credit class enrollments. + Enrollments []*ProjectEnrollment `protobuf:"bytes,1,rep,name=enrollments,proto3" json:"enrollments,omitempty"` + // pagination defines the pagination in the response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllowedBridgeChainsResponse) Reset() { - *x = QueryAllowedBridgeChainsResponse{} +func (x *QueryProjectEnrollmentsResponse) Reset() { + *x = QueryProjectEnrollmentsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[55] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryAllowedBridgeChainsResponse) String() string { +func (x *QueryProjectEnrollmentsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllowedBridgeChainsResponse) ProtoMessage() {} +func (*QueryProjectEnrollmentsResponse) ProtoMessage() {} -// Deprecated: Use QueryAllowedBridgeChainsResponse.ProtoReflect.Descriptor instead. -func (*QueryAllowedBridgeChainsResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{55} +// Deprecated: Use QueryProjectEnrollmentsResponse.ProtoReflect.Descriptor instead. +func (*QueryProjectEnrollmentsResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{59} } -func (x *QueryAllowedBridgeChainsResponse) GetAllowedBridgeChains() []string { +func (x *QueryProjectEnrollmentsResponse) GetEnrollments() []*ProjectEnrollment { if x != nil { - return x.AllowedBridgeChains + return x.Enrollments + } + return nil +} + +func (x *QueryProjectEnrollmentsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination } return nil } @@ -30955,337 +33129,394 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x0a, 0x15, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, - 0x6e, 0x73, 0x32, 0xbd, 0x27, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x81, 0x01, 0x0a, - 0x07, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, - 0x12, 0xd4, 0x01, 0x0a, 0x0e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0x12, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, - 0x61, 0x73, 0x73, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, - 0x61, 0x73, 0x73, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x12, 0x2c, 0x2f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, - 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0xae, 0x01, 0x0a, 0x05, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x6e, 0x73, 0x22, 0x59, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x22, 0x6c, 0x0a, + 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, + 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4a, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0c, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x87, 0x01, 0x0a, 0x1e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, + 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 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, 0xb3, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x65, 0x6e, 0x72, + 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, + 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 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, 0x32, 0xc1, 0x2a, 0x0a, 0x05, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x81, 0x01, 0x0a, 0x07, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, + 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x56, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x50, 0x12, 0x24, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, - 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x28, - 0x12, 0x26, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, - 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd3, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x66, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x60, 0x12, 0x2c, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2d, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, - 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x30, 0x12, 0x2e, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x85, - 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x28, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x94, 0x02, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, + 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9d, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x96, 0x01, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, - 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x87, 0x02, - 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x35, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, + 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0xd4, 0x01, 0x0a, 0x0e, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2e, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x42, 0x79, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x42, 0x79, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x61, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x65, 0x73, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, + 0x12, 0xae, 0x01, 0x0a, 0x05, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x56, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x50, 0x12, 0x24, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, + 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x28, 0x12, 0x26, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, + 0x7d, 0x12, 0xd3, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, + 0x72, 0x73, 0x12, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x66, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x60, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x2d, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x30, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, + 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x79, 0x12, 0x3b, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x3a, 0x12, 0x38, 0x2f, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, - 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd9, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2f, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, - 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5d, 0x12, 0x2d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x5a, 0x2c, 0x12, 0x2a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1e, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, + 0x94, 0x02, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9d, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x96, 0x01, + 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, + 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, + 0x64, 0x7d, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, + 0x69, 0x64, 0x7d, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x87, 0x02, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, + 0x12, 0x35, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x79, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, - 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x5d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x3a, 0x12, 0x38, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x7d, 0x12, 0x81, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x27, 0x2e, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, + 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, + 0x12, 0xd9, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5d, 0x12, + 0x2d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, + 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x5a, 0x2c, + 0x12, 0x2a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0xbb, 0x01, 0x0a, + 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x57, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2b, 0x12, + 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x81, 0x01, 0x0a, 0x07, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1d, 0x12, 0x1b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0xdb, + 0x01, 0x0a, 0x0f, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, + 0x65, 0x72, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5f, 0x12, 0x2e, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x73, + 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x5a, 0x2d, 0x12, + 0x2b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x69, 0x73, 0x73, + 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x12, 0xda, 0x01, 0x0a, + 0x0e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, + 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, + 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, + 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x61, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, - 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0xdb, 0x01, 0x0a, 0x0f, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, - 0x75, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, - 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x5f, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x73, 0x73, - 0x75, 0x65, 0x72, 0x7d, 0x5a, 0x2d, 0x12, 0x2b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x73, 0x2f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x73, 0x73, 0x75, - 0x65, 0x72, 0x7d, 0x12, 0xda, 0x01, 0x0a, 0x0e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, - 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x61, 0x12, - 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, - 0x5a, 0x2e, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2e, 0x12, 0x2c, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, + 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xe8, 0x01, 0x0a, 0x10, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x30, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, + 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x69, 0x12, 0x33, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, + 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, + 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, - 0x12, 0xe8, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x69, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, - 0x62, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, - 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb4, 0x01, 0x0a, 0x05, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x12, 0x27, 0x2f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, - 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, - 0x6d, 0x7d, 0x12, 0x98, 0x02, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x27, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb4, 0x01, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x12, 0x27, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x2b, + 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x98, 0x02, 0x0a, 0x07, + 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0xb9, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb2, 0x01, 0x12, 0x33, 0x2f, 0x72, 0x65, + 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0xb2, 0x01, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, + 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x5a, 0x3d, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, - 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, - 0x5a, 0x3d, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, - 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x62, 0x61, - 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x5a, - 0x3c, 0x12, 0x3a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, - 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, - 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x8f, 0x01, - 0x0a, 0x08, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, - 0xe7, 0x01, 0x0a, 0x0f, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x42, 0x79, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, + 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x5a, 0x3c, 0x12, 0x3a, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x7d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, + 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x8f, 0x01, 0x0a, 0x08, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, - 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x42, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x42, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x71, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6b, 0x12, 0x33, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, + 0x12, 0x26, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xe7, 0x01, 0x0a, 0x0f, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x73, 0x42, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x2f, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x42, + 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, + 0x42, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x71, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6b, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, + 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x34, 0x12, 0x32, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, - 0x6f, 0x6d, 0x7d, 0x5a, 0x34, 0x12, 0x32, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, - 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0xb2, 0x01, 0x0a, 0x0b, 0x41, 0x6c, - 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x73, 0x12, 0xb2, 0x01, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, + 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x6c, 0x2d, 0x62, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x5a, 0x1e, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0xbf, 0x01, 0x0a, 0x06, 0x53, 0x75, 0x70, 0x70, + 0x6c, 0x79, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, + 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5e, 0x12, 0x28, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, + 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, + 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, + 0x6d, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x0b, 0x43, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, + 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x20, 0x2f, 0x72, + 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x61, 0x6c, 0x6c, 0x2d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x5a, 0x1e, - 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0xbf, - 0x01, 0x0a, 0x06, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x31, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x80, + 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, - 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x5e, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x2f, 0x7b, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x32, 0x12, 0x30, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, - 0x12, 0x92, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x88, 0x02, 0x01, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x12, 0xd0, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x63, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2d, 0x74, 0x79, + 0x70, 0x65, 0x2f, 0x7b, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x7d, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2d, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x80, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 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, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x25, 0x88, 0x02, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xd0, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x69, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x63, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x7b, 0x61, 0x62, 0x62, 0x72, 0x65, - 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x62, - 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x15, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, - 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x35, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x15, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x35, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, - 0x77, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x2d, - 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0xb7, 0x01, 0x0a, 0x14, 0x41, 0x6c, - 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x73, 0x12, 0x34, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x77, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x2d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x2d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, + 0x73, 0x74, 0x12, 0xb7, 0x01, 0x0a, 0x14, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x34, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x35, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, + 0x77, 0x65, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, + 0x12, 0x2a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x2d, 0x63, 0x6c, + 0x61, 0x73, 0x73, 0x2d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x86, 0x01, 0x0a, + 0x08, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x2d, 0x66, 0x65, 0x65, 0x12, 0xb3, 0x01, 0x0a, 0x13, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, + 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x33, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, - 0x6f, 0x77, 0x65, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, + 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x2d, 0x62, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x12, 0xc3, 0x01, 0x0a, 0x11, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, + 0x74, 0x12, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, + 0x12, 0x3f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x65, 0x6e, 0x72, 0x6f, 0x6c, + 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, + 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, + 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x32, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x65, 0x64, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2d, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x73, 0x12, 0x86, 0x01, 0x0a, 0x08, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, - 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x46, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, - 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2d, 0x66, 0x65, 0x65, 0x12, 0xb3, 0x01, 0x0a, - 0x13, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, - 0x61, 0x69, 0x6e, 0x73, 0x12, 0x33, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, - 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, - 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x65, 0x64, 0x2d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x73, 0x42, 0xd8, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, - 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, - 0xca, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, - 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, + 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x69, 0x64, 0x7d, 0x2f, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x42, + 0xd8, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, + 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, + 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -31300,7 +33531,7 @@ func file_regen_ecocredit_v1_query_proto_rawDescGZIP() []byte { return file_regen_ecocredit_v1_query_proto_rawDescData } -var file_regen_ecocredit_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 56) +var file_regen_ecocredit_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 60) var file_regen_ecocredit_v1_query_proto_goTypes = []interface{}{ (*QueryClassesRequest)(nil), // 0: regen.ecocredit.v1.QueryClassesRequest (*QueryClassesResponse)(nil), // 1: regen.ecocredit.v1.QueryClassesResponse @@ -31358,125 +33589,138 @@ var file_regen_ecocredit_v1_query_proto_goTypes = []interface{}{ (*QueryClassFeeResponse)(nil), // 53: regen.ecocredit.v1.QueryClassFeeResponse (*QueryAllowedBridgeChainsRequest)(nil), // 54: regen.ecocredit.v1.QueryAllowedBridgeChainsRequest (*QueryAllowedBridgeChainsResponse)(nil), // 55: regen.ecocredit.v1.QueryAllowedBridgeChainsResponse - (*v1beta1.PageRequest)(nil), // 56: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 57: cosmos.base.query.v1beta1.PageResponse - (*CreditType)(nil), // 58: regen.ecocredit.v1.CreditType - (*Params)(nil), // 59: regen.ecocredit.v1.Params - (*timestamppb.Timestamp)(nil), // 60: google.protobuf.Timestamp - (*v1beta11.Coin)(nil), // 61: cosmos.base.v1beta1.Coin + (*QueryProjectEnrollmentRequest)(nil), // 56: regen.ecocredit.v1.QueryProjectEnrollmentRequest + (*QueryProjectEnrollmentResponse)(nil), // 57: regen.ecocredit.v1.QueryProjectEnrollmentResponse + (*QueryProjectEnrollmentsRequest)(nil), // 58: regen.ecocredit.v1.QueryProjectEnrollmentsRequest + (*QueryProjectEnrollmentsResponse)(nil), // 59: regen.ecocredit.v1.QueryProjectEnrollmentsResponse + (*v1beta1.PageRequest)(nil), // 60: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 61: cosmos.base.query.v1beta1.PageResponse + (*CreditType)(nil), // 62: regen.ecocredit.v1.CreditType + (*Params)(nil), // 63: regen.ecocredit.v1.Params + (*timestamppb.Timestamp)(nil), // 64: google.protobuf.Timestamp + (*v1beta11.Coin)(nil), // 65: cosmos.base.v1beta1.Coin + (*ProjectEnrollment)(nil), // 66: regen.ecocredit.v1.ProjectEnrollment } var file_regen_ecocredit_v1_query_proto_depIdxs = []int32{ - 56, // 0: regen.ecocredit.v1.QueryClassesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 60, // 0: regen.ecocredit.v1.QueryClassesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 44, // 1: regen.ecocredit.v1.QueryClassesResponse.classes:type_name -> regen.ecocredit.v1.ClassInfo - 57, // 2: regen.ecocredit.v1.QueryClassesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 56, // 3: regen.ecocredit.v1.QueryClassesByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 61, // 2: regen.ecocredit.v1.QueryClassesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 60, // 3: regen.ecocredit.v1.QueryClassesByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 44, // 4: regen.ecocredit.v1.QueryClassesByAdminResponse.classes:type_name -> regen.ecocredit.v1.ClassInfo - 57, // 5: regen.ecocredit.v1.QueryClassesByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 61, // 5: regen.ecocredit.v1.QueryClassesByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 44, // 6: regen.ecocredit.v1.QueryClassResponse.class:type_name -> regen.ecocredit.v1.ClassInfo - 56, // 7: regen.ecocredit.v1.QueryClassIssuersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 57, // 8: regen.ecocredit.v1.QueryClassIssuersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 56, // 9: regen.ecocredit.v1.QueryProjectsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 60, // 7: regen.ecocredit.v1.QueryClassIssuersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 61, // 8: regen.ecocredit.v1.QueryClassIssuersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 60, // 9: regen.ecocredit.v1.QueryProjectsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 45, // 10: regen.ecocredit.v1.QueryProjectsResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo - 57, // 11: regen.ecocredit.v1.QueryProjectsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 56, // 12: regen.ecocredit.v1.QueryProjectsByClassRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 61, // 11: regen.ecocredit.v1.QueryProjectsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 60, // 12: regen.ecocredit.v1.QueryProjectsByClassRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 45, // 13: regen.ecocredit.v1.QueryProjectsByClassResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo - 57, // 14: regen.ecocredit.v1.QueryProjectsByClassResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 56, // 15: regen.ecocredit.v1.QueryProjectsByReferenceIdRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 61, // 14: regen.ecocredit.v1.QueryProjectsByClassResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 60, // 15: regen.ecocredit.v1.QueryProjectsByReferenceIdRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 45, // 16: regen.ecocredit.v1.QueryProjectsByReferenceIdResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo - 57, // 17: regen.ecocredit.v1.QueryProjectsByReferenceIdResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 56, // 18: regen.ecocredit.v1.QueryProjectsByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 61, // 17: regen.ecocredit.v1.QueryProjectsByReferenceIdResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 60, // 18: regen.ecocredit.v1.QueryProjectsByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 45, // 19: regen.ecocredit.v1.QueryProjectsByAdminResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo - 57, // 20: regen.ecocredit.v1.QueryProjectsByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 61, // 20: regen.ecocredit.v1.QueryProjectsByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 45, // 21: regen.ecocredit.v1.QueryProjectResponse.project:type_name -> regen.ecocredit.v1.ProjectInfo - 56, // 22: regen.ecocredit.v1.QueryBatchesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 60, // 22: regen.ecocredit.v1.QueryBatchesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 46, // 23: regen.ecocredit.v1.QueryBatchesResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo - 57, // 24: regen.ecocredit.v1.QueryBatchesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 56, // 25: regen.ecocredit.v1.QueryBatchesByIssuerRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 61, // 24: regen.ecocredit.v1.QueryBatchesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 60, // 25: regen.ecocredit.v1.QueryBatchesByIssuerRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 46, // 26: regen.ecocredit.v1.QueryBatchesByIssuerResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo - 57, // 27: regen.ecocredit.v1.QueryBatchesByIssuerResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 56, // 28: regen.ecocredit.v1.QueryBatchesByClassRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 56, // 29: regen.ecocredit.v1.QueryBatchesByProjectRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 61, // 27: regen.ecocredit.v1.QueryBatchesByIssuerResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 60, // 28: regen.ecocredit.v1.QueryBatchesByClassRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 60, // 29: regen.ecocredit.v1.QueryBatchesByProjectRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 46, // 30: regen.ecocredit.v1.QueryBatchesByProjectResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo - 57, // 31: regen.ecocredit.v1.QueryBatchesByProjectResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 61, // 31: regen.ecocredit.v1.QueryBatchesByProjectResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 46, // 32: regen.ecocredit.v1.QueryBatchesByClassResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo - 57, // 33: regen.ecocredit.v1.QueryBatchesByClassResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 61, // 33: regen.ecocredit.v1.QueryBatchesByClassResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 46, // 34: regen.ecocredit.v1.QueryBatchResponse.batch:type_name -> regen.ecocredit.v1.BatchInfo 47, // 35: regen.ecocredit.v1.QueryBalanceResponse.balance:type_name -> regen.ecocredit.v1.BatchBalanceInfo - 56, // 36: regen.ecocredit.v1.QueryBalancesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 60, // 36: regen.ecocredit.v1.QueryBalancesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 47, // 37: regen.ecocredit.v1.QueryBalancesResponse.balances:type_name -> regen.ecocredit.v1.BatchBalanceInfo - 57, // 38: regen.ecocredit.v1.QueryBalancesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 56, // 39: regen.ecocredit.v1.QueryBalancesByBatchRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 61, // 38: regen.ecocredit.v1.QueryBalancesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 60, // 39: regen.ecocredit.v1.QueryBalancesByBatchRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 47, // 40: regen.ecocredit.v1.QueryBalancesByBatchResponse.balances:type_name -> regen.ecocredit.v1.BatchBalanceInfo - 57, // 41: regen.ecocredit.v1.QueryBalancesByBatchResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 56, // 42: regen.ecocredit.v1.QueryAllBalancesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 61, // 41: regen.ecocredit.v1.QueryBalancesByBatchResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 60, // 42: regen.ecocredit.v1.QueryAllBalancesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 47, // 43: regen.ecocredit.v1.QueryAllBalancesResponse.balances:type_name -> regen.ecocredit.v1.BatchBalanceInfo - 57, // 44: regen.ecocredit.v1.QueryAllBalancesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 58, // 45: regen.ecocredit.v1.QueryCreditTypesResponse.credit_types:type_name -> regen.ecocredit.v1.CreditType - 59, // 46: regen.ecocredit.v1.QueryParamsResponse.params:type_name -> regen.ecocredit.v1.Params - 58, // 47: regen.ecocredit.v1.QueryCreditTypeResponse.credit_type:type_name -> regen.ecocredit.v1.CreditType - 60, // 48: regen.ecocredit.v1.BatchInfo.start_date:type_name -> google.protobuf.Timestamp - 60, // 49: regen.ecocredit.v1.BatchInfo.end_date:type_name -> google.protobuf.Timestamp - 60, // 50: regen.ecocredit.v1.BatchInfo.issuance_date:type_name -> google.protobuf.Timestamp - 56, // 51: regen.ecocredit.v1.QueryAllowedClassCreatorsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 57, // 52: regen.ecocredit.v1.QueryAllowedClassCreatorsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 61, // 53: regen.ecocredit.v1.QueryClassFeeResponse.fee:type_name -> cosmos.base.v1beta1.Coin - 0, // 54: regen.ecocredit.v1.Query.Classes:input_type -> regen.ecocredit.v1.QueryClassesRequest - 2, // 55: regen.ecocredit.v1.Query.ClassesByAdmin:input_type -> regen.ecocredit.v1.QueryClassesByAdminRequest - 4, // 56: regen.ecocredit.v1.Query.Class:input_type -> regen.ecocredit.v1.QueryClassRequest - 6, // 57: regen.ecocredit.v1.Query.ClassIssuers:input_type -> regen.ecocredit.v1.QueryClassIssuersRequest - 8, // 58: regen.ecocredit.v1.Query.Projects:input_type -> regen.ecocredit.v1.QueryProjectsRequest - 10, // 59: regen.ecocredit.v1.Query.ProjectsByClass:input_type -> regen.ecocredit.v1.QueryProjectsByClassRequest - 12, // 60: regen.ecocredit.v1.Query.ProjectsByReferenceId:input_type -> regen.ecocredit.v1.QueryProjectsByReferenceIdRequest - 14, // 61: regen.ecocredit.v1.Query.ProjectsByAdmin:input_type -> regen.ecocredit.v1.QueryProjectsByAdminRequest - 16, // 62: regen.ecocredit.v1.Query.Project:input_type -> regen.ecocredit.v1.QueryProjectRequest - 18, // 63: regen.ecocredit.v1.Query.Batches:input_type -> regen.ecocredit.v1.QueryBatchesRequest - 20, // 64: regen.ecocredit.v1.Query.BatchesByIssuer:input_type -> regen.ecocredit.v1.QueryBatchesByIssuerRequest - 22, // 65: regen.ecocredit.v1.Query.BatchesByClass:input_type -> regen.ecocredit.v1.QueryBatchesByClassRequest - 23, // 66: regen.ecocredit.v1.Query.BatchesByProject:input_type -> regen.ecocredit.v1.QueryBatchesByProjectRequest - 26, // 67: regen.ecocredit.v1.Query.Batch:input_type -> regen.ecocredit.v1.QueryBatchRequest - 28, // 68: regen.ecocredit.v1.Query.Balance:input_type -> regen.ecocredit.v1.QueryBalanceRequest - 30, // 69: regen.ecocredit.v1.Query.Balances:input_type -> regen.ecocredit.v1.QueryBalancesRequest - 32, // 70: regen.ecocredit.v1.Query.BalancesByBatch:input_type -> regen.ecocredit.v1.QueryBalancesByBatchRequest - 34, // 71: regen.ecocredit.v1.Query.AllBalances:input_type -> regen.ecocredit.v1.QueryAllBalancesRequest - 36, // 72: regen.ecocredit.v1.Query.Supply:input_type -> regen.ecocredit.v1.QuerySupplyRequest - 38, // 73: regen.ecocredit.v1.Query.CreditTypes:input_type -> regen.ecocredit.v1.QueryCreditTypesRequest - 40, // 74: regen.ecocredit.v1.Query.Params:input_type -> regen.ecocredit.v1.QueryParamsRequest - 42, // 75: regen.ecocredit.v1.Query.CreditType:input_type -> regen.ecocredit.v1.QueryCreditTypeRequest - 48, // 76: regen.ecocredit.v1.Query.ClassCreatorAllowlist:input_type -> regen.ecocredit.v1.QueryClassCreatorAllowlistRequest - 50, // 77: regen.ecocredit.v1.Query.AllowedClassCreators:input_type -> regen.ecocredit.v1.QueryAllowedClassCreatorsRequest - 52, // 78: regen.ecocredit.v1.Query.ClassFee:input_type -> regen.ecocredit.v1.QueryClassFeeRequest - 54, // 79: regen.ecocredit.v1.Query.AllowedBridgeChains:input_type -> regen.ecocredit.v1.QueryAllowedBridgeChainsRequest - 1, // 80: regen.ecocredit.v1.Query.Classes:output_type -> regen.ecocredit.v1.QueryClassesResponse - 3, // 81: regen.ecocredit.v1.Query.ClassesByAdmin:output_type -> regen.ecocredit.v1.QueryClassesByAdminResponse - 5, // 82: regen.ecocredit.v1.Query.Class:output_type -> regen.ecocredit.v1.QueryClassResponse - 7, // 83: regen.ecocredit.v1.Query.ClassIssuers:output_type -> regen.ecocredit.v1.QueryClassIssuersResponse - 9, // 84: regen.ecocredit.v1.Query.Projects:output_type -> regen.ecocredit.v1.QueryProjectsResponse - 11, // 85: regen.ecocredit.v1.Query.ProjectsByClass:output_type -> regen.ecocredit.v1.QueryProjectsByClassResponse - 13, // 86: regen.ecocredit.v1.Query.ProjectsByReferenceId:output_type -> regen.ecocredit.v1.QueryProjectsByReferenceIdResponse - 15, // 87: regen.ecocredit.v1.Query.ProjectsByAdmin:output_type -> regen.ecocredit.v1.QueryProjectsByAdminResponse - 17, // 88: regen.ecocredit.v1.Query.Project:output_type -> regen.ecocredit.v1.QueryProjectResponse - 19, // 89: regen.ecocredit.v1.Query.Batches:output_type -> regen.ecocredit.v1.QueryBatchesResponse - 21, // 90: regen.ecocredit.v1.Query.BatchesByIssuer:output_type -> regen.ecocredit.v1.QueryBatchesByIssuerResponse - 25, // 91: regen.ecocredit.v1.Query.BatchesByClass:output_type -> regen.ecocredit.v1.QueryBatchesByClassResponse - 24, // 92: regen.ecocredit.v1.Query.BatchesByProject:output_type -> regen.ecocredit.v1.QueryBatchesByProjectResponse - 27, // 93: regen.ecocredit.v1.Query.Batch:output_type -> regen.ecocredit.v1.QueryBatchResponse - 29, // 94: regen.ecocredit.v1.Query.Balance:output_type -> regen.ecocredit.v1.QueryBalanceResponse - 31, // 95: regen.ecocredit.v1.Query.Balances:output_type -> regen.ecocredit.v1.QueryBalancesResponse - 33, // 96: regen.ecocredit.v1.Query.BalancesByBatch:output_type -> regen.ecocredit.v1.QueryBalancesByBatchResponse - 35, // 97: regen.ecocredit.v1.Query.AllBalances:output_type -> regen.ecocredit.v1.QueryAllBalancesResponse - 37, // 98: regen.ecocredit.v1.Query.Supply:output_type -> regen.ecocredit.v1.QuerySupplyResponse - 39, // 99: regen.ecocredit.v1.Query.CreditTypes:output_type -> regen.ecocredit.v1.QueryCreditTypesResponse - 41, // 100: regen.ecocredit.v1.Query.Params:output_type -> regen.ecocredit.v1.QueryParamsResponse - 43, // 101: regen.ecocredit.v1.Query.CreditType:output_type -> regen.ecocredit.v1.QueryCreditTypeResponse - 49, // 102: regen.ecocredit.v1.Query.ClassCreatorAllowlist:output_type -> regen.ecocredit.v1.QueryClassCreatorAllowlistResponse - 51, // 103: regen.ecocredit.v1.Query.AllowedClassCreators:output_type -> regen.ecocredit.v1.QueryAllowedClassCreatorsResponse - 53, // 104: regen.ecocredit.v1.Query.ClassFee:output_type -> regen.ecocredit.v1.QueryClassFeeResponse - 55, // 105: regen.ecocredit.v1.Query.AllowedBridgeChains:output_type -> regen.ecocredit.v1.QueryAllowedBridgeChainsResponse - 80, // [80:106] is the sub-list for method output_type - 54, // [54:80] is the sub-list for method input_type - 54, // [54:54] is the sub-list for extension type_name - 54, // [54:54] is the sub-list for extension extendee - 0, // [0:54] is the sub-list for field type_name + 61, // 44: regen.ecocredit.v1.QueryAllBalancesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 62, // 45: regen.ecocredit.v1.QueryCreditTypesResponse.credit_types:type_name -> regen.ecocredit.v1.CreditType + 63, // 46: regen.ecocredit.v1.QueryParamsResponse.params:type_name -> regen.ecocredit.v1.Params + 62, // 47: regen.ecocredit.v1.QueryCreditTypeResponse.credit_type:type_name -> regen.ecocredit.v1.CreditType + 64, // 48: regen.ecocredit.v1.BatchInfo.start_date:type_name -> google.protobuf.Timestamp + 64, // 49: regen.ecocredit.v1.BatchInfo.end_date:type_name -> google.protobuf.Timestamp + 64, // 50: regen.ecocredit.v1.BatchInfo.issuance_date:type_name -> google.protobuf.Timestamp + 60, // 51: regen.ecocredit.v1.QueryAllowedClassCreatorsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 61, // 52: regen.ecocredit.v1.QueryAllowedClassCreatorsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 65, // 53: regen.ecocredit.v1.QueryClassFeeResponse.fee:type_name -> cosmos.base.v1beta1.Coin + 66, // 54: regen.ecocredit.v1.QueryProjectEnrollmentResponse.project_class:type_name -> regen.ecocredit.v1.ProjectEnrollment + 60, // 55: regen.ecocredit.v1.QueryProjectEnrollmentsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 66, // 56: regen.ecocredit.v1.QueryProjectEnrollmentsResponse.enrollments:type_name -> regen.ecocredit.v1.ProjectEnrollment + 61, // 57: regen.ecocredit.v1.QueryProjectEnrollmentsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 0, // 58: regen.ecocredit.v1.Query.Classes:input_type -> regen.ecocredit.v1.QueryClassesRequest + 2, // 59: regen.ecocredit.v1.Query.ClassesByAdmin:input_type -> regen.ecocredit.v1.QueryClassesByAdminRequest + 4, // 60: regen.ecocredit.v1.Query.Class:input_type -> regen.ecocredit.v1.QueryClassRequest + 6, // 61: regen.ecocredit.v1.Query.ClassIssuers:input_type -> regen.ecocredit.v1.QueryClassIssuersRequest + 8, // 62: regen.ecocredit.v1.Query.Projects:input_type -> regen.ecocredit.v1.QueryProjectsRequest + 10, // 63: regen.ecocredit.v1.Query.ProjectsByClass:input_type -> regen.ecocredit.v1.QueryProjectsByClassRequest + 12, // 64: regen.ecocredit.v1.Query.ProjectsByReferenceId:input_type -> regen.ecocredit.v1.QueryProjectsByReferenceIdRequest + 14, // 65: regen.ecocredit.v1.Query.ProjectsByAdmin:input_type -> regen.ecocredit.v1.QueryProjectsByAdminRequest + 16, // 66: regen.ecocredit.v1.Query.Project:input_type -> regen.ecocredit.v1.QueryProjectRequest + 18, // 67: regen.ecocredit.v1.Query.Batches:input_type -> regen.ecocredit.v1.QueryBatchesRequest + 20, // 68: regen.ecocredit.v1.Query.BatchesByIssuer:input_type -> regen.ecocredit.v1.QueryBatchesByIssuerRequest + 22, // 69: regen.ecocredit.v1.Query.BatchesByClass:input_type -> regen.ecocredit.v1.QueryBatchesByClassRequest + 23, // 70: regen.ecocredit.v1.Query.BatchesByProject:input_type -> regen.ecocredit.v1.QueryBatchesByProjectRequest + 26, // 71: regen.ecocredit.v1.Query.Batch:input_type -> regen.ecocredit.v1.QueryBatchRequest + 28, // 72: regen.ecocredit.v1.Query.Balance:input_type -> regen.ecocredit.v1.QueryBalanceRequest + 30, // 73: regen.ecocredit.v1.Query.Balances:input_type -> regen.ecocredit.v1.QueryBalancesRequest + 32, // 74: regen.ecocredit.v1.Query.BalancesByBatch:input_type -> regen.ecocredit.v1.QueryBalancesByBatchRequest + 34, // 75: regen.ecocredit.v1.Query.AllBalances:input_type -> regen.ecocredit.v1.QueryAllBalancesRequest + 36, // 76: regen.ecocredit.v1.Query.Supply:input_type -> regen.ecocredit.v1.QuerySupplyRequest + 38, // 77: regen.ecocredit.v1.Query.CreditTypes:input_type -> regen.ecocredit.v1.QueryCreditTypesRequest + 40, // 78: regen.ecocredit.v1.Query.Params:input_type -> regen.ecocredit.v1.QueryParamsRequest + 42, // 79: regen.ecocredit.v1.Query.CreditType:input_type -> regen.ecocredit.v1.QueryCreditTypeRequest + 48, // 80: regen.ecocredit.v1.Query.ClassCreatorAllowlist:input_type -> regen.ecocredit.v1.QueryClassCreatorAllowlistRequest + 50, // 81: regen.ecocredit.v1.Query.AllowedClassCreators:input_type -> regen.ecocredit.v1.QueryAllowedClassCreatorsRequest + 52, // 82: regen.ecocredit.v1.Query.ClassFee:input_type -> regen.ecocredit.v1.QueryClassFeeRequest + 54, // 83: regen.ecocredit.v1.Query.AllowedBridgeChains:input_type -> regen.ecocredit.v1.QueryAllowedBridgeChainsRequest + 56, // 84: regen.ecocredit.v1.Query.ProjectEnrollment:input_type -> regen.ecocredit.v1.QueryProjectEnrollmentRequest + 58, // 85: regen.ecocredit.v1.Query.ProjectEnrollments:input_type -> regen.ecocredit.v1.QueryProjectEnrollmentsRequest + 1, // 86: regen.ecocredit.v1.Query.Classes:output_type -> regen.ecocredit.v1.QueryClassesResponse + 3, // 87: regen.ecocredit.v1.Query.ClassesByAdmin:output_type -> regen.ecocredit.v1.QueryClassesByAdminResponse + 5, // 88: regen.ecocredit.v1.Query.Class:output_type -> regen.ecocredit.v1.QueryClassResponse + 7, // 89: regen.ecocredit.v1.Query.ClassIssuers:output_type -> regen.ecocredit.v1.QueryClassIssuersResponse + 9, // 90: regen.ecocredit.v1.Query.Projects:output_type -> regen.ecocredit.v1.QueryProjectsResponse + 11, // 91: regen.ecocredit.v1.Query.ProjectsByClass:output_type -> regen.ecocredit.v1.QueryProjectsByClassResponse + 13, // 92: regen.ecocredit.v1.Query.ProjectsByReferenceId:output_type -> regen.ecocredit.v1.QueryProjectsByReferenceIdResponse + 15, // 93: regen.ecocredit.v1.Query.ProjectsByAdmin:output_type -> regen.ecocredit.v1.QueryProjectsByAdminResponse + 17, // 94: regen.ecocredit.v1.Query.Project:output_type -> regen.ecocredit.v1.QueryProjectResponse + 19, // 95: regen.ecocredit.v1.Query.Batches:output_type -> regen.ecocredit.v1.QueryBatchesResponse + 21, // 96: regen.ecocredit.v1.Query.BatchesByIssuer:output_type -> regen.ecocredit.v1.QueryBatchesByIssuerResponse + 25, // 97: regen.ecocredit.v1.Query.BatchesByClass:output_type -> regen.ecocredit.v1.QueryBatchesByClassResponse + 24, // 98: regen.ecocredit.v1.Query.BatchesByProject:output_type -> regen.ecocredit.v1.QueryBatchesByProjectResponse + 27, // 99: regen.ecocredit.v1.Query.Batch:output_type -> regen.ecocredit.v1.QueryBatchResponse + 29, // 100: regen.ecocredit.v1.Query.Balance:output_type -> regen.ecocredit.v1.QueryBalanceResponse + 31, // 101: regen.ecocredit.v1.Query.Balances:output_type -> regen.ecocredit.v1.QueryBalancesResponse + 33, // 102: regen.ecocredit.v1.Query.BalancesByBatch:output_type -> regen.ecocredit.v1.QueryBalancesByBatchResponse + 35, // 103: regen.ecocredit.v1.Query.AllBalances:output_type -> regen.ecocredit.v1.QueryAllBalancesResponse + 37, // 104: regen.ecocredit.v1.Query.Supply:output_type -> regen.ecocredit.v1.QuerySupplyResponse + 39, // 105: regen.ecocredit.v1.Query.CreditTypes:output_type -> regen.ecocredit.v1.QueryCreditTypesResponse + 41, // 106: regen.ecocredit.v1.Query.Params:output_type -> regen.ecocredit.v1.QueryParamsResponse + 43, // 107: regen.ecocredit.v1.Query.CreditType:output_type -> regen.ecocredit.v1.QueryCreditTypeResponse + 49, // 108: regen.ecocredit.v1.Query.ClassCreatorAllowlist:output_type -> regen.ecocredit.v1.QueryClassCreatorAllowlistResponse + 51, // 109: regen.ecocredit.v1.Query.AllowedClassCreators:output_type -> regen.ecocredit.v1.QueryAllowedClassCreatorsResponse + 53, // 110: regen.ecocredit.v1.Query.ClassFee:output_type -> regen.ecocredit.v1.QueryClassFeeResponse + 55, // 111: regen.ecocredit.v1.Query.AllowedBridgeChains:output_type -> regen.ecocredit.v1.QueryAllowedBridgeChainsResponse + 57, // 112: regen.ecocredit.v1.Query.ProjectEnrollment:output_type -> regen.ecocredit.v1.QueryProjectEnrollmentResponse + 59, // 113: regen.ecocredit.v1.Query.ProjectEnrollments:output_type -> regen.ecocredit.v1.QueryProjectEnrollmentsResponse + 86, // [86:114] is the sub-list for method output_type + 58, // [58:86] is the sub-list for method input_type + 58, // [58:58] is the sub-list for extension type_name + 58, // [58:58] is the sub-list for extension extendee + 0, // [0:58] is the sub-list for field type_name } func init() { file_regen_ecocredit_v1_query_proto_init() } @@ -32159,6 +34403,54 @@ func file_regen_ecocredit_v1_query_proto_init() { return nil } } + file_regen_ecocredit_v1_query_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProjectEnrollmentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_query_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProjectEnrollmentResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_query_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProjectEnrollmentsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_query_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProjectEnrollmentsResponse); 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{ @@ -32166,7 +34458,7 @@ func file_regen_ecocredit_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_ecocredit_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 56, + NumMessages: 60, NumExtensions: 0, NumServices: 1, }, diff --git a/api/regen/ecocredit/v1/query_grpc.pb.go b/api/regen/ecocredit/v1/query_grpc.pb.go index 6ab27dc212..7fd63f21ad 100644 --- a/api/regen/ecocredit/v1/query_grpc.pb.go +++ b/api/regen/ecocredit/v1/query_grpc.pb.go @@ -45,6 +45,8 @@ const ( Query_AllowedClassCreators_FullMethodName = "/regen.ecocredit.v1.Query/AllowedClassCreators" Query_ClassFee_FullMethodName = "/regen.ecocredit.v1.Query/ClassFee" Query_AllowedBridgeChains_FullMethodName = "/regen.ecocredit.v1.Query/AllowedBridgeChains" + Query_ProjectEnrollment_FullMethodName = "/regen.ecocredit.v1.Query/ProjectEnrollment" + Query_ProjectEnrollments_FullMethodName = "/regen.ecocredit.v1.Query/ProjectEnrollments" ) // QueryClient is the client API for Query service. @@ -128,6 +130,14 @@ type QueryClient interface { // // Since Revision 2 AllowedBridgeChains(ctx context.Context, in *QueryAllowedBridgeChainsRequest, opts ...grpc.CallOption) (*QueryAllowedBridgeChainsResponse, error) + // ProjectEnrollment queries information about a project's enrollment in a + // credit class. + // + // Since Revision 3 + ProjectEnrollment(ctx context.Context, in *QueryProjectEnrollmentRequest, opts ...grpc.CallOption) (*QueryProjectEnrollmentResponse, error) + // ProjectEnrollments queries all credit class enrollments associated with a + // project. + ProjectEnrollments(ctx context.Context, in *QueryProjectEnrollmentsRequest, opts ...grpc.CallOption) (*QueryProjectEnrollmentsResponse, error) } type queryClient struct { @@ -373,6 +383,24 @@ func (c *queryClient) AllowedBridgeChains(ctx context.Context, in *QueryAllowedB return out, nil } +func (c *queryClient) ProjectEnrollment(ctx context.Context, in *QueryProjectEnrollmentRequest, opts ...grpc.CallOption) (*QueryProjectEnrollmentResponse, error) { + out := new(QueryProjectEnrollmentResponse) + err := c.cc.Invoke(ctx, Query_ProjectEnrollment_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ProjectEnrollments(ctx context.Context, in *QueryProjectEnrollmentsRequest, opts ...grpc.CallOption) (*QueryProjectEnrollmentsResponse, error) { + out := new(QueryProjectEnrollmentsResponse) + err := c.cc.Invoke(ctx, Query_ProjectEnrollments_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 @@ -454,6 +482,14 @@ type QueryServer interface { // // Since Revision 2 AllowedBridgeChains(context.Context, *QueryAllowedBridgeChainsRequest) (*QueryAllowedBridgeChainsResponse, error) + // ProjectEnrollment queries information about a project's enrollment in a + // credit class. + // + // Since Revision 3 + ProjectEnrollment(context.Context, *QueryProjectEnrollmentRequest) (*QueryProjectEnrollmentResponse, error) + // ProjectEnrollments queries all credit class enrollments associated with a + // project. + ProjectEnrollments(context.Context, *QueryProjectEnrollmentsRequest) (*QueryProjectEnrollmentsResponse, error) mustEmbedUnimplementedQueryServer() } @@ -539,6 +575,12 @@ func (UnimplementedQueryServer) ClassFee(context.Context, *QueryClassFeeRequest) func (UnimplementedQueryServer) AllowedBridgeChains(context.Context, *QueryAllowedBridgeChainsRequest) (*QueryAllowedBridgeChainsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AllowedBridgeChains not implemented") } +func (UnimplementedQueryServer) ProjectEnrollment(context.Context, *QueryProjectEnrollmentRequest) (*QueryProjectEnrollmentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProjectEnrollment not implemented") +} +func (UnimplementedQueryServer) ProjectEnrollments(context.Context, *QueryProjectEnrollmentsRequest) (*QueryProjectEnrollmentsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProjectEnrollments not implemented") +} func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} // UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. @@ -1020,6 +1062,42 @@ func _Query_AllowedBridgeChains_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _Query_ProjectEnrollment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProjectEnrollmentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ProjectEnrollment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_ProjectEnrollment_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ProjectEnrollment(ctx, req.(*QueryProjectEnrollmentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ProjectEnrollments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProjectEnrollmentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ProjectEnrollments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_ProjectEnrollments_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ProjectEnrollments(ctx, req.(*QueryProjectEnrollmentsRequest)) + } + 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) @@ -1131,6 +1209,14 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "AllowedBridgeChains", Handler: _Query_AllowedBridgeChains_Handler, }, + { + MethodName: "ProjectEnrollment", + Handler: _Query_ProjectEnrollment_Handler, + }, + { + MethodName: "ProjectEnrollments", + Handler: _Query_ProjectEnrollments_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "regen/ecocredit/v1/query.proto", diff --git a/api/regen/ecocredit/v1/state.cosmos_orm.go b/api/regen/ecocredit/v1/state.cosmos_orm.go index e34f52beca..a2d22d45b3 100644 --- a/api/regen/ecocredit/v1/state.cosmos_orm.go +++ b/api/regen/ecocredit/v1/state.cosmos_orm.go @@ -806,6 +806,19 @@ func (this BatchIssuerIndexKey) WithIssuer(issuer []byte) BatchIssuerIndexKey { return this } +type BatchClassKeyIndexKey struct { + vs []interface{} +} + +func (x BatchClassKeyIndexKey) id() uint32 { return 5 } +func (x BatchClassKeyIndexKey) values() []interface{} { return x.vs } +func (x BatchClassKeyIndexKey) batchIndexKey() {} + +func (this BatchClassKeyIndexKey) WithClassKey(class_key uint64) BatchClassKeyIndexKey { + this.vs = []interface{}{class_key} + return this +} + type batchTable struct { table ormtable.AutoIncrementTable } @@ -2058,6 +2071,168 @@ func NewAllowedBridgeChainTable(db ormtable.Schema) (AllowedBridgeChainTable, er return allowedBridgeChainTable{table}, nil } +type ProjectEnrollmentTable interface { + Insert(ctx context.Context, projectEnrollment *ProjectEnrollment) error + Update(ctx context.Context, projectEnrollment *ProjectEnrollment) error + Save(ctx context.Context, projectEnrollment *ProjectEnrollment) error + Delete(ctx context.Context, projectEnrollment *ProjectEnrollment) error + Has(ctx context.Context, project_key uint64, class_key uint64) (found bool, err error) + // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. + Get(ctx context.Context, project_key uint64, class_key uint64) (*ProjectEnrollment, error) + List(ctx context.Context, prefixKey ProjectEnrollmentIndexKey, opts ...ormlist.Option) (ProjectEnrollmentIterator, error) + ListRange(ctx context.Context, from, to ProjectEnrollmentIndexKey, opts ...ormlist.Option) (ProjectEnrollmentIterator, error) + DeleteBy(ctx context.Context, prefixKey ProjectEnrollmentIndexKey) error + DeleteRange(ctx context.Context, from, to ProjectEnrollmentIndexKey) error + + doNotImplement() +} + +type ProjectEnrollmentIterator struct { + ormtable.Iterator +} + +func (i ProjectEnrollmentIterator) Value() (*ProjectEnrollment, error) { + var projectEnrollment ProjectEnrollment + err := i.UnmarshalMessage(&projectEnrollment) + return &projectEnrollment, err +} + +type ProjectEnrollmentIndexKey interface { + id() uint32 + values() []interface{} + projectEnrollmentIndexKey() +} + +// primary key starting index.. +type ProjectEnrollmentPrimaryKey = ProjectEnrollmentProjectKeyClassKeyIndexKey + +type ProjectEnrollmentProjectKeyClassKeyIndexKey struct { + vs []interface{} +} + +func (x ProjectEnrollmentProjectKeyClassKeyIndexKey) id() uint32 { return 0 } +func (x ProjectEnrollmentProjectKeyClassKeyIndexKey) values() []interface{} { return x.vs } +func (x ProjectEnrollmentProjectKeyClassKeyIndexKey) projectEnrollmentIndexKey() {} + +func (this ProjectEnrollmentProjectKeyClassKeyIndexKey) WithProjectKey(project_key uint64) ProjectEnrollmentProjectKeyClassKeyIndexKey { + this.vs = []interface{}{project_key} + return this +} + +func (this ProjectEnrollmentProjectKeyClassKeyIndexKey) WithProjectKeyClassKey(project_key uint64, class_key uint64) ProjectEnrollmentProjectKeyClassKeyIndexKey { + this.vs = []interface{}{project_key, class_key} + return this +} + +type ProjectEnrollmentClassKeyIndexKey struct { + vs []interface{} +} + +func (x ProjectEnrollmentClassKeyIndexKey) id() uint32 { return 1 } +func (x ProjectEnrollmentClassKeyIndexKey) values() []interface{} { return x.vs } +func (x ProjectEnrollmentClassKeyIndexKey) projectEnrollmentIndexKey() {} + +func (this ProjectEnrollmentClassKeyIndexKey) WithClassKey(class_key uint64) ProjectEnrollmentClassKeyIndexKey { + this.vs = []interface{}{class_key} + return this +} + +type projectEnrollmentTable struct { + table ormtable.Table +} + +func (this projectEnrollmentTable) Insert(ctx context.Context, projectEnrollment *ProjectEnrollment) error { + return this.table.Insert(ctx, projectEnrollment) +} + +func (this projectEnrollmentTable) Update(ctx context.Context, projectEnrollment *ProjectEnrollment) error { + return this.table.Update(ctx, projectEnrollment) +} + +func (this projectEnrollmentTable) Save(ctx context.Context, projectEnrollment *ProjectEnrollment) error { + return this.table.Save(ctx, projectEnrollment) +} + +func (this projectEnrollmentTable) Delete(ctx context.Context, projectEnrollment *ProjectEnrollment) error { + return this.table.Delete(ctx, projectEnrollment) +} + +func (this projectEnrollmentTable) Has(ctx context.Context, project_key uint64, class_key uint64) (found bool, err error) { + return this.table.PrimaryKey().Has(ctx, project_key, class_key) +} + +func (this projectEnrollmentTable) Get(ctx context.Context, project_key uint64, class_key uint64) (*ProjectEnrollment, error) { + var projectEnrollment ProjectEnrollment + found, err := this.table.PrimaryKey().Get(ctx, &projectEnrollment, project_key, class_key) + if err != nil { + return nil, err + } + if !found { + return nil, ormerrors.NotFound + } + return &projectEnrollment, nil +} + +func (this projectEnrollmentTable) List(ctx context.Context, prefixKey ProjectEnrollmentIndexKey, opts ...ormlist.Option) (ProjectEnrollmentIterator, error) { + it, err := this.table.GetIndexByID(prefixKey.id()).List(ctx, prefixKey.values(), opts...) + return ProjectEnrollmentIterator{it}, err +} + +func (this projectEnrollmentTable) ListRange(ctx context.Context, from, to ProjectEnrollmentIndexKey, opts ...ormlist.Option) (ProjectEnrollmentIterator, error) { + it, err := this.table.GetIndexByID(from.id()).ListRange(ctx, from.values(), to.values(), opts...) + return ProjectEnrollmentIterator{it}, err +} + +func (this projectEnrollmentTable) DeleteBy(ctx context.Context, prefixKey ProjectEnrollmentIndexKey) error { + return this.table.GetIndexByID(prefixKey.id()).DeleteBy(ctx, prefixKey.values()...) +} + +func (this projectEnrollmentTable) DeleteRange(ctx context.Context, from, to ProjectEnrollmentIndexKey) error { + return this.table.GetIndexByID(from.id()).DeleteRange(ctx, from.values(), to.values()) +} + +func (this projectEnrollmentTable) doNotImplement() {} + +var _ ProjectEnrollmentTable = projectEnrollmentTable{} + +func NewProjectEnrollmentTable(db ormtable.Schema) (ProjectEnrollmentTable, error) { + table := db.GetTable(&ProjectEnrollment{}) + if table == nil { + return nil, ormerrors.TableNotFound.Wrap(string((&ProjectEnrollment{}).ProtoReflect().Descriptor().FullName())) + } + return projectEnrollmentTable{table}, nil +} + +// singleton store +type ProjectFeeTable interface { + Get(ctx context.Context) (*ProjectFee, error) + Save(ctx context.Context, projectFee *ProjectFee) error +} + +type projectFeeTable struct { + table ormtable.Table +} + +var _ ProjectFeeTable = projectFeeTable{} + +func (x projectFeeTable) Get(ctx context.Context) (*ProjectFee, error) { + projectFee := &ProjectFee{} + _, err := x.table.Get(ctx, projectFee) + return projectFee, err +} + +func (x projectFeeTable) Save(ctx context.Context, projectFee *ProjectFee) error { + return x.table.Save(ctx, projectFee) +} + +func NewProjectFeeTable(db ormtable.Schema) (ProjectFeeTable, error) { + table := db.GetTable(&ProjectFee{}) + if table == nil { + return nil, ormerrors.TableNotFound.Wrap(string((&ProjectFee{}).ProtoReflect().Descriptor().FullName())) + } + return &projectFeeTable{table}, nil +} + type StateStore interface { CreditTypeTable() CreditTypeTable ClassTable() ClassTable @@ -2075,6 +2250,8 @@ type StateStore interface { AllowedClassCreatorTable() AllowedClassCreatorTable ClassFeeTable() ClassFeeTable AllowedBridgeChainTable() AllowedBridgeChainTable + ProjectEnrollmentTable() ProjectEnrollmentTable + ProjectFeeTable() ProjectFeeTable doNotImplement() } @@ -2096,6 +2273,8 @@ type stateStore struct { allowedClassCreator AllowedClassCreatorTable classFee ClassFeeTable allowedBridgeChain AllowedBridgeChainTable + projectEnrollment ProjectEnrollmentTable + projectFee ProjectFeeTable } func (x stateStore) CreditTypeTable() CreditTypeTable { @@ -2162,6 +2341,14 @@ func (x stateStore) AllowedBridgeChainTable() AllowedBridgeChainTable { return x.allowedBridgeChain } +func (x stateStore) ProjectEnrollmentTable() ProjectEnrollmentTable { + return x.projectEnrollment +} + +func (x stateStore) ProjectFeeTable() ProjectFeeTable { + return x.projectFee +} + func (stateStore) doNotImplement() {} var _ StateStore = stateStore{} @@ -2247,6 +2434,16 @@ func NewStateStore(db ormtable.Schema) (StateStore, error) { return nil, err } + projectEnrollmentTable, err := NewProjectEnrollmentTable(db) + if err != nil { + return nil, err + } + + projectFeeTable, err := NewProjectFeeTable(db) + if err != nil { + return nil, err + } + return stateStore{ creditTypeTable, classTable, @@ -2264,5 +2461,7 @@ func NewStateStore(db ormtable.Schema) (StateStore, error) { allowedClassCreatorTable, classFeeTable, allowedBridgeChainTable, + projectEnrollmentTable, + projectFeeTable, }, nil } diff --git a/api/regen/ecocredit/v1/state.pulsar.go b/api/regen/ecocredit/v1/state.pulsar.go index 2a59185faf..3ea1cfdc2a 100644 --- a/api/regen/ecocredit/v1/state.pulsar.go +++ b/api/regen/ecocredit/v1/state.pulsar.go @@ -2528,6 +2528,7 @@ var ( fd_Batch_end_date protoreflect.FieldDescriptor fd_Batch_issuance_date protoreflect.FieldDescriptor fd_Batch_open protoreflect.FieldDescriptor + fd_Batch_class_key protoreflect.FieldDescriptor ) func init() { @@ -2542,6 +2543,7 @@ func init() { fd_Batch_end_date = md_Batch.Fields().ByName("end_date") fd_Batch_issuance_date = md_Batch.Fields().ByName("issuance_date") fd_Batch_open = md_Batch.Fields().ByName("open") + fd_Batch_class_key = md_Batch.Fields().ByName("class_key") } var _ protoreflect.Message = (*fastReflection_Batch)(nil) @@ -2663,6 +2665,12 @@ func (x *fastReflection_Batch) Range(f func(protoreflect.FieldDescriptor, protor return } } + if x.ClassKey != uint64(0) { + value := protoreflect.ValueOfUint64(x.ClassKey) + if !f(fd_Batch_class_key, value) { + return + } + } } // Has reports whether a field is populated. @@ -2696,6 +2704,8 @@ func (x *fastReflection_Batch) Has(fd protoreflect.FieldDescriptor) bool { return x.IssuanceDate != nil case "regen.ecocredit.v1.Batch.open": return x.Open != false + case "regen.ecocredit.v1.Batch.class_key": + return x.ClassKey != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Batch")) @@ -2730,6 +2740,8 @@ func (x *fastReflection_Batch) Clear(fd protoreflect.FieldDescriptor) { x.IssuanceDate = nil case "regen.ecocredit.v1.Batch.open": x.Open = false + case "regen.ecocredit.v1.Batch.class_key": + x.ClassKey = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Batch")) @@ -2773,6 +2785,9 @@ func (x *fastReflection_Batch) Get(descriptor protoreflect.FieldDescriptor) prot case "regen.ecocredit.v1.Batch.open": value := x.Open return protoreflect.ValueOfBool(value) + case "regen.ecocredit.v1.Batch.class_key": + value := x.ClassKey + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Batch")) @@ -2811,6 +2826,8 @@ func (x *fastReflection_Batch) Set(fd protoreflect.FieldDescriptor, value protor x.IssuanceDate = value.Message().Interface().(*timestamppb.Timestamp) case "regen.ecocredit.v1.Batch.open": x.Open = value.Bool() + case "regen.ecocredit.v1.Batch.class_key": + x.ClassKey = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Batch")) @@ -2858,6 +2875,8 @@ func (x *fastReflection_Batch) Mutable(fd protoreflect.FieldDescriptor) protoref panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.Batch is not mutable")) case "regen.ecocredit.v1.Batch.open": panic(fmt.Errorf("field open of message regen.ecocredit.v1.Batch is not mutable")) + case "regen.ecocredit.v1.Batch.class_key": + panic(fmt.Errorf("field class_key of message regen.ecocredit.v1.Batch is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Batch")) @@ -2892,6 +2911,8 @@ func (x *fastReflection_Batch) NewField(fd protoreflect.FieldDescriptor) protore return protoreflect.ValueOfMessage(m.ProtoReflect()) case "regen.ecocredit.v1.Batch.open": return protoreflect.ValueOfBool(false) + case "regen.ecocredit.v1.Batch.class_key": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Batch")) @@ -2994,6 +3015,9 @@ func (x *fastReflection_Batch) ProtoMethods() *protoiface.Methods { if x.Open { n += 2 } + if x.ClassKey != 0 { + n += 1 + runtime.Sov(uint64(x.ClassKey)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -3023,6 +3047,11 @@ func (x *fastReflection_Batch) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.ClassKey != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ClassKey)) + i-- + dAtA[i] = 0x50 + } if x.Open { i-- if x.Open { @@ -3419,6 +3448,25 @@ func (x *fastReflection_Batch) ProtoMethods() *protoiface.Methods { } } x.Open = bool(v != 0) + case 10: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassKey", wireType) + } + x.ClassKey = 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.ClassKey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -8819,158 +8867,1293 @@ func (x *fastReflection_AllowedBridgeChain) ProtoMethods() *protoiface.Methods { } } -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: regen/ecocredit/v1/state.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) +var ( + md_ProjectEnrollment protoreflect.MessageDescriptor + fd_ProjectEnrollment_project_key protoreflect.FieldDescriptor + fd_ProjectEnrollment_class_key protoreflect.FieldDescriptor + fd_ProjectEnrollment_status protoreflect.FieldDescriptor + fd_ProjectEnrollment_application_metadata protoreflect.FieldDescriptor + fd_ProjectEnrollment_enrollment_metadata protoreflect.FieldDescriptor ) -// CreditType defines the measurement unit/precision of a certain credit type -// (e.g. carbon, biodiversity...) -type CreditType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // abbreviation is a 1-3 character uppercase abbreviation of the CreditType - // name, used in batch denominations within the CreditType. It must be unique. - Abbreviation string `protobuf:"bytes,1,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"` - // name is the name of the credit type (e.g. carbon, biodiversity). - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // unit is the measurement unit of the credit type (e.g. kg, ton). - Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"` - // precision is the decimal precision of the credit type. - Precision uint32 `protobuf:"varint,4,opt,name=precision,proto3" json:"precision,omitempty"` -} - -func (x *CreditType) Reset() { - *x = CreditType{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_state_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func init() { + file_regen_ecocredit_v1_state_proto_init() + md_ProjectEnrollment = File_regen_ecocredit_v1_state_proto.Messages().ByName("ProjectEnrollment") + fd_ProjectEnrollment_project_key = md_ProjectEnrollment.Fields().ByName("project_key") + fd_ProjectEnrollment_class_key = md_ProjectEnrollment.Fields().ByName("class_key") + fd_ProjectEnrollment_status = md_ProjectEnrollment.Fields().ByName("status") + fd_ProjectEnrollment_application_metadata = md_ProjectEnrollment.Fields().ByName("application_metadata") + fd_ProjectEnrollment_enrollment_metadata = md_ProjectEnrollment.Fields().ByName("enrollment_metadata") } -func (x *CreditType) String() string { - return protoimpl.X.MessageStringOf(x) -} +var _ protoreflect.Message = (*fastReflection_ProjectEnrollment)(nil) -func (*CreditType) ProtoMessage() {} +type fastReflection_ProjectEnrollment ProjectEnrollment -// Deprecated: Use CreditType.ProtoReflect.Descriptor instead. -func (*CreditType) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_state_proto_rawDescGZIP(), []int{0} +func (x *ProjectEnrollment) ProtoReflect() protoreflect.Message { + return (*fastReflection_ProjectEnrollment)(x) } -func (x *CreditType) GetAbbreviation() string { - if x != nil { - return x.Abbreviation +func (x *ProjectEnrollment) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_state_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 "" + return mi.MessageOf(x) } -func (x *CreditType) GetName() string { - if x != nil { - return x.Name - } - return "" -} +var _fastReflection_ProjectEnrollment_messageType fastReflection_ProjectEnrollment_messageType +var _ protoreflect.MessageType = fastReflection_ProjectEnrollment_messageType{} -func (x *CreditType) GetUnit() string { - if x != nil { - return x.Unit - } - return "" -} +type fastReflection_ProjectEnrollment_messageType struct{} -func (x *CreditType) GetPrecision() uint32 { - if x != nil { - return x.Precision - } - return 0 +func (x fastReflection_ProjectEnrollment_messageType) Zero() protoreflect.Message { + return (*fastReflection_ProjectEnrollment)(nil) } - -// Class represents the high-level on-chain information for a credit class. -type Class struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // key is the table row identifier of the credit class used internally for - // efficient lookups. This identifier is auto-incrementing. - Key uint64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` - // id is the unique identifier of the credit class auto-generated from the - // credit type abbreviation and the credit class sequence number. - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // admin is the admin of the credit class. - Admin []byte `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"` - // metadata is any arbitrary metadata to attached to the credit class. - Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` - // credit_type_abbrev is the abbreviation of the credit type. - CreditTypeAbbrev string `protobuf:"bytes,5,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"` +func (x fastReflection_ProjectEnrollment_messageType) New() protoreflect.Message { + return new(fastReflection_ProjectEnrollment) +} +func (x fastReflection_ProjectEnrollment_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ProjectEnrollment } -func (x *Class) Reset() { - *x = Class{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_state_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ProjectEnrollment) Descriptor() protoreflect.MessageDescriptor { + return md_ProjectEnrollment } -func (x *Class) String() string { - return protoimpl.X.MessageStringOf(x) +// 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_ProjectEnrollment) Type() protoreflect.MessageType { + return _fastReflection_ProjectEnrollment_messageType } -func (*Class) ProtoMessage() {} +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ProjectEnrollment) New() protoreflect.Message { + return new(fastReflection_ProjectEnrollment) +} -// Deprecated: Use Class.ProtoReflect.Descriptor instead. -func (*Class) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_state_proto_rawDescGZIP(), []int{1} +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ProjectEnrollment) Interface() protoreflect.ProtoMessage { + return (*ProjectEnrollment)(x) } -func (x *Class) GetKey() uint64 { - if x != nil { - return x.Key +// 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_ProjectEnrollment) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ProjectKey != uint64(0) { + value := protoreflect.ValueOfUint64(x.ProjectKey) + if !f(fd_ProjectEnrollment_project_key, value) { + return + } + } + if x.ClassKey != uint64(0) { + value := protoreflect.ValueOfUint64(x.ClassKey) + if !f(fd_ProjectEnrollment_class_key, value) { + return + } + } + if x.Status != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) + if !f(fd_ProjectEnrollment_status, value) { + return + } + } + if x.ApplicationMetadata != "" { + value := protoreflect.ValueOfString(x.ApplicationMetadata) + if !f(fd_ProjectEnrollment_application_metadata, value) { + return + } + } + if x.EnrollmentMetadata != "" { + value := protoreflect.ValueOfString(x.EnrollmentMetadata) + if !f(fd_ProjectEnrollment_enrollment_metadata, value) { + return + } } - return 0 } -func (x *Class) GetId() string { - if x != nil { - return x.Id +// 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_ProjectEnrollment) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.ProjectEnrollment.project_key": + return x.ProjectKey != uint64(0) + case "regen.ecocredit.v1.ProjectEnrollment.class_key": + return x.ClassKey != uint64(0) + case "regen.ecocredit.v1.ProjectEnrollment.status": + return x.Status != 0 + case "regen.ecocredit.v1.ProjectEnrollment.application_metadata": + return x.ApplicationMetadata != "" + case "regen.ecocredit.v1.ProjectEnrollment.enrollment_metadata": + return x.EnrollmentMetadata != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectEnrollment does not contain field %s", fd.FullName())) } - return "" } -func (x *Class) GetAdmin() []byte { - if x != nil { - return x.Admin +// 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_ProjectEnrollment) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.ProjectEnrollment.project_key": + x.ProjectKey = uint64(0) + case "regen.ecocredit.v1.ProjectEnrollment.class_key": + x.ClassKey = uint64(0) + case "regen.ecocredit.v1.ProjectEnrollment.status": + x.Status = 0 + case "regen.ecocredit.v1.ProjectEnrollment.application_metadata": + x.ApplicationMetadata = "" + case "regen.ecocredit.v1.ProjectEnrollment.enrollment_metadata": + x.EnrollmentMetadata = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectEnrollment does not contain field %s", fd.FullName())) } - return nil } -func (x *Class) GetMetadata() string { - if x != nil { - return x.Metadata +// 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_ProjectEnrollment) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.ProjectEnrollment.project_key": + value := x.ProjectKey + return protoreflect.ValueOfUint64(value) + case "regen.ecocredit.v1.ProjectEnrollment.class_key": + value := x.ClassKey + return protoreflect.ValueOfUint64(value) + case "regen.ecocredit.v1.ProjectEnrollment.status": + value := x.Status + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "regen.ecocredit.v1.ProjectEnrollment.application_metadata": + value := x.ApplicationMetadata + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.ProjectEnrollment.enrollment_metadata": + value := x.EnrollmentMetadata + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectEnrollment does not contain field %s", descriptor.FullName())) } - return "" } -func (x *Class) GetCreditTypeAbbrev() string { - if x != nil { - return x.CreditTypeAbbrev +// 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_ProjectEnrollment) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.ProjectEnrollment.project_key": + x.ProjectKey = value.Uint() + case "regen.ecocredit.v1.ProjectEnrollment.class_key": + x.ClassKey = value.Uint() + case "regen.ecocredit.v1.ProjectEnrollment.status": + x.Status = (ProjectEnrollmentStatus)(value.Enum()) + case "regen.ecocredit.v1.ProjectEnrollment.application_metadata": + x.ApplicationMetadata = value.Interface().(string) + case "regen.ecocredit.v1.ProjectEnrollment.enrollment_metadata": + x.EnrollmentMetadata = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectEnrollment does not contain field %s", fd.FullName())) } - return "" +} + +// 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_ProjectEnrollment) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.ProjectEnrollment.project_key": + panic(fmt.Errorf("field project_key of message regen.ecocredit.v1.ProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.ProjectEnrollment.class_key": + panic(fmt.Errorf("field class_key of message regen.ecocredit.v1.ProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.ProjectEnrollment.status": + panic(fmt.Errorf("field status of message regen.ecocredit.v1.ProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.ProjectEnrollment.application_metadata": + panic(fmt.Errorf("field application_metadata of message regen.ecocredit.v1.ProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.ProjectEnrollment.enrollment_metadata": + panic(fmt.Errorf("field enrollment_metadata of message regen.ecocredit.v1.ProjectEnrollment is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectEnrollment 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_ProjectEnrollment) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.ProjectEnrollment.project_key": + return protoreflect.ValueOfUint64(uint64(0)) + case "regen.ecocredit.v1.ProjectEnrollment.class_key": + return protoreflect.ValueOfUint64(uint64(0)) + case "regen.ecocredit.v1.ProjectEnrollment.status": + return protoreflect.ValueOfEnum(0) + case "regen.ecocredit.v1.ProjectEnrollment.application_metadata": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.ProjectEnrollment.enrollment_metadata": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectEnrollment")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectEnrollment 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_ProjectEnrollment) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.ProjectEnrollment", 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_ProjectEnrollment) 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_ProjectEnrollment) 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_ProjectEnrollment) 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_ProjectEnrollment) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ProjectEnrollment) + 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.ProjectKey != 0 { + n += 1 + runtime.Sov(uint64(x.ProjectKey)) + } + if x.ClassKey != 0 { + n += 1 + runtime.Sov(uint64(x.ClassKey)) + } + if x.Status != 0 { + n += 1 + runtime.Sov(uint64(x.Status)) + } + l = len(x.ApplicationMetadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.EnrollmentMetadata) + 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().(*ProjectEnrollment) + 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.EnrollmentMetadata) > 0 { + i -= len(x.EnrollmentMetadata) + copy(dAtA[i:], x.EnrollmentMetadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.EnrollmentMetadata))) + i-- + dAtA[i] = 0x32 + } + if len(x.ApplicationMetadata) > 0 { + i -= len(x.ApplicationMetadata) + copy(dAtA[i:], x.ApplicationMetadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ApplicationMetadata))) + i-- + dAtA[i] = 0x2a + } + if x.Status != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) + i-- + dAtA[i] = 0x20 + } + if x.ClassKey != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ClassKey)) + i-- + dAtA[i] = 0x18 + } + if x.ProjectKey != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ProjectKey)) + 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().(*ProjectEnrollment) + 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: ProjectEnrollment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ProjectEnrollment: 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 ProjectKey", wireType) + } + x.ProjectKey = 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.ProjectKey |= 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 ClassKey", wireType) + } + x.ClassKey = 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.ClassKey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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 |= ProjectEnrollmentStatus(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 ApplicationMetadata", 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.ApplicationMetadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EnrollmentMetadata", 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.EnrollmentMetadata = 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_ProjectFee protoreflect.MessageDescriptor + fd_ProjectFee_fee protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_state_proto_init() + md_ProjectFee = File_regen_ecocredit_v1_state_proto.Messages().ByName("ProjectFee") + fd_ProjectFee_fee = md_ProjectFee.Fields().ByName("fee") +} + +var _ protoreflect.Message = (*fastReflection_ProjectFee)(nil) + +type fastReflection_ProjectFee ProjectFee + +func (x *ProjectFee) ProtoReflect() protoreflect.Message { + return (*fastReflection_ProjectFee)(x) +} + +func (x *ProjectFee) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_state_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_ProjectFee_messageType fastReflection_ProjectFee_messageType +var _ protoreflect.MessageType = fastReflection_ProjectFee_messageType{} + +type fastReflection_ProjectFee_messageType struct{} + +func (x fastReflection_ProjectFee_messageType) Zero() protoreflect.Message { + return (*fastReflection_ProjectFee)(nil) +} +func (x fastReflection_ProjectFee_messageType) New() protoreflect.Message { + return new(fastReflection_ProjectFee) +} +func (x fastReflection_ProjectFee_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ProjectFee +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ProjectFee) Descriptor() protoreflect.MessageDescriptor { + return md_ProjectFee +} + +// 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_ProjectFee) Type() protoreflect.MessageType { + return _fastReflection_ProjectFee_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ProjectFee) New() protoreflect.Message { + return new(fastReflection_ProjectFee) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ProjectFee) Interface() protoreflect.ProtoMessage { + return (*ProjectFee)(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_ProjectFee) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Fee != nil { + value := protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) + if !f(fd_ProjectFee_fee, 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_ProjectFee) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.ProjectFee.fee": + return x.Fee != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectFee")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectFee 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_ProjectFee) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.ProjectFee.fee": + x.Fee = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectFee")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectFee 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_ProjectFee) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.ProjectFee.fee": + value := x.Fee + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectFee")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectFee 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_ProjectFee) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.ProjectFee.fee": + x.Fee = value.Message().Interface().(*v1beta1.Coin) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectFee")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectFee 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_ProjectFee) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.ProjectFee.fee": + if x.Fee == nil { + x.Fee = new(v1beta1.Coin) + } + return protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectFee")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectFee 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_ProjectFee) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.ProjectFee.fee": + m := new(v1beta1.Coin) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.ProjectFee")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.ProjectFee 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_ProjectFee) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.ProjectFee", 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_ProjectFee) 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_ProjectFee) 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_ProjectFee) 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_ProjectFee) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ProjectFee) + 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.Fee != nil { + l = options.Size(x.Fee) + 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().(*ProjectFee) + 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.Fee != nil { + encoded, err := options.Marshal(x.Fee) + 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().(*ProjectFee) + 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: ProjectFee: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ProjectFee: 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 Fee", 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.Fee == nil { + x.Fee = &v1beta1.Coin{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Fee); 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: regen/ecocredit/v1/state.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) +) + +// Application represents the evaluation status that a credit class issuer +// assigns to a credit class application. +type ProjectEnrollmentStatus int32 + +const ( + // PROJECT_ENROLLMENT_STATUS_UNSPECIFIED indicates that a credit class application + // has been submitted but not evaluated. + ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_UNSPECIFIED ProjectEnrollmentStatus = 0 + // PROJECT_ENROLLMENT_STATUS_ACCEPTED indicates that the project has been + // accepted into the credit class. + ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_ACCEPTED ProjectEnrollmentStatus = 1 + // PROJECT_ENROLLMENT_STATUS_CHANGES_REQUESTED indicates that an application to + // a credit class has been reviewed and that changes to the application have + // been requested. It can also be used to indicate that a project within a credit + // class has had its status reassessed and that changes to the project are + // requested in order to continue in the credit class. + ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_CHANGES_REQUESTED ProjectEnrollmentStatus = 2 + // PROJECT_ENROLLMENT_STATUS_REJECTED indicates that the application has been + // rejected and that the project will not be accepted into the credit class. + ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_REJECTED ProjectEnrollmentStatus = 3 + // PROJECT_ENROLLMENT_STATUS_TERMINATED indicates that the project has been + // terminated from the credit class. This status is used when a project the + // was previously accepted into the credit class but has been removed or + // completed. + ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_TERMINATED ProjectEnrollmentStatus = 4 +) + +// Enum value maps for ProjectEnrollmentStatus. +var ( + ProjectEnrollmentStatus_name = map[int32]string{ + 0: "PROJECT_ENROLLMENT_STATUS_UNSPECIFIED", + 1: "PROJECT_ENROLLMENT_STATUS_ACCEPTED", + 2: "PROJECT_ENROLLMENT_STATUS_CHANGES_REQUESTED", + 3: "PROJECT_ENROLLMENT_STATUS_REJECTED", + 4: "PROJECT_ENROLLMENT_STATUS_TERMINATED", + } + ProjectEnrollmentStatus_value = map[string]int32{ + "PROJECT_ENROLLMENT_STATUS_UNSPECIFIED": 0, + "PROJECT_ENROLLMENT_STATUS_ACCEPTED": 1, + "PROJECT_ENROLLMENT_STATUS_CHANGES_REQUESTED": 2, + "PROJECT_ENROLLMENT_STATUS_REJECTED": 3, + "PROJECT_ENROLLMENT_STATUS_TERMINATED": 4, + } +) + +func (x ProjectEnrollmentStatus) Enum() *ProjectEnrollmentStatus { + p := new(ProjectEnrollmentStatus) + *p = x + return p +} + +func (x ProjectEnrollmentStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectEnrollmentStatus) Descriptor() protoreflect.EnumDescriptor { + return file_regen_ecocredit_v1_state_proto_enumTypes[0].Descriptor() +} + +func (ProjectEnrollmentStatus) Type() protoreflect.EnumType { + return &file_regen_ecocredit_v1_state_proto_enumTypes[0] +} + +func (x ProjectEnrollmentStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectEnrollmentStatus.Descriptor instead. +func (ProjectEnrollmentStatus) EnumDescriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_state_proto_rawDescGZIP(), []int{0} +} + +// CreditType defines the measurement unit/precision of a certain credit type +// (e.g. carbon, biodiversity...) +type CreditType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // abbreviation is a 1-3 character uppercase abbreviation of the CreditType + // name, used in batch denominations within the CreditType. It must be unique. + Abbreviation string `protobuf:"bytes,1,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"` + // name is the name of the credit type (e.g. carbon, biodiversity). + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // unit is the measurement unit of the credit type (e.g. kg, ton). + Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"` + // precision is the decimal precision of the credit type. + Precision uint32 `protobuf:"varint,4,opt,name=precision,proto3" json:"precision,omitempty"` +} + +func (x *CreditType) Reset() { + *x = CreditType{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_state_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreditType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreditType) ProtoMessage() {} + +// Deprecated: Use CreditType.ProtoReflect.Descriptor instead. +func (*CreditType) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_state_proto_rawDescGZIP(), []int{0} +} + +func (x *CreditType) GetAbbreviation() string { + if x != nil { + return x.Abbreviation + } + return "" +} + +func (x *CreditType) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreditType) GetUnit() string { + if x != nil { + return x.Unit + } + return "" +} + +func (x *CreditType) GetPrecision() uint32 { + if x != nil { + return x.Precision + } + return 0 +} + +// Class represents the high-level on-chain information for a credit class. +type Class struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // key is the table row identifier of the credit class used internally for + // efficient lookups. This identifier is auto-incrementing. + Key uint64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` + // id is the unique identifier of the credit class auto-generated from the + // credit type abbreviation and the credit class sequence number. + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // admin is the admin of the credit class. + Admin []byte `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"` + // metadata is any arbitrary metadata to attached to the credit class. + Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + // credit_type_abbrev is the abbreviation of the credit type. + CreditTypeAbbrev string `protobuf:"bytes,5,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"` +} + +func (x *Class) Reset() { + *x = Class{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_state_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Class) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Class) ProtoMessage() {} + +// Deprecated: Use Class.ProtoReflect.Descriptor instead. +func (*Class) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_state_proto_rawDescGZIP(), []int{1} +} + +func (x *Class) GetKey() uint64 { + if x != nil { + return x.Key + } + return 0 +} + +func (x *Class) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Class) GetAdmin() []byte { + if x != nil { + return x.Admin + } + return nil +} + +func (x *Class) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + +func (x *Class) GetCreditTypeAbbrev() string { + if x != nil { + return x.CreditTypeAbbrev + } + return "" } // ClassIssuers is a JOIN table for Class Info that stores the credit class @@ -9132,8 +10315,9 @@ type Batch struct { // for efficient lookups. This links a credit batch to a project. ProjectKey uint64 `protobuf:"varint,3,opt,name=project_key,json=projectKey,proto3" json:"project_key,omitempty"` // denom is the unique identifier of the credit batch formed from the - // project id, the batch sequence number, and the start and end date of the - // credit batch. + // credit class ID (or just project ID for old project IDs which included the credit class), + // project id, the batch sequence number, and the start and + // end date of the credit batch. Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"` // metadata is any arbitrary metadata attached to the credit batch. Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` @@ -9148,6 +10332,9 @@ type Batch struct { // open tells if it's possible to mint new credits in the future. // Once `open` is set to false, it can't be toggled any more. Open bool `protobuf:"varint,9,opt,name=open,proto3" json:"open,omitempty"` + // class_key is the table row identifier of the credit class used internally + // for efficient lookups. This links a batch to a credit class. + ClassKey uint64 `protobuf:"varint,10,opt,name=class_key,json=classKey,proto3" json:"class_key,omitempty"` } func (x *Batch) Reset() { @@ -9233,6 +10420,13 @@ func (x *Batch) GetOpen() bool { return false } +func (x *Batch) GetClassKey() uint64 { + if x != nil { + return x.ClassKey + } + return 0 +} + // ClassSequence stores and increments the sequence number for credit classes // within a credit type. type ClassSequence struct { @@ -9825,6 +11019,124 @@ func (x *AllowedBridgeChain) GetChainName() string { return "" } +// ProjectEnrollment stores the data a project's enrollment in a credit class. +type ProjectEnrollment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // project_key is the table row identifier of the project used internally for + // efficient lookups. + ProjectKey uint64 `protobuf:"varint,1,opt,name=project_key,json=projectKey,proto3" json:"project_key,omitempty"` + // class_key is the table row identifier of the credit class used internally + // for efficient lookups. + ClassKey uint64 `protobuf:"varint,3,opt,name=class_key,json=classKey,proto3" json:"class_key,omitempty"` + // status is the status of the enrollment. + Status ProjectEnrollmentStatus `protobuf:"varint,4,opt,name=status,proto3,enum=regen.ecocredit.v1.ProjectEnrollmentStatus" json:"status,omitempty"` + // application_metadata is any arbitrary metadata set by the project + // admin related to its application to the credit class. + ApplicationMetadata string `protobuf:"bytes,5,opt,name=application_metadata,json=applicationMetadata,proto3" json:"application_metadata,omitempty"` + // enrollment_metadata is any arbitrary metadata set by the credit class + // admin evaluating the project's application to the credit class. + EnrollmentMetadata string `protobuf:"bytes,6,opt,name=enrollment_metadata,json=enrollmentMetadata,proto3" json:"enrollment_metadata,omitempty"` +} + +func (x *ProjectEnrollment) Reset() { + *x = ProjectEnrollment{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_state_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectEnrollment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectEnrollment) ProtoMessage() {} + +// Deprecated: Use ProjectEnrollment.ProtoReflect.Descriptor instead. +func (*ProjectEnrollment) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_state_proto_rawDescGZIP(), []int{16} +} + +func (x *ProjectEnrollment) GetProjectKey() uint64 { + if x != nil { + return x.ProjectKey + } + return 0 +} + +func (x *ProjectEnrollment) GetClassKey() uint64 { + if x != nil { + return x.ClassKey + } + return 0 +} + +func (x *ProjectEnrollment) GetStatus() ProjectEnrollmentStatus { + if x != nil { + return x.Status + } + return ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_UNSPECIFIED +} + +func (x *ProjectEnrollment) GetApplicationMetadata() string { + if x != nil { + return x.ApplicationMetadata + } + return "" +} + +func (x *ProjectEnrollment) GetEnrollmentMetadata() string { + if x != nil { + return x.EnrollmentMetadata + } + return "" +} + +// ProjectFee is the project creation fee. If not set, a project creation fee is +// not required. This table is controlled via governance. +// +// Since Revision 3 +type ProjectFee struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // fee is the project creation fee. If not set, a project creation fee is not + // required. + Fee *v1beta1.Coin `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"` +} + +func (x *ProjectFee) Reset() { + *x = ProjectFee{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_state_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectFee) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectFee) ProtoMessage() {} + +// Deprecated: Use ProjectFee.ProtoReflect.Descriptor instead. +func (*ProjectFee) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_state_proto_rawDescGZIP(), []int{17} +} + +func (x *ProjectFee) GetFee() *v1beta1.Coin { + if x != nil { + return x.Fee + } + return nil +} + var File_regen_ecocredit_v1_state_proto protoreflect.FileDescriptor var file_regen_ecocredit_v1_state_proto_rawDesc = []byte{ @@ -9884,7 +11196,7 @@ var file_regen_ecocredit_v1_state_proto_rawDesc = []byte{ 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x2c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x10, 0x05, 0x18, 0x04, 0x22, 0x98, 0x03, 0x0a, 0x05, 0x42, 0x61, + 0x63, 0x65, 0x5f, 0x69, 0x64, 0x10, 0x05, 0x18, 0x04, 0x22, 0xc4, 0x03, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1f, 0x0a, @@ -9905,110 +11217,151 @@ var file_regen_ecocredit_v1_state_proto_rawDesc = []byte{ 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x3a, 0x4b, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x45, 0x0a, - 0x07, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, - 0x6d, 0x10, 0x01, 0x18, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x5f, 0x6b, 0x65, 0x79, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, - 0x64, 0x61, 0x74, 0x65, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, - 0x10, 0x04, 0x18, 0x05, 0x22, 0x82, 0x01, 0x0a, 0x0d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x10, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x41, 0x62, - 0x62, 0x72, 0x65, 0x76, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6e, 0x65, 0x78, - 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x1e, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, - 0x18, 0x0a, 0x14, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x5f, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x18, 0x06, 0x22, 0x6a, 0x0a, 0x0f, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, - 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x15, - 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x0f, 0x0a, 0x0b, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, - 0x6b, 0x65, 0x79, 0x18, 0x07, 0x22, 0x6e, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, - 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, - 0x6e, 0x65, 0x78, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x17, 0xf2, 0x9e, - 0xd3, 0x8e, 0x03, 0x11, 0x0a, 0x0d, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, - 0x6b, 0x65, 0x79, 0x18, 0x08, 0x22, 0xf4, 0x01, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x42, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, - 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, - 0x0f, 0x74, 0x72, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, - 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, - 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, - 0x0f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x65, 0x64, - 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x34, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x2e, 0x0a, 0x13, - 0x0a, 0x11, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, - 0x6b, 0x65, 0x79, 0x12, 0x15, 0x0a, 0x11, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6b, 0x65, 0x79, - 0x2c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x10, 0x01, 0x18, 0x09, 0x22, 0xbc, 0x01, 0x0a, - 0x0b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x1b, 0x0a, 0x09, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x61, - 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x08, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x4b, 0x65, 0x79, 0x3a, 0x5a, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x54, 0x0a, 0x07, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x10, 0x01, + 0x18, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6b, 0x65, + 0x79, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, + 0x65, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x10, 0x04, 0x12, + 0x0d, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x10, 0x05, 0x18, 0x05, + 0x22, 0x82, 0x01, 0x0a, 0x0d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, + 0x63, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x5f, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x41, 0x62, 0x62, 0x72, 0x65, 0x76, + 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x53, 0x65, 0x71, + 0x75, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x1e, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x18, 0x0a, 0x14, 0x0a, + 0x12, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x61, 0x62, 0x62, + 0x72, 0x65, 0x76, 0x18, 0x06, 0x22, 0x6a, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x65, + 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6e, 0x65, + 0x78, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x15, 0xf2, 0x9e, 0xd3, 0x8e, + 0x03, 0x0f, 0x0a, 0x0b, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, + 0x07, 0x22, 0x6e, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, + 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, + 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x17, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x11, + 0x0a, 0x0d, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, + 0x08, 0x22, 0xf4, 0x01, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, + 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x61, + 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x74, 0x69, - 0x72, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x41, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x15, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x0f, 0x0a, 0x0b, 0x0a, 0x09, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0a, 0x22, 0x75, 0x0a, 0x0d, 0x4f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, 0x78, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x3a, 0x1f, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x19, 0x0a, 0x15, 0x0a, 0x13, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x2c, 0x69, 0x64, 0x2c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x18, 0x0b, 0x22, 0x96, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x4b, 0x65, - 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1a, - 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x3a, 0x2f, 0xf2, 0x9e, 0xd3, 0x8e, - 0x03, 0x29, 0x0a, 0x0b, 0x0a, 0x09, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x12, - 0x18, 0x0a, 0x12, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x2c, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x10, 0x01, 0x18, 0x01, 0x18, 0x0c, 0x22, 0x3b, 0x0a, 0x15, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, - 0x6c, 0x69, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x3a, 0x08, - 0xfa, 0x9e, 0xd3, 0x8e, 0x03, 0x02, 0x08, 0x0d, 0x22, 0x44, 0x0a, 0x13, 0x41, 0x6c, 0x6c, 0x6f, - 0x77, 0x65, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x13, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, - 0x0d, 0x0a, 0x09, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0e, 0x22, 0x41, - 0x0a, 0x08, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x65, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, - 0x69, 0x6e, 0x52, 0x03, 0x66, 0x65, 0x65, 0x3a, 0x08, 0xfa, 0x9e, 0xd3, 0x8e, 0x03, 0x02, 0x08, - 0x0f, 0x22, 0x4b, 0x0a, 0x12, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x16, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x10, 0x0a, 0x0c, - 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x10, 0x42, 0xd8, - 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, - 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, - 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x74, 0x69, + 0x72, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x3a, 0x34, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x2e, 0x0a, 0x13, 0x0a, 0x11, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x12, + 0x15, 0x0a, 0x11, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x2c, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x10, 0x01, 0x18, 0x09, 0x22, 0xbc, 0x01, 0x0a, 0x0b, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x64, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x74, 0x72, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, + 0x0a, 0x0e, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x64, 0x41, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, + 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x3a, 0x15, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x0f, 0x0a, 0x0b, 0x0a, 0x09, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0a, 0x22, 0x75, 0x0a, 0x0d, 0x4f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x54, 0x78, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3a, 0x1f, 0xf2, + 0x9e, 0xd3, 0x8e, 0x03, 0x19, 0x0a, 0x15, 0x0a, 0x13, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, + 0x65, 0x79, 0x2c, 0x69, 0x64, 0x2c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0b, 0x22, 0x96, + 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x0a, + 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x3a, 0x2f, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x29, 0x0a, 0x0b, + 0x0a, 0x09, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x12, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x2c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x10, 0x01, 0x18, 0x01, 0x18, 0x0c, 0x22, 0x3b, 0x0a, 0x15, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x3a, 0x08, 0xfa, 0x9e, 0xd3, 0x8e, + 0x03, 0x02, 0x08, 0x0d, 0x22, 0x44, 0x0a, 0x13, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x13, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x0d, 0x0a, 0x09, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0e, 0x22, 0x41, 0x0a, 0x08, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x03, + 0x66, 0x65, 0x65, 0x3a, 0x08, 0xfa, 0x9e, 0xd3, 0x8e, 0x03, 0x02, 0x08, 0x0f, 0x22, 0x4b, 0x0a, + 0x12, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, + 0x61, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x61, + 0x6d, 0x65, 0x3a, 0x16, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x10, 0x0a, 0x0c, 0x0a, 0x0a, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x10, 0x22, 0xac, 0x02, 0x0a, 0x11, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4b, 0x65, + 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x43, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, + 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x13, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a, 0x13, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, + 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x12, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x30, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x2a, 0x0a, + 0x17, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x2c, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x0d, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x10, 0x01, 0x18, 0x11, 0x22, 0x43, 0x0a, 0x0a, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x46, 0x65, 0x65, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, + 0x03, 0x66, 0x65, 0x65, 0x3a, 0x08, 0xfa, 0x9e, 0xd3, 0x8e, 0x03, 0x02, 0x08, 0x12, 0x2a, 0xef, + 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, + 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x29, 0x0a, 0x25, 0x50, 0x52, + 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x45, 0x4e, 0x52, 0x4f, 0x4c, 0x4c, 0x4d, 0x45, 0x4e, 0x54, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, + 0x5f, 0x45, 0x4e, 0x52, 0x4f, 0x4c, 0x4c, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x2f, 0x0a, + 0x2b, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x45, 0x4e, 0x52, 0x4f, 0x4c, 0x4c, 0x4d, + 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, + 0x45, 0x53, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x26, + 0x0a, 0x22, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x45, 0x4e, 0x52, 0x4f, 0x4c, 0x4c, + 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a, 0x45, + 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x28, 0x0a, 0x24, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, + 0x54, 0x5f, 0x45, 0x4e, 0x52, 0x4f, 0x4c, 0x4c, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x44, 0x10, 0x04, + 0x42, 0xd8, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -10023,37 +11376,43 @@ func file_regen_ecocredit_v1_state_proto_rawDescGZIP() []byte { return file_regen_ecocredit_v1_state_proto_rawDescData } -var file_regen_ecocredit_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_regen_ecocredit_v1_state_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_regen_ecocredit_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_regen_ecocredit_v1_state_proto_goTypes = []interface{}{ - (*CreditType)(nil), // 0: regen.ecocredit.v1.CreditType - (*Class)(nil), // 1: regen.ecocredit.v1.Class - (*ClassIssuer)(nil), // 2: regen.ecocredit.v1.ClassIssuer - (*Project)(nil), // 3: regen.ecocredit.v1.Project - (*Batch)(nil), // 4: regen.ecocredit.v1.Batch - (*ClassSequence)(nil), // 5: regen.ecocredit.v1.ClassSequence - (*ProjectSequence)(nil), // 6: regen.ecocredit.v1.ProjectSequence - (*BatchSequence)(nil), // 7: regen.ecocredit.v1.BatchSequence - (*BatchBalance)(nil), // 8: regen.ecocredit.v1.BatchBalance - (*BatchSupply)(nil), // 9: regen.ecocredit.v1.BatchSupply - (*OriginTxIndex)(nil), // 10: regen.ecocredit.v1.OriginTxIndex - (*BatchContract)(nil), // 11: regen.ecocredit.v1.BatchContract - (*ClassCreatorAllowlist)(nil), // 12: regen.ecocredit.v1.ClassCreatorAllowlist - (*AllowedClassCreator)(nil), // 13: regen.ecocredit.v1.AllowedClassCreator - (*ClassFee)(nil), // 14: regen.ecocredit.v1.ClassFee - (*AllowedBridgeChain)(nil), // 15: regen.ecocredit.v1.AllowedBridgeChain - (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp - (*v1beta1.Coin)(nil), // 17: cosmos.base.v1beta1.Coin + (ProjectEnrollmentStatus)(0), // 0: regen.ecocredit.v1.ProjectEnrollmentStatus + (*CreditType)(nil), // 1: regen.ecocredit.v1.CreditType + (*Class)(nil), // 2: regen.ecocredit.v1.Class + (*ClassIssuer)(nil), // 3: regen.ecocredit.v1.ClassIssuer + (*Project)(nil), // 4: regen.ecocredit.v1.Project + (*Batch)(nil), // 5: regen.ecocredit.v1.Batch + (*ClassSequence)(nil), // 6: regen.ecocredit.v1.ClassSequence + (*ProjectSequence)(nil), // 7: regen.ecocredit.v1.ProjectSequence + (*BatchSequence)(nil), // 8: regen.ecocredit.v1.BatchSequence + (*BatchBalance)(nil), // 9: regen.ecocredit.v1.BatchBalance + (*BatchSupply)(nil), // 10: regen.ecocredit.v1.BatchSupply + (*OriginTxIndex)(nil), // 11: regen.ecocredit.v1.OriginTxIndex + (*BatchContract)(nil), // 12: regen.ecocredit.v1.BatchContract + (*ClassCreatorAllowlist)(nil), // 13: regen.ecocredit.v1.ClassCreatorAllowlist + (*AllowedClassCreator)(nil), // 14: regen.ecocredit.v1.AllowedClassCreator + (*ClassFee)(nil), // 15: regen.ecocredit.v1.ClassFee + (*AllowedBridgeChain)(nil), // 16: regen.ecocredit.v1.AllowedBridgeChain + (*ProjectEnrollment)(nil), // 17: regen.ecocredit.v1.ProjectEnrollment + (*ProjectFee)(nil), // 18: regen.ecocredit.v1.ProjectFee + (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp + (*v1beta1.Coin)(nil), // 20: cosmos.base.v1beta1.Coin } var file_regen_ecocredit_v1_state_proto_depIdxs = []int32{ - 16, // 0: regen.ecocredit.v1.Batch.start_date:type_name -> google.protobuf.Timestamp - 16, // 1: regen.ecocredit.v1.Batch.end_date:type_name -> google.protobuf.Timestamp - 16, // 2: regen.ecocredit.v1.Batch.issuance_date:type_name -> google.protobuf.Timestamp - 17, // 3: regen.ecocredit.v1.ClassFee.fee:type_name -> cosmos.base.v1beta1.Coin - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] 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 + 19, // 0: regen.ecocredit.v1.Batch.start_date:type_name -> google.protobuf.Timestamp + 19, // 1: regen.ecocredit.v1.Batch.end_date:type_name -> google.protobuf.Timestamp + 19, // 2: regen.ecocredit.v1.Batch.issuance_date:type_name -> google.protobuf.Timestamp + 20, // 3: regen.ecocredit.v1.ClassFee.fee:type_name -> cosmos.base.v1beta1.Coin + 0, // 4: regen.ecocredit.v1.ProjectEnrollment.status:type_name -> regen.ecocredit.v1.ProjectEnrollmentStatus + 20, // 5: regen.ecocredit.v1.ProjectFee.fee:type_name -> cosmos.base.v1beta1.Coin + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_regen_ecocredit_v1_state_proto_init() } @@ -10254,19 +11613,44 @@ func file_regen_ecocredit_v1_state_proto_init() { return nil } } + file_regen_ecocredit_v1_state_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectEnrollment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_state_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectFee); 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_regen_ecocredit_v1_state_proto_rawDesc, - NumEnums: 0, - NumMessages: 16, + NumEnums: 1, + NumMessages: 18, NumExtensions: 0, NumServices: 0, }, GoTypes: file_regen_ecocredit_v1_state_proto_goTypes, DependencyIndexes: file_regen_ecocredit_v1_state_proto_depIdxs, + EnumInfos: file_regen_ecocredit_v1_state_proto_enumTypes, MessageInfos: file_regen_ecocredit_v1_state_proto_msgTypes, }.Build() File_regen_ecocredit_v1_state_proto = out.File diff --git a/api/regen/ecocredit/v1/tx.pulsar.go b/api/regen/ecocredit/v1/tx.pulsar.go index a6bc8bcbf2..253d959159 100644 --- a/api/regen/ecocredit/v1/tx.pulsar.go +++ b/api/regen/ecocredit/v1/tx.pulsar.go @@ -3,10 +3,6 @@ package ecocreditv1 import ( fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - runtime "github.com/cosmos/cosmos-proto/runtime" v1beta1 "github.com/cosmos/cosmos-sdk/api/cosmos/base/v1beta1" _ "github.com/cosmos/cosmos-sdk/api/cosmos/msg/v1" @@ -15,6 +11,9 @@ import ( 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 ( @@ -2050,6 +2049,7 @@ var ( fd_MsgCreateProject_metadata protoreflect.FieldDescriptor fd_MsgCreateProject_jurisdiction protoreflect.FieldDescriptor fd_MsgCreateProject_reference_id protoreflect.FieldDescriptor + fd_MsgCreateProject_fee protoreflect.FieldDescriptor ) func init() { @@ -2060,6 +2060,7 @@ func init() { fd_MsgCreateProject_metadata = md_MsgCreateProject.Fields().ByName("metadata") fd_MsgCreateProject_jurisdiction = md_MsgCreateProject.Fields().ByName("jurisdiction") fd_MsgCreateProject_reference_id = md_MsgCreateProject.Fields().ByName("reference_id") + fd_MsgCreateProject_fee = md_MsgCreateProject.Fields().ByName("fee") } var _ protoreflect.Message = (*fastReflection_MsgCreateProject)(nil) @@ -2157,6 +2158,12 @@ func (x *fastReflection_MsgCreateProject) Range(f func(protoreflect.FieldDescrip return } } + if x.Fee != nil { + value := protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) + if !f(fd_MsgCreateProject_fee, value) { + return + } + } } // Has reports whether a field is populated. @@ -2182,6 +2189,8 @@ func (x *fastReflection_MsgCreateProject) Has(fd protoreflect.FieldDescriptor) b return x.Jurisdiction != "" case "regen.ecocredit.v1.MsgCreateProject.reference_id": return x.ReferenceId != "" + case "regen.ecocredit.v1.MsgCreateProject.fee": + return x.Fee != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateProject")) @@ -2208,6 +2217,8 @@ func (x *fastReflection_MsgCreateProject) Clear(fd protoreflect.FieldDescriptor) x.Jurisdiction = "" case "regen.ecocredit.v1.MsgCreateProject.reference_id": x.ReferenceId = "" + case "regen.ecocredit.v1.MsgCreateProject.fee": + x.Fee = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateProject")) @@ -2239,6 +2250,9 @@ func (x *fastReflection_MsgCreateProject) Get(descriptor protoreflect.FieldDescr case "regen.ecocredit.v1.MsgCreateProject.reference_id": value := x.ReferenceId return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgCreateProject.fee": + value := x.Fee + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateProject")) @@ -2269,6 +2283,8 @@ func (x *fastReflection_MsgCreateProject) Set(fd protoreflect.FieldDescriptor, v x.Jurisdiction = value.Interface().(string) case "regen.ecocredit.v1.MsgCreateProject.reference_id": x.ReferenceId = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateProject.fee": + x.Fee = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateProject")) @@ -2289,6 +2305,11 @@ func (x *fastReflection_MsgCreateProject) Set(fd protoreflect.FieldDescriptor, v // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCreateProject) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgCreateProject.fee": + if x.Fee == nil { + x.Fee = new(v1beta1.Coin) + } + return protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) case "regen.ecocredit.v1.MsgCreateProject.admin": panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgCreateProject is not mutable")) case "regen.ecocredit.v1.MsgCreateProject.class_id": @@ -2322,6 +2343,9 @@ func (x *fastReflection_MsgCreateProject) NewField(fd protoreflect.FieldDescript return protoreflect.ValueOfString("") case "regen.ecocredit.v1.MsgCreateProject.reference_id": return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgCreateProject.fee": + m := new(v1beta1.Coin) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateProject")) @@ -2411,6 +2435,10 @@ func (x *fastReflection_MsgCreateProject) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Fee != nil { + l = options.Size(x.Fee) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2440,6 +2468,20 @@ func (x *fastReflection_MsgCreateProject) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.Fee != nil { + encoded, err := options.Marshal(x.Fee) + 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.ReferenceId) > 0 { i -= len(x.ReferenceId) copy(dAtA[i:], x.ReferenceId) @@ -2684,6 +2726,42 @@ func (x *fastReflection_MsgCreateProject) ProtoMethods() *protoiface.Methods { } x.ReferenceId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Fee", 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.Fee == nil { + x.Fee = &v1beta1.Coin{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Fee); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -3139,91 +3217,34 @@ func (x *fastReflection_MsgCreateProjectResponse) ProtoMethods() *protoiface.Met } } -var _ protoreflect.List = (*_MsgCreateBatch_3_list)(nil) - -type _MsgCreateBatch_3_list struct { - list *[]*BatchIssuance -} - -func (x *_MsgCreateBatch_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgCreateBatch_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgCreateBatch_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*BatchIssuance) - (*x.list)[i] = concreteValue -} - -func (x *_MsgCreateBatch_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*BatchIssuance) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgCreateBatch_3_list) AppendMutable() protoreflect.Value { - v := new(BatchIssuance) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCreateBatch_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgCreateBatch_3_list) NewElement() protoreflect.Value { - v := new(BatchIssuance) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCreateBatch_3_list) IsValid() bool { - return x.list != nil -} - var ( - md_MsgCreateBatch protoreflect.MessageDescriptor - fd_MsgCreateBatch_issuer protoreflect.FieldDescriptor - fd_MsgCreateBatch_project_id protoreflect.FieldDescriptor - fd_MsgCreateBatch_issuance protoreflect.FieldDescriptor - fd_MsgCreateBatch_metadata protoreflect.FieldDescriptor - fd_MsgCreateBatch_start_date protoreflect.FieldDescriptor - fd_MsgCreateBatch_end_date protoreflect.FieldDescriptor - fd_MsgCreateBatch_open protoreflect.FieldDescriptor - fd_MsgCreateBatch_origin_tx protoreflect.FieldDescriptor + md_MsgCreateUnregisteredProject protoreflect.MessageDescriptor + fd_MsgCreateUnregisteredProject_admin protoreflect.FieldDescriptor + fd_MsgCreateUnregisteredProject_metadata protoreflect.FieldDescriptor + fd_MsgCreateUnregisteredProject_jurisdiction protoreflect.FieldDescriptor + fd_MsgCreateUnregisteredProject_reference_id protoreflect.FieldDescriptor + fd_MsgCreateUnregisteredProject_fee protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgCreateBatch = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCreateBatch") - fd_MsgCreateBatch_issuer = md_MsgCreateBatch.Fields().ByName("issuer") - fd_MsgCreateBatch_project_id = md_MsgCreateBatch.Fields().ByName("project_id") - fd_MsgCreateBatch_issuance = md_MsgCreateBatch.Fields().ByName("issuance") - fd_MsgCreateBatch_metadata = md_MsgCreateBatch.Fields().ByName("metadata") - fd_MsgCreateBatch_start_date = md_MsgCreateBatch.Fields().ByName("start_date") - fd_MsgCreateBatch_end_date = md_MsgCreateBatch.Fields().ByName("end_date") - fd_MsgCreateBatch_open = md_MsgCreateBatch.Fields().ByName("open") - fd_MsgCreateBatch_origin_tx = md_MsgCreateBatch.Fields().ByName("origin_tx") + md_MsgCreateUnregisteredProject = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCreateUnregisteredProject") + fd_MsgCreateUnregisteredProject_admin = md_MsgCreateUnregisteredProject.Fields().ByName("admin") + fd_MsgCreateUnregisteredProject_metadata = md_MsgCreateUnregisteredProject.Fields().ByName("metadata") + fd_MsgCreateUnregisteredProject_jurisdiction = md_MsgCreateUnregisteredProject.Fields().ByName("jurisdiction") + fd_MsgCreateUnregisteredProject_reference_id = md_MsgCreateUnregisteredProject.Fields().ByName("reference_id") + fd_MsgCreateUnregisteredProject_fee = md_MsgCreateUnregisteredProject.Fields().ByName("fee") } -var _ protoreflect.Message = (*fastReflection_MsgCreateBatch)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateUnregisteredProject)(nil) -type fastReflection_MsgCreateBatch MsgCreateBatch +type fastReflection_MsgCreateUnregisteredProject MsgCreateUnregisteredProject -func (x *MsgCreateBatch) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateBatch)(x) +func (x *MsgCreateUnregisteredProject) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateUnregisteredProject)(x) } -func (x *MsgCreateBatch) slowProtoReflect() protoreflect.Message { +func (x *MsgCreateUnregisteredProject) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3235,43 +3256,43 @@ func (x *MsgCreateBatch) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCreateBatch_messageType fastReflection_MsgCreateBatch_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateBatch_messageType{} +var _fastReflection_MsgCreateUnregisteredProject_messageType fastReflection_MsgCreateUnregisteredProject_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateUnregisteredProject_messageType{} -type fastReflection_MsgCreateBatch_messageType struct{} +type fastReflection_MsgCreateUnregisteredProject_messageType struct{} -func (x fastReflection_MsgCreateBatch_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateBatch)(nil) +func (x fastReflection_MsgCreateUnregisteredProject_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateUnregisteredProject)(nil) } -func (x fastReflection_MsgCreateBatch_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateBatch) +func (x fastReflection_MsgCreateUnregisteredProject_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateUnregisteredProject) } -func (x fastReflection_MsgCreateBatch_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateBatch +func (x fastReflection_MsgCreateUnregisteredProject_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateUnregisteredProject } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCreateBatch) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateBatch +func (x *fastReflection_MsgCreateUnregisteredProject) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateUnregisteredProject } // 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_MsgCreateBatch) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateBatch_messageType +func (x *fastReflection_MsgCreateUnregisteredProject) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateUnregisteredProject_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateBatch) New() protoreflect.Message { - return new(fastReflection_MsgCreateBatch) +func (x *fastReflection_MsgCreateUnregisteredProject) New() protoreflect.Message { + return new(fastReflection_MsgCreateUnregisteredProject) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateBatch) Interface() protoreflect.ProtoMessage { - return (*MsgCreateBatch)(x) +func (x *fastReflection_MsgCreateUnregisteredProject) Interface() protoreflect.ProtoMessage { + return (*MsgCreateUnregisteredProject)(x) } // Range iterates over every populated field in an undefined order, @@ -3279,52 +3300,34 @@ func (x *fastReflection_MsgCreateBatch) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCreateBatch) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Issuer != "" { - value := protoreflect.ValueOfString(x.Issuer) - if !f(fd_MsgCreateBatch_issuer, value) { - return - } - } - if x.ProjectId != "" { - value := protoreflect.ValueOfString(x.ProjectId) - if !f(fd_MsgCreateBatch_project_id, value) { - return - } - } - if len(x.Issuance) != 0 { - value := protoreflect.ValueOfList(&_MsgCreateBatch_3_list{list: &x.Issuance}) - if !f(fd_MsgCreateBatch_issuance, value) { +func (x *fastReflection_MsgCreateUnregisteredProject) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgCreateUnregisteredProject_admin, value) { return } } if x.Metadata != "" { value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgCreateBatch_metadata, value) { - return - } - } - if x.StartDate != nil { - value := protoreflect.ValueOfMessage(x.StartDate.ProtoReflect()) - if !f(fd_MsgCreateBatch_start_date, value) { + if !f(fd_MsgCreateUnregisteredProject_metadata, value) { return } } - if x.EndDate != nil { - value := protoreflect.ValueOfMessage(x.EndDate.ProtoReflect()) - if !f(fd_MsgCreateBatch_end_date, value) { + if x.Jurisdiction != "" { + value := protoreflect.ValueOfString(x.Jurisdiction) + if !f(fd_MsgCreateUnregisteredProject_jurisdiction, value) { return } } - if x.Open != false { - value := protoreflect.ValueOfBool(x.Open) - if !f(fd_MsgCreateBatch_open, value) { + if x.ReferenceId != "" { + value := protoreflect.ValueOfString(x.ReferenceId) + if !f(fd_MsgCreateUnregisteredProject_reference_id, value) { return } } - if x.OriginTx != nil { - value := protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) - if !f(fd_MsgCreateBatch_origin_tx, value) { + if x.Fee != nil { + value := protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) + if !f(fd_MsgCreateUnregisteredProject_fee, value) { return } } @@ -3341,29 +3344,23 @@ func (x *fastReflection_MsgCreateBatch) Range(f func(protoreflect.FieldDescripto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateBatch) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCreateUnregisteredProject) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatch.issuer": - return x.Issuer != "" - case "regen.ecocredit.v1.MsgCreateBatch.project_id": - return x.ProjectId != "" - case "regen.ecocredit.v1.MsgCreateBatch.issuance": - return len(x.Issuance) != 0 - case "regen.ecocredit.v1.MsgCreateBatch.metadata": + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.admin": + return x.Admin != "" + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.metadata": return x.Metadata != "" - case "regen.ecocredit.v1.MsgCreateBatch.start_date": - return x.StartDate != nil - case "regen.ecocredit.v1.MsgCreateBatch.end_date": - return x.EndDate != nil - case "regen.ecocredit.v1.MsgCreateBatch.open": - return x.Open != false - case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": - return x.OriginTx != nil + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.jurisdiction": + return x.Jurisdiction != "" + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.reference_id": + return x.ReferenceId != "" + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.fee": + return x.Fee != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProject")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProject does not contain field %s", fd.FullName())) } } @@ -3373,29 +3370,23 @@ func (x *fastReflection_MsgCreateBatch) Has(fd protoreflect.FieldDescriptor) boo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateBatch) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateUnregisteredProject) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatch.issuer": - x.Issuer = "" - case "regen.ecocredit.v1.MsgCreateBatch.project_id": - x.ProjectId = "" - case "regen.ecocredit.v1.MsgCreateBatch.issuance": - x.Issuance = nil - case "regen.ecocredit.v1.MsgCreateBatch.metadata": + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.admin": + x.Admin = "" + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.metadata": x.Metadata = "" - case "regen.ecocredit.v1.MsgCreateBatch.start_date": - x.StartDate = nil - case "regen.ecocredit.v1.MsgCreateBatch.end_date": - x.EndDate = nil - case "regen.ecocredit.v1.MsgCreateBatch.open": - x.Open = false - case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": - x.OriginTx = nil + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.jurisdiction": + x.Jurisdiction = "" + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.reference_id": + x.ReferenceId = "" + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.fee": + x.Fee = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProject")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProject does not contain field %s", fd.FullName())) } } @@ -3405,40 +3396,28 @@ func (x *fastReflection_MsgCreateBatch) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateBatch) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateUnregisteredProject) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgCreateBatch.issuer": - value := x.Issuer + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.admin": + value := x.Admin return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgCreateBatch.project_id": - value := x.ProjectId - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgCreateBatch.issuance": - if len(x.Issuance) == 0 { - return protoreflect.ValueOfList(&_MsgCreateBatch_3_list{}) - } - listValue := &_MsgCreateBatch_3_list{list: &x.Issuance} - return protoreflect.ValueOfList(listValue) - case "regen.ecocredit.v1.MsgCreateBatch.metadata": + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.metadata": value := x.Metadata return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgCreateBatch.start_date": - value := x.StartDate - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "regen.ecocredit.v1.MsgCreateBatch.end_date": - value := x.EndDate - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "regen.ecocredit.v1.MsgCreateBatch.open": - value := x.Open - return protoreflect.ValueOfBool(value) - case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": - value := x.OriginTx + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.jurisdiction": + value := x.Jurisdiction + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.reference_id": + value := x.ReferenceId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.fee": + value := x.Fee return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProject")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProject does not contain field %s", descriptor.FullName())) } } @@ -3452,31 +3431,23 @@ func (x *fastReflection_MsgCreateBatch) Get(descriptor protoreflect.FieldDescrip // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateBatch) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCreateUnregisteredProject) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatch.issuer": - x.Issuer = value.Interface().(string) - case "regen.ecocredit.v1.MsgCreateBatch.project_id": - x.ProjectId = value.Interface().(string) - case "regen.ecocredit.v1.MsgCreateBatch.issuance": - lv := value.List() - clv := lv.(*_MsgCreateBatch_3_list) - x.Issuance = *clv.list - case "regen.ecocredit.v1.MsgCreateBatch.metadata": + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.admin": + x.Admin = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.metadata": x.Metadata = value.Interface().(string) - case "regen.ecocredit.v1.MsgCreateBatch.start_date": - x.StartDate = value.Message().Interface().(*timestamppb.Timestamp) - case "regen.ecocredit.v1.MsgCreateBatch.end_date": - x.EndDate = value.Message().Interface().(*timestamppb.Timestamp) - case "regen.ecocredit.v1.MsgCreateBatch.open": - x.Open = value.Bool() - case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": - x.OriginTx = value.Message().Interface().(*OriginTx) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.jurisdiction": + x.Jurisdiction = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.reference_id": + x.ReferenceId = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.fee": + x.Fee = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProject")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProject does not contain field %s", fd.FullName())) } } @@ -3490,85 +3461,60 @@ func (x *fastReflection_MsgCreateBatch) Set(fd protoreflect.FieldDescriptor, val // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateBatch) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateUnregisteredProject) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatch.issuance": - if x.Issuance == nil { - x.Issuance = []*BatchIssuance{} - } - value := &_MsgCreateBatch_3_list{list: &x.Issuance} - return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgCreateBatch.start_date": - if x.StartDate == nil { - x.StartDate = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.StartDate.ProtoReflect()) - case "regen.ecocredit.v1.MsgCreateBatch.end_date": - if x.EndDate == nil { - x.EndDate = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.EndDate.ProtoReflect()) - case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": - if x.OriginTx == nil { - x.OriginTx = new(OriginTx) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.fee": + if x.Fee == nil { + x.Fee = new(v1beta1.Coin) } - return protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) - case "regen.ecocredit.v1.MsgCreateBatch.issuer": - panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgCreateBatch is not mutable")) - case "regen.ecocredit.v1.MsgCreateBatch.project_id": - panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgCreateBatch is not mutable")) - case "regen.ecocredit.v1.MsgCreateBatch.metadata": - panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgCreateBatch is not mutable")) - case "regen.ecocredit.v1.MsgCreateBatch.open": - panic(fmt.Errorf("field open of message regen.ecocredit.v1.MsgCreateBatch is not mutable")) + return protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgCreateUnregisteredProject is not mutable")) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.metadata": + panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgCreateUnregisteredProject is not mutable")) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.jurisdiction": + panic(fmt.Errorf("field jurisdiction of message regen.ecocredit.v1.MsgCreateUnregisteredProject is not mutable")) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.reference_id": + panic(fmt.Errorf("field reference_id of message regen.ecocredit.v1.MsgCreateUnregisteredProject is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProject")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProject 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_MsgCreateBatch) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateUnregisteredProject) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatch.issuer": + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.admin": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgCreateBatch.project_id": + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.metadata": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgCreateBatch.issuance": - list := []*BatchIssuance{} - return protoreflect.ValueOfList(&_MsgCreateBatch_3_list{list: &list}) - case "regen.ecocredit.v1.MsgCreateBatch.metadata": + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.jurisdiction": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgCreateBatch.start_date": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "regen.ecocredit.v1.MsgCreateBatch.end_date": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "regen.ecocredit.v1.MsgCreateBatch.open": - return protoreflect.ValueOfBool(false) - case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": - m := new(OriginTx) + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.reference_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgCreateUnregisteredProject.fee": + m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProject")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProject 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_MsgCreateBatch) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCreateUnregisteredProject) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCreateBatch", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCreateUnregisteredProject", d.FullName())) } panic("unreachable") } @@ -3576,7 +3522,7 @@ func (x *fastReflection_MsgCreateBatch) WhichOneof(d protoreflect.OneofDescripto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateBatch) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateUnregisteredProject) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3587,7 +3533,7 @@ func (x *fastReflection_MsgCreateBatch) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateBatch) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateUnregisteredProject) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3599,7 +3545,7 @@ func (x *fastReflection_MsgCreateBatch) SetUnknown(fields protoreflect.RawFields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateBatch) IsValid() bool { +func (x *fastReflection_MsgCreateUnregisteredProject) IsValid() bool { return x != nil } @@ -3609,9 +3555,9 @@ func (x *fastReflection_MsgCreateBatch) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateUnregisteredProject) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateBatch) + x := input.Message.Interface().(*MsgCreateUnregisteredProject) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3623,37 +3569,24 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Issuer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ProjectId) + l = len(x.Admin) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Issuance) > 0 { - for _, e := range x.Issuance { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } l = len(x.Metadata) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.StartDate != nil { - l = options.Size(x.StartDate) + l = len(x.Jurisdiction) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.EndDate != nil { - l = options.Size(x.EndDate) + l = len(x.ReferenceId) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.Open { - n += 2 - } - if x.OriginTx != nil { - l = options.Size(x.OriginTx) + if x.Fee != nil { + l = options.Size(x.Fee) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -3666,7 +3599,7 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateBatch) + x := input.Message.Interface().(*MsgCreateUnregisteredProject) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3685,8 +3618,8 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.OriginTx != nil { - encoded, err := options.Marshal(x.OriginTx) + if x.Fee != nil { + encoded, err := options.Marshal(x.Fee) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3697,80 +3630,33 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x42 - } - if x.Open { - i-- - if x.Open { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 + dAtA[i] = 0x2a } - if x.EndDate != nil { - encoded, err := options.Marshal(x.EndDate) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.ReferenceId) > 0 { + i -= len(x.ReferenceId) + copy(dAtA[i:], x.ReferenceId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReferenceId))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x22 } - if x.StartDate != nil { - encoded, err := options.Marshal(x.StartDate) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Jurisdiction) > 0 { + i -= len(x.Jurisdiction) + copy(dAtA[i:], x.Jurisdiction) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jurisdiction))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x1a } if len(x.Metadata) > 0 { i -= len(x.Metadata) copy(dAtA[i:], x.Metadata) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) i-- - dAtA[i] = 0x22 - } - if len(x.Issuance) > 0 { - for iNdEx := len(x.Issuance) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Issuance[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.ProjectId) > 0 { - i -= len(x.ProjectId) - copy(dAtA[i:], x.ProjectId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) - i-- dAtA[i] = 0x12 } - if len(x.Issuer) > 0 { - i -= len(x.Issuer) - copy(dAtA[i:], x.Issuer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) + if len(x.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) i-- dAtA[i] = 0xa } @@ -3785,7 +3671,7 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateBatch) + x := input.Message.Interface().(*MsgCreateUnregisteredProject) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3817,15 +3703,15 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateBatch: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateUnregisteredProject: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateBatch: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateUnregisteredProject: 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 Issuer", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3853,11 +3739,11 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Issuer = string(dAtA[iNdEx:postIndex]) + x.Admin = 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 ProjectId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3885,13 +3771,13 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ProjectId = string(dAtA[iNdEx:postIndex]) + x.Metadata = 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 Issuance", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Jurisdiction", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3901,29 +3787,27 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + 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.Issuance = append(x.Issuance, &BatchIssuance{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Issuance[len(x.Issuance)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Jurisdiction = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReferenceId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3951,11 +3835,11 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Metadata = string(dAtA[iNdEx:postIndex]) + x.ReferenceId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StartDate", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3982,102 +3866,10 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.StartDate == nil { - x.StartDate = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StartDate); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EndDate", 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.EndDate == nil { - x.EndDate = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EndDate); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Open", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Open = bool(v != 0) - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginTx", 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.OriginTx == nil { - x.OriginTx = &OriginTx{} + if x.Fee == nil { + x.Fee = &v1beta1.Coin{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OriginTx); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Fee); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -4117,25 +3909,25 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { } var ( - md_MsgCreateBatchResponse protoreflect.MessageDescriptor - fd_MsgCreateBatchResponse_batch_denom protoreflect.FieldDescriptor + md_MsgCreateUnregisteredProjectResponse protoreflect.MessageDescriptor + fd_MsgCreateUnregisteredProjectResponse_project_id protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgCreateBatchResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCreateBatchResponse") - fd_MsgCreateBatchResponse_batch_denom = md_MsgCreateBatchResponse.Fields().ByName("batch_denom") + md_MsgCreateUnregisteredProjectResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCreateUnregisteredProjectResponse") + fd_MsgCreateUnregisteredProjectResponse_project_id = md_MsgCreateUnregisteredProjectResponse.Fields().ByName("project_id") } -var _ protoreflect.Message = (*fastReflection_MsgCreateBatchResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateUnregisteredProjectResponse)(nil) -type fastReflection_MsgCreateBatchResponse MsgCreateBatchResponse +type fastReflection_MsgCreateUnregisteredProjectResponse MsgCreateUnregisteredProjectResponse -func (x *MsgCreateBatchResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateBatchResponse)(x) +func (x *MsgCreateUnregisteredProjectResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateUnregisteredProjectResponse)(x) } -func (x *MsgCreateBatchResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgCreateUnregisteredProjectResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4147,43 +3939,43 @@ func (x *MsgCreateBatchResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCreateBatchResponse_messageType fastReflection_MsgCreateBatchResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateBatchResponse_messageType{} +var _fastReflection_MsgCreateUnregisteredProjectResponse_messageType fastReflection_MsgCreateUnregisteredProjectResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateUnregisteredProjectResponse_messageType{} -type fastReflection_MsgCreateBatchResponse_messageType struct{} +type fastReflection_MsgCreateUnregisteredProjectResponse_messageType struct{} -func (x fastReflection_MsgCreateBatchResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateBatchResponse)(nil) +func (x fastReflection_MsgCreateUnregisteredProjectResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateUnregisteredProjectResponse)(nil) } -func (x fastReflection_MsgCreateBatchResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateBatchResponse) +func (x fastReflection_MsgCreateUnregisteredProjectResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateUnregisteredProjectResponse) } -func (x fastReflection_MsgCreateBatchResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateBatchResponse +func (x fastReflection_MsgCreateUnregisteredProjectResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateUnregisteredProjectResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCreateBatchResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateBatchResponse +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateUnregisteredProjectResponse } // 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_MsgCreateBatchResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateBatchResponse_messageType +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateUnregisteredProjectResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateBatchResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateBatchResponse) +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) New() protoreflect.Message { + return new(fastReflection_MsgCreateUnregisteredProjectResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateBatchResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateBatchResponse)(x) +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateUnregisteredProjectResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4191,10 +3983,10 @@ func (x *fastReflection_MsgCreateBatchResponse) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCreateBatchResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.BatchDenom != "" { - value := protoreflect.ValueOfString(x.BatchDenom) - if !f(fd_MsgCreateBatchResponse_batch_denom, value) { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_MsgCreateUnregisteredProjectResponse_project_id, value) { return } } @@ -4211,15 +4003,15 @@ func (x *fastReflection_MsgCreateBatchResponse) Range(f func(protoreflect.FieldD // 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_MsgCreateBatchResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": - return x.BatchDenom != "" + case "regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse.project_id": + return x.ProjectId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse does not contain field %s", fd.FullName())) } } @@ -4229,15 +4021,15 @@ func (x *fastReflection_MsgCreateBatchResponse) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateBatchResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": - x.BatchDenom = "" + case "regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse.project_id": + x.ProjectId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse does not contain field %s", fd.FullName())) } } @@ -4247,16 +4039,16 @@ func (x *fastReflection_MsgCreateBatchResponse) Clear(fd protoreflect.FieldDescr // 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_MsgCreateBatchResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": - value := x.BatchDenom + case "regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse.project_id": + value := x.ProjectId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse does not contain field %s", descriptor.FullName())) } } @@ -4270,15 +4062,15 @@ func (x *fastReflection_MsgCreateBatchResponse) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateBatchResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": - x.BatchDenom = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse.project_id": + x.ProjectId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse does not contain field %s", fd.FullName())) } } @@ -4292,40 +4084,40 @@ func (x *fastReflection_MsgCreateBatchResponse) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateBatchResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": - panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgCreateBatchResponse is not mutable")) + case "regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse 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_MsgCreateBatchResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": + case "regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse.project_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse 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_MsgCreateBatchResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCreateBatchResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse", d.FullName())) } panic("unreachable") } @@ -4333,7 +4125,7 @@ func (x *fastReflection_MsgCreateBatchResponse) WhichOneof(d protoreflect.OneofD // 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_MsgCreateBatchResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4344,7 +4136,7 @@ func (x *fastReflection_MsgCreateBatchResponse) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateBatchResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4356,7 +4148,7 @@ func (x *fastReflection_MsgCreateBatchResponse) SetUnknown(fields protoreflect.R // 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_MsgCreateBatchResponse) IsValid() bool { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) IsValid() bool { return x != nil } @@ -4366,9 +4158,9 @@ func (x *fastReflection_MsgCreateBatchResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateUnregisteredProjectResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateBatchResponse) + x := input.Message.Interface().(*MsgCreateUnregisteredProjectResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4380,7 +4172,7 @@ func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.BatchDenom) + l = len(x.ProjectId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -4394,7 +4186,7 @@ func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateBatchResponse) + x := input.Message.Interface().(*MsgCreateUnregisteredProjectResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4413,10 +4205,10 @@ func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.BatchDenom) > 0 { - i -= len(x.BatchDenom) - copy(dAtA[i:], x.BatchDenom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) i-- dAtA[i] = 0xa } @@ -4431,7 +4223,7 @@ func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateBatchResponse) + x := input.Message.Interface().(*MsgCreateUnregisteredProjectResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4463,15 +4255,15 @@ func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateBatchResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateUnregisteredProjectResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateBatchResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateUnregisteredProjectResponse: 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 BatchDenom", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4499,7 +4291,7 @@ func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BatchDenom = string(dAtA[iNdEx:postIndex]) + x.ProjectId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4536,83 +4328,34 @@ func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Metho } } -var _ protoreflect.List = (*_MsgMintBatchCredits_3_list)(nil) - -type _MsgMintBatchCredits_3_list struct { - list *[]*BatchIssuance -} - -func (x *_MsgMintBatchCredits_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgMintBatchCredits_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgMintBatchCredits_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*BatchIssuance) - (*x.list)[i] = concreteValue -} - -func (x *_MsgMintBatchCredits_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*BatchIssuance) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgMintBatchCredits_3_list) AppendMutable() protoreflect.Value { - v := new(BatchIssuance) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgMintBatchCredits_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgMintBatchCredits_3_list) NewElement() protoreflect.Value { - v := new(BatchIssuance) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgMintBatchCredits_3_list) IsValid() bool { - return x.list != nil -} - var ( - md_MsgMintBatchCredits protoreflect.MessageDescriptor - fd_MsgMintBatchCredits_issuer protoreflect.FieldDescriptor - fd_MsgMintBatchCredits_batch_denom protoreflect.FieldDescriptor - fd_MsgMintBatchCredits_issuance protoreflect.FieldDescriptor - fd_MsgMintBatchCredits_origin_tx protoreflect.FieldDescriptor + md_MsgCreateOrUpdateApplication protoreflect.MessageDescriptor + fd_MsgCreateOrUpdateApplication_project_admin protoreflect.FieldDescriptor + fd_MsgCreateOrUpdateApplication_project_id protoreflect.FieldDescriptor + fd_MsgCreateOrUpdateApplication_class_id protoreflect.FieldDescriptor + fd_MsgCreateOrUpdateApplication_metadata protoreflect.FieldDescriptor + fd_MsgCreateOrUpdateApplication_withdraw protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgMintBatchCredits = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgMintBatchCredits") - fd_MsgMintBatchCredits_issuer = md_MsgMintBatchCredits.Fields().ByName("issuer") - fd_MsgMintBatchCredits_batch_denom = md_MsgMintBatchCredits.Fields().ByName("batch_denom") - fd_MsgMintBatchCredits_issuance = md_MsgMintBatchCredits.Fields().ByName("issuance") - fd_MsgMintBatchCredits_origin_tx = md_MsgMintBatchCredits.Fields().ByName("origin_tx") + md_MsgCreateOrUpdateApplication = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCreateOrUpdateApplication") + fd_MsgCreateOrUpdateApplication_project_admin = md_MsgCreateOrUpdateApplication.Fields().ByName("project_admin") + fd_MsgCreateOrUpdateApplication_project_id = md_MsgCreateOrUpdateApplication.Fields().ByName("project_id") + fd_MsgCreateOrUpdateApplication_class_id = md_MsgCreateOrUpdateApplication.Fields().ByName("class_id") + fd_MsgCreateOrUpdateApplication_metadata = md_MsgCreateOrUpdateApplication.Fields().ByName("metadata") + fd_MsgCreateOrUpdateApplication_withdraw = md_MsgCreateOrUpdateApplication.Fields().ByName("withdraw") } -var _ protoreflect.Message = (*fastReflection_MsgMintBatchCredits)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateOrUpdateApplication)(nil) -type fastReflection_MsgMintBatchCredits MsgMintBatchCredits +type fastReflection_MsgCreateOrUpdateApplication MsgCreateOrUpdateApplication -func (x *MsgMintBatchCredits) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMintBatchCredits)(x) +func (x *MsgCreateOrUpdateApplication) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateOrUpdateApplication)(x) } -func (x *MsgMintBatchCredits) slowProtoReflect() protoreflect.Message { +func (x *MsgCreateOrUpdateApplication) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4624,43 +4367,43 @@ func (x *MsgMintBatchCredits) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgMintBatchCredits_messageType fastReflection_MsgMintBatchCredits_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintBatchCredits_messageType{} +var _fastReflection_MsgCreateOrUpdateApplication_messageType fastReflection_MsgCreateOrUpdateApplication_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateOrUpdateApplication_messageType{} -type fastReflection_MsgMintBatchCredits_messageType struct{} +type fastReflection_MsgCreateOrUpdateApplication_messageType struct{} -func (x fastReflection_MsgMintBatchCredits_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintBatchCredits)(nil) +func (x fastReflection_MsgCreateOrUpdateApplication_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateOrUpdateApplication)(nil) } -func (x fastReflection_MsgMintBatchCredits_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintBatchCredits) +func (x fastReflection_MsgCreateOrUpdateApplication_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateOrUpdateApplication) } -func (x fastReflection_MsgMintBatchCredits_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintBatchCredits +func (x fastReflection_MsgCreateOrUpdateApplication_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateOrUpdateApplication } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgMintBatchCredits) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintBatchCredits +func (x *fastReflection_MsgCreateOrUpdateApplication) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateOrUpdateApplication } // 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_MsgMintBatchCredits) Type() protoreflect.MessageType { - return _fastReflection_MsgMintBatchCredits_messageType +func (x *fastReflection_MsgCreateOrUpdateApplication) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateOrUpdateApplication_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMintBatchCredits) New() protoreflect.Message { - return new(fastReflection_MsgMintBatchCredits) +func (x *fastReflection_MsgCreateOrUpdateApplication) New() protoreflect.Message { + return new(fastReflection_MsgCreateOrUpdateApplication) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMintBatchCredits) Interface() protoreflect.ProtoMessage { - return (*MsgMintBatchCredits)(x) +func (x *fastReflection_MsgCreateOrUpdateApplication) Interface() protoreflect.ProtoMessage { + return (*MsgCreateOrUpdateApplication)(x) } // Range iterates over every populated field in an undefined order, @@ -4668,28 +4411,34 @@ func (x *fastReflection_MsgMintBatchCredits) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgMintBatchCredits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Issuer != "" { - value := protoreflect.ValueOfString(x.Issuer) - if !f(fd_MsgMintBatchCredits_issuer, value) { +func (x *fastReflection_MsgCreateOrUpdateApplication) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ProjectAdmin != "" { + value := protoreflect.ValueOfString(x.ProjectAdmin) + if !f(fd_MsgCreateOrUpdateApplication_project_admin, value) { return } } - if x.BatchDenom != "" { - value := protoreflect.ValueOfString(x.BatchDenom) - if !f(fd_MsgMintBatchCredits_batch_denom, value) { + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_MsgCreateOrUpdateApplication_project_id, value) { return } } - if len(x.Issuance) != 0 { - value := protoreflect.ValueOfList(&_MsgMintBatchCredits_3_list{list: &x.Issuance}) - if !f(fd_MsgMintBatchCredits_issuance, value) { + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_MsgCreateOrUpdateApplication_class_id, value) { return } } - if x.OriginTx != nil { - value := protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) - if !f(fd_MsgMintBatchCredits_origin_tx, value) { + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_MsgCreateOrUpdateApplication_metadata, value) { + return + } + } + if x.Withdraw != false { + value := protoreflect.ValueOfBool(x.Withdraw) + if !f(fd_MsgCreateOrUpdateApplication_withdraw, value) { return } } @@ -4706,21 +4455,23 @@ func (x *fastReflection_MsgMintBatchCredits) Range(f func(protoreflect.FieldDesc // 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_MsgMintBatchCredits) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCreateOrUpdateApplication) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": - return x.Issuer != "" - case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": - return x.BatchDenom != "" - case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": - return len(x.Issuance) != 0 - case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": - return x.OriginTx != nil + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_admin": + return x.ProjectAdmin != "" + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_id": + return x.ProjectId != "" + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.metadata": + return x.Metadata != "" + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.withdraw": + return x.Withdraw != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplication")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplication does not contain field %s", fd.FullName())) } } @@ -4730,21 +4481,23 @@ func (x *fastReflection_MsgMintBatchCredits) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintBatchCredits) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateOrUpdateApplication) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": - x.Issuer = "" - case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": - x.BatchDenom = "" - case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": - x.Issuance = nil - case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": - x.OriginTx = nil + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_admin": + x.ProjectAdmin = "" + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_id": + x.ProjectId = "" + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.metadata": + x.Metadata = "" + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.withdraw": + x.Withdraw = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplication")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplication does not contain field %s", fd.FullName())) } } @@ -4754,28 +4507,28 @@ func (x *fastReflection_MsgMintBatchCredits) Clear(fd protoreflect.FieldDescript // 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_MsgMintBatchCredits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateOrUpdateApplication) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": - value := x.Issuer + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_admin": + value := x.ProjectAdmin return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": - value := x.BatchDenom + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_id": + value := x.ProjectId return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": - if len(x.Issuance) == 0 { - return protoreflect.ValueOfList(&_MsgMintBatchCredits_3_list{}) - } - listValue := &_MsgMintBatchCredits_3_list{list: &x.Issuance} - return protoreflect.ValueOfList(listValue) - case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": - value := x.OriginTx - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.class_id": + value := x.ClassId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.withdraw": + value := x.Withdraw + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplication")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplication does not contain field %s", descriptor.FullName())) } } @@ -4789,23 +4542,23 @@ func (x *fastReflection_MsgMintBatchCredits) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintBatchCredits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCreateOrUpdateApplication) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": - x.Issuer = value.Interface().(string) - case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": - x.BatchDenom = value.Interface().(string) - case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": - lv := value.List() - clv := lv.(*_MsgMintBatchCredits_3_list) - x.Issuance = *clv.list - case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": - x.OriginTx = value.Message().Interface().(*OriginTx) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_admin": + x.ProjectAdmin = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_id": + x.ProjectId = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.metadata": + x.Metadata = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.withdraw": + x.Withdraw = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplication")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplication does not contain field %s", fd.FullName())) } } @@ -4819,61 +4572,56 @@ func (x *fastReflection_MsgMintBatchCredits) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintBatchCredits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateOrUpdateApplication) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": - if x.Issuance == nil { - x.Issuance = []*BatchIssuance{} - } - value := &_MsgMintBatchCredits_3_list{list: &x.Issuance} - return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": - if x.OriginTx == nil { - x.OriginTx = new(OriginTx) - } - return protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) - case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": - panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgMintBatchCredits is not mutable")) - case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": - panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgMintBatchCredits is not mutable")) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_admin": + panic(fmt.Errorf("field project_admin of message regen.ecocredit.v1.MsgCreateOrUpdateApplication is not mutable")) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgCreateOrUpdateApplication is not mutable")) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgCreateOrUpdateApplication is not mutable")) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.metadata": + panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgCreateOrUpdateApplication is not mutable")) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.withdraw": + panic(fmt.Errorf("field withdraw of message regen.ecocredit.v1.MsgCreateOrUpdateApplication is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplication")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplication 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_MsgMintBatchCredits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateOrUpdateApplication) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_admin": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.project_id": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": - list := []*BatchIssuance{} - return protoreflect.ValueOfList(&_MsgMintBatchCredits_3_list{list: &list}) - case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": - m := new(OriginTx) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.class_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.metadata": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgCreateOrUpdateApplication.withdraw": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplication")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplication 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_MsgMintBatchCredits) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCreateOrUpdateApplication) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgMintBatchCredits", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCreateOrUpdateApplication", d.FullName())) } panic("unreachable") } @@ -4881,7 +4629,7 @@ func (x *fastReflection_MsgMintBatchCredits) WhichOneof(d protoreflect.OneofDesc // 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_MsgMintBatchCredits) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateOrUpdateApplication) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4892,7 +4640,7 @@ func (x *fastReflection_MsgMintBatchCredits) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintBatchCredits) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateOrUpdateApplication) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4904,7 +4652,7 @@ func (x *fastReflection_MsgMintBatchCredits) SetUnknown(fields protoreflect.RawF // 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_MsgMintBatchCredits) IsValid() bool { +func (x *fastReflection_MsgCreateOrUpdateApplication) IsValid() bool { return x != nil } @@ -4914,9 +4662,9 @@ func (x *fastReflection_MsgMintBatchCredits) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateOrUpdateApplication) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintBatchCredits) + x := input.Message.Interface().(*MsgCreateOrUpdateApplication) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4928,24 +4676,25 @@ func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods var n int var l int _ = l - l = len(x.Issuer) + l = len(x.ProjectAdmin) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BatchDenom) + l = len(x.ProjectId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Issuance) > 0 { - for _, e := range x.Issuance { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + l = len(x.ClassId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } - if x.OriginTx != nil { - l = options.Size(x.OriginTx) + l = len(x.Metadata) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Withdraw { + n += 2 + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -4956,7 +4705,7 @@ func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgMintBatchCredits) + x := input.Message.Interface().(*MsgCreateOrUpdateApplication) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4975,47 +4724,41 @@ func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.OriginTx != nil { - encoded, err := options.Marshal(x.OriginTx) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if x.Withdraw { + i-- + if x.Withdraw { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x28 + } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) i-- dAtA[i] = 0x22 } - if len(x.Issuance) > 0 { - for iNdEx := len(x.Issuance) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Issuance[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + i-- + dAtA[i] = 0x1a } - if len(x.BatchDenom) > 0 { - i -= len(x.BatchDenom) - copy(dAtA[i:], x.BatchDenom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) i-- dAtA[i] = 0x12 } - if len(x.Issuer) > 0 { - i -= len(x.Issuer) - copy(dAtA[i:], x.Issuer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) + if len(x.ProjectAdmin) > 0 { + i -= len(x.ProjectAdmin) + copy(dAtA[i:], x.ProjectAdmin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectAdmin))) i-- dAtA[i] = 0xa } @@ -5030,7 +4773,7 @@ func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgMintBatchCredits) + x := input.Message.Interface().(*MsgCreateOrUpdateApplication) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5062,15 +4805,15 @@ func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintBatchCredits: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdateApplication: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintBatchCredits: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdateApplication: 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 Issuer", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProjectAdmin", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5098,11 +4841,11 @@ func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Issuer = string(dAtA[iNdEx:postIndex]) + x.ProjectAdmin = 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 BatchDenom", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5130,13 +4873,13 @@ func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BatchDenom = string(dAtA[iNdEx:postIndex]) + x.ProjectId = 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 Issuance", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -5146,31 +4889,29 @@ func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + 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.Issuance = append(x.Issuance, &BatchIssuance{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Issuance[len(x.Issuance)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.ClassId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginTx", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -5180,28 +4921,44 @@ func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.OriginTx == nil { - x.OriginTx = &OriginTx{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OriginTx); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Metadata = 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 Withdraw", wireType) + } + var v 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Withdraw = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5238,23 +4995,23 @@ func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods } var ( - md_MsgMintBatchCreditsResponse protoreflect.MessageDescriptor + md_MsgCreateOrUpdateApplicationResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgMintBatchCreditsResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgMintBatchCreditsResponse") + md_MsgCreateOrUpdateApplicationResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCreateOrUpdateApplicationResponse") } -var _ protoreflect.Message = (*fastReflection_MsgMintBatchCreditsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateOrUpdateApplicationResponse)(nil) -type fastReflection_MsgMintBatchCreditsResponse MsgMintBatchCreditsResponse +type fastReflection_MsgCreateOrUpdateApplicationResponse MsgCreateOrUpdateApplicationResponse -func (x *MsgMintBatchCreditsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMintBatchCreditsResponse)(x) +func (x *MsgCreateOrUpdateApplicationResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateOrUpdateApplicationResponse)(x) } -func (x *MsgMintBatchCreditsResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgCreateOrUpdateApplicationResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5266,43 +5023,43 @@ func (x *MsgMintBatchCreditsResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgMintBatchCreditsResponse_messageType fastReflection_MsgMintBatchCreditsResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintBatchCreditsResponse_messageType{} +var _fastReflection_MsgCreateOrUpdateApplicationResponse_messageType fastReflection_MsgCreateOrUpdateApplicationResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateOrUpdateApplicationResponse_messageType{} -type fastReflection_MsgMintBatchCreditsResponse_messageType struct{} +type fastReflection_MsgCreateOrUpdateApplicationResponse_messageType struct{} -func (x fastReflection_MsgMintBatchCreditsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintBatchCreditsResponse)(nil) +func (x fastReflection_MsgCreateOrUpdateApplicationResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateOrUpdateApplicationResponse)(nil) } -func (x fastReflection_MsgMintBatchCreditsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintBatchCreditsResponse) +func (x fastReflection_MsgCreateOrUpdateApplicationResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateOrUpdateApplicationResponse) } -func (x fastReflection_MsgMintBatchCreditsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintBatchCreditsResponse +func (x fastReflection_MsgCreateOrUpdateApplicationResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateOrUpdateApplicationResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgMintBatchCreditsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintBatchCreditsResponse +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateOrUpdateApplicationResponse } // 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_MsgMintBatchCreditsResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgMintBatchCreditsResponse_messageType +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateOrUpdateApplicationResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMintBatchCreditsResponse) New() protoreflect.Message { - return new(fastReflection_MsgMintBatchCreditsResponse) +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) New() protoreflect.Message { + return new(fastReflection_MsgCreateOrUpdateApplicationResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMintBatchCreditsResponse) Interface() protoreflect.ProtoMessage { - return (*MsgMintBatchCreditsResponse)(x) +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateOrUpdateApplicationResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -5310,7 +5067,7 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgMintBatchCreditsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -5324,13 +5081,13 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) Range(f func(protoreflect.F // 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_MsgMintBatchCreditsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse does not contain field %s", fd.FullName())) } } @@ -5340,13 +5097,13 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintBatchCreditsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse does not contain field %s", fd.FullName())) } } @@ -5356,13 +5113,13 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) Clear(fd protoreflect.Field // 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_MsgMintBatchCreditsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse does not contain field %s", descriptor.FullName())) } } @@ -5376,13 +5133,13 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintBatchCreditsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse does not contain field %s", fd.FullName())) } } @@ -5396,36 +5153,36 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintBatchCreditsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse 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_MsgMintBatchCreditsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse 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_MsgMintBatchCreditsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgMintBatchCreditsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse", d.FullName())) } panic("unreachable") } @@ -5433,7 +5190,7 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) WhichOneof(d protoreflect.O // 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_MsgMintBatchCreditsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5444,7 +5201,7 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintBatchCreditsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5456,7 +5213,7 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) SetUnknown(fields protorefl // 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_MsgMintBatchCreditsResponse) IsValid() bool { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) IsValid() bool { return x != nil } @@ -5466,9 +5223,9 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgMintBatchCreditsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateOrUpdateApplicationResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintBatchCreditsResponse) + x := input.Message.Interface().(*MsgCreateOrUpdateApplicationResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5490,7 +5247,7 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgMintBatchCreditsResponse) + x := input.Message.Interface().(*MsgCreateOrUpdateApplicationResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5520,7 +5277,7 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgMintBatchCreditsResponse) + x := input.Message.Interface().(*MsgCreateOrUpdateApplicationResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5552,10 +5309,10 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintBatchCreditsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdateApplicationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintBatchCreditsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdateApplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5594,27 +5351,33 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) ProtoMethods() *protoiface. } var ( - md_MsgSealBatch protoreflect.MessageDescriptor - fd_MsgSealBatch_issuer protoreflect.FieldDescriptor - fd_MsgSealBatch_batch_denom protoreflect.FieldDescriptor + md_MsgUpdateProjectEnrollment protoreflect.MessageDescriptor + fd_MsgUpdateProjectEnrollment_issuer protoreflect.FieldDescriptor + fd_MsgUpdateProjectEnrollment_project_id protoreflect.FieldDescriptor + fd_MsgUpdateProjectEnrollment_class_id protoreflect.FieldDescriptor + fd_MsgUpdateProjectEnrollment_new_status protoreflect.FieldDescriptor + fd_MsgUpdateProjectEnrollment_metadata protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgSealBatch = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSealBatch") - fd_MsgSealBatch_issuer = md_MsgSealBatch.Fields().ByName("issuer") - fd_MsgSealBatch_batch_denom = md_MsgSealBatch.Fields().ByName("batch_denom") + md_MsgUpdateProjectEnrollment = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectEnrollment") + fd_MsgUpdateProjectEnrollment_issuer = md_MsgUpdateProjectEnrollment.Fields().ByName("issuer") + fd_MsgUpdateProjectEnrollment_project_id = md_MsgUpdateProjectEnrollment.Fields().ByName("project_id") + fd_MsgUpdateProjectEnrollment_class_id = md_MsgUpdateProjectEnrollment.Fields().ByName("class_id") + fd_MsgUpdateProjectEnrollment_new_status = md_MsgUpdateProjectEnrollment.Fields().ByName("new_status") + fd_MsgUpdateProjectEnrollment_metadata = md_MsgUpdateProjectEnrollment.Fields().ByName("metadata") } -var _ protoreflect.Message = (*fastReflection_MsgSealBatch)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectEnrollment)(nil) -type fastReflection_MsgSealBatch MsgSealBatch +type fastReflection_MsgUpdateProjectEnrollment MsgUpdateProjectEnrollment -func (x *MsgSealBatch) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSealBatch)(x) +func (x *MsgUpdateProjectEnrollment) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectEnrollment)(x) } -func (x *MsgSealBatch) slowProtoReflect() protoreflect.Message { +func (x *MsgUpdateProjectEnrollment) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5626,43 +5389,43 @@ func (x *MsgSealBatch) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSealBatch_messageType fastReflection_MsgSealBatch_messageType -var _ protoreflect.MessageType = fastReflection_MsgSealBatch_messageType{} +var _fastReflection_MsgUpdateProjectEnrollment_messageType fastReflection_MsgUpdateProjectEnrollment_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectEnrollment_messageType{} -type fastReflection_MsgSealBatch_messageType struct{} +type fastReflection_MsgUpdateProjectEnrollment_messageType struct{} -func (x fastReflection_MsgSealBatch_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSealBatch)(nil) +func (x fastReflection_MsgUpdateProjectEnrollment_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectEnrollment)(nil) } -func (x fastReflection_MsgSealBatch_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSealBatch) +func (x fastReflection_MsgUpdateProjectEnrollment_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectEnrollment) } -func (x fastReflection_MsgSealBatch_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSealBatch +func (x fastReflection_MsgUpdateProjectEnrollment_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectEnrollment } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSealBatch) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSealBatch +func (x *fastReflection_MsgUpdateProjectEnrollment) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectEnrollment } // 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_MsgSealBatch) Type() protoreflect.MessageType { - return _fastReflection_MsgSealBatch_messageType +func (x *fastReflection_MsgUpdateProjectEnrollment) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectEnrollment_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSealBatch) New() protoreflect.Message { - return new(fastReflection_MsgSealBatch) +func (x *fastReflection_MsgUpdateProjectEnrollment) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectEnrollment) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSealBatch) Interface() protoreflect.ProtoMessage { - return (*MsgSealBatch)(x) +func (x *fastReflection_MsgUpdateProjectEnrollment) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectEnrollment)(x) } // Range iterates over every populated field in an undefined order, @@ -5670,16 +5433,34 @@ func (x *fastReflection_MsgSealBatch) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgSealBatch) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateProjectEnrollment) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Issuer != "" { value := protoreflect.ValueOfString(x.Issuer) - if !f(fd_MsgSealBatch_issuer, value) { + if !f(fd_MsgUpdateProjectEnrollment_issuer, value) { return } } - if x.BatchDenom != "" { - value := protoreflect.ValueOfString(x.BatchDenom) - if !f(fd_MsgSealBatch_batch_denom, value) { + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_MsgUpdateProjectEnrollment_project_id, value) { + return + } + } + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_MsgUpdateProjectEnrollment_class_id, value) { + return + } + } + if x.NewStatus != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.NewStatus)) + if !f(fd_MsgUpdateProjectEnrollment_new_status, value) { + return + } + } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_MsgUpdateProjectEnrollment_metadata, value) { return } } @@ -5696,17 +5477,23 @@ func (x *fastReflection_MsgSealBatch) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSealBatch) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateProjectEnrollment) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSealBatch.issuer": + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.issuer": return x.Issuer != "" - case "regen.ecocredit.v1.MsgSealBatch.batch_denom": - return x.BatchDenom != "" + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.project_id": + return x.ProjectId != "" + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.new_status": + return x.NewStatus != 0 + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.metadata": + return x.Metadata != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollment")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollment does not contain field %s", fd.FullName())) } } @@ -5716,17 +5503,23 @@ func (x *fastReflection_MsgSealBatch) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSealBatch) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateProjectEnrollment) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSealBatch.issuer": + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.issuer": x.Issuer = "" - case "regen.ecocredit.v1.MsgSealBatch.batch_denom": - x.BatchDenom = "" + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.project_id": + x.ProjectId = "" + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.new_status": + x.NewStatus = 0 + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.metadata": + x.Metadata = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollment")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollment does not contain field %s", fd.FullName())) } } @@ -5736,19 +5529,28 @@ func (x *fastReflection_MsgSealBatch) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSealBatch) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectEnrollment) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgSealBatch.issuer": + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.issuer": value := x.Issuer return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgSealBatch.batch_denom": - value := x.BatchDenom + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.project_id": + value := x.ProjectId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.class_id": + value := x.ClassId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.new_status": + value := x.NewStatus + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.metadata": + value := x.Metadata return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollment")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollment does not contain field %s", descriptor.FullName())) } } @@ -5762,17 +5564,23 @@ func (x *fastReflection_MsgSealBatch) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSealBatch) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateProjectEnrollment) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSealBatch.issuer": + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.issuer": x.Issuer = value.Interface().(string) - case "regen.ecocredit.v1.MsgSealBatch.batch_denom": - x.BatchDenom = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.project_id": + x.ProjectId = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.new_status": + x.NewStatus = (ProjectEnrollmentStatus)(value.Enum()) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.metadata": + x.Metadata = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollment")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollment does not contain field %s", fd.FullName())) } } @@ -5786,44 +5594,56 @@ func (x *fastReflection_MsgSealBatch) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSealBatch) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectEnrollment) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSealBatch.issuer": - panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgSealBatch is not mutable")) - case "regen.ecocredit.v1.MsgSealBatch.batch_denom": - panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgSealBatch is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.issuer": + panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgUpdateProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgUpdateProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.new_status": + panic(fmt.Errorf("field new_status of message regen.ecocredit.v1.MsgUpdateProjectEnrollment is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.metadata": + panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgUpdateProjectEnrollment is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollment")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollment 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_MsgSealBatch) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectEnrollment) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSealBatch.issuer": + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.issuer": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgSealBatch.batch_denom": + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.project_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.class_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.new_status": + return protoreflect.ValueOfEnum(0) + case "regen.ecocredit.v1.MsgUpdateProjectEnrollment.metadata": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollment")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollment 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_MsgSealBatch) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateProjectEnrollment) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSealBatch", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectEnrollment", d.FullName())) } panic("unreachable") } @@ -5831,7 +5651,7 @@ func (x *fastReflection_MsgSealBatch) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSealBatch) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateProjectEnrollment) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5842,7 +5662,7 @@ func (x *fastReflection_MsgSealBatch) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSealBatch) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateProjectEnrollment) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5854,7 +5674,7 @@ func (x *fastReflection_MsgSealBatch) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgSealBatch) IsValid() bool { +func (x *fastReflection_MsgUpdateProjectEnrollment) IsValid() bool { return x != nil } @@ -5864,9 +5684,9 @@ func (x *fastReflection_MsgSealBatch) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSealBatch) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateProjectEnrollment) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSealBatch) + x := input.Message.Interface().(*MsgUpdateProjectEnrollment) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5882,7 +5702,18 @@ func (x *fastReflection_MsgSealBatch) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BatchDenom) + l = len(x.ProjectId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ClassId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NewStatus != 0 { + n += 1 + runtime.Sov(uint64(x.NewStatus)) + } + l = len(x.Metadata) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -5896,7 +5727,7 @@ func (x *fastReflection_MsgSealBatch) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSealBatch) + x := input.Message.Interface().(*MsgUpdateProjectEnrollment) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5915,10 +5746,29 @@ func (x *fastReflection_MsgSealBatch) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.BatchDenom) > 0 { - i -= len(x.BatchDenom) - copy(dAtA[i:], x.BatchDenom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x2a + } + if x.NewStatus != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NewStatus)) + i-- + dAtA[i] = 0x20 + } + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + i-- + dAtA[i] = 0x1a + } + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) i-- dAtA[i] = 0x12 } @@ -5940,7 +5790,7 @@ func (x *fastReflection_MsgSealBatch) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSealBatch) + x := input.Message.Interface().(*MsgUpdateProjectEnrollment) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5972,10 +5822,10 @@ func (x *fastReflection_MsgSealBatch) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSealBatch: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectEnrollment: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSealBatch: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectEnrollment: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6012,7 +5862,7 @@ func (x *fastReflection_MsgSealBatch) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BatchDenom", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6040,22 +5890,105 @@ func (x *fastReflection_MsgSealBatch) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BatchDenom = string(dAtA[iNdEx:postIndex]) + x.ProjectId = 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 + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - if (iNdEx + skippy) > l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + x.ClassId = 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 NewStatus", wireType) + } + x.NewStatus = 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.NewStatus |= ProjectEnrollmentStatus(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 Metadata", 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.Metadata = 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 } @@ -6078,23 +6011,23 @@ func (x *fastReflection_MsgSealBatch) ProtoMethods() *protoiface.Methods { } var ( - md_MsgSealBatchResponse protoreflect.MessageDescriptor + md_MsgUpdateProjectEnrollmentResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgSealBatchResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSealBatchResponse") + md_MsgUpdateProjectEnrollmentResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectEnrollmentResponse") } -var _ protoreflect.Message = (*fastReflection_MsgSealBatchResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectEnrollmentResponse)(nil) -type fastReflection_MsgSealBatchResponse MsgSealBatchResponse +type fastReflection_MsgUpdateProjectEnrollmentResponse MsgUpdateProjectEnrollmentResponse -func (x *MsgSealBatchResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSealBatchResponse)(x) +func (x *MsgUpdateProjectEnrollmentResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectEnrollmentResponse)(x) } -func (x *MsgSealBatchResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgUpdateProjectEnrollmentResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6106,43 +6039,43 @@ func (x *MsgSealBatchResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSealBatchResponse_messageType fastReflection_MsgSealBatchResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSealBatchResponse_messageType{} +var _fastReflection_MsgUpdateProjectEnrollmentResponse_messageType fastReflection_MsgUpdateProjectEnrollmentResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectEnrollmentResponse_messageType{} -type fastReflection_MsgSealBatchResponse_messageType struct{} +type fastReflection_MsgUpdateProjectEnrollmentResponse_messageType struct{} -func (x fastReflection_MsgSealBatchResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSealBatchResponse)(nil) +func (x fastReflection_MsgUpdateProjectEnrollmentResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectEnrollmentResponse)(nil) } -func (x fastReflection_MsgSealBatchResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSealBatchResponse) +func (x fastReflection_MsgUpdateProjectEnrollmentResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectEnrollmentResponse) } -func (x fastReflection_MsgSealBatchResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSealBatchResponse +func (x fastReflection_MsgUpdateProjectEnrollmentResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectEnrollmentResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSealBatchResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSealBatchResponse +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectEnrollmentResponse } // 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_MsgSealBatchResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSealBatchResponse_messageType +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectEnrollmentResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSealBatchResponse) New() protoreflect.Message { - return new(fastReflection_MsgSealBatchResponse) +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectEnrollmentResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSealBatchResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSealBatchResponse)(x) +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectEnrollmentResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -6150,7 +6083,7 @@ func (x *fastReflection_MsgSealBatchResponse) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgSealBatchResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -6164,13 +6097,13 @@ func (x *fastReflection_MsgSealBatchResponse) Range(f func(protoreflect.FieldDes // 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_MsgSealBatchResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse does not contain field %s", fd.FullName())) } } @@ -6180,13 +6113,13 @@ func (x *fastReflection_MsgSealBatchResponse) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSealBatchResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse does not contain field %s", fd.FullName())) } } @@ -6196,13 +6129,13 @@ func (x *fastReflection_MsgSealBatchResponse) Clear(fd protoreflect.FieldDescrip // 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_MsgSealBatchResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse does not contain field %s", descriptor.FullName())) } } @@ -6216,13 +6149,13 @@ func (x *fastReflection_MsgSealBatchResponse) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSealBatchResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse does not contain field %s", fd.FullName())) } } @@ -6236,36 +6169,36 @@ func (x *fastReflection_MsgSealBatchResponse) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSealBatchResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse 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_MsgSealBatchResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse 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_MsgSealBatchResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSealBatchResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse", d.FullName())) } panic("unreachable") } @@ -6273,7 +6206,7 @@ func (x *fastReflection_MsgSealBatchResponse) WhichOneof(d protoreflect.OneofDes // 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_MsgSealBatchResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6284,7 +6217,7 @@ func (x *fastReflection_MsgSealBatchResponse) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSealBatchResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6296,7 +6229,7 @@ func (x *fastReflection_MsgSealBatchResponse) SetUnknown(fields protoreflect.Raw // 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_MsgSealBatchResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) IsValid() bool { return x != nil } @@ -6306,9 +6239,9 @@ func (x *fastReflection_MsgSealBatchResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSealBatchResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateProjectEnrollmentResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSealBatchResponse) + x := input.Message.Interface().(*MsgUpdateProjectEnrollmentResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6330,7 +6263,7 @@ func (x *fastReflection_MsgSealBatchResponse) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSealBatchResponse) + x := input.Message.Interface().(*MsgUpdateProjectEnrollmentResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6360,7 +6293,7 @@ func (x *fastReflection_MsgSealBatchResponse) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSealBatchResponse) + x := input.Message.Interface().(*MsgUpdateProjectEnrollmentResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6392,10 +6325,10 @@ func (x *fastReflection_MsgSealBatchResponse) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSealBatchResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectEnrollmentResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSealBatchResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectEnrollmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -6433,81 +6366,93 @@ func (x *fastReflection_MsgSealBatchResponse) ProtoMethods() *protoiface.Methods } } -var _ protoreflect.List = (*_MsgSend_3_list)(nil) +var _ protoreflect.List = (*_MsgCreateBatch_3_list)(nil) -type _MsgSend_3_list struct { - list *[]*MsgSend_SendCredits +type _MsgCreateBatch_3_list struct { + list *[]*BatchIssuance } -func (x *_MsgSend_3_list) Len() int { +func (x *_MsgCreateBatch_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_MsgSend_3_list) Get(i int) protoreflect.Value { +func (x *_MsgCreateBatch_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_MsgSend_3_list) Set(i int, value protoreflect.Value) { +func (x *_MsgCreateBatch_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MsgSend_SendCredits) + concreteValue := valueUnwrapped.Interface().(*BatchIssuance) (*x.list)[i] = concreteValue } -func (x *_MsgSend_3_list) Append(value protoreflect.Value) { +func (x *_MsgCreateBatch_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MsgSend_SendCredits) + concreteValue := valueUnwrapped.Interface().(*BatchIssuance) *x.list = append(*x.list, concreteValue) } -func (x *_MsgSend_3_list) AppendMutable() protoreflect.Value { - v := new(MsgSend_SendCredits) +func (x *_MsgCreateBatch_3_list) AppendMutable() protoreflect.Value { + v := new(BatchIssuance) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgSend_3_list) Truncate(n int) { +func (x *_MsgCreateBatch_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_MsgSend_3_list) NewElement() protoreflect.Value { - v := new(MsgSend_SendCredits) +func (x *_MsgCreateBatch_3_list) NewElement() protoreflect.Value { + v := new(BatchIssuance) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgSend_3_list) IsValid() bool { +func (x *_MsgCreateBatch_3_list) IsValid() bool { return x.list != nil } var ( - md_MsgSend protoreflect.MessageDescriptor - fd_MsgSend_sender protoreflect.FieldDescriptor - fd_MsgSend_recipient protoreflect.FieldDescriptor - fd_MsgSend_credits protoreflect.FieldDescriptor + md_MsgCreateBatch protoreflect.MessageDescriptor + fd_MsgCreateBatch_issuer protoreflect.FieldDescriptor + fd_MsgCreateBatch_project_id protoreflect.FieldDescriptor + fd_MsgCreateBatch_issuance protoreflect.FieldDescriptor + fd_MsgCreateBatch_metadata protoreflect.FieldDescriptor + fd_MsgCreateBatch_start_date protoreflect.FieldDescriptor + fd_MsgCreateBatch_end_date protoreflect.FieldDescriptor + fd_MsgCreateBatch_open protoreflect.FieldDescriptor + fd_MsgCreateBatch_origin_tx protoreflect.FieldDescriptor + fd_MsgCreateBatch_class_id protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgSend = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSend") - fd_MsgSend_sender = md_MsgSend.Fields().ByName("sender") - fd_MsgSend_recipient = md_MsgSend.Fields().ByName("recipient") - fd_MsgSend_credits = md_MsgSend.Fields().ByName("credits") + md_MsgCreateBatch = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCreateBatch") + fd_MsgCreateBatch_issuer = md_MsgCreateBatch.Fields().ByName("issuer") + fd_MsgCreateBatch_project_id = md_MsgCreateBatch.Fields().ByName("project_id") + fd_MsgCreateBatch_issuance = md_MsgCreateBatch.Fields().ByName("issuance") + fd_MsgCreateBatch_metadata = md_MsgCreateBatch.Fields().ByName("metadata") + fd_MsgCreateBatch_start_date = md_MsgCreateBatch.Fields().ByName("start_date") + fd_MsgCreateBatch_end_date = md_MsgCreateBatch.Fields().ByName("end_date") + fd_MsgCreateBatch_open = md_MsgCreateBatch.Fields().ByName("open") + fd_MsgCreateBatch_origin_tx = md_MsgCreateBatch.Fields().ByName("origin_tx") + fd_MsgCreateBatch_class_id = md_MsgCreateBatch.Fields().ByName("class_id") } -var _ protoreflect.Message = (*fastReflection_MsgSend)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateBatch)(nil) -type fastReflection_MsgSend MsgSend +type fastReflection_MsgCreateBatch MsgCreateBatch -func (x *MsgSend) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSend)(x) +func (x *MsgCreateBatch) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateBatch)(x) } -func (x *MsgSend) slowProtoReflect() protoreflect.Message { +func (x *MsgCreateBatch) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6519,43 +6464,43 @@ func (x *MsgSend) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSend_messageType fastReflection_MsgSend_messageType -var _ protoreflect.MessageType = fastReflection_MsgSend_messageType{} +var _fastReflection_MsgCreateBatch_messageType fastReflection_MsgCreateBatch_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateBatch_messageType{} -type fastReflection_MsgSend_messageType struct{} +type fastReflection_MsgCreateBatch_messageType struct{} -func (x fastReflection_MsgSend_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSend)(nil) +func (x fastReflection_MsgCreateBatch_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateBatch)(nil) } -func (x fastReflection_MsgSend_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSend) +func (x fastReflection_MsgCreateBatch_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateBatch) } -func (x fastReflection_MsgSend_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSend +func (x fastReflection_MsgCreateBatch_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateBatch } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSend) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSend +func (x *fastReflection_MsgCreateBatch) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateBatch } // 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_MsgSend) Type() protoreflect.MessageType { - return _fastReflection_MsgSend_messageType +func (x *fastReflection_MsgCreateBatch) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateBatch_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSend) New() protoreflect.Message { - return new(fastReflection_MsgSend) +func (x *fastReflection_MsgCreateBatch) New() protoreflect.Message { + return new(fastReflection_MsgCreateBatch) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSend) Interface() protoreflect.ProtoMessage { - return (*MsgSend)(x) +func (x *fastReflection_MsgCreateBatch) Interface() protoreflect.ProtoMessage { + return (*MsgCreateBatch)(x) } // Range iterates over every populated field in an undefined order, @@ -6563,51 +6508,99 @@ func (x *fastReflection_MsgSend) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgSend) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Sender != "" { - value := protoreflect.ValueOfString(x.Sender) - if !f(fd_MsgSend_sender, value) { +func (x *fastReflection_MsgCreateBatch) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Issuer != "" { + value := protoreflect.ValueOfString(x.Issuer) + if !f(fd_MsgCreateBatch_issuer, value) { return } } - if x.Recipient != "" { - value := protoreflect.ValueOfString(x.Recipient) - if !f(fd_MsgSend_recipient, value) { + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_MsgCreateBatch_project_id, value) { return } } - if len(x.Credits) != 0 { - value := protoreflect.ValueOfList(&_MsgSend_3_list{list: &x.Credits}) - if !f(fd_MsgSend_credits, value) { + if len(x.Issuance) != 0 { + value := protoreflect.ValueOfList(&_MsgCreateBatch_3_list{list: &x.Issuance}) + if !f(fd_MsgCreateBatch_issuance, 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_MsgSend) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "regen.ecocredit.v1.MsgSend.sender": - return x.Sender != "" - case "regen.ecocredit.v1.MsgSend.recipient": - return x.Recipient != "" - case "regen.ecocredit.v1.MsgSend.credits": - return len(x.Credits) != 0 + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_MsgCreateBatch_metadata, value) { + return + } + } + if x.StartDate != nil { + value := protoreflect.ValueOfMessage(x.StartDate.ProtoReflect()) + if !f(fd_MsgCreateBatch_start_date, value) { + return + } + } + if x.EndDate != nil { + value := protoreflect.ValueOfMessage(x.EndDate.ProtoReflect()) + if !f(fd_MsgCreateBatch_end_date, value) { + return + } + } + if x.Open != false { + value := protoreflect.ValueOfBool(x.Open) + if !f(fd_MsgCreateBatch_open, value) { + return + } + } + if x.OriginTx != nil { + value := protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) + if !f(fd_MsgCreateBatch_origin_tx, value) { + return + } + } + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_MsgCreateBatch_class_id, 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_MsgCreateBatch) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgCreateBatch.issuer": + return x.Issuer != "" + case "regen.ecocredit.v1.MsgCreateBatch.project_id": + return x.ProjectId != "" + case "regen.ecocredit.v1.MsgCreateBatch.issuance": + return len(x.Issuance) != 0 + case "regen.ecocredit.v1.MsgCreateBatch.metadata": + return x.Metadata != "" + case "regen.ecocredit.v1.MsgCreateBatch.start_date": + return x.StartDate != nil + case "regen.ecocredit.v1.MsgCreateBatch.end_date": + return x.EndDate != nil + case "regen.ecocredit.v1.MsgCreateBatch.open": + return x.Open != false + case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": + return x.OriginTx != nil + case "regen.ecocredit.v1.MsgCreateBatch.class_id": + return x.ClassId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch does not contain field %s", fd.FullName())) } } @@ -6617,19 +6610,31 @@ func (x *fastReflection_MsgSend) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateBatch) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSend.sender": - x.Sender = "" - case "regen.ecocredit.v1.MsgSend.recipient": - x.Recipient = "" - case "regen.ecocredit.v1.MsgSend.credits": - x.Credits = nil + case "regen.ecocredit.v1.MsgCreateBatch.issuer": + x.Issuer = "" + case "regen.ecocredit.v1.MsgCreateBatch.project_id": + x.ProjectId = "" + case "regen.ecocredit.v1.MsgCreateBatch.issuance": + x.Issuance = nil + case "regen.ecocredit.v1.MsgCreateBatch.metadata": + x.Metadata = "" + case "regen.ecocredit.v1.MsgCreateBatch.start_date": + x.StartDate = nil + case "regen.ecocredit.v1.MsgCreateBatch.end_date": + x.EndDate = nil + case "regen.ecocredit.v1.MsgCreateBatch.open": + x.Open = false + case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": + x.OriginTx = nil + case "regen.ecocredit.v1.MsgCreateBatch.class_id": + x.ClassId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch does not contain field %s", fd.FullName())) } } @@ -6639,25 +6644,43 @@ func (x *fastReflection_MsgSend) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSend) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateBatch) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgSend.sender": - value := x.Sender + case "regen.ecocredit.v1.MsgCreateBatch.issuer": + value := x.Issuer return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgSend.recipient": - value := x.Recipient + case "regen.ecocredit.v1.MsgCreateBatch.project_id": + value := x.ProjectId return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgSend.credits": - if len(x.Credits) == 0 { - return protoreflect.ValueOfList(&_MsgSend_3_list{}) + case "regen.ecocredit.v1.MsgCreateBatch.issuance": + if len(x.Issuance) == 0 { + return protoreflect.ValueOfList(&_MsgCreateBatch_3_list{}) } - listValue := &_MsgSend_3_list{list: &x.Credits} + listValue := &_MsgCreateBatch_3_list{list: &x.Issuance} return protoreflect.ValueOfList(listValue) + case "regen.ecocredit.v1.MsgCreateBatch.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgCreateBatch.start_date": + value := x.StartDate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateBatch.end_date": + value := x.EndDate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateBatch.open": + value := x.Open + return protoreflect.ValueOfBool(value) + case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": + value := x.OriginTx + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateBatch.class_id": + value := x.ClassId + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch does not contain field %s", descriptor.FullName())) } } @@ -6671,21 +6694,33 @@ func (x *fastReflection_MsgSend) Get(descriptor protoreflect.FieldDescriptor) pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCreateBatch) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSend.sender": - x.Sender = value.Interface().(string) - case "regen.ecocredit.v1.MsgSend.recipient": - x.Recipient = value.Interface().(string) - case "regen.ecocredit.v1.MsgSend.credits": + case "regen.ecocredit.v1.MsgCreateBatch.issuer": + x.Issuer = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateBatch.project_id": + x.ProjectId = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateBatch.issuance": lv := value.List() - clv := lv.(*_MsgSend_3_list) - x.Credits = *clv.list + clv := lv.(*_MsgCreateBatch_3_list) + x.Issuance = *clv.list + case "regen.ecocredit.v1.MsgCreateBatch.metadata": + x.Metadata = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateBatch.start_date": + x.StartDate = value.Message().Interface().(*timestamppb.Timestamp) + case "regen.ecocredit.v1.MsgCreateBatch.end_date": + x.EndDate = value.Message().Interface().(*timestamppb.Timestamp) + case "regen.ecocredit.v1.MsgCreateBatch.open": + x.Open = value.Bool() + case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": + x.OriginTx = value.Message().Interface().(*OriginTx) + case "regen.ecocredit.v1.MsgCreateBatch.class_id": + x.ClassId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch does not contain field %s", fd.FullName())) } } @@ -6699,53 +6734,89 @@ func (x *fastReflection_MsgSend) Set(fd protoreflect.FieldDescriptor, value prot // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateBatch) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSend.credits": - if x.Credits == nil { - x.Credits = []*MsgSend_SendCredits{} + case "regen.ecocredit.v1.MsgCreateBatch.issuance": + if x.Issuance == nil { + x.Issuance = []*BatchIssuance{} } - value := &_MsgSend_3_list{list: &x.Credits} + value := &_MsgCreateBatch_3_list{list: &x.Issuance} return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgSend.sender": - panic(fmt.Errorf("field sender of message regen.ecocredit.v1.MsgSend is not mutable")) - case "regen.ecocredit.v1.MsgSend.recipient": - panic(fmt.Errorf("field recipient of message regen.ecocredit.v1.MsgSend is not mutable")) + case "regen.ecocredit.v1.MsgCreateBatch.start_date": + if x.StartDate == nil { + x.StartDate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.StartDate.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateBatch.end_date": + if x.EndDate == nil { + x.EndDate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.EndDate.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": + if x.OriginTx == nil { + x.OriginTx = new(OriginTx) + } + return protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateBatch.issuer": + panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgCreateBatch is not mutable")) + case "regen.ecocredit.v1.MsgCreateBatch.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgCreateBatch is not mutable")) + case "regen.ecocredit.v1.MsgCreateBatch.metadata": + panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgCreateBatch is not mutable")) + case "regen.ecocredit.v1.MsgCreateBatch.open": + panic(fmt.Errorf("field open of message regen.ecocredit.v1.MsgCreateBatch is not mutable")) + case "regen.ecocredit.v1.MsgCreateBatch.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgCreateBatch is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch 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_MsgSend) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateBatch) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSend.sender": + case "regen.ecocredit.v1.MsgCreateBatch.issuer": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgSend.recipient": + case "regen.ecocredit.v1.MsgCreateBatch.project_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgCreateBatch.issuance": + list := []*BatchIssuance{} + return protoreflect.ValueOfList(&_MsgCreateBatch_3_list{list: &list}) + case "regen.ecocredit.v1.MsgCreateBatch.metadata": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgCreateBatch.start_date": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateBatch.end_date": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateBatch.open": + return protoreflect.ValueOfBool(false) + case "regen.ecocredit.v1.MsgCreateBatch.origin_tx": + m := new(OriginTx) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.ecocredit.v1.MsgCreateBatch.class_id": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgSend.credits": - list := []*MsgSend_SendCredits{} - return protoreflect.ValueOfList(&_MsgSend_3_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatch 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_MsgSend) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCreateBatch) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSend", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCreateBatch", d.FullName())) } panic("unreachable") } @@ -6753,7 +6824,7 @@ func (x *fastReflection_MsgSend) WhichOneof(d protoreflect.OneofDescriptor) prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSend) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateBatch) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6764,7 +6835,7 @@ func (x *fastReflection_MsgSend) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateBatch) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6776,7 +6847,7 @@ func (x *fastReflection_MsgSend) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgSend) IsValid() bool { +func (x *fastReflection_MsgCreateBatch) IsValid() bool { return x != nil } @@ -6786,9 +6857,9 @@ func (x *fastReflection_MsgSend) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSend) + x := input.Message.Interface().(*MsgCreateBatch) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6800,20 +6871,43 @@ func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Sender) + l = len(x.Issuer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Recipient) + l = len(x.ProjectId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Credits) > 0 { - for _, e := range x.Credits { + if len(x.Issuance) > 0 { + for _, e := range x.Issuance { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.StartDate != nil { + l = options.Size(x.StartDate) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.EndDate != nil { + l = options.Size(x.EndDate) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Open { + n += 2 + } + if x.OriginTx != nil { + l = options.Size(x.OriginTx) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ClassId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -6824,7 +6918,7 @@ func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSend) + x := input.Message.Interface().(*MsgCreateBatch) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6843,9 +6937,75 @@ func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Credits) > 0 { - for iNdEx := len(x.Credits) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Credits[iNdEx]) + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + i-- + dAtA[i] = 0x4a + } + if x.OriginTx != nil { + encoded, err := options.Marshal(x.OriginTx) + 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.Open { + i-- + if x.Open { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if x.EndDate != nil { + encoded, err := options.Marshal(x.EndDate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if x.StartDate != nil { + encoded, err := options.Marshal(x.StartDate) + 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 len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x22 + } + if len(x.Issuance) > 0 { + for iNdEx := len(x.Issuance) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Issuance[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6859,17 +7019,17 @@ func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x1a } } - if len(x.Recipient) > 0 { - i -= len(x.Recipient) - copy(dAtA[i:], x.Recipient) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) i-- dAtA[i] = 0x12 } - if len(x.Sender) > 0 { - i -= len(x.Sender) - copy(dAtA[i:], x.Sender) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sender))) + if len(x.Issuer) > 0 { + i -= len(x.Issuer) + copy(dAtA[i:], x.Issuer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) i-- dAtA[i] = 0xa } @@ -6884,7 +7044,7 @@ func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSend) + x := input.Message.Interface().(*MsgCreateBatch) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6916,15 +7076,15 @@ func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateBatch: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateBatch: 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 Sender", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Issuer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6952,11 +7112,11 @@ func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Sender = string(dAtA[iNdEx:postIndex]) + x.Issuer = 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 Recipient", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6984,11 +7144,11 @@ func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Recipient = string(dAtA[iNdEx:postIndex]) + x.ProjectId = 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 Credits", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Issuance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7015,39 +7175,231 @@ func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Credits = append(x.Credits, &MsgSend_SendCredits{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-1]); err != nil { + x.Issuance = append(x.Issuance, &BatchIssuance{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Issuance[len(x.Issuance)-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 { + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", 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.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StartDate", 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.StartDate == nil { + x.StartDate = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StartDate); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EndDate", 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 } - if (iNdEx + skippy) > l { + 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 !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + if x.EndDate == nil { + x.EndDate = ×tamppb.Timestamp{} } - 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, + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EndDate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Open", wireType) + } + var v 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Open = bool(v != 0) + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginTx", 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.OriginTx == nil { + x.OriginTx = &OriginTx{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OriginTx); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", 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.ClassId = 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, @@ -7056,34 +7408,26 @@ func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { } var ( - md_MsgSend_SendCredits protoreflect.MessageDescriptor - fd_MsgSend_SendCredits_batch_denom protoreflect.FieldDescriptor - fd_MsgSend_SendCredits_tradable_amount protoreflect.FieldDescriptor - fd_MsgSend_SendCredits_retired_amount protoreflect.FieldDescriptor - fd_MsgSend_SendCredits_retirement_jurisdiction protoreflect.FieldDescriptor - fd_MsgSend_SendCredits_retirement_reason protoreflect.FieldDescriptor + md_MsgCreateBatchResponse protoreflect.MessageDescriptor + fd_MsgCreateBatchResponse_batch_denom protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgSend_SendCredits = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSend").Messages().ByName("SendCredits") - fd_MsgSend_SendCredits_batch_denom = md_MsgSend_SendCredits.Fields().ByName("batch_denom") - fd_MsgSend_SendCredits_tradable_amount = md_MsgSend_SendCredits.Fields().ByName("tradable_amount") - fd_MsgSend_SendCredits_retired_amount = md_MsgSend_SendCredits.Fields().ByName("retired_amount") - fd_MsgSend_SendCredits_retirement_jurisdiction = md_MsgSend_SendCredits.Fields().ByName("retirement_jurisdiction") - fd_MsgSend_SendCredits_retirement_reason = md_MsgSend_SendCredits.Fields().ByName("retirement_reason") + md_MsgCreateBatchResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCreateBatchResponse") + fd_MsgCreateBatchResponse_batch_denom = md_MsgCreateBatchResponse.Fields().ByName("batch_denom") } -var _ protoreflect.Message = (*fastReflection_MsgSend_SendCredits)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateBatchResponse)(nil) -type fastReflection_MsgSend_SendCredits MsgSend_SendCredits +type fastReflection_MsgCreateBatchResponse MsgCreateBatchResponse -func (x *MsgSend_SendCredits) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSend_SendCredits)(x) +func (x *MsgCreateBatchResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateBatchResponse)(x) } -func (x *MsgSend_SendCredits) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[48] +func (x *MsgCreateBatchResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7094,43 +7438,43 @@ func (x *MsgSend_SendCredits) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSend_SendCredits_messageType fastReflection_MsgSend_SendCredits_messageType -var _ protoreflect.MessageType = fastReflection_MsgSend_SendCredits_messageType{} +var _fastReflection_MsgCreateBatchResponse_messageType fastReflection_MsgCreateBatchResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateBatchResponse_messageType{} -type fastReflection_MsgSend_SendCredits_messageType struct{} +type fastReflection_MsgCreateBatchResponse_messageType struct{} -func (x fastReflection_MsgSend_SendCredits_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSend_SendCredits)(nil) +func (x fastReflection_MsgCreateBatchResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateBatchResponse)(nil) } -func (x fastReflection_MsgSend_SendCredits_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSend_SendCredits) +func (x fastReflection_MsgCreateBatchResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateBatchResponse) } -func (x fastReflection_MsgSend_SendCredits_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSend_SendCredits +func (x fastReflection_MsgCreateBatchResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateBatchResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSend_SendCredits) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSend_SendCredits +func (x *fastReflection_MsgCreateBatchResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateBatchResponse } // 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_MsgSend_SendCredits) Type() protoreflect.MessageType { - return _fastReflection_MsgSend_SendCredits_messageType +func (x *fastReflection_MsgCreateBatchResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateBatchResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSend_SendCredits) New() protoreflect.Message { - return new(fastReflection_MsgSend_SendCredits) +func (x *fastReflection_MsgCreateBatchResponse) New() protoreflect.Message { + return new(fastReflection_MsgCreateBatchResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSend_SendCredits) Interface() protoreflect.ProtoMessage { - return (*MsgSend_SendCredits)(x) +func (x *fastReflection_MsgCreateBatchResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateBatchResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -7138,34 +7482,10 @@ func (x *fastReflection_MsgSend_SendCredits) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgSend_SendCredits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgCreateBatchResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.BatchDenom != "" { value := protoreflect.ValueOfString(x.BatchDenom) - if !f(fd_MsgSend_SendCredits_batch_denom, value) { - return - } - } - if x.TradableAmount != "" { - value := protoreflect.ValueOfString(x.TradableAmount) - if !f(fd_MsgSend_SendCredits_tradable_amount, value) { - return - } - } - if x.RetiredAmount != "" { - value := protoreflect.ValueOfString(x.RetiredAmount) - if !f(fd_MsgSend_SendCredits_retired_amount, value) { - return - } - } - if x.RetirementJurisdiction != "" { - value := protoreflect.ValueOfString(x.RetirementJurisdiction) - if !f(fd_MsgSend_SendCredits_retirement_jurisdiction, value) { - return - } - } - if x.RetirementReason != "" { - value := protoreflect.ValueOfString(x.RetirementReason) - if !f(fd_MsgSend_SendCredits_retirement_reason, value) { + if !f(fd_MsgCreateBatchResponse_batch_denom, value) { return } } @@ -7182,23 +7502,15 @@ func (x *fastReflection_MsgSend_SendCredits) Range(f func(protoreflect.FieldDesc // 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_MsgSend_SendCredits) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCreateBatchResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": + case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": return x.BatchDenom != "" - case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": - return x.TradableAmount != "" - case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": - return x.RetiredAmount != "" - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": - return x.RetirementJurisdiction != "" - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": - return x.RetirementReason != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) } } @@ -7208,23 +7520,15 @@ func (x *fastReflection_MsgSend_SendCredits) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend_SendCredits) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateBatchResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": + case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": x.BatchDenom = "" - case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": - x.TradableAmount = "" - case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": - x.RetiredAmount = "" - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": - x.RetirementJurisdiction = "" - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": - x.RetirementReason = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) } } @@ -7234,28 +7538,16 @@ func (x *fastReflection_MsgSend_SendCredits) Clear(fd protoreflect.FieldDescript // 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_MsgSend_SendCredits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateBatchResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": + case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": value := x.BatchDenom return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": - value := x.TradableAmount - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": - value := x.RetiredAmount - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": - value := x.RetirementJurisdiction - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": - value := x.RetirementReason - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", descriptor.FullName())) } } @@ -7269,23 +7561,15 @@ func (x *fastReflection_MsgSend_SendCredits) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend_SendCredits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCreateBatchResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": + case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": x.BatchDenom = value.Interface().(string) - case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": - x.TradableAmount = value.Interface().(string) - case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": - x.RetiredAmount = value.Interface().(string) - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": - x.RetirementJurisdiction = value.Interface().(string) - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": - x.RetirementReason = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) } } @@ -7299,56 +7583,40 @@ func (x *fastReflection_MsgSend_SendCredits) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend_SendCredits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateBatchResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": - panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgSend.SendCredits is not mutable")) - case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": - panic(fmt.Errorf("field tradable_amount of message regen.ecocredit.v1.MsgSend.SendCredits is not mutable")) - case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": - panic(fmt.Errorf("field retired_amount of message regen.ecocredit.v1.MsgSend.SendCredits is not mutable")) - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": - panic(fmt.Errorf("field retirement_jurisdiction of message regen.ecocredit.v1.MsgSend.SendCredits is not mutable")) - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": - panic(fmt.Errorf("field retirement_reason of message regen.ecocredit.v1.MsgSend.SendCredits is not mutable")) + case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": + panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgCreateBatchResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse 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_MsgSend_SendCredits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateBatchResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": + case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse 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_MsgSend_SendCredits) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCreateBatchResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSend.SendCredits", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCreateBatchResponse", d.FullName())) } panic("unreachable") } @@ -7356,7 +7624,7 @@ func (x *fastReflection_MsgSend_SendCredits) WhichOneof(d protoreflect.OneofDesc // 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_MsgSend_SendCredits) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateBatchResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7367,7 +7635,7 @@ func (x *fastReflection_MsgSend_SendCredits) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend_SendCredits) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateBatchResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7379,7 +7647,7 @@ func (x *fastReflection_MsgSend_SendCredits) SetUnknown(fields protoreflect.RawF // 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_MsgSend_SendCredits) IsValid() bool { +func (x *fastReflection_MsgCreateBatchResponse) IsValid() bool { return x != nil } @@ -7389,9 +7657,9 @@ func (x *fastReflection_MsgSend_SendCredits) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSend_SendCredits) + x := input.Message.Interface().(*MsgCreateBatchResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7407,22 +7675,6 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.TradableAmount) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.RetiredAmount) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.RetirementJurisdiction) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.RetirementReason) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -7433,7 +7685,7 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSend_SendCredits) + x := input.Message.Interface().(*MsgCreateBatchResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7452,34 +7704,6 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.RetirementReason) > 0 { - i -= len(x.RetirementReason) - copy(dAtA[i:], x.RetirementReason) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RetirementReason))) - i-- - dAtA[i] = 0x2a - } - if len(x.RetirementJurisdiction) > 0 { - i -= len(x.RetirementJurisdiction) - copy(dAtA[i:], x.RetirementJurisdiction) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RetirementJurisdiction))) - i-- - dAtA[i] = 0x22 - } - if len(x.RetiredAmount) > 0 { - i -= len(x.RetiredAmount) - copy(dAtA[i:], x.RetiredAmount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RetiredAmount))) - i-- - dAtA[i] = 0x1a - } - if len(x.TradableAmount) > 0 { - i -= len(x.TradableAmount) - copy(dAtA[i:], x.TradableAmount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TradableAmount))) - i-- - dAtA[i] = 0x12 - } if len(x.BatchDenom) > 0 { i -= len(x.BatchDenom) copy(dAtA[i:], x.BatchDenom) @@ -7498,7 +7722,7 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSend_SendCredits) + x := input.Message.Interface().(*MsgCreateBatchResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7530,10 +7754,10 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend_SendCredits: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateBatchResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend_SendCredits: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateBatchResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7568,134 +7792,6 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods } x.BatchDenom = 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 TradableAmount", 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.TradableAmount = 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 RetiredAmount", 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.RetiredAmount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RetirementJurisdiction", 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.RetirementJurisdiction = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RetirementReason", 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.RetirementReason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -7731,25 +7827,84 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods } } -var ( - md_MsgSendResponse protoreflect.MessageDescriptor -) +var _ protoreflect.List = (*_MsgMintBatchCredits_3_list)(nil) -func init() { - file_regen_ecocredit_v1_tx_proto_init() - md_MsgSendResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSendResponse") +type _MsgMintBatchCredits_3_list struct { + list *[]*BatchIssuance } -var _ protoreflect.Message = (*fastReflection_MsgSendResponse)(nil) +func (x *_MsgMintBatchCredits_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} -type fastReflection_MsgSendResponse MsgSendResponse +func (x *_MsgMintBatchCredits_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} -func (x *MsgSendResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSendResponse)(x) +func (x *_MsgMintBatchCredits_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*BatchIssuance) + (*x.list)[i] = concreteValue } -func (x *MsgSendResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[13] +func (x *_MsgMintBatchCredits_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*BatchIssuance) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgMintBatchCredits_3_list) AppendMutable() protoreflect.Value { + v := new(BatchIssuance) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgMintBatchCredits_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgMintBatchCredits_3_list) NewElement() protoreflect.Value { + v := new(BatchIssuance) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgMintBatchCredits_3_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgMintBatchCredits protoreflect.MessageDescriptor + fd_MsgMintBatchCredits_issuer protoreflect.FieldDescriptor + fd_MsgMintBatchCredits_batch_denom protoreflect.FieldDescriptor + fd_MsgMintBatchCredits_issuance protoreflect.FieldDescriptor + fd_MsgMintBatchCredits_origin_tx protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgMintBatchCredits = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgMintBatchCredits") + fd_MsgMintBatchCredits_issuer = md_MsgMintBatchCredits.Fields().ByName("issuer") + fd_MsgMintBatchCredits_batch_denom = md_MsgMintBatchCredits.Fields().ByName("batch_denom") + fd_MsgMintBatchCredits_issuance = md_MsgMintBatchCredits.Fields().ByName("issuance") + fd_MsgMintBatchCredits_origin_tx = md_MsgMintBatchCredits.Fields().ByName("origin_tx") +} + +var _ protoreflect.Message = (*fastReflection_MsgMintBatchCredits)(nil) + +type fastReflection_MsgMintBatchCredits MsgMintBatchCredits + +func (x *MsgMintBatchCredits) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgMintBatchCredits)(x) +} + +func (x *MsgMintBatchCredits) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7760,43 +7915,43 @@ func (x *MsgSendResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSendResponse_messageType fastReflection_MsgSendResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSendResponse_messageType{} +var _fastReflection_MsgMintBatchCredits_messageType fastReflection_MsgMintBatchCredits_messageType +var _ protoreflect.MessageType = fastReflection_MsgMintBatchCredits_messageType{} -type fastReflection_MsgSendResponse_messageType struct{} +type fastReflection_MsgMintBatchCredits_messageType struct{} -func (x fastReflection_MsgSendResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSendResponse)(nil) +func (x fastReflection_MsgMintBatchCredits_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgMintBatchCredits)(nil) } -func (x fastReflection_MsgSendResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSendResponse) +func (x fastReflection_MsgMintBatchCredits_messageType) New() protoreflect.Message { + return new(fastReflection_MsgMintBatchCredits) } -func (x fastReflection_MsgSendResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendResponse +func (x fastReflection_MsgMintBatchCredits_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMintBatchCredits } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSendResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendResponse +func (x *fastReflection_MsgMintBatchCredits) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMintBatchCredits } // 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_MsgSendResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSendResponse_messageType +func (x *fastReflection_MsgMintBatchCredits) Type() protoreflect.MessageType { + return _fastReflection_MsgMintBatchCredits_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSendResponse) New() protoreflect.Message { - return new(fastReflection_MsgSendResponse) +func (x *fastReflection_MsgMintBatchCredits) New() protoreflect.Message { + return new(fastReflection_MsgMintBatchCredits) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSendResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSendResponse)(x) +func (x *fastReflection_MsgMintBatchCredits) Interface() protoreflect.ProtoMessage { + return (*MsgMintBatchCredits)(x) } // Range iterates over every populated field in an undefined order, @@ -7804,7 +7959,31 @@ func (x *fastReflection_MsgSendResponse) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgSendResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgMintBatchCredits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Issuer != "" { + value := protoreflect.ValueOfString(x.Issuer) + if !f(fd_MsgMintBatchCredits_issuer, value) { + return + } + } + if x.BatchDenom != "" { + value := protoreflect.ValueOfString(x.BatchDenom) + if !f(fd_MsgMintBatchCredits_batch_denom, value) { + return + } + } + if len(x.Issuance) != 0 { + value := protoreflect.ValueOfList(&_MsgMintBatchCredits_3_list{list: &x.Issuance}) + if !f(fd_MsgMintBatchCredits_issuance, value) { + return + } + } + if x.OriginTx != nil { + value := protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) + if !f(fd_MsgMintBatchCredits_origin_tx, value) { + return + } + } } // Has reports whether a field is populated. @@ -7818,13 +7997,21 @@ func (x *fastReflection_MsgSendResponse) Range(f func(protoreflect.FieldDescript // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSendResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgMintBatchCredits) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": + return x.Issuer != "" + case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": + return x.BatchDenom != "" + case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": + return len(x.Issuance) != 0 + case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": + return x.OriginTx != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) } } @@ -7834,13 +8021,21 @@ func (x *fastReflection_MsgSendResponse) Has(fd protoreflect.FieldDescriptor) bo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgMintBatchCredits) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": + x.Issuer = "" + case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": + x.BatchDenom = "" + case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": + x.Issuance = nil + case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": + x.OriginTx = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) } } @@ -7850,13 +8045,28 @@ func (x *fastReflection_MsgSendResponse) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSendResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintBatchCredits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": + value := x.Issuer + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": + value := x.BatchDenom + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": + if len(x.Issuance) == 0 { + return protoreflect.ValueOfList(&_MsgMintBatchCredits_3_list{}) + } + listValue := &_MsgMintBatchCredits_3_list{list: &x.Issuance} + return protoreflect.ValueOfList(listValue) + case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": + value := x.OriginTx + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", descriptor.FullName())) } } @@ -7870,13 +8080,23 @@ func (x *fastReflection_MsgSendResponse) Get(descriptor protoreflect.FieldDescri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgMintBatchCredits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": + x.Issuer = value.Interface().(string) + case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": + x.BatchDenom = value.Interface().(string) + case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": + lv := value.List() + clv := lv.(*_MsgMintBatchCredits_3_list) + x.Issuance = *clv.list + case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": + x.OriginTx = value.Message().Interface().(*OriginTx) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) } } @@ -7890,36 +8110,61 @@ func (x *fastReflection_MsgSendResponse) Set(fd protoreflect.FieldDescriptor, va // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintBatchCredits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": + if x.Issuance == nil { + x.Issuance = []*BatchIssuance{} + } + value := &_MsgMintBatchCredits_3_list{list: &x.Issuance} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": + if x.OriginTx == nil { + x.OriginTx = new(OriginTx) + } + return protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) + case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": + panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgMintBatchCredits is not mutable")) + case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": + panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgMintBatchCredits is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits 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_MsgSendResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintBatchCredits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgMintBatchCredits.issuer": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgMintBatchCredits.batch_denom": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgMintBatchCredits.issuance": + list := []*BatchIssuance{} + return protoreflect.ValueOfList(&_MsgMintBatchCredits_3_list{list: &list}) + case "regen.ecocredit.v1.MsgMintBatchCredits.origin_tx": + m := new(OriginTx) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits 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_MsgSendResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgMintBatchCredits) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSendResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgMintBatchCredits", d.FullName())) } panic("unreachable") } @@ -7927,7 +8172,7 @@ func (x *fastReflection_MsgSendResponse) WhichOneof(d protoreflect.OneofDescript // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSendResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgMintBatchCredits) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7938,7 +8183,7 @@ func (x *fastReflection_MsgSendResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgMintBatchCredits) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7950,7 +8195,7 @@ func (x *fastReflection_MsgSendResponse) SetUnknown(fields protoreflect.RawField // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgSendResponse) IsValid() bool { +func (x *fastReflection_MsgMintBatchCredits) IsValid() bool { return x != nil } @@ -7960,9 +8205,9 @@ func (x *fastReflection_MsgSendResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSendResponse) + x := input.Message.Interface().(*MsgMintBatchCredits) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7974,17 +8219,35 @@ func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ + l = len(x.Issuer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BatchDenom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Issuance) > 0 { + for _, e := range x.Issuance { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.OriginTx != nil { + l = options.Size(x.OriginTx) + 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().(*MsgSendResponse) + x := input.Message.Interface().(*MsgMintBatchCredits) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8003,6 +8266,50 @@ func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.OriginTx != nil { + encoded, err := options.Marshal(x.OriginTx) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.Issuance) > 0 { + for iNdEx := len(x.Issuance) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Issuance[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if len(x.BatchDenom) > 0 { + i -= len(x.BatchDenom) + copy(dAtA[i:], x.BatchDenom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) + i-- + dAtA[i] = 0x12 + } + if len(x.Issuer) > 0 { + i -= len(x.Issuer) + copy(dAtA[i:], x.Issuer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -8014,7 +8321,7 @@ func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSendResponse) + x := input.Message.Interface().(*MsgMintBatchCredits) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8046,12 +8353,146 @@ func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintBatchCredits: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintBatchCredits: 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 Issuer", 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.Issuer = 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 BatchDenom", 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.BatchDenom = 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 Issuance", 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.Issuance = append(x.Issuance, &BatchIssuance{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Issuance[len(x.Issuance)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginTx", 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.OriginTx == nil { + x.OriginTx = &OriginTx{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OriginTx); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -8087,131 +8528,72 @@ func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_MsgRetire_2_list)(nil) +var ( + md_MsgMintBatchCreditsResponse protoreflect.MessageDescriptor +) -type _MsgRetire_2_list struct { - list *[]*Credits +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgMintBatchCreditsResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgMintBatchCreditsResponse") } -func (x *_MsgRetire_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} +var _ protoreflect.Message = (*fastReflection_MsgMintBatchCreditsResponse)(nil) -func (x *_MsgRetire_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} +type fastReflection_MsgMintBatchCreditsResponse MsgMintBatchCreditsResponse -func (x *_MsgRetire_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Credits) - (*x.list)[i] = concreteValue +func (x *MsgMintBatchCreditsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgMintBatchCreditsResponse)(x) } -func (x *_MsgRetire_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Credits) - *x.list = append(*x.list, concreteValue) +func (x *MsgMintBatchCreditsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_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) } -func (x *_MsgRetire_2_list) AppendMutable() protoreflect.Value { - v := new(Credits) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} +var _fastReflection_MsgMintBatchCreditsResponse_messageType fastReflection_MsgMintBatchCreditsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgMintBatchCreditsResponse_messageType{} -func (x *_MsgRetire_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgRetire_2_list) NewElement() protoreflect.Value { - v := new(Credits) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgRetire_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgRetire protoreflect.MessageDescriptor - fd_MsgRetire_owner protoreflect.FieldDescriptor - fd_MsgRetire_credits protoreflect.FieldDescriptor - fd_MsgRetire_jurisdiction protoreflect.FieldDescriptor - fd_MsgRetire_reason protoreflect.FieldDescriptor -) - -func init() { - file_regen_ecocredit_v1_tx_proto_init() - md_MsgRetire = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgRetire") - fd_MsgRetire_owner = md_MsgRetire.Fields().ByName("owner") - fd_MsgRetire_credits = md_MsgRetire.Fields().ByName("credits") - fd_MsgRetire_jurisdiction = md_MsgRetire.Fields().ByName("jurisdiction") - fd_MsgRetire_reason = md_MsgRetire.Fields().ByName("reason") -} - -var _ protoreflect.Message = (*fastReflection_MsgRetire)(nil) - -type fastReflection_MsgRetire MsgRetire - -func (x *MsgRetire) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRetire)(x) -} - -func (x *MsgRetire) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_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_MsgRetire_messageType fastReflection_MsgRetire_messageType -var _ protoreflect.MessageType = fastReflection_MsgRetire_messageType{} - -type fastReflection_MsgRetire_messageType struct{} +type fastReflection_MsgMintBatchCreditsResponse_messageType struct{} -func (x fastReflection_MsgRetire_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRetire)(nil) +func (x fastReflection_MsgMintBatchCreditsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgMintBatchCreditsResponse)(nil) } -func (x fastReflection_MsgRetire_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRetire) +func (x fastReflection_MsgMintBatchCreditsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgMintBatchCreditsResponse) } -func (x fastReflection_MsgRetire_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRetire +func (x fastReflection_MsgMintBatchCreditsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMintBatchCreditsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgRetire) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRetire +func (x *fastReflection_MsgMintBatchCreditsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMintBatchCreditsResponse } // 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_MsgRetire) Type() protoreflect.MessageType { - return _fastReflection_MsgRetire_messageType +func (x *fastReflection_MsgMintBatchCreditsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgMintBatchCreditsResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRetire) New() protoreflect.Message { - return new(fastReflection_MsgRetire) +func (x *fastReflection_MsgMintBatchCreditsResponse) New() protoreflect.Message { + return new(fastReflection_MsgMintBatchCreditsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRetire) Interface() protoreflect.ProtoMessage { - return (*MsgRetire)(x) +func (x *fastReflection_MsgMintBatchCreditsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgMintBatchCreditsResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -8219,31 +8601,7 @@ func (x *fastReflection_MsgRetire) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgRetire) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_MsgRetire_owner, value) { - return - } - } - if len(x.Credits) != 0 { - value := protoreflect.ValueOfList(&_MsgRetire_2_list{list: &x.Credits}) - if !f(fd_MsgRetire_credits, value) { - return - } - } - if x.Jurisdiction != "" { - value := protoreflect.ValueOfString(x.Jurisdiction) - if !f(fd_MsgRetire_jurisdiction, value) { - return - } - } - if x.Reason != "" { - value := protoreflect.ValueOfString(x.Reason) - if !f(fd_MsgRetire_reason, value) { - return - } - } +func (x *fastReflection_MsgMintBatchCreditsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -8257,21 +8615,13 @@ func (x *fastReflection_MsgRetire) Range(f func(protoreflect.FieldDescriptor, pr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgRetire) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgMintBatchCreditsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRetire.owner": - return x.Owner != "" - case "regen.ecocredit.v1.MsgRetire.credits": - return len(x.Credits) != 0 - case "regen.ecocredit.v1.MsgRetire.jurisdiction": - return x.Jurisdiction != "" - case "regen.ecocredit.v1.MsgRetire.reason": - return x.Reason != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse does not contain field %s", fd.FullName())) } } @@ -8281,21 +8631,13 @@ func (x *fastReflection_MsgRetire) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetire) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgMintBatchCreditsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRetire.owner": - x.Owner = "" - case "regen.ecocredit.v1.MsgRetire.credits": - x.Credits = nil - case "regen.ecocredit.v1.MsgRetire.jurisdiction": - x.Jurisdiction = "" - case "regen.ecocredit.v1.MsgRetire.reason": - x.Reason = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse does not contain field %s", fd.FullName())) } } @@ -8305,28 +8647,13 @@ func (x *fastReflection_MsgRetire) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgRetire) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintBatchCreditsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgRetire.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgRetire.credits": - if len(x.Credits) == 0 { - return protoreflect.ValueOfList(&_MsgRetire_2_list{}) - } - listValue := &_MsgRetire_2_list{list: &x.Credits} - return protoreflect.ValueOfList(listValue) - case "regen.ecocredit.v1.MsgRetire.jurisdiction": - value := x.Jurisdiction - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgRetire.reason": - value := x.Reason - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse does not contain field %s", descriptor.FullName())) } } @@ -8340,23 +8667,13 @@ func (x *fastReflection_MsgRetire) Get(descriptor protoreflect.FieldDescriptor) // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetire) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgMintBatchCreditsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRetire.owner": - x.Owner = value.Interface().(string) - case "regen.ecocredit.v1.MsgRetire.credits": - lv := value.List() - clv := lv.(*_MsgRetire_2_list) - x.Credits = *clv.list - case "regen.ecocredit.v1.MsgRetire.jurisdiction": - x.Jurisdiction = value.Interface().(string) - case "regen.ecocredit.v1.MsgRetire.reason": - x.Reason = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse does not contain field %s", fd.FullName())) } } @@ -8370,57 +8687,36 @@ func (x *fastReflection_MsgRetire) Set(fd protoreflect.FieldDescriptor, value pr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetire) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintBatchCreditsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRetire.credits": - if x.Credits == nil { - x.Credits = []*Credits{} - } - value := &_MsgRetire_2_list{list: &x.Credits} - return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgRetire.owner": - panic(fmt.Errorf("field owner of message regen.ecocredit.v1.MsgRetire is not mutable")) - case "regen.ecocredit.v1.MsgRetire.jurisdiction": - panic(fmt.Errorf("field jurisdiction of message regen.ecocredit.v1.MsgRetire is not mutable")) - case "regen.ecocredit.v1.MsgRetire.reason": - panic(fmt.Errorf("field reason of message regen.ecocredit.v1.MsgRetire is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse 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_MsgRetire) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintBatchCreditsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRetire.owner": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgRetire.credits": - list := []*Credits{} - return protoreflect.ValueOfList(&_MsgRetire_2_list{list: &list}) - case "regen.ecocredit.v1.MsgRetire.jurisdiction": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgRetire.reason": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCreditsResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCreditsResponse 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_MsgRetire) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgMintBatchCreditsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgRetire", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgMintBatchCreditsResponse", d.FullName())) } panic("unreachable") } @@ -8428,7 +8724,7 @@ func (x *fastReflection_MsgRetire) WhichOneof(d protoreflect.OneofDescriptor) pr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgRetire) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgMintBatchCreditsResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8439,7 +8735,7 @@ func (x *fastReflection_MsgRetire) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetire) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgMintBatchCreditsResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8451,7 +8747,7 @@ func (x *fastReflection_MsgRetire) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgRetire) IsValid() bool { +func (x *fastReflection_MsgMintBatchCreditsResponse) IsValid() bool { return x != nil } @@ -8461,9 +8757,9 @@ func (x *fastReflection_MsgRetire) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgMintBatchCreditsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRetire) + x := input.Message.Interface().(*MsgMintBatchCreditsResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8475,24 +8771,6 @@ func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Credits) > 0 { - for _, e := range x.Credits { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.Jurisdiction) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Reason) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -8503,7 +8781,7 @@ func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRetire) + x := input.Message.Interface().(*MsgMintBatchCreditsResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8522,47 +8800,10 @@ func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Reason) > 0 { - i -= len(x.Reason) - copy(dAtA[i:], x.Reason) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) - i-- - dAtA[i] = 0x22 - } - if len(x.Jurisdiction) > 0 { - i -= len(x.Jurisdiction) - copy(dAtA[i:], x.Jurisdiction) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jurisdiction))) - i-- - dAtA[i] = 0x1a - } - if len(x.Credits) > 0 { - for iNdEx := len(x.Credits) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Credits[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.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA } return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8570,7 +8811,7 @@ func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgRetire) + x := input.Message.Interface().(*MsgMintBatchCreditsResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8602,142 +8843,12 @@ func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRetire: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintBatchCreditsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRetire: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintBatchCreditsResponse: 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 Owner", 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.Owner = 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 Credits", 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.Credits = append(x.Credits, &Credits{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-1]); 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 Jurisdiction", 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.Jurisdiction = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -8774,24 +8885,28 @@ func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { } var ( - md_MsgRetireResponse protoreflect.MessageDescriptor + md_MsgSealBatch protoreflect.MessageDescriptor + fd_MsgSealBatch_issuer protoreflect.FieldDescriptor + fd_MsgSealBatch_batch_denom protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgRetireResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgRetireResponse") + md_MsgSealBatch = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSealBatch") + fd_MsgSealBatch_issuer = md_MsgSealBatch.Fields().ByName("issuer") + fd_MsgSealBatch_batch_denom = md_MsgSealBatch.Fields().ByName("batch_denom") } -var _ protoreflect.Message = (*fastReflection_MsgRetireResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSealBatch)(nil) -type fastReflection_MsgRetireResponse MsgRetireResponse +type fastReflection_MsgSealBatch MsgSealBatch -func (x *MsgRetireResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRetireResponse)(x) +func (x *MsgSealBatch) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSealBatch)(x) } -func (x *MsgRetireResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[15] +func (x *MsgSealBatch) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8802,43 +8917,43 @@ func (x *MsgRetireResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgRetireResponse_messageType fastReflection_MsgRetireResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgRetireResponse_messageType{} +var _fastReflection_MsgSealBatch_messageType fastReflection_MsgSealBatch_messageType +var _ protoreflect.MessageType = fastReflection_MsgSealBatch_messageType{} -type fastReflection_MsgRetireResponse_messageType struct{} +type fastReflection_MsgSealBatch_messageType struct{} -func (x fastReflection_MsgRetireResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRetireResponse)(nil) +func (x fastReflection_MsgSealBatch_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSealBatch)(nil) } -func (x fastReflection_MsgRetireResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRetireResponse) +func (x fastReflection_MsgSealBatch_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSealBatch) } -func (x fastReflection_MsgRetireResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRetireResponse +func (x fastReflection_MsgSealBatch_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSealBatch } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgRetireResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRetireResponse +func (x *fastReflection_MsgSealBatch) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSealBatch } // 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_MsgRetireResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgRetireResponse_messageType +func (x *fastReflection_MsgSealBatch) Type() protoreflect.MessageType { + return _fastReflection_MsgSealBatch_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRetireResponse) New() protoreflect.Message { - return new(fastReflection_MsgRetireResponse) +func (x *fastReflection_MsgSealBatch) New() protoreflect.Message { + return new(fastReflection_MsgSealBatch) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRetireResponse) Interface() protoreflect.ProtoMessage { - return (*MsgRetireResponse)(x) +func (x *fastReflection_MsgSealBatch) Interface() protoreflect.ProtoMessage { + return (*MsgSealBatch)(x) } // Range iterates over every populated field in an undefined order, @@ -8846,7 +8961,19 @@ func (x *fastReflection_MsgRetireResponse) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgRetireResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSealBatch) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Issuer != "" { + value := protoreflect.ValueOfString(x.Issuer) + if !f(fd_MsgSealBatch_issuer, value) { + return + } + } + if x.BatchDenom != "" { + value := protoreflect.ValueOfString(x.BatchDenom) + if !f(fd_MsgSealBatch_batch_denom, value) { + return + } + } } // Has reports whether a field is populated. @@ -8860,13 +8987,17 @@ func (x *fastReflection_MsgRetireResponse) Range(f func(protoreflect.FieldDescri // 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_MsgRetireResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSealBatch) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "regen.ecocredit.v1.MsgSealBatch.issuer": + return x.Issuer != "" + case "regen.ecocredit.v1.MsgSealBatch.batch_denom": + return x.BatchDenom != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) } } @@ -8876,13 +9007,17 @@ func (x *fastReflection_MsgRetireResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetireResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSealBatch) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgSealBatch.issuer": + x.Issuer = "" + case "regen.ecocredit.v1.MsgSealBatch.batch_denom": + x.BatchDenom = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) } } @@ -8892,13 +9027,19 @@ func (x *fastReflection_MsgRetireResponse) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgRetireResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSealBatch) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgSealBatch.issuer": + value := x.Issuer + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgSealBatch.batch_denom": + value := x.BatchDenom + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", descriptor.FullName())) } } @@ -8912,13 +9053,17 @@ func (x *fastReflection_MsgRetireResponse) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetireResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSealBatch) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgSealBatch.issuer": + x.Issuer = value.Interface().(string) + case "regen.ecocredit.v1.MsgSealBatch.batch_denom": + x.BatchDenom = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) } } @@ -8932,36 +9077,44 @@ func (x *fastReflection_MsgRetireResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetireResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSealBatch) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgSealBatch.issuer": + panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgSealBatch is not mutable")) + case "regen.ecocredit.v1.MsgSealBatch.batch_denom": + panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgSealBatch is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch 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_MsgRetireResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSealBatch) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgSealBatch.issuer": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgSealBatch.batch_denom": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch 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_MsgRetireResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSealBatch) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgRetireResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSealBatch", d.FullName())) } panic("unreachable") } @@ -8969,7 +9122,7 @@ func (x *fastReflection_MsgRetireResponse) WhichOneof(d protoreflect.OneofDescri // 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_MsgRetireResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSealBatch) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8980,7 +9133,7 @@ func (x *fastReflection_MsgRetireResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetireResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSealBatch) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8992,7 +9145,7 @@ func (x *fastReflection_MsgRetireResponse) SetUnknown(fields protoreflect.RawFie // 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_MsgRetireResponse) IsValid() bool { +func (x *fastReflection_MsgSealBatch) IsValid() bool { return x != nil } @@ -9002,9 +9155,9 @@ func (x *fastReflection_MsgRetireResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgRetireResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSealBatch) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRetireResponse) + x := input.Message.Interface().(*MsgSealBatch) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9016,6 +9169,14 @@ func (x *fastReflection_MsgRetireResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Issuer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BatchDenom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -9026,7 +9187,7 @@ func (x *fastReflection_MsgRetireResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRetireResponse) + x := input.Message.Interface().(*MsgSealBatch) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9045,6 +9206,20 @@ func (x *fastReflection_MsgRetireResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.BatchDenom) > 0 { + i -= len(x.BatchDenom) + copy(dAtA[i:], x.BatchDenom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) + i-- + dAtA[i] = 0x12 + } + if len(x.Issuer) > 0 { + i -= len(x.Issuer) + copy(dAtA[i:], x.Issuer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -9056,7 +9231,7 @@ func (x *fastReflection_MsgRetireResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgRetireResponse) + x := input.Message.Interface().(*MsgSealBatch) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9088,12 +9263,76 @@ func (x *fastReflection_MsgRetireResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRetireResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSealBatch: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRetireResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSealBatch: 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 Issuer", 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.Issuer = 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 BatchDenom", 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.BatchDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -9129,82 +9368,25 @@ func (x *fastReflection_MsgRetireResponse) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_MsgCancel_2_list)(nil) - -type _MsgCancel_2_list struct { - list *[]*Credits -} - -func (x *_MsgCancel_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgCancel_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgCancel_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Credits) - (*x.list)[i] = concreteValue -} - -func (x *_MsgCancel_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Credits) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgCancel_2_list) AppendMutable() protoreflect.Value { - v := new(Credits) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCancel_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgCancel_2_list) NewElement() protoreflect.Value { - v := new(Credits) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCancel_2_list) IsValid() bool { - return x.list != nil -} - var ( - md_MsgCancel protoreflect.MessageDescriptor - fd_MsgCancel_owner protoreflect.FieldDescriptor - fd_MsgCancel_credits protoreflect.FieldDescriptor - fd_MsgCancel_reason protoreflect.FieldDescriptor + md_MsgSealBatchResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgCancel = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCancel") - fd_MsgCancel_owner = md_MsgCancel.Fields().ByName("owner") - fd_MsgCancel_credits = md_MsgCancel.Fields().ByName("credits") - fd_MsgCancel_reason = md_MsgCancel.Fields().ByName("reason") + md_MsgSealBatchResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSealBatchResponse") } -var _ protoreflect.Message = (*fastReflection_MsgCancel)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSealBatchResponse)(nil) -type fastReflection_MsgCancel MsgCancel +type fastReflection_MsgSealBatchResponse MsgSealBatchResponse -func (x *MsgCancel) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCancel)(x) +func (x *MsgSealBatchResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSealBatchResponse)(x) } -func (x *MsgCancel) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[16] +func (x *MsgSealBatchResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9215,69 +9397,51 @@ func (x *MsgCancel) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCancel_messageType fastReflection_MsgCancel_messageType -var _ protoreflect.MessageType = fastReflection_MsgCancel_messageType{} +var _fastReflection_MsgSealBatchResponse_messageType fastReflection_MsgSealBatchResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSealBatchResponse_messageType{} -type fastReflection_MsgCancel_messageType struct{} +type fastReflection_MsgSealBatchResponse_messageType struct{} -func (x fastReflection_MsgCancel_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCancel)(nil) +func (x fastReflection_MsgSealBatchResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSealBatchResponse)(nil) } -func (x fastReflection_MsgCancel_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCancel) +func (x fastReflection_MsgSealBatchResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSealBatchResponse) } -func (x fastReflection_MsgCancel_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCancel +func (x fastReflection_MsgSealBatchResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSealBatchResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCancel) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCancel +func (x *fastReflection_MsgSealBatchResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSealBatchResponse } // 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_MsgCancel) Type() protoreflect.MessageType { - return _fastReflection_MsgCancel_messageType +func (x *fastReflection_MsgSealBatchResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSealBatchResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCancel) New() protoreflect.Message { - return new(fastReflection_MsgCancel) +func (x *fastReflection_MsgSealBatchResponse) New() protoreflect.Message { + return new(fastReflection_MsgSealBatchResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCancel) Interface() protoreflect.ProtoMessage { - return (*MsgCancel)(x) -} +func (x *fastReflection_MsgSealBatchResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSealBatchResponse)(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_MsgCancel) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_MsgCancel_owner, value) { - return - } - } - if len(x.Credits) != 0 { - value := protoreflect.ValueOfList(&_MsgCancel_2_list{list: &x.Credits}) - if !f(fd_MsgCancel_credits, value) { - return - } - } - if x.Reason != "" { - value := protoreflect.ValueOfString(x.Reason) - if !f(fd_MsgCancel_reason, value) { - return - } - } +func (x *fastReflection_MsgSealBatchResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -9291,19 +9455,13 @@ func (x *fastReflection_MsgCancel) Range(f func(protoreflect.FieldDescriptor, pr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCancel) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSealBatchResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCancel.owner": - return x.Owner != "" - case "regen.ecocredit.v1.MsgCancel.credits": - return len(x.Credits) != 0 - case "regen.ecocredit.v1.MsgCancel.reason": - return x.Reason != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) } } @@ -9313,19 +9471,13 @@ func (x *fastReflection_MsgCancel) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancel) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSealBatchResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCancel.owner": - x.Owner = "" - case "regen.ecocredit.v1.MsgCancel.credits": - x.Credits = nil - case "regen.ecocredit.v1.MsgCancel.reason": - x.Reason = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) } } @@ -9335,25 +9487,13 @@ func (x *fastReflection_MsgCancel) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCancel) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSealBatchResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgCancel.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgCancel.credits": - if len(x.Credits) == 0 { - return protoreflect.ValueOfList(&_MsgCancel_2_list{}) - } - listValue := &_MsgCancel_2_list{list: &x.Credits} - return protoreflect.ValueOfList(listValue) - case "regen.ecocredit.v1.MsgCancel.reason": - value := x.Reason - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", descriptor.FullName())) } } @@ -9367,21 +9507,13 @@ func (x *fastReflection_MsgCancel) Get(descriptor protoreflect.FieldDescriptor) // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancel) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSealBatchResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCancel.owner": - x.Owner = value.Interface().(string) - case "regen.ecocredit.v1.MsgCancel.credits": - lv := value.List() - clv := lv.(*_MsgCancel_2_list) - x.Credits = *clv.list - case "regen.ecocredit.v1.MsgCancel.reason": - x.Reason = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) } } @@ -9395,53 +9527,36 @@ func (x *fastReflection_MsgCancel) Set(fd protoreflect.FieldDescriptor, value pr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancel) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSealBatchResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCancel.credits": - if x.Credits == nil { - x.Credits = []*Credits{} - } - value := &_MsgCancel_2_list{list: &x.Credits} - return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgCancel.owner": - panic(fmt.Errorf("field owner of message regen.ecocredit.v1.MsgCancel is not mutable")) - case "regen.ecocredit.v1.MsgCancel.reason": - panic(fmt.Errorf("field reason of message regen.ecocredit.v1.MsgCancel is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse 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_MsgCancel) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSealBatchResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCancel.owner": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgCancel.credits": - list := []*Credits{} - return protoreflect.ValueOfList(&_MsgCancel_2_list{list: &list}) - case "regen.ecocredit.v1.MsgCancel.reason": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse 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_MsgCancel) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSealBatchResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCancel", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSealBatchResponse", d.FullName())) } panic("unreachable") } @@ -9449,7 +9564,7 @@ func (x *fastReflection_MsgCancel) WhichOneof(d protoreflect.OneofDescriptor) pr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCancel) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSealBatchResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9460,7 +9575,7 @@ func (x *fastReflection_MsgCancel) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancel) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSealBatchResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9472,7 +9587,7 @@ func (x *fastReflection_MsgCancel) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgCancel) IsValid() bool { +func (x *fastReflection_MsgSealBatchResponse) IsValid() bool { return x != nil } @@ -9482,9 +9597,9 @@ func (x *fastReflection_MsgCancel) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCancel) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSealBatchResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCancel) + x := input.Message.Interface().(*MsgSealBatchResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9496,20 +9611,6 @@ func (x *fastReflection_MsgCancel) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Credits) > 0 { - for _, e := range x.Credits { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.Reason) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -9520,7 +9621,7 @@ func (x *fastReflection_MsgCancel) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCancel) + x := input.Message.Interface().(*MsgSealBatchResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9539,36 +9640,6 @@ func (x *fastReflection_MsgCancel) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Reason) > 0 { - i -= len(x.Reason) - copy(dAtA[i:], x.Reason) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) - i-- - dAtA[i] = 0x1a - } - if len(x.Credits) > 0 { - for iNdEx := len(x.Credits) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Credits[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.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -9580,7 +9651,7 @@ func (x *fastReflection_MsgCancel) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCancel) + x := input.Message.Interface().(*MsgSealBatchResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9612,124 +9683,26 @@ func (x *fastReflection_MsgCancel) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancel: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSealBatchResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancel: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSealBatchResponse: 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 Owner", 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.Owner = 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 Credits", 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 + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Credits = append(x.Credits, &Credits{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-1]); 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 Reason", 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.Reason = 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]...) + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } @@ -9751,25 +9724,82 @@ func (x *fastReflection_MsgCancel) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_MsgSend_3_list)(nil) + +type _MsgSend_3_list struct { + list *[]*MsgSend_SendCredits +} + +func (x *_MsgSend_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgSend_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgSend_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*MsgSend_SendCredits) + (*x.list)[i] = concreteValue +} + +func (x *_MsgSend_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*MsgSend_SendCredits) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgSend_3_list) AppendMutable() protoreflect.Value { + v := new(MsgSend_SendCredits) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgSend_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgSend_3_list) NewElement() protoreflect.Value { + v := new(MsgSend_SendCredits) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgSend_3_list) IsValid() bool { + return x.list != nil +} + var ( - md_MsgCancelResponse protoreflect.MessageDescriptor + md_MsgSend protoreflect.MessageDescriptor + fd_MsgSend_sender protoreflect.FieldDescriptor + fd_MsgSend_recipient protoreflect.FieldDescriptor + fd_MsgSend_credits protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgCancelResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCancelResponse") + md_MsgSend = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSend") + fd_MsgSend_sender = md_MsgSend.Fields().ByName("sender") + fd_MsgSend_recipient = md_MsgSend.Fields().ByName("recipient") + fd_MsgSend_credits = md_MsgSend.Fields().ByName("credits") } -var _ protoreflect.Message = (*fastReflection_MsgCancelResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSend)(nil) -type fastReflection_MsgCancelResponse MsgCancelResponse +type fastReflection_MsgSend MsgSend -func (x *MsgCancelResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCancelResponse)(x) +func (x *MsgSend) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSend)(x) } -func (x *MsgCancelResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[17] +func (x *MsgSend) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9780,43 +9810,43 @@ func (x *MsgCancelResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCancelResponse_messageType fastReflection_MsgCancelResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCancelResponse_messageType{} +var _fastReflection_MsgSend_messageType fastReflection_MsgSend_messageType +var _ protoreflect.MessageType = fastReflection_MsgSend_messageType{} -type fastReflection_MsgCancelResponse_messageType struct{} +type fastReflection_MsgSend_messageType struct{} -func (x fastReflection_MsgCancelResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCancelResponse)(nil) +func (x fastReflection_MsgSend_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSend)(nil) } -func (x fastReflection_MsgCancelResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCancelResponse) +func (x fastReflection_MsgSend_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSend) } -func (x fastReflection_MsgCancelResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCancelResponse +func (x fastReflection_MsgSend_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSend } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCancelResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCancelResponse +func (x *fastReflection_MsgSend) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSend } // 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_MsgCancelResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCancelResponse_messageType +func (x *fastReflection_MsgSend) Type() protoreflect.MessageType { + return _fastReflection_MsgSend_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCancelResponse) New() protoreflect.Message { - return new(fastReflection_MsgCancelResponse) +func (x *fastReflection_MsgSend) New() protoreflect.Message { + return new(fastReflection_MsgSend) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCancelResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCancelResponse)(x) +func (x *fastReflection_MsgSend) Interface() protoreflect.ProtoMessage { + return (*MsgSend)(x) } // Range iterates over every populated field in an undefined order, @@ -9824,7 +9854,25 @@ func (x *fastReflection_MsgCancelResponse) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCancelResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSend) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Sender != "" { + value := protoreflect.ValueOfString(x.Sender) + if !f(fd_MsgSend_sender, value) { + return + } + } + if x.Recipient != "" { + value := protoreflect.ValueOfString(x.Recipient) + if !f(fd_MsgSend_recipient, value) { + return + } + } + if len(x.Credits) != 0 { + value := protoreflect.ValueOfList(&_MsgSend_3_list{list: &x.Credits}) + if !f(fd_MsgSend_credits, value) { + return + } + } } // Has reports whether a field is populated. @@ -9838,13 +9886,19 @@ func (x *fastReflection_MsgCancelResponse) Range(f func(protoreflect.FieldDescri // 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_MsgCancelResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSend) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "regen.ecocredit.v1.MsgSend.sender": + return x.Sender != "" + case "regen.ecocredit.v1.MsgSend.recipient": + return x.Recipient != "" + case "regen.ecocredit.v1.MsgSend.credits": + return len(x.Credits) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) } } @@ -9854,13 +9908,19 @@ func (x *fastReflection_MsgCancelResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancelResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSend) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgSend.sender": + x.Sender = "" + case "regen.ecocredit.v1.MsgSend.recipient": + x.Recipient = "" + case "regen.ecocredit.v1.MsgSend.credits": + x.Credits = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) } } @@ -9870,13 +9930,25 @@ func (x *fastReflection_MsgCancelResponse) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCancelResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSend) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgSend.sender": + value := x.Sender + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgSend.recipient": + value := x.Recipient + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgSend.credits": + if len(x.Credits) == 0 { + return protoreflect.ValueOfList(&_MsgSend_3_list{}) + } + listValue := &_MsgSend_3_list{list: &x.Credits} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", descriptor.FullName())) } } @@ -9890,13 +9962,21 @@ func (x *fastReflection_MsgCancelResponse) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancelResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSend) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgSend.sender": + x.Sender = value.Interface().(string) + case "regen.ecocredit.v1.MsgSend.recipient": + x.Recipient = value.Interface().(string) + case "regen.ecocredit.v1.MsgSend.credits": + lv := value.List() + clv := lv.(*_MsgSend_3_list) + x.Credits = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) } } @@ -9910,36 +9990,53 @@ func (x *fastReflection_MsgCancelResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancelResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSend) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgSend.credits": + if x.Credits == nil { + x.Credits = []*MsgSend_SendCredits{} + } + value := &_MsgSend_3_list{list: &x.Credits} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.MsgSend.sender": + panic(fmt.Errorf("field sender of message regen.ecocredit.v1.MsgSend is not mutable")) + case "regen.ecocredit.v1.MsgSend.recipient": + panic(fmt.Errorf("field recipient of message regen.ecocredit.v1.MsgSend is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend 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_MsgCancelResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSend) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgSend.sender": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgSend.recipient": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgSend.credits": + list := []*MsgSend_SendCredits{} + return protoreflect.ValueOfList(&_MsgSend_3_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend 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_MsgCancelResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSend) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCancelResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSend", d.FullName())) } panic("unreachable") } @@ -9947,7 +10044,7 @@ func (x *fastReflection_MsgCancelResponse) WhichOneof(d protoreflect.OneofDescri // 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_MsgCancelResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSend) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9958,7 +10055,7 @@ func (x *fastReflection_MsgCancelResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancelResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSend) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9970,7 +10067,7 @@ func (x *fastReflection_MsgCancelResponse) SetUnknown(fields protoreflect.RawFie // 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_MsgCancelResponse) IsValid() bool { +func (x *fastReflection_MsgSend) IsValid() bool { return x != nil } @@ -9980,9 +10077,9 @@ func (x *fastReflection_MsgCancelResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCancelResponse) + x := input.Message.Interface().(*MsgSend) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9994,6 +10091,20 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Sender) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Recipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Credits) > 0 { + for _, e := range x.Credits { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -10004,7 +10115,7 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCancelResponse) + x := input.Message.Interface().(*MsgSend) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10023,6 +10134,36 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Credits) > 0 { + for iNdEx := len(x.Credits) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Credits[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if len(x.Recipient) > 0 { + i -= len(x.Recipient) + copy(dAtA[i:], x.Recipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + i-- + dAtA[i] = 0x12 + } + if len(x.Sender) > 0 { + i -= len(x.Sender) + copy(dAtA[i:], x.Sender) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sender))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -10034,7 +10175,7 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCancelResponse) + x := input.Message.Interface().(*MsgSend) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10066,12 +10207,110 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend: 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 Sender", 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.Sender = 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 Recipient", 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.Recipient = 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 Credits", 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.Credits = append(x.Credits, &MsgSend_SendCredits{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -10108,30 +10347,34 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { } var ( - md_MsgUpdateClassAdmin protoreflect.MessageDescriptor - fd_MsgUpdateClassAdmin_admin protoreflect.FieldDescriptor - fd_MsgUpdateClassAdmin_class_id protoreflect.FieldDescriptor - fd_MsgUpdateClassAdmin_new_admin protoreflect.FieldDescriptor + md_MsgSend_SendCredits protoreflect.MessageDescriptor + fd_MsgSend_SendCredits_batch_denom protoreflect.FieldDescriptor + fd_MsgSend_SendCredits_tradable_amount protoreflect.FieldDescriptor + fd_MsgSend_SendCredits_retired_amount protoreflect.FieldDescriptor + fd_MsgSend_SendCredits_retirement_jurisdiction protoreflect.FieldDescriptor + fd_MsgSend_SendCredits_retirement_reason protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassAdmin = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassAdmin") - fd_MsgUpdateClassAdmin_admin = md_MsgUpdateClassAdmin.Fields().ByName("admin") - fd_MsgUpdateClassAdmin_class_id = md_MsgUpdateClassAdmin.Fields().ByName("class_id") - fd_MsgUpdateClassAdmin_new_admin = md_MsgUpdateClassAdmin.Fields().ByName("new_admin") + md_MsgSend_SendCredits = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSend").Messages().ByName("SendCredits") + fd_MsgSend_SendCredits_batch_denom = md_MsgSend_SendCredits.Fields().ByName("batch_denom") + fd_MsgSend_SendCredits_tradable_amount = md_MsgSend_SendCredits.Fields().ByName("tradable_amount") + fd_MsgSend_SendCredits_retired_amount = md_MsgSend_SendCredits.Fields().ByName("retired_amount") + fd_MsgSend_SendCredits_retirement_jurisdiction = md_MsgSend_SendCredits.Fields().ByName("retirement_jurisdiction") + fd_MsgSend_SendCredits_retirement_reason = md_MsgSend_SendCredits.Fields().ByName("retirement_reason") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassAdmin)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSend_SendCredits)(nil) -type fastReflection_MsgUpdateClassAdmin MsgUpdateClassAdmin +type fastReflection_MsgSend_SendCredits MsgSend_SendCredits -func (x *MsgUpdateClassAdmin) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassAdmin)(x) +func (x *MsgSend_SendCredits) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSend_SendCredits)(x) } -func (x *MsgUpdateClassAdmin) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[18] +func (x *MsgSend_SendCredits) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10142,43 +10385,43 @@ func (x *MsgUpdateClassAdmin) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassAdmin_messageType fastReflection_MsgUpdateClassAdmin_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassAdmin_messageType{} +var _fastReflection_MsgSend_SendCredits_messageType fastReflection_MsgSend_SendCredits_messageType +var _ protoreflect.MessageType = fastReflection_MsgSend_SendCredits_messageType{} -type fastReflection_MsgUpdateClassAdmin_messageType struct{} +type fastReflection_MsgSend_SendCredits_messageType struct{} -func (x fastReflection_MsgUpdateClassAdmin_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassAdmin)(nil) +func (x fastReflection_MsgSend_SendCredits_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSend_SendCredits)(nil) } -func (x fastReflection_MsgUpdateClassAdmin_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassAdmin) +func (x fastReflection_MsgSend_SendCredits_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSend_SendCredits) } -func (x fastReflection_MsgUpdateClassAdmin_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassAdmin +func (x fastReflection_MsgSend_SendCredits_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSend_SendCredits } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassAdmin) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassAdmin +func (x *fastReflection_MsgSend_SendCredits) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSend_SendCredits } // 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_MsgUpdateClassAdmin) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassAdmin_messageType +func (x *fastReflection_MsgSend_SendCredits) Type() protoreflect.MessageType { + return _fastReflection_MsgSend_SendCredits_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassAdmin) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassAdmin) +func (x *fastReflection_MsgSend_SendCredits) New() protoreflect.Message { + return new(fastReflection_MsgSend_SendCredits) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassAdmin) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassAdmin)(x) +func (x *fastReflection_MsgSend_SendCredits) Interface() protoreflect.ProtoMessage { + return (*MsgSend_SendCredits)(x) } // Range iterates over every populated field in an undefined order, @@ -10186,22 +10429,34 @@ func (x *fastReflection_MsgUpdateClassAdmin) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassAdmin) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateClassAdmin_admin, value) { +func (x *fastReflection_MsgSend_SendCredits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BatchDenom != "" { + value := protoreflect.ValueOfString(x.BatchDenom) + if !f(fd_MsgSend_SendCredits_batch_denom, value) { return } } - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_MsgUpdateClassAdmin_class_id, value) { + if x.TradableAmount != "" { + value := protoreflect.ValueOfString(x.TradableAmount) + if !f(fd_MsgSend_SendCredits_tradable_amount, value) { return } } - if x.NewAdmin != "" { - value := protoreflect.ValueOfString(x.NewAdmin) - if !f(fd_MsgUpdateClassAdmin_new_admin, value) { + if x.RetiredAmount != "" { + value := protoreflect.ValueOfString(x.RetiredAmount) + if !f(fd_MsgSend_SendCredits_retired_amount, value) { + return + } + } + if x.RetirementJurisdiction != "" { + value := protoreflect.ValueOfString(x.RetirementJurisdiction) + if !f(fd_MsgSend_SendCredits_retirement_jurisdiction, value) { + return + } + } + if x.RetirementReason != "" { + value := protoreflect.ValueOfString(x.RetirementReason) + if !f(fd_MsgSend_SendCredits_retirement_reason, value) { return } } @@ -10218,19 +10473,23 @@ func (x *fastReflection_MsgUpdateClassAdmin) Range(f func(protoreflect.FieldDesc // 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_MsgUpdateClassAdmin) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSend_SendCredits) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - return x.ClassId != "" - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - return x.NewAdmin != "" + case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": + return x.BatchDenom != "" + case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": + return x.TradableAmount != "" + case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": + return x.RetiredAmount != "" + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": + return x.RetirementJurisdiction != "" + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": + return x.RetirementReason != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) } } @@ -10240,19 +10499,23 @@ func (x *fastReflection_MsgUpdateClassAdmin) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdmin) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSend_SendCredits) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - x.ClassId = "" - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - x.NewAdmin = "" + case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": + x.BatchDenom = "" + case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": + x.TradableAmount = "" + case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": + x.RetiredAmount = "" + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": + x.RetirementJurisdiction = "" + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": + x.RetirementReason = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) } } @@ -10262,22 +10525,28 @@ func (x *fastReflection_MsgUpdateClassAdmin) Clear(fd protoreflect.FieldDescript // 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_MsgUpdateClassAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSend_SendCredits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - value := x.Admin + case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": + value := x.BatchDenom return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - value := x.ClassId + case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": + value := x.TradableAmount return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - value := x.NewAdmin + case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": + value := x.RetiredAmount + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": + value := x.RetirementJurisdiction + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": + value := x.RetirementReason return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", descriptor.FullName())) } } @@ -10291,19 +10560,23 @@ func (x *fastReflection_MsgUpdateClassAdmin) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSend_SendCredits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - x.ClassId = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - x.NewAdmin = value.Interface().(string) + case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": + x.BatchDenom = value.Interface().(string) + case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": + x.TradableAmount = value.Interface().(string) + case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": + x.RetiredAmount = value.Interface().(string) + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": + x.RetirementJurisdiction = value.Interface().(string) + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": + x.RetirementReason = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) } } @@ -10317,48 +10590,56 @@ func (x *fastReflection_MsgUpdateClassAdmin) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSend_SendCredits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - panic(fmt.Errorf("field new_admin of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) + case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": + panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgSend.SendCredits is not mutable")) + case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": + panic(fmt.Errorf("field tradable_amount of message regen.ecocredit.v1.MsgSend.SendCredits is not mutable")) + case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": + panic(fmt.Errorf("field retired_amount of message regen.ecocredit.v1.MsgSend.SendCredits is not mutable")) + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": + panic(fmt.Errorf("field retirement_jurisdiction of message regen.ecocredit.v1.MsgSend.SendCredits is not mutable")) + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": + panic(fmt.Errorf("field retirement_reason of message regen.ecocredit.v1.MsgSend.SendCredits is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits 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_MsgUpdateClassAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSend_SendCredits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": + case "regen.ecocredit.v1.MsgSend.SendCredits.batch_denom": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + case "regen.ecocredit.v1.MsgSend.SendCredits.tradable_amount": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": + case "regen.ecocredit.v1.MsgSend.SendCredits.retired_amount": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_reason": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits 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_MsgUpdateClassAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSend_SendCredits) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassAdmin", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSend.SendCredits", d.FullName())) } panic("unreachable") } @@ -10366,7 +10647,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) WhichOneof(d protoreflect.OneofDesc // 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_MsgUpdateClassAdmin) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSend_SendCredits) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10377,7 +10658,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdmin) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSend_SendCredits) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10389,7 +10670,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) SetUnknown(fields protoreflect.RawF // 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_MsgUpdateClassAdmin) IsValid() bool { +func (x *fastReflection_MsgSend_SendCredits) IsValid() bool { return x != nil } @@ -10399,9 +10680,9 @@ func (x *fastReflection_MsgUpdateClassAdmin) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassAdmin) + x := input.Message.Interface().(*MsgSend_SendCredits) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10413,15 +10694,23 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods var n int var l int _ = l - l = len(x.Admin) + l = len(x.BatchDenom) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ClassId) + l = len(x.TradableAmount) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NewAdmin) + l = len(x.RetiredAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.RetirementJurisdiction) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.RetirementReason) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -10435,7 +10724,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassAdmin) + x := input.Message.Interface().(*MsgSend_SendCredits) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10454,24 +10743,38 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NewAdmin) > 0 { - i -= len(x.NewAdmin) - copy(dAtA[i:], x.NewAdmin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAdmin))) + if len(x.RetirementReason) > 0 { + i -= len(x.RetirementReason) + copy(dAtA[i:], x.RetirementReason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RetirementReason))) + i-- + dAtA[i] = 0x2a + } + if len(x.RetirementJurisdiction) > 0 { + i -= len(x.RetirementJurisdiction) + copy(dAtA[i:], x.RetirementJurisdiction) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RetirementJurisdiction))) + i-- + dAtA[i] = 0x22 + } + if len(x.RetiredAmount) > 0 { + i -= len(x.RetiredAmount) + copy(dAtA[i:], x.RetiredAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RetiredAmount))) i-- dAtA[i] = 0x1a } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + if len(x.TradableAmount) > 0 { + i -= len(x.TradableAmount) + copy(dAtA[i:], x.TradableAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TradableAmount))) i-- dAtA[i] = 0x12 } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + if len(x.BatchDenom) > 0 { + i -= len(x.BatchDenom) + copy(dAtA[i:], x.BatchDenom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) i-- dAtA[i] = 0xa } @@ -10486,7 +10789,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassAdmin) + x := input.Message.Interface().(*MsgSend_SendCredits) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10518,15 +10821,15 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdmin: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend_SendCredits: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdmin: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend_SendCredits: 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 Admin", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BatchDenom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10554,11 +10857,11 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Admin = string(dAtA[iNdEx:postIndex]) + x.BatchDenom = 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 ClassId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TradableAmount", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10586,11 +10889,11 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ClassId = string(dAtA[iNdEx:postIndex]) + x.TradableAmount = 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 NewAdmin", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RetiredAmount", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10618,31 +10921,95 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NewAdmin = string(dAtA[iNdEx:postIndex]) + x.RetiredAmount = 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 + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RetirementJurisdiction", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - if (iNdEx + skippy) > l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + x.RetirementJurisdiction = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RetirementReason", wireType) } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + 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.RetirementReason = 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{}{}, @@ -10656,23 +11023,23 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods } var ( - md_MsgUpdateClassAdminResponse protoreflect.MessageDescriptor + md_MsgSendResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassAdminResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassAdminResponse") + md_MsgSendResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSendResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassAdminResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSendResponse)(nil) -type fastReflection_MsgUpdateClassAdminResponse MsgUpdateClassAdminResponse +type fastReflection_MsgSendResponse MsgSendResponse -func (x *MsgUpdateClassAdminResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassAdminResponse)(x) +func (x *MsgSendResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSendResponse)(x) } -func (x *MsgUpdateClassAdminResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgSendResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -10684,43 +11051,43 @@ func (x *MsgUpdateClassAdminResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassAdminResponse_messageType fastReflection_MsgUpdateClassAdminResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassAdminResponse_messageType{} +var _fastReflection_MsgSendResponse_messageType fastReflection_MsgSendResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSendResponse_messageType{} -type fastReflection_MsgUpdateClassAdminResponse_messageType struct{} +type fastReflection_MsgSendResponse_messageType struct{} -func (x fastReflection_MsgUpdateClassAdminResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassAdminResponse)(nil) +func (x fastReflection_MsgSendResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSendResponse)(nil) } -func (x fastReflection_MsgUpdateClassAdminResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassAdminResponse) +func (x fastReflection_MsgSendResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSendResponse) } -func (x fastReflection_MsgUpdateClassAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassAdminResponse +func (x fastReflection_MsgSendResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassAdminResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassAdminResponse +func (x *fastReflection_MsgSendResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendResponse } // 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_MsgUpdateClassAdminResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassAdminResponse_messageType +func (x *fastReflection_MsgSendResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSendResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassAdminResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassAdminResponse) +func (x *fastReflection_MsgSendResponse) New() protoreflect.Message { + return new(fastReflection_MsgSendResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassAdminResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassAdminResponse)(x) +func (x *fastReflection_MsgSendResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSendResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -10728,7 +11095,7 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSendResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -10742,13 +11109,13 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) Range(f func(protoreflect.F // 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_MsgUpdateClassAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSendResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) } } @@ -10758,13 +11125,13 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdminResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSendResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) } } @@ -10774,13 +11141,13 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) Clear(fd protoreflect.Field // 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_MsgUpdateClassAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSendResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", descriptor.FullName())) } } @@ -10794,13 +11161,13 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSendResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) } } @@ -10814,36 +11181,36 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSendResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse 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_MsgUpdateClassAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSendResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse 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_MsgUpdateClassAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSendResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassAdminResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSendResponse", d.FullName())) } panic("unreachable") } @@ -10851,7 +11218,7 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) WhichOneof(d protoreflect.O // 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_MsgUpdateClassAdminResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSendResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10862,7 +11229,7 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdminResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSendResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10874,7 +11241,7 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) SetUnknown(fields protorefl // 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_MsgUpdateClassAdminResponse) IsValid() bool { +func (x *fastReflection_MsgSendResponse) IsValid() bool { return x != nil } @@ -10884,9 +11251,9 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassAdminResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassAdminResponse) + x := input.Message.Interface().(*MsgSendResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10908,7 +11275,7 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassAdminResponse) + x := input.Message.Interface().(*MsgSendResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10938,7 +11305,7 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassAdminResponse) + x := input.Message.Interface().(*MsgSendResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10970,10 +11337,10 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdminResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -11011,172 +11378,131 @@ func (x *fastReflection_MsgUpdateClassAdminResponse) ProtoMethods() *protoiface. } } -var _ protoreflect.List = (*_MsgUpdateClassIssuers_3_list)(nil) +var _ protoreflect.List = (*_MsgRetire_2_list)(nil) -type _MsgUpdateClassIssuers_3_list struct { - list *[]string +type _MsgRetire_2_list struct { + list *[]*Credits } -func (x *_MsgUpdateClassIssuers_3_list) Len() int { +func (x *_MsgRetire_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_MsgUpdateClassIssuers_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) +func (x *_MsgRetire_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_MsgUpdateClassIssuers_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped +func (x *_MsgRetire_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Credits) (*x.list)[i] = concreteValue } -func (x *_MsgUpdateClassIssuers_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped +func (x *_MsgRetire_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Credits) *x.list = append(*x.list, concreteValue) } -func (x *_MsgUpdateClassIssuers_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgUpdateClassIssuers at list field AddIssuers as it is not of Message kind")) +func (x *_MsgRetire_2_list) AppendMutable() protoreflect.Value { + v := new(Credits) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgUpdateClassIssuers_3_list) Truncate(n int) { +func (x *_MsgRetire_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } *x.list = (*x.list)[:n] } -func (x *_MsgUpdateClassIssuers_3_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) +func (x *_MsgRetire_2_list) NewElement() protoreflect.Value { + v := new(Credits) + return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgUpdateClassIssuers_3_list) IsValid() bool { +func (x *_MsgRetire_2_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_MsgUpdateClassIssuers_4_list)(nil) +var ( + md_MsgRetire protoreflect.MessageDescriptor + fd_MsgRetire_owner protoreflect.FieldDescriptor + fd_MsgRetire_credits protoreflect.FieldDescriptor + fd_MsgRetire_jurisdiction protoreflect.FieldDescriptor + fd_MsgRetire_reason protoreflect.FieldDescriptor +) -type _MsgUpdateClassIssuers_4_list struct { - list *[]string +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgRetire = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgRetire") + fd_MsgRetire_owner = md_MsgRetire.Fields().ByName("owner") + fd_MsgRetire_credits = md_MsgRetire.Fields().ByName("credits") + fd_MsgRetire_jurisdiction = md_MsgRetire.Fields().ByName("jurisdiction") + fd_MsgRetire_reason = md_MsgRetire.Fields().ByName("reason") } -func (x *_MsgUpdateClassIssuers_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} +var _ protoreflect.Message = (*fastReflection_MsgRetire)(nil) -func (x *_MsgUpdateClassIssuers_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} +type fastReflection_MsgRetire MsgRetire -func (x *_MsgUpdateClassIssuers_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue +func (x *MsgRetire) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRetire)(x) } -func (x *_MsgUpdateClassIssuers_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) +func (x *MsgRetire) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[20] + 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) } -func (x *_MsgUpdateClassIssuers_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgUpdateClassIssuers at list field RemoveIssuers as it is not of Message kind")) -} +var _fastReflection_MsgRetire_messageType fastReflection_MsgRetire_messageType +var _ protoreflect.MessageType = fastReflection_MsgRetire_messageType{} -func (x *_MsgUpdateClassIssuers_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgUpdateClassIssuers_4_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgUpdateClassIssuers_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgUpdateClassIssuers protoreflect.MessageDescriptor - fd_MsgUpdateClassIssuers_admin protoreflect.FieldDescriptor - fd_MsgUpdateClassIssuers_class_id protoreflect.FieldDescriptor - fd_MsgUpdateClassIssuers_add_issuers protoreflect.FieldDescriptor - fd_MsgUpdateClassIssuers_remove_issuers protoreflect.FieldDescriptor -) - -func init() { - file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassIssuers = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassIssuers") - fd_MsgUpdateClassIssuers_admin = md_MsgUpdateClassIssuers.Fields().ByName("admin") - fd_MsgUpdateClassIssuers_class_id = md_MsgUpdateClassIssuers.Fields().ByName("class_id") - fd_MsgUpdateClassIssuers_add_issuers = md_MsgUpdateClassIssuers.Fields().ByName("add_issuers") - fd_MsgUpdateClassIssuers_remove_issuers = md_MsgUpdateClassIssuers.Fields().ByName("remove_issuers") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassIssuers)(nil) - -type fastReflection_MsgUpdateClassIssuers MsgUpdateClassIssuers - -func (x *MsgUpdateClassIssuers) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassIssuers)(x) -} - -func (x *MsgUpdateClassIssuers) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[20] - 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_MsgUpdateClassIssuers_messageType fastReflection_MsgUpdateClassIssuers_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassIssuers_messageType{} - -type fastReflection_MsgUpdateClassIssuers_messageType struct{} +type fastReflection_MsgRetire_messageType struct{} -func (x fastReflection_MsgUpdateClassIssuers_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassIssuers)(nil) +func (x fastReflection_MsgRetire_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRetire)(nil) } -func (x fastReflection_MsgUpdateClassIssuers_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassIssuers) +func (x fastReflection_MsgRetire_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRetire) } -func (x fastReflection_MsgUpdateClassIssuers_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassIssuers +func (x fastReflection_MsgRetire_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRetire } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassIssuers) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassIssuers +func (x *fastReflection_MsgRetire) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRetire } // 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_MsgUpdateClassIssuers) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassIssuers_messageType +func (x *fastReflection_MsgRetire) Type() protoreflect.MessageType { + return _fastReflection_MsgRetire_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassIssuers) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassIssuers) +func (x *fastReflection_MsgRetire) New() protoreflect.Message { + return new(fastReflection_MsgRetire) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassIssuers) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassIssuers)(x) +func (x *fastReflection_MsgRetire) Interface() protoreflect.ProtoMessage { + return (*MsgRetire)(x) } // Range iterates over every populated field in an undefined order, @@ -11184,28 +11510,28 @@ func (x *fastReflection_MsgUpdateClassIssuers) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassIssuers) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateClassIssuers_admin, value) { +func (x *fastReflection_MsgRetire) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_MsgRetire_owner, value) { return } } - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_MsgUpdateClassIssuers_class_id, value) { + if len(x.Credits) != 0 { + value := protoreflect.ValueOfList(&_MsgRetire_2_list{list: &x.Credits}) + if !f(fd_MsgRetire_credits, value) { return } } - if len(x.AddIssuers) != 0 { - value := protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers}) - if !f(fd_MsgUpdateClassIssuers_add_issuers, value) { + if x.Jurisdiction != "" { + value := protoreflect.ValueOfString(x.Jurisdiction) + if !f(fd_MsgRetire_jurisdiction, value) { return } } - if len(x.RemoveIssuers) != 0 { - value := protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers}) - if !f(fd_MsgUpdateClassIssuers_remove_issuers, value) { + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_MsgRetire_reason, value) { return } } @@ -11222,21 +11548,21 @@ func (x *fastReflection_MsgUpdateClassIssuers) Range(f func(protoreflect.FieldDe // 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_MsgUpdateClassIssuers) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRetire) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - return x.ClassId != "" - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - return len(x.AddIssuers) != 0 - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - return len(x.RemoveIssuers) != 0 + case "regen.ecocredit.v1.MsgRetire.owner": + return x.Owner != "" + case "regen.ecocredit.v1.MsgRetire.credits": + return len(x.Credits) != 0 + case "regen.ecocredit.v1.MsgRetire.jurisdiction": + return x.Jurisdiction != "" + case "regen.ecocredit.v1.MsgRetire.reason": + return x.Reason != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) } } @@ -11246,21 +11572,21 @@ func (x *fastReflection_MsgUpdateClassIssuers) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuers) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRetire) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - x.ClassId = "" - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - x.AddIssuers = nil - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - x.RemoveIssuers = nil + case "regen.ecocredit.v1.MsgRetire.owner": + x.Owner = "" + case "regen.ecocredit.v1.MsgRetire.credits": + x.Credits = nil + case "regen.ecocredit.v1.MsgRetire.jurisdiction": + x.Jurisdiction = "" + case "regen.ecocredit.v1.MsgRetire.reason": + x.Reason = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) } } @@ -11270,31 +11596,28 @@ func (x *fastReflection_MsgUpdateClassIssuers) Clear(fd protoreflect.FieldDescri // 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_MsgUpdateClassIssuers) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRetire) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - value := x.ClassId + case "regen.ecocredit.v1.MsgRetire.owner": + value := x.Owner return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - if len(x.AddIssuers) == 0 { - return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{}) - } - listValue := &_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers} - return protoreflect.ValueOfList(listValue) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - if len(x.RemoveIssuers) == 0 { - return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{}) + case "regen.ecocredit.v1.MsgRetire.credits": + if len(x.Credits) == 0 { + return protoreflect.ValueOfList(&_MsgRetire_2_list{}) } - listValue := &_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers} + listValue := &_MsgRetire_2_list{list: &x.Credits} return protoreflect.ValueOfList(listValue) + case "regen.ecocredit.v1.MsgRetire.jurisdiction": + value := x.Jurisdiction + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgRetire.reason": + value := x.Reason + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", descriptor.FullName())) } } @@ -11308,25 +11631,23 @@ func (x *fastReflection_MsgUpdateClassIssuers) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuers) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRetire) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - x.ClassId = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - lv := value.List() - clv := lv.(*_MsgUpdateClassIssuers_3_list) - x.AddIssuers = *clv.list - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + case "regen.ecocredit.v1.MsgRetire.owner": + x.Owner = value.Interface().(string) + case "regen.ecocredit.v1.MsgRetire.credits": lv := value.List() - clv := lv.(*_MsgUpdateClassIssuers_4_list) - x.RemoveIssuers = *clv.list + clv := lv.(*_MsgRetire_2_list) + x.Credits = *clv.list + case "regen.ecocredit.v1.MsgRetire.jurisdiction": + x.Jurisdiction = value.Interface().(string) + case "regen.ecocredit.v1.MsgRetire.reason": + x.Reason = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) } } @@ -11340,62 +11661,57 @@ func (x *fastReflection_MsgUpdateClassIssuers) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuers) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRetire) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - if x.AddIssuers == nil { - x.AddIssuers = []string{} - } - value := &_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers} - return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - if x.RemoveIssuers == nil { - x.RemoveIssuers = []string{} + case "regen.ecocredit.v1.MsgRetire.credits": + if x.Credits == nil { + x.Credits = []*Credits{} } - value := &_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers} + value := &_MsgRetire_2_list{list: &x.Credits} return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassIssuers is not mutable")) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassIssuers is not mutable")) + case "regen.ecocredit.v1.MsgRetire.owner": + panic(fmt.Errorf("field owner of message regen.ecocredit.v1.MsgRetire is not mutable")) + case "regen.ecocredit.v1.MsgRetire.jurisdiction": + panic(fmt.Errorf("field jurisdiction of message regen.ecocredit.v1.MsgRetire is not mutable")) + case "regen.ecocredit.v1.MsgRetire.reason": + panic(fmt.Errorf("field reason of message regen.ecocredit.v1.MsgRetire is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire 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_MsgUpdateClassIssuers) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRetire) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": + case "regen.ecocredit.v1.MsgRetire.owner": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + case "regen.ecocredit.v1.MsgRetire.credits": + list := []*Credits{} + return protoreflect.ValueOfList(&_MsgRetire_2_list{list: &list}) + case "regen.ecocredit.v1.MsgRetire.jurisdiction": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgRetire.reason": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - list := []string{} - return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{list: &list}) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - list := []string{} - return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire 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_MsgUpdateClassIssuers) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRetire) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassIssuers", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgRetire", d.FullName())) } panic("unreachable") } @@ -11403,7 +11719,7 @@ func (x *fastReflection_MsgUpdateClassIssuers) WhichOneof(d protoreflect.OneofDe // 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_MsgUpdateClassIssuers) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRetire) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11414,7 +11730,7 @@ func (x *fastReflection_MsgUpdateClassIssuers) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuers) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRetire) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11426,7 +11742,7 @@ func (x *fastReflection_MsgUpdateClassIssuers) SetUnknown(fields protoreflect.Ra // 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_MsgUpdateClassIssuers) IsValid() bool { +func (x *fastReflection_MsgRetire) IsValid() bool { return x != nil } @@ -11436,9 +11752,9 @@ func (x *fastReflection_MsgUpdateClassIssuers) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassIssuers) + x := input.Message.Interface().(*MsgRetire) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11450,25 +11766,23 @@ func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Method var n int var l int _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ClassId) + l = len(x.Owner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.AddIssuers) > 0 { - for _, s := range x.AddIssuers { - l = len(s) + if len(x.Credits) > 0 { + for _, e := range x.Credits { + l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } - if len(x.RemoveIssuers) > 0 { - for _, s := range x.RemoveIssuers { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } + l = len(x.Jurisdiction) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -11480,7 +11794,7 @@ func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassIssuers) + x := input.Message.Interface().(*MsgRetire) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11499,35 +11813,40 @@ func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.RemoveIssuers) > 0 { - for iNdEx := len(x.RemoveIssuers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.RemoveIssuers[iNdEx]) - copy(dAtA[i:], x.RemoveIssuers[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoveIssuers[iNdEx]))) - i-- - dAtA[i] = 0x22 - } + if len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x22 } - if len(x.AddIssuers) > 0 { - for iNdEx := len(x.AddIssuers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.AddIssuers[iNdEx]) - copy(dAtA[i:], x.AddIssuers[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AddIssuers[iNdEx]))) + if len(x.Jurisdiction) > 0 { + i -= len(x.Jurisdiction) + copy(dAtA[i:], x.Jurisdiction) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jurisdiction))) + i-- + dAtA[i] = 0x1a + } + if len(x.Credits) > 0 { + for iNdEx := len(x.Credits) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Credits[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + if len(x.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) i-- dAtA[i] = 0xa } @@ -11542,7 +11861,7 @@ func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassIssuers) + x := input.Message.Interface().(*MsgRetire) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11574,15 +11893,15 @@ func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuers: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRetire: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuers: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRetire: 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 Admin", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11610,13 +11929,13 @@ func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Admin = string(dAtA[iNdEx:postIndex]) + x.Owner = 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 ClassId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Credits", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -11626,27 +11945,29 @@ func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ClassId = string(dAtA[iNdEx:postIndex]) + x.Credits = append(x.Credits, &Credits{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-1]); 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 AddIssuers", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Jurisdiction", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11674,11 +11995,11 @@ func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.AddIssuers = append(x.AddIssuers, string(dAtA[iNdEx:postIndex])) + x.Jurisdiction = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RemoveIssuers", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11706,7 +12027,7 @@ func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.RemoveIssuers = append(x.RemoveIssuers, string(dAtA[iNdEx:postIndex])) + x.Reason = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11744,23 +12065,23 @@ func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Method } var ( - md_MsgUpdateClassIssuersResponse protoreflect.MessageDescriptor + md_MsgRetireResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassIssuersResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassIssuersResponse") + md_MsgRetireResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgRetireResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassIssuersResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRetireResponse)(nil) -type fastReflection_MsgUpdateClassIssuersResponse MsgUpdateClassIssuersResponse +type fastReflection_MsgRetireResponse MsgRetireResponse -func (x *MsgUpdateClassIssuersResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassIssuersResponse)(x) +func (x *MsgRetireResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRetireResponse)(x) } -func (x *MsgUpdateClassIssuersResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgRetireResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11772,43 +12093,43 @@ func (x *MsgUpdateClassIssuersResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassIssuersResponse_messageType fastReflection_MsgUpdateClassIssuersResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassIssuersResponse_messageType{} +var _fastReflection_MsgRetireResponse_messageType fastReflection_MsgRetireResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRetireResponse_messageType{} -type fastReflection_MsgUpdateClassIssuersResponse_messageType struct{} +type fastReflection_MsgRetireResponse_messageType struct{} -func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassIssuersResponse)(nil) +func (x fastReflection_MsgRetireResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRetireResponse)(nil) } -func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassIssuersResponse) +func (x fastReflection_MsgRetireResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRetireResponse) } -func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassIssuersResponse +func (x fastReflection_MsgRetireResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRetireResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassIssuersResponse +func (x *fastReflection_MsgRetireResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRetireResponse } // 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_MsgUpdateClassIssuersResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassIssuersResponse_messageType +func (x *fastReflection_MsgRetireResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRetireResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassIssuersResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassIssuersResponse) +func (x *fastReflection_MsgRetireResponse) New() protoreflect.Message { + return new(fastReflection_MsgRetireResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassIssuersResponse)(x) +func (x *fastReflection_MsgRetireResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRetireResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -11816,7 +12137,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRetireResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -11830,13 +12151,13 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Range(f func(protoreflect // 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_MsgUpdateClassIssuersResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRetireResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse does not contain field %s", fd.FullName())) } } @@ -11846,13 +12167,13 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRetireResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse does not contain field %s", fd.FullName())) } } @@ -11862,13 +12183,13 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Clear(fd protoreflect.Fie // 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_MsgUpdateClassIssuersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRetireResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse does not contain field %s", descriptor.FullName())) } } @@ -11882,13 +12203,13 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRetireResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse does not contain field %s", fd.FullName())) } } @@ -11902,36 +12223,36 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRetireResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse 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_MsgUpdateClassIssuersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRetireResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetireResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetireResponse 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_MsgUpdateClassIssuersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRetireResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassIssuersResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgRetireResponse", d.FullName())) } panic("unreachable") } @@ -11939,7 +12260,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) WhichOneof(d protoreflect // 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_MsgUpdateClassIssuersResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRetireResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11950,7 +12271,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuersResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRetireResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11962,7 +12283,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) SetUnknown(fields protore // 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_MsgUpdateClassIssuersResponse) IsValid() bool { +func (x *fastReflection_MsgRetireResponse) IsValid() bool { return x != nil } @@ -11972,9 +12293,9 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRetireResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) + x := input.Message.Interface().(*MsgRetireResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11996,7 +12317,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) + x := input.Message.Interface().(*MsgRetireResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12026,7 +12347,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) + x := input.Message.Interface().(*MsgRetireResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12058,10 +12379,10 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuersResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRetireResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRetireResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -12099,30 +12420,81 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoifac } } -var ( - md_MsgUpdateClassMetadata protoreflect.MessageDescriptor - fd_MsgUpdateClassMetadata_admin protoreflect.FieldDescriptor - fd_MsgUpdateClassMetadata_class_id protoreflect.FieldDescriptor - fd_MsgUpdateClassMetadata_new_metadata protoreflect.FieldDescriptor -) +var _ protoreflect.List = (*_MsgCancel_2_list)(nil) -func init() { - file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassMetadata = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassMetadata") - fd_MsgUpdateClassMetadata_admin = md_MsgUpdateClassMetadata.Fields().ByName("admin") - fd_MsgUpdateClassMetadata_class_id = md_MsgUpdateClassMetadata.Fields().ByName("class_id") - fd_MsgUpdateClassMetadata_new_metadata = md_MsgUpdateClassMetadata.Fields().ByName("new_metadata") +type _MsgCancel_2_list struct { + list *[]*Credits } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassMetadata)(nil) +func (x *_MsgCancel_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} -type fastReflection_MsgUpdateClassMetadata MsgUpdateClassMetadata +func (x *_MsgCancel_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} -func (x *MsgUpdateClassMetadata) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassMetadata)(x) +func (x *_MsgCancel_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Credits) + (*x.list)[i] = concreteValue } -func (x *MsgUpdateClassMetadata) slowProtoReflect() protoreflect.Message { +func (x *_MsgCancel_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Credits) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgCancel_2_list) AppendMutable() protoreflect.Value { + v := new(Credits) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgCancel_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgCancel_2_list) NewElement() protoreflect.Value { + v := new(Credits) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgCancel_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgCancel protoreflect.MessageDescriptor + fd_MsgCancel_owner protoreflect.FieldDescriptor + fd_MsgCancel_credits protoreflect.FieldDescriptor + fd_MsgCancel_reason protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgCancel = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCancel") + fd_MsgCancel_owner = md_MsgCancel.Fields().ByName("owner") + fd_MsgCancel_credits = md_MsgCancel.Fields().ByName("credits") + fd_MsgCancel_reason = md_MsgCancel.Fields().ByName("reason") +} + +var _ protoreflect.Message = (*fastReflection_MsgCancel)(nil) + +type fastReflection_MsgCancel MsgCancel + +func (x *MsgCancel) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCancel)(x) +} + +func (x *MsgCancel) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12134,43 +12506,43 @@ func (x *MsgUpdateClassMetadata) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassMetadata_messageType fastReflection_MsgUpdateClassMetadata_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassMetadata_messageType{} +var _fastReflection_MsgCancel_messageType fastReflection_MsgCancel_messageType +var _ protoreflect.MessageType = fastReflection_MsgCancel_messageType{} -type fastReflection_MsgUpdateClassMetadata_messageType struct{} +type fastReflection_MsgCancel_messageType struct{} -func (x fastReflection_MsgUpdateClassMetadata_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassMetadata)(nil) +func (x fastReflection_MsgCancel_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCancel)(nil) } -func (x fastReflection_MsgUpdateClassMetadata_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassMetadata) +func (x fastReflection_MsgCancel_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCancel) } -func (x fastReflection_MsgUpdateClassMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassMetadata +func (x fastReflection_MsgCancel_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCancel } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassMetadata) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassMetadata +func (x *fastReflection_MsgCancel) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCancel } // 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_MsgUpdateClassMetadata) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassMetadata_messageType +func (x *fastReflection_MsgCancel) Type() protoreflect.MessageType { + return _fastReflection_MsgCancel_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassMetadata) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassMetadata) +func (x *fastReflection_MsgCancel) New() protoreflect.Message { + return new(fastReflection_MsgCancel) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassMetadata) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassMetadata)(x) +func (x *fastReflection_MsgCancel) Interface() protoreflect.ProtoMessage { + return (*MsgCancel)(x) } // Range iterates over every populated field in an undefined order, @@ -12178,22 +12550,22 @@ func (x *fastReflection_MsgUpdateClassMetadata) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateClassMetadata_admin, value) { +func (x *fastReflection_MsgCancel) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_MsgCancel_owner, value) { return } } - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_MsgUpdateClassMetadata_class_id, value) { + if len(x.Credits) != 0 { + value := protoreflect.ValueOfList(&_MsgCancel_2_list{list: &x.Credits}) + if !f(fd_MsgCancel_credits, value) { return } } - if x.NewMetadata != "" { - value := protoreflect.ValueOfString(x.NewMetadata) - if !f(fd_MsgUpdateClassMetadata_new_metadata, value) { + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_MsgCancel_reason, value) { return } } @@ -12210,19 +12582,19 @@ func (x *fastReflection_MsgUpdateClassMetadata) Range(f func(protoreflect.FieldD // 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_MsgUpdateClassMetadata) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCancel) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - return x.ClassId != "" - case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": - return x.NewMetadata != "" + case "regen.ecocredit.v1.MsgCancel.owner": + return x.Owner != "" + case "regen.ecocredit.v1.MsgCancel.credits": + return len(x.Credits) != 0 + case "regen.ecocredit.v1.MsgCancel.reason": + return x.Reason != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel does not contain field %s", fd.FullName())) } } @@ -12232,19 +12604,19 @@ func (x *fastReflection_MsgUpdateClassMetadata) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadata) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCancel) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - x.ClassId = "" - case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": - x.NewMetadata = "" + case "regen.ecocredit.v1.MsgCancel.owner": + x.Owner = "" + case "regen.ecocredit.v1.MsgCancel.credits": + x.Credits = nil + case "regen.ecocredit.v1.MsgCancel.reason": + x.Reason = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel does not contain field %s", fd.FullName())) } } @@ -12254,22 +12626,25 @@ func (x *fastReflection_MsgUpdateClassMetadata) Clear(fd protoreflect.FieldDescr // 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_MsgUpdateClassMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCancel) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - value := x.ClassId + case "regen.ecocredit.v1.MsgCancel.owner": + value := x.Owner return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": - value := x.NewMetadata + case "regen.ecocredit.v1.MsgCancel.credits": + if len(x.Credits) == 0 { + return protoreflect.ValueOfList(&_MsgCancel_2_list{}) + } + listValue := &_MsgCancel_2_list{list: &x.Credits} + return protoreflect.ValueOfList(listValue) + case "regen.ecocredit.v1.MsgCancel.reason": + value := x.Reason return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel does not contain field %s", descriptor.FullName())) } } @@ -12283,19 +12658,21 @@ func (x *fastReflection_MsgUpdateClassMetadata) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCancel) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - x.ClassId = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": - x.NewMetadata = value.Interface().(string) + case "regen.ecocredit.v1.MsgCancel.owner": + x.Owner = value.Interface().(string) + case "regen.ecocredit.v1.MsgCancel.credits": + lv := value.List() + clv := lv.(*_MsgCancel_2_list) + x.Credits = *clv.list + case "regen.ecocredit.v1.MsgCancel.reason": + x.Reason = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel does not contain field %s", fd.FullName())) } } @@ -12309,48 +12686,53 @@ func (x *fastReflection_MsgUpdateClassMetadata) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCancel) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": - panic(fmt.Errorf("field new_metadata of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) + case "regen.ecocredit.v1.MsgCancel.credits": + if x.Credits == nil { + x.Credits = []*Credits{} + } + value := &_MsgCancel_2_list{list: &x.Credits} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.MsgCancel.owner": + panic(fmt.Errorf("field owner of message regen.ecocredit.v1.MsgCancel is not mutable")) + case "regen.ecocredit.v1.MsgCancel.reason": + panic(fmt.Errorf("field reason of message regen.ecocredit.v1.MsgCancel is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel 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_MsgUpdateClassMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCancel) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + case "regen.ecocredit.v1.MsgCancel.owner": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": + case "regen.ecocredit.v1.MsgCancel.credits": + list := []*Credits{} + return protoreflect.ValueOfList(&_MsgCancel_2_list{list: &list}) + case "regen.ecocredit.v1.MsgCancel.reason": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel 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_MsgUpdateClassMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCancel) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassMetadata", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCancel", d.FullName())) } panic("unreachable") } @@ -12358,7 +12740,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) WhichOneof(d protoreflect.OneofD // 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_MsgUpdateClassMetadata) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCancel) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12369,7 +12751,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadata) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCancel) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12381,7 +12763,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) SetUnknown(fields protoreflect.R // 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_MsgUpdateClassMetadata) IsValid() bool { +func (x *fastReflection_MsgCancel) IsValid() bool { return x != nil } @@ -12391,9 +12773,9 @@ func (x *fastReflection_MsgUpdateClassMetadata) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCancel) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassMetadata) + x := input.Message.Interface().(*MsgCancel) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12405,15 +12787,17 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.Admin) + l = len(x.Owner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.Credits) > 0 { + for _, e := range x.Credits { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } - l = len(x.NewMetadata) + l = len(x.Reason) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -12427,7 +12811,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassMetadata) + x := input.Message.Interface().(*MsgCancel) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12446,24 +12830,33 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NewMetadata) > 0 { - i -= len(x.NewMetadata) - copy(dAtA[i:], x.NewMetadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewMetadata))) + if len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) i-- dAtA[i] = 0x1a } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0x12 + if len(x.Credits) > 0 { + for iNdEx := len(x.Credits) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Credits[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.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + if len(x.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) i-- dAtA[i] = 0xa } @@ -12478,7 +12871,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassMetadata) + x := input.Message.Interface().(*MsgCancel) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12510,15 +12903,15 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadata: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancel: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancel: 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 Admin", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12546,13 +12939,13 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Admin = string(dAtA[iNdEx:postIndex]) + x.Owner = 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 ClassId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Credits", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -12562,27 +12955,29 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ClassId = string(dAtA[iNdEx:postIndex]) + x.Credits = append(x.Credits, &Credits{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-1]); 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 NewMetadata", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12610,7 +13005,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NewMetadata = string(dAtA[iNdEx:postIndex]) + x.Reason = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -12648,23 +13043,23 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho } var ( - md_MsgUpdateClassMetadataResponse protoreflect.MessageDescriptor + md_MsgCancelResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassMetadataResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassMetadataResponse") + md_MsgCancelResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCancelResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassMetadataResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCancelResponse)(nil) -type fastReflection_MsgUpdateClassMetadataResponse MsgUpdateClassMetadataResponse +type fastReflection_MsgCancelResponse MsgCancelResponse -func (x *MsgUpdateClassMetadataResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassMetadataResponse)(x) +func (x *MsgCancelResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCancelResponse)(x) } -func (x *MsgUpdateClassMetadataResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgCancelResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12676,43 +13071,43 @@ func (x *MsgUpdateClassMetadataResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassMetadataResponse_messageType fastReflection_MsgUpdateClassMetadataResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassMetadataResponse_messageType{} +var _fastReflection_MsgCancelResponse_messageType fastReflection_MsgCancelResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCancelResponse_messageType{} -type fastReflection_MsgUpdateClassMetadataResponse_messageType struct{} +type fastReflection_MsgCancelResponse_messageType struct{} -func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassMetadataResponse)(nil) +func (x fastReflection_MsgCancelResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCancelResponse)(nil) } -func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassMetadataResponse) +func (x fastReflection_MsgCancelResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCancelResponse) } -func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassMetadataResponse +func (x fastReflection_MsgCancelResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCancelResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassMetadataResponse +func (x *fastReflection_MsgCancelResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCancelResponse } // 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_MsgUpdateClassMetadataResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassMetadataResponse_messageType +func (x *fastReflection_MsgCancelResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCancelResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassMetadataResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassMetadataResponse) +func (x *fastReflection_MsgCancelResponse) New() protoreflect.Message { + return new(fastReflection_MsgCancelResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassMetadataResponse)(x) +func (x *fastReflection_MsgCancelResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCancelResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -12720,7 +13115,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgCancelResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -12734,13 +13129,13 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Range(f func(protoreflec // 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_MsgUpdateClassMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCancelResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) } } @@ -12750,13 +13145,13 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCancelResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) } } @@ -12766,13 +13161,13 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Clear(fd protoreflect.Fi // 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_MsgUpdateClassMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCancelResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", descriptor.FullName())) } } @@ -12786,13 +13181,13 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCancelResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) } } @@ -12806,36 +13201,36 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCancelResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse 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_MsgUpdateClassMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCancelResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse 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_MsgUpdateClassMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCancelResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassMetadataResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCancelResponse", d.FullName())) } panic("unreachable") } @@ -12843,7 +13238,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) WhichOneof(d protoreflec // 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_MsgUpdateClassMetadataResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCancelResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12854,7 +13249,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadataResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCancelResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12866,7 +13261,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) SetUnknown(fields protor // 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_MsgUpdateClassMetadataResponse) IsValid() bool { +func (x *fastReflection_MsgCancelResponse) IsValid() bool { return x != nil } @@ -12876,9 +13271,9 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassMetadataResponse) + x := input.Message.Interface().(*MsgCancelResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12900,7 +13295,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassMetadataResponse) + x := input.Message.Interface().(*MsgCancelResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12930,7 +13325,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassMetadataResponse) + x := input.Message.Interface().(*MsgCancelResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12962,10 +13357,10 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadataResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -13004,29 +13399,29 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa } var ( - md_MsgUpdateProjectAdmin protoreflect.MessageDescriptor - fd_MsgUpdateProjectAdmin_admin protoreflect.FieldDescriptor - fd_MsgUpdateProjectAdmin_project_id protoreflect.FieldDescriptor - fd_MsgUpdateProjectAdmin_new_admin protoreflect.FieldDescriptor + md_MsgUpdateClassAdmin protoreflect.MessageDescriptor + fd_MsgUpdateClassAdmin_admin protoreflect.FieldDescriptor + fd_MsgUpdateClassAdmin_class_id protoreflect.FieldDescriptor + fd_MsgUpdateClassAdmin_new_admin protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateProjectAdmin = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectAdmin") - fd_MsgUpdateProjectAdmin_admin = md_MsgUpdateProjectAdmin.Fields().ByName("admin") - fd_MsgUpdateProjectAdmin_project_id = md_MsgUpdateProjectAdmin.Fields().ByName("project_id") - fd_MsgUpdateProjectAdmin_new_admin = md_MsgUpdateProjectAdmin.Fields().ByName("new_admin") + md_MsgUpdateClassAdmin = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassAdmin") + fd_MsgUpdateClassAdmin_admin = md_MsgUpdateClassAdmin.Fields().ByName("admin") + fd_MsgUpdateClassAdmin_class_id = md_MsgUpdateClassAdmin.Fields().ByName("class_id") + fd_MsgUpdateClassAdmin_new_admin = md_MsgUpdateClassAdmin.Fields().ByName("new_admin") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectAdmin)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassAdmin)(nil) -type fastReflection_MsgUpdateProjectAdmin MsgUpdateProjectAdmin +type fastReflection_MsgUpdateClassAdmin MsgUpdateClassAdmin -func (x *MsgUpdateProjectAdmin) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectAdmin)(x) +func (x *MsgUpdateClassAdmin) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassAdmin)(x) } -func (x *MsgUpdateProjectAdmin) slowProtoReflect() protoreflect.Message { +func (x *MsgUpdateClassAdmin) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13038,43 +13433,43 @@ func (x *MsgUpdateProjectAdmin) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateProjectAdmin_messageType fastReflection_MsgUpdateProjectAdmin_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectAdmin_messageType{} +var _fastReflection_MsgUpdateClassAdmin_messageType fastReflection_MsgUpdateClassAdmin_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassAdmin_messageType{} -type fastReflection_MsgUpdateProjectAdmin_messageType struct{} +type fastReflection_MsgUpdateClassAdmin_messageType struct{} -func (x fastReflection_MsgUpdateProjectAdmin_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectAdmin)(nil) +func (x fastReflection_MsgUpdateClassAdmin_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassAdmin)(nil) } -func (x fastReflection_MsgUpdateProjectAdmin_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectAdmin) +func (x fastReflection_MsgUpdateClassAdmin_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassAdmin) } -func (x fastReflection_MsgUpdateProjectAdmin_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectAdmin +func (x fastReflection_MsgUpdateClassAdmin_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassAdmin } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateProjectAdmin) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectAdmin +func (x *fastReflection_MsgUpdateClassAdmin) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassAdmin } // 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_MsgUpdateProjectAdmin) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateProjectAdmin_messageType +func (x *fastReflection_MsgUpdateClassAdmin) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassAdmin_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateProjectAdmin) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectAdmin) +func (x *fastReflection_MsgUpdateClassAdmin) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassAdmin) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateProjectAdmin) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateProjectAdmin)(x) +func (x *fastReflection_MsgUpdateClassAdmin) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassAdmin)(x) } // Range iterates over every populated field in an undefined order, @@ -13082,22 +13477,22 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateProjectAdmin) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateClassAdmin) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Admin != "" { value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateProjectAdmin_admin, value) { + if !f(fd_MsgUpdateClassAdmin_admin, value) { return } } - if x.ProjectId != "" { - value := protoreflect.ValueOfString(x.ProjectId) - if !f(fd_MsgUpdateProjectAdmin_project_id, value) { + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_MsgUpdateClassAdmin_class_id, value) { return } } if x.NewAdmin != "" { value := protoreflect.ValueOfString(x.NewAdmin) - if !f(fd_MsgUpdateProjectAdmin_new_admin, value) { + if !f(fd_MsgUpdateClassAdmin_new_admin, value) { return } } @@ -13114,19 +13509,19 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Range(f func(protoreflect.FieldDe // 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_MsgUpdateProjectAdmin) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassAdmin) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - return x.ProjectId != "" - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": return x.NewAdmin != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) } } @@ -13136,19 +13531,19 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdmin) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassAdmin) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - x.ProjectId = "" - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": x.NewAdmin = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) } } @@ -13158,22 +13553,22 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Clear(fd protoreflect.FieldDescri // 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_MsgUpdateProjectAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": value := x.Admin return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - value := x.ProjectId + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + value := x.ClassId return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": value := x.NewAdmin return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", descriptor.FullName())) } } @@ -13187,19 +13582,19 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - x.ProjectId = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": x.NewAdmin = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) } } @@ -13213,48 +13608,48 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": - panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - panic(fmt.Errorf("field new_admin of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": + panic(fmt.Errorf("field new_admin of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin 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_MsgUpdateProjectAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin 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_MsgUpdateProjectAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectAdmin", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassAdmin", d.FullName())) } panic("unreachable") } @@ -13262,7 +13657,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) WhichOneof(d protoreflect.OneofDe // 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_MsgUpdateProjectAdmin) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassAdmin) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -13273,7 +13668,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdmin) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassAdmin) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -13285,7 +13680,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) SetUnknown(fields protoreflect.Ra // 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_MsgUpdateProjectAdmin) IsValid() bool { +func (x *fastReflection_MsgUpdateClassAdmin) IsValid() bool { return x != nil } @@ -13295,9 +13690,9 @@ func (x *fastReflection_MsgUpdateProjectAdmin) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateProjectAdmin) + x := input.Message.Interface().(*MsgUpdateClassAdmin) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13313,7 +13708,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ProjectId) + l = len(x.ClassId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -13331,7 +13726,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectAdmin) + x := input.Message.Interface().(*MsgUpdateClassAdmin) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13357,10 +13752,10 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method i-- dAtA[i] = 0x1a } - if len(x.ProjectId) > 0 { - i -= len(x.ProjectId) - copy(dAtA[i:], x.ProjectId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) i-- dAtA[i] = 0x12 } @@ -13382,7 +13777,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectAdmin) + x := input.Message.Interface().(*MsgUpdateClassAdmin) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13414,10 +13809,10 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdmin: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdmin: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdmin: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdmin: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -13454,7 +13849,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13482,7 +13877,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ProjectId = string(dAtA[iNdEx:postIndex]) + x.ClassId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -13552,23 +13947,23 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method } var ( - md_MsgUpdateProjectAdminResponse protoreflect.MessageDescriptor + md_MsgUpdateClassAdminResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateProjectAdminResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectAdminResponse") + md_MsgUpdateClassAdminResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassAdminResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectAdminResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassAdminResponse)(nil) -type fastReflection_MsgUpdateProjectAdminResponse MsgUpdateProjectAdminResponse +type fastReflection_MsgUpdateClassAdminResponse MsgUpdateClassAdminResponse -func (x *MsgUpdateProjectAdminResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectAdminResponse)(x) +func (x *MsgUpdateClassAdminResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassAdminResponse)(x) } -func (x *MsgUpdateProjectAdminResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgUpdateClassAdminResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13580,43 +13975,43 @@ func (x *MsgUpdateProjectAdminResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgUpdateProjectAdminResponse_messageType fastReflection_MsgUpdateProjectAdminResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectAdminResponse_messageType{} +var _fastReflection_MsgUpdateClassAdminResponse_messageType fastReflection_MsgUpdateClassAdminResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassAdminResponse_messageType{} -type fastReflection_MsgUpdateProjectAdminResponse_messageType struct{} +type fastReflection_MsgUpdateClassAdminResponse_messageType struct{} -func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectAdminResponse)(nil) +func (x fastReflection_MsgUpdateClassAdminResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassAdminResponse)(nil) } -func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectAdminResponse) +func (x fastReflection_MsgUpdateClassAdminResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassAdminResponse) } -func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectAdminResponse +func (x fastReflection_MsgUpdateClassAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassAdminResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectAdminResponse +func (x *fastReflection_MsgUpdateClassAdminResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassAdminResponse } // 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_MsgUpdateProjectAdminResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateProjectAdminResponse_messageType +func (x *fastReflection_MsgUpdateClassAdminResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassAdminResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateProjectAdminResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectAdminResponse) +func (x *fastReflection_MsgUpdateClassAdminResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassAdminResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateProjectAdminResponse)(x) +func (x *fastReflection_MsgUpdateClassAdminResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassAdminResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -13624,7 +14019,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateClassAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -13638,13 +14033,13 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Range(f func(protoreflect // 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_MsgUpdateProjectAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) } } @@ -13654,13 +14049,13 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassAdminResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) } } @@ -13670,13 +14065,13 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Clear(fd protoreflect.Fie // 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_MsgUpdateProjectAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", descriptor.FullName())) } } @@ -13690,13 +14085,13 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) } } @@ -13710,36 +14105,36 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse 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_MsgUpdateProjectAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse 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_MsgUpdateProjectAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectAdminResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassAdminResponse", d.FullName())) } panic("unreachable") } @@ -13747,7 +14142,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) WhichOneof(d protoreflect // 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_MsgUpdateProjectAdminResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassAdminResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -13758,7 +14153,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdminResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassAdminResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -13770,7 +14165,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) SetUnknown(fields protore // 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_MsgUpdateProjectAdminResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateClassAdminResponse) IsValid() bool { return x != nil } @@ -13780,9 +14175,9 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassAdminResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateProjectAdminResponse) + x := input.Message.Interface().(*MsgUpdateClassAdminResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13804,7 +14199,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectAdminResponse) + x := input.Message.Interface().(*MsgUpdateClassAdminResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13834,7 +14229,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectAdminResponse) + x := input.Message.Interface().(*MsgUpdateClassAdminResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13866,10 +14261,10 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdminResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdminResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -13907,30 +14302,124 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac } } -var ( - md_MsgUpdateProjectMetadata protoreflect.MessageDescriptor - fd_MsgUpdateProjectMetadata_admin protoreflect.FieldDescriptor - fd_MsgUpdateProjectMetadata_project_id protoreflect.FieldDescriptor - fd_MsgUpdateProjectMetadata_new_metadata protoreflect.FieldDescriptor -) +var _ protoreflect.List = (*_MsgUpdateClassIssuers_3_list)(nil) -func init() { - file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateProjectMetadata = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectMetadata") - fd_MsgUpdateProjectMetadata_admin = md_MsgUpdateProjectMetadata.Fields().ByName("admin") - fd_MsgUpdateProjectMetadata_project_id = md_MsgUpdateProjectMetadata.Fields().ByName("project_id") - fd_MsgUpdateProjectMetadata_new_metadata = md_MsgUpdateProjectMetadata.Fields().ByName("new_metadata") +type _MsgUpdateClassIssuers_3_list struct { + list *[]string } -var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectMetadata)(nil) - -type fastReflection_MsgUpdateProjectMetadata MsgUpdateProjectMetadata - -func (x *MsgUpdateProjectMetadata) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectMetadata)(x) +func (x *_MsgUpdateClassIssuers_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) } -func (x *MsgUpdateProjectMetadata) slowProtoReflect() protoreflect.Message { +func (x *_MsgUpdateClassIssuers_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgUpdateClassIssuers_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgUpdateClassIssuers_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgUpdateClassIssuers_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgUpdateClassIssuers at list field AddIssuers as it is not of Message kind")) +} + +func (x *_MsgUpdateClassIssuers_3_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgUpdateClassIssuers_3_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgUpdateClassIssuers_3_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_MsgUpdateClassIssuers_4_list)(nil) + +type _MsgUpdateClassIssuers_4_list struct { + list *[]string +} + +func (x *_MsgUpdateClassIssuers_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgUpdateClassIssuers_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgUpdateClassIssuers_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgUpdateClassIssuers_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgUpdateClassIssuers_4_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgUpdateClassIssuers at list field RemoveIssuers as it is not of Message kind")) +} + +func (x *_MsgUpdateClassIssuers_4_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgUpdateClassIssuers_4_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgUpdateClassIssuers_4_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgUpdateClassIssuers protoreflect.MessageDescriptor + fd_MsgUpdateClassIssuers_admin protoreflect.FieldDescriptor + fd_MsgUpdateClassIssuers_class_id protoreflect.FieldDescriptor + fd_MsgUpdateClassIssuers_add_issuers protoreflect.FieldDescriptor + fd_MsgUpdateClassIssuers_remove_issuers protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgUpdateClassIssuers = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassIssuers") + fd_MsgUpdateClassIssuers_admin = md_MsgUpdateClassIssuers.Fields().ByName("admin") + fd_MsgUpdateClassIssuers_class_id = md_MsgUpdateClassIssuers.Fields().ByName("class_id") + fd_MsgUpdateClassIssuers_add_issuers = md_MsgUpdateClassIssuers.Fields().ByName("add_issuers") + fd_MsgUpdateClassIssuers_remove_issuers = md_MsgUpdateClassIssuers.Fields().ByName("remove_issuers") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassIssuers)(nil) + +type fastReflection_MsgUpdateClassIssuers MsgUpdateClassIssuers + +func (x *MsgUpdateClassIssuers) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassIssuers)(x) +} + +func (x *MsgUpdateClassIssuers) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13942,43 +14431,43 @@ func (x *MsgUpdateProjectMetadata) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateProjectMetadata_messageType fastReflection_MsgUpdateProjectMetadata_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectMetadata_messageType{} +var _fastReflection_MsgUpdateClassIssuers_messageType fastReflection_MsgUpdateClassIssuers_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassIssuers_messageType{} -type fastReflection_MsgUpdateProjectMetadata_messageType struct{} +type fastReflection_MsgUpdateClassIssuers_messageType struct{} -func (x fastReflection_MsgUpdateProjectMetadata_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectMetadata)(nil) +func (x fastReflection_MsgUpdateClassIssuers_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassIssuers)(nil) } -func (x fastReflection_MsgUpdateProjectMetadata_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectMetadata) +func (x fastReflection_MsgUpdateClassIssuers_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassIssuers) } -func (x fastReflection_MsgUpdateProjectMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectMetadata +func (x fastReflection_MsgUpdateClassIssuers_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassIssuers } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateProjectMetadata) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectMetadata +func (x *fastReflection_MsgUpdateClassIssuers) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassIssuers } // 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_MsgUpdateProjectMetadata) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateProjectMetadata_messageType +func (x *fastReflection_MsgUpdateClassIssuers) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassIssuers_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateProjectMetadata) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectMetadata) +func (x *fastReflection_MsgUpdateClassIssuers) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassIssuers) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateProjectMetadata) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateProjectMetadata)(x) +func (x *fastReflection_MsgUpdateClassIssuers) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassIssuers)(x) } // Range iterates over every populated field in an undefined order, @@ -13986,22 +14475,28 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateProjectMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateClassIssuers) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Admin != "" { value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateProjectMetadata_admin, value) { + if !f(fd_MsgUpdateClassIssuers_admin, value) { return } } - if x.ProjectId != "" { - value := protoreflect.ValueOfString(x.ProjectId) - if !f(fd_MsgUpdateProjectMetadata_project_id, value) { + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_MsgUpdateClassIssuers_class_id, value) { return } } - if x.NewMetadata != "" { - value := protoreflect.ValueOfString(x.NewMetadata) - if !f(fd_MsgUpdateProjectMetadata_new_metadata, value) { + if len(x.AddIssuers) != 0 { + value := protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers}) + if !f(fd_MsgUpdateClassIssuers_add_issuers, value) { + return + } + } + if len(x.RemoveIssuers) != 0 { + value := protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers}) + if !f(fd_MsgUpdateClassIssuers_remove_issuers, value) { return } } @@ -14018,19 +14513,21 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Range(f func(protoreflect.Fiel // 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_MsgUpdateProjectMetadata) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassIssuers) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - return x.ProjectId != "" - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - return x.NewMetadata != "" + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + return len(x.AddIssuers) != 0 + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + return len(x.RemoveIssuers) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) } } @@ -14040,19 +14537,21 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadata) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassIssuers) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - x.ProjectId = "" - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - x.NewMetadata = "" + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + x.AddIssuers = nil + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + x.RemoveIssuers = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) } } @@ -14062,22 +14561,31 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Clear(fd protoreflect.FieldDes // 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_MsgUpdateProjectMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuers) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": value := x.Admin return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - value := x.ProjectId - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - value := x.NewMetadata + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + value := x.ClassId return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + if len(x.AddIssuers) == 0 { + return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{}) + } + listValue := &_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers} + return protoreflect.ValueOfList(listValue) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + if len(x.RemoveIssuers) == 0 { + return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{}) + } + listValue := &_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", descriptor.FullName())) } } @@ -14091,19 +14599,25 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassIssuers) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - x.ProjectId = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - x.NewMetadata = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + lv := value.List() + clv := lv.(*_MsgUpdateClassIssuers_3_list) + x.AddIssuers = *clv.list + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + lv := value.List() + clv := lv.(*_MsgUpdateClassIssuers_4_list) + x.RemoveIssuers = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) } } @@ -14117,48 +14631,62 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuers) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": - panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - panic(fmt.Errorf("field new_metadata of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + if x.AddIssuers == nil { + x.AddIssuers = []string{} + } + value := &_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + if x.RemoveIssuers == nil { + x.RemoveIssuers = []string{} + } + value := &_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassIssuers is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassIssuers is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers 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_MsgUpdateProjectMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuers) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + list := []string{} + return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{list: &list}) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + list := []string{} + return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers 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_MsgUpdateProjectMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassIssuers) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectMetadata", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassIssuers", d.FullName())) } panic("unreachable") } @@ -14166,7 +14694,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) WhichOneof(d protoreflect.Oneo // 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_MsgUpdateProjectMetadata) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassIssuers) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -14177,7 +14705,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadata) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassIssuers) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -14189,7 +14717,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) SetUnknown(fields protoreflect // 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_MsgUpdateProjectMetadata) IsValid() bool { +func (x *fastReflection_MsgUpdateClassIssuers) IsValid() bool { return x != nil } @@ -14199,9 +14727,9 @@ func (x *fastReflection_MsgUpdateProjectMetadata) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateProjectMetadata) + x := input.Message.Interface().(*MsgUpdateClassIssuers) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14217,13 +14745,21 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ProjectId) + l = len(x.ClassId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NewMetadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.AddIssuers) > 0 { + for _, s := range x.AddIssuers { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.RemoveIssuers) > 0 { + for _, s := range x.RemoveIssuers { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -14235,7 +14771,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectMetadata) + x := input.Message.Interface().(*MsgUpdateClassIssuers) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14254,17 +14790,28 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NewMetadata) > 0 { - i -= len(x.NewMetadata) - copy(dAtA[i:], x.NewMetadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewMetadata))) - i-- - dAtA[i] = 0x1a + if len(x.RemoveIssuers) > 0 { + for iNdEx := len(x.RemoveIssuers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.RemoveIssuers[iNdEx]) + copy(dAtA[i:], x.RemoveIssuers[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoveIssuers[iNdEx]))) + i-- + dAtA[i] = 0x22 + } } - if len(x.ProjectId) > 0 { - i -= len(x.ProjectId) - copy(dAtA[i:], x.ProjectId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) + if len(x.AddIssuers) > 0 { + for iNdEx := len(x.AddIssuers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.AddIssuers[iNdEx]) + copy(dAtA[i:], x.AddIssuers[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AddIssuers[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) i-- dAtA[i] = 0x12 } @@ -14286,7 +14833,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectMetadata) + x := input.Message.Interface().(*MsgUpdateClassIssuers) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14318,10 +14865,10 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadata: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuers: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuers: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -14358,7 +14905,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14386,11 +14933,11 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ProjectId = string(dAtA[iNdEx:postIndex]) + x.ClassId = 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 NewMetadata", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AddIssuers", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14418,7 +14965,39 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NewMetadata = string(dAtA[iNdEx:postIndex]) + x.AddIssuers = append(x.AddIssuers, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RemoveIssuers", 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.RemoveIssuers = append(x.RemoveIssuers, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -14456,23 +15035,23 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met } var ( - md_MsgUpdateProjectMetadataResponse protoreflect.MessageDescriptor + md_MsgUpdateClassIssuersResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateProjectMetadataResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectMetadataResponse") + md_MsgUpdateClassIssuersResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassIssuersResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectMetadataResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassIssuersResponse)(nil) -type fastReflection_MsgUpdateProjectMetadataResponse MsgUpdateProjectMetadataResponse +type fastReflection_MsgUpdateClassIssuersResponse MsgUpdateClassIssuersResponse -func (x *MsgUpdateProjectMetadataResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectMetadataResponse)(x) +func (x *MsgUpdateClassIssuersResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassIssuersResponse)(x) } -func (x *MsgUpdateProjectMetadataResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgUpdateClassIssuersResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -14484,43 +15063,43 @@ func (x *MsgUpdateProjectMetadataResponse) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_MsgUpdateProjectMetadataResponse_messageType fastReflection_MsgUpdateProjectMetadataResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectMetadataResponse_messageType{} +var _fastReflection_MsgUpdateClassIssuersResponse_messageType fastReflection_MsgUpdateClassIssuersResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassIssuersResponse_messageType{} -type fastReflection_MsgUpdateProjectMetadataResponse_messageType struct{} +type fastReflection_MsgUpdateClassIssuersResponse_messageType struct{} -func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectMetadataResponse)(nil) +func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassIssuersResponse)(nil) } -func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectMetadataResponse) +func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassIssuersResponse) } -func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectMetadataResponse +func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassIssuersResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectMetadataResponse +func (x *fastReflection_MsgUpdateClassIssuersResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassIssuersResponse } // 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_MsgUpdateProjectMetadataResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateProjectMetadataResponse_messageType +func (x *fastReflection_MsgUpdateClassIssuersResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassIssuersResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectMetadataResponse) +func (x *fastReflection_MsgUpdateClassIssuersResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassIssuersResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateProjectMetadataResponse)(x) +func (x *fastReflection_MsgUpdateClassIssuersResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassIssuersResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -14528,7 +15107,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -14542,13 +15121,13 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Range(f func(protorefl // 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_MsgUpdateProjectMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) } } @@ -14558,13 +15137,13 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) } } @@ -14574,13 +15153,13 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Clear(fd protoreflect. // 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_MsgUpdateProjectMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", descriptor.FullName())) } } @@ -14594,13 +15173,13 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) } } @@ -14614,36 +15193,36 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse 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_MsgUpdateProjectMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse 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_MsgUpdateProjectMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassIssuersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassIssuersResponse", d.FullName())) } panic("unreachable") } @@ -14651,7 +15230,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) WhichOneof(d protorefl // 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_MsgUpdateProjectMetadataResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassIssuersResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -14662,7 +15241,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassIssuersResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -14674,7 +15253,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) SetUnknown(fields prot // 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_MsgUpdateProjectMetadataResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateClassIssuersResponse) IsValid() bool { return x != nil } @@ -14684,9 +15263,9 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateProjectMetadataResponse) + x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14708,7 +15287,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectMetadataResponse) + x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14738,7 +15317,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectMetadataResponse) + x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14770,10 +15349,10 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadataResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuersResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuersResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -14811,83 +15390,30 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoi } } -var _ protoreflect.List = (*_MsgBridge_4_list)(nil) - -type _MsgBridge_4_list struct { - list *[]*Credits -} - -func (x *_MsgBridge_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgBridge_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgBridge_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Credits) - (*x.list)[i] = concreteValue -} - -func (x *_MsgBridge_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Credits) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgBridge_4_list) AppendMutable() protoreflect.Value { - v := new(Credits) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgBridge_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgBridge_4_list) NewElement() protoreflect.Value { - v := new(Credits) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgBridge_4_list) IsValid() bool { - return x.list != nil -} - var ( - md_MsgBridge protoreflect.MessageDescriptor - fd_MsgBridge_owner protoreflect.FieldDescriptor - fd_MsgBridge_target protoreflect.FieldDescriptor - fd_MsgBridge_recipient protoreflect.FieldDescriptor - fd_MsgBridge_credits protoreflect.FieldDescriptor + md_MsgUpdateClassMetadata protoreflect.MessageDescriptor + fd_MsgUpdateClassMetadata_admin protoreflect.FieldDescriptor + fd_MsgUpdateClassMetadata_class_id protoreflect.FieldDescriptor + fd_MsgUpdateClassMetadata_new_metadata protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgBridge = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridge") - fd_MsgBridge_owner = md_MsgBridge.Fields().ByName("owner") - fd_MsgBridge_target = md_MsgBridge.Fields().ByName("target") - fd_MsgBridge_recipient = md_MsgBridge.Fields().ByName("recipient") - fd_MsgBridge_credits = md_MsgBridge.Fields().ByName("credits") + md_MsgUpdateClassMetadata = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassMetadata") + fd_MsgUpdateClassMetadata_admin = md_MsgUpdateClassMetadata.Fields().ByName("admin") + fd_MsgUpdateClassMetadata_class_id = md_MsgUpdateClassMetadata.Fields().ByName("class_id") + fd_MsgUpdateClassMetadata_new_metadata = md_MsgUpdateClassMetadata.Fields().ByName("new_metadata") } -var _ protoreflect.Message = (*fastReflection_MsgBridge)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassMetadata)(nil) -type fastReflection_MsgBridge MsgBridge +type fastReflection_MsgUpdateClassMetadata MsgUpdateClassMetadata -func (x *MsgBridge) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBridge)(x) +func (x *MsgUpdateClassMetadata) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassMetadata)(x) } -func (x *MsgBridge) slowProtoReflect() protoreflect.Message { +func (x *MsgUpdateClassMetadata) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -14899,43 +15425,43 @@ func (x *MsgBridge) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgBridge_messageType fastReflection_MsgBridge_messageType -var _ protoreflect.MessageType = fastReflection_MsgBridge_messageType{} +var _fastReflection_MsgUpdateClassMetadata_messageType fastReflection_MsgUpdateClassMetadata_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassMetadata_messageType{} -type fastReflection_MsgBridge_messageType struct{} +type fastReflection_MsgUpdateClassMetadata_messageType struct{} -func (x fastReflection_MsgBridge_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBridge)(nil) +func (x fastReflection_MsgUpdateClassMetadata_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassMetadata)(nil) } -func (x fastReflection_MsgBridge_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBridge) +func (x fastReflection_MsgUpdateClassMetadata_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassMetadata) } -func (x fastReflection_MsgBridge_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridge +func (x fastReflection_MsgUpdateClassMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassMetadata } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgBridge) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridge +func (x *fastReflection_MsgUpdateClassMetadata) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassMetadata } // 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_MsgBridge) Type() protoreflect.MessageType { - return _fastReflection_MsgBridge_messageType +func (x *fastReflection_MsgUpdateClassMetadata) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassMetadata_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBridge) New() protoreflect.Message { - return new(fastReflection_MsgBridge) +func (x *fastReflection_MsgUpdateClassMetadata) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassMetadata) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBridge) Interface() protoreflect.ProtoMessage { - return (*MsgBridge)(x) +func (x *fastReflection_MsgUpdateClassMetadata) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassMetadata)(x) } // Range iterates over every populated field in an undefined order, @@ -14943,28 +15469,22 @@ func (x *fastReflection_MsgBridge) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgBridge) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_MsgBridge_owner, value) { - return - } - } - if x.Target != "" { - value := protoreflect.ValueOfString(x.Target) - if !f(fd_MsgBridge_target, value) { +func (x *fastReflection_MsgUpdateClassMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgUpdateClassMetadata_admin, value) { return } } - if x.Recipient != "" { - value := protoreflect.ValueOfString(x.Recipient) - if !f(fd_MsgBridge_recipient, value) { + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_MsgUpdateClassMetadata_class_id, value) { return } } - if len(x.Credits) != 0 { - value := protoreflect.ValueOfList(&_MsgBridge_4_list{list: &x.Credits}) - if !f(fd_MsgBridge_credits, value) { + if x.NewMetadata != "" { + value := protoreflect.ValueOfString(x.NewMetadata) + if !f(fd_MsgUpdateClassMetadata_new_metadata, value) { return } } @@ -14981,21 +15501,19 @@ func (x *fastReflection_MsgBridge) Range(f func(protoreflect.FieldDescriptor, pr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgBridge) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassMetadata) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.owner": - return x.Owner != "" - case "regen.ecocredit.v1.MsgBridge.target": - return x.Target != "" - case "regen.ecocredit.v1.MsgBridge.recipient": - return x.Recipient != "" - case "regen.ecocredit.v1.MsgBridge.credits": - return len(x.Credits) != 0 + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + return x.Admin != "" + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": + return x.NewMetadata != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) } } @@ -15005,21 +15523,19 @@ func (x *fastReflection_MsgBridge) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassMetadata) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.owner": - x.Owner = "" - case "regen.ecocredit.v1.MsgBridge.target": - x.Target = "" - case "regen.ecocredit.v1.MsgBridge.recipient": - x.Recipient = "" - case "regen.ecocredit.v1.MsgBridge.credits": - x.Credits = nil + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + x.Admin = "" + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": + x.NewMetadata = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) } } @@ -15029,28 +15545,22 @@ func (x *fastReflection_MsgBridge) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgBridge) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgBridge.owner": - value := x.Owner + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + value := x.Admin return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridge.target": - value := x.Target + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + value := x.ClassId return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridge.recipient": - value := x.Recipient + case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": + value := x.NewMetadata return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridge.credits": - if len(x.Credits) == 0 { - return protoreflect.ValueOfList(&_MsgBridge_4_list{}) - } - listValue := &_MsgBridge_4_list{list: &x.Credits} - return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", descriptor.FullName())) } } @@ -15064,23 +15574,19 @@ func (x *fastReflection_MsgBridge) Get(descriptor protoreflect.FieldDescriptor) // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.owner": - x.Owner = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridge.target": - x.Target = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridge.recipient": - x.Recipient = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridge.credits": - lv := value.List() - clv := lv.(*_MsgBridge_4_list) - x.Credits = *clv.list + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + x.Admin = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": + x.NewMetadata = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) } } @@ -15094,57 +15600,48 @@ func (x *fastReflection_MsgBridge) Set(fd protoreflect.FieldDescriptor, value pr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.credits": - if x.Credits == nil { - x.Credits = []*Credits{} - } - value := &_MsgBridge_4_list{list: &x.Credits} - return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgBridge.owner": - panic(fmt.Errorf("field owner of message regen.ecocredit.v1.MsgBridge is not mutable")) - case "regen.ecocredit.v1.MsgBridge.target": - panic(fmt.Errorf("field target of message regen.ecocredit.v1.MsgBridge is not mutable")) - case "regen.ecocredit.v1.MsgBridge.recipient": - panic(fmt.Errorf("field recipient of message regen.ecocredit.v1.MsgBridge is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": + panic(fmt.Errorf("field new_metadata of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata 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_MsgBridge) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.owner": + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridge.target": + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridge.recipient": + case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridge.credits": - list := []*Credits{} - return protoreflect.ValueOfList(&_MsgBridge_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata 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_MsgBridge) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridge", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassMetadata", d.FullName())) } panic("unreachable") } @@ -15152,7 +15649,7 @@ func (x *fastReflection_MsgBridge) WhichOneof(d protoreflect.OneofDescriptor) pr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgBridge) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassMetadata) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -15163,7 +15660,7 @@ func (x *fastReflection_MsgBridge) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassMetadata) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -15175,7 +15672,7 @@ func (x *fastReflection_MsgBridge) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgBridge) IsValid() bool { +func (x *fastReflection_MsgUpdateClassMetadata) IsValid() bool { return x != nil } @@ -15185,9 +15682,9 @@ func (x *fastReflection_MsgBridge) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBridge) + x := input.Message.Interface().(*MsgUpdateClassMetadata) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15199,24 +15696,18 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Owner) + l = len(x.Admin) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Target) + l = len(x.ClassId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Recipient) + l = len(x.NewMetadata) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Credits) > 0 { - for _, e := range x.Credits { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -15227,7 +15718,7 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgBridge) + x := input.Message.Interface().(*MsgUpdateClassMetadata) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15246,40 +15737,24 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Credits) > 0 { - for iNdEx := len(x.Credits) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Credits[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.Recipient) > 0 { - i -= len(x.Recipient) - copy(dAtA[i:], x.Recipient) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + if len(x.NewMetadata) > 0 { + i -= len(x.NewMetadata) + copy(dAtA[i:], x.NewMetadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewMetadata))) i-- dAtA[i] = 0x1a } - if len(x.Target) > 0 { - i -= len(x.Target) - copy(dAtA[i:], x.Target) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Target))) + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) i-- dAtA[i] = 0x12 } - if len(x.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) + if len(x.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) i-- dAtA[i] = 0xa } @@ -15294,7 +15769,7 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgBridge) + x := input.Message.Interface().(*MsgUpdateClassMetadata) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15326,15 +15801,15 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridge: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadata: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridge: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadata: 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 Owner", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15362,11 +15837,11 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Owner = string(dAtA[iNdEx:postIndex]) + x.Admin = 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 Target", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15394,11 +15869,11 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Target = string(dAtA[iNdEx:postIndex]) + x.ClassId = 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 Recipient", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewMetadata", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15426,42 +15901,3762 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Recipient = string(dAtA[iNdEx:postIndex]) + x.NewMetadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Credits", 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 - } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - if msglen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 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 (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_MsgUpdateClassMetadataResponse protoreflect.MessageDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgUpdateClassMetadataResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassMetadataResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassMetadataResponse)(nil) + +type fastReflection_MsgUpdateClassMetadataResponse MsgUpdateClassMetadataResponse + +func (x *MsgUpdateClassMetadataResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassMetadataResponse)(x) +} + +func (x *MsgUpdateClassMetadataResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[29] + 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_MsgUpdateClassMetadataResponse_messageType fastReflection_MsgUpdateClassMetadataResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassMetadataResponse_messageType{} + +type fastReflection_MsgUpdateClassMetadataResponse_messageType struct{} + +func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassMetadataResponse)(nil) +} +func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassMetadataResponse) +} +func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassMetadataResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateClassMetadataResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassMetadataResponse +} + +// 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_MsgUpdateClassMetadataResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassMetadataResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateClassMetadataResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassMetadataResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateClassMetadataResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassMetadataResponse)(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_MsgUpdateClassMetadataResponse) 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_MsgUpdateClassMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse 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_MsgUpdateClassMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse 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_MsgUpdateClassMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse 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_MsgUpdateClassMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse 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_MsgUpdateClassMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse 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_MsgUpdateClassMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse 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_MsgUpdateClassMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassMetadataResponse", 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_MsgUpdateClassMetadataResponse) 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_MsgUpdateClassMetadataResponse) 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_MsgUpdateClassMetadataResponse) 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_MsgUpdateClassMetadataResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateClassMetadataResponse) + 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().(*MsgUpdateClassMetadataResponse) + 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().(*MsgUpdateClassMetadataResponse) + 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: MsgUpdateClassMetadataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadataResponse: 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_MsgUpdateProjectAdmin protoreflect.MessageDescriptor + fd_MsgUpdateProjectAdmin_admin protoreflect.FieldDescriptor + fd_MsgUpdateProjectAdmin_project_id protoreflect.FieldDescriptor + fd_MsgUpdateProjectAdmin_new_admin protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgUpdateProjectAdmin = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectAdmin") + fd_MsgUpdateProjectAdmin_admin = md_MsgUpdateProjectAdmin.Fields().ByName("admin") + fd_MsgUpdateProjectAdmin_project_id = md_MsgUpdateProjectAdmin.Fields().ByName("project_id") + fd_MsgUpdateProjectAdmin_new_admin = md_MsgUpdateProjectAdmin.Fields().ByName("new_admin") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectAdmin)(nil) + +type fastReflection_MsgUpdateProjectAdmin MsgUpdateProjectAdmin + +func (x *MsgUpdateProjectAdmin) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectAdmin)(x) +} + +func (x *MsgUpdateProjectAdmin) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[30] + 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_MsgUpdateProjectAdmin_messageType fastReflection_MsgUpdateProjectAdmin_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectAdmin_messageType{} + +type fastReflection_MsgUpdateProjectAdmin_messageType struct{} + +func (x fastReflection_MsgUpdateProjectAdmin_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectAdmin)(nil) +} +func (x fastReflection_MsgUpdateProjectAdmin_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectAdmin) +} +func (x fastReflection_MsgUpdateProjectAdmin_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectAdmin +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateProjectAdmin) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectAdmin +} + +// 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_MsgUpdateProjectAdmin) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectAdmin_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateProjectAdmin) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectAdmin) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateProjectAdmin) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectAdmin)(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_MsgUpdateProjectAdmin) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgUpdateProjectAdmin_admin, value) { + return + } + } + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_MsgUpdateProjectAdmin_project_id, value) { + return + } + } + if x.NewAdmin != "" { + value := protoreflect.ValueOfString(x.NewAdmin) + if !f(fd_MsgUpdateProjectAdmin_new_admin, 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_MsgUpdateProjectAdmin) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + return x.Admin != "" + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + return x.ProjectId != "" + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + return x.NewAdmin != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin 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_MsgUpdateProjectAdmin) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + x.Admin = "" + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + x.ProjectId = "" + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + x.NewAdmin = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin 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_MsgUpdateProjectAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + value := x.Admin + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + value := x.ProjectId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + value := x.NewAdmin + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin 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_MsgUpdateProjectAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + x.Admin = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + x.ProjectId = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + x.NewAdmin = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin 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_MsgUpdateProjectAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + panic(fmt.Errorf("field new_admin of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin 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_MsgUpdateProjectAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin 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_MsgUpdateProjectAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectAdmin", 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_MsgUpdateProjectAdmin) 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_MsgUpdateProjectAdmin) 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_MsgUpdateProjectAdmin) 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_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateProjectAdmin) + 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.Admin) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ProjectId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewAdmin) + 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().(*MsgUpdateProjectAdmin) + 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.NewAdmin) > 0 { + i -= len(x.NewAdmin) + copy(dAtA[i:], x.NewAdmin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAdmin))) + i-- + dAtA[i] = 0x1a + } + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + 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().(*MsgUpdateProjectAdmin) + 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: MsgUpdateProjectAdmin: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdmin: 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 Admin", 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.Admin = 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 ProjectId", 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.ProjectId = 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 NewAdmin", 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.NewAdmin = 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_MsgUpdateProjectAdminResponse protoreflect.MessageDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgUpdateProjectAdminResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectAdminResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectAdminResponse)(nil) + +type fastReflection_MsgUpdateProjectAdminResponse MsgUpdateProjectAdminResponse + +func (x *MsgUpdateProjectAdminResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectAdminResponse)(x) +} + +func (x *MsgUpdateProjectAdminResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[31] + 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_MsgUpdateProjectAdminResponse_messageType fastReflection_MsgUpdateProjectAdminResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectAdminResponse_messageType{} + +type fastReflection_MsgUpdateProjectAdminResponse_messageType struct{} + +func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectAdminResponse)(nil) +} +func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectAdminResponse) +} +func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectAdminResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateProjectAdminResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectAdminResponse +} + +// 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_MsgUpdateProjectAdminResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectAdminResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateProjectAdminResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectAdminResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateProjectAdminResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectAdminResponse)(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_MsgUpdateProjectAdminResponse) 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_MsgUpdateProjectAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse 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_MsgUpdateProjectAdminResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse 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_MsgUpdateProjectAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse 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_MsgUpdateProjectAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse 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_MsgUpdateProjectAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse 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_MsgUpdateProjectAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse 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_MsgUpdateProjectAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectAdminResponse", 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_MsgUpdateProjectAdminResponse) 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_MsgUpdateProjectAdminResponse) 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_MsgUpdateProjectAdminResponse) 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_MsgUpdateProjectAdminResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateProjectAdminResponse) + 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().(*MsgUpdateProjectAdminResponse) + 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().(*MsgUpdateProjectAdminResponse) + 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: MsgUpdateProjectAdminResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdminResponse: 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_MsgUpdateProjectMetadata protoreflect.MessageDescriptor + fd_MsgUpdateProjectMetadata_admin protoreflect.FieldDescriptor + fd_MsgUpdateProjectMetadata_project_id protoreflect.FieldDescriptor + fd_MsgUpdateProjectMetadata_new_metadata protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgUpdateProjectMetadata = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectMetadata") + fd_MsgUpdateProjectMetadata_admin = md_MsgUpdateProjectMetadata.Fields().ByName("admin") + fd_MsgUpdateProjectMetadata_project_id = md_MsgUpdateProjectMetadata.Fields().ByName("project_id") + fd_MsgUpdateProjectMetadata_new_metadata = md_MsgUpdateProjectMetadata.Fields().ByName("new_metadata") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectMetadata)(nil) + +type fastReflection_MsgUpdateProjectMetadata MsgUpdateProjectMetadata + +func (x *MsgUpdateProjectMetadata) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectMetadata)(x) +} + +func (x *MsgUpdateProjectMetadata) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[32] + 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_MsgUpdateProjectMetadata_messageType fastReflection_MsgUpdateProjectMetadata_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectMetadata_messageType{} + +type fastReflection_MsgUpdateProjectMetadata_messageType struct{} + +func (x fastReflection_MsgUpdateProjectMetadata_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectMetadata)(nil) +} +func (x fastReflection_MsgUpdateProjectMetadata_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectMetadata) +} +func (x fastReflection_MsgUpdateProjectMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectMetadata +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateProjectMetadata) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectMetadata +} + +// 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_MsgUpdateProjectMetadata) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectMetadata_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateProjectMetadata) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectMetadata) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateProjectMetadata) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectMetadata)(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_MsgUpdateProjectMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgUpdateProjectMetadata_admin, value) { + return + } + } + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_MsgUpdateProjectMetadata_project_id, value) { + return + } + } + if x.NewMetadata != "" { + value := protoreflect.ValueOfString(x.NewMetadata) + if !f(fd_MsgUpdateProjectMetadata_new_metadata, 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_MsgUpdateProjectMetadata) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + return x.Admin != "" + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + return x.ProjectId != "" + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + return x.NewMetadata != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata 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_MsgUpdateProjectMetadata) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + x.Admin = "" + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + x.ProjectId = "" + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + x.NewMetadata = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata 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_MsgUpdateProjectMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + value := x.Admin + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + value := x.ProjectId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + value := x.NewMetadata + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata 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_MsgUpdateProjectMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + x.Admin = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + x.ProjectId = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + x.NewMetadata = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata 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_MsgUpdateProjectMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + panic(fmt.Errorf("field new_metadata of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata 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_MsgUpdateProjectMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata 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_MsgUpdateProjectMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectMetadata", 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_MsgUpdateProjectMetadata) 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_MsgUpdateProjectMetadata) 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_MsgUpdateProjectMetadata) 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_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateProjectMetadata) + 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.Admin) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ProjectId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewMetadata) + 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().(*MsgUpdateProjectMetadata) + 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.NewMetadata) > 0 { + i -= len(x.NewMetadata) + copy(dAtA[i:], x.NewMetadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewMetadata))) + i-- + dAtA[i] = 0x1a + } + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + 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().(*MsgUpdateProjectMetadata) + 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: MsgUpdateProjectMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadata: 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 Admin", 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.Admin = 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 ProjectId", 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.ProjectId = 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 NewMetadata", 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.NewMetadata = 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_MsgUpdateProjectMetadataResponse protoreflect.MessageDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgUpdateProjectMetadataResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectMetadataResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectMetadataResponse)(nil) + +type fastReflection_MsgUpdateProjectMetadataResponse MsgUpdateProjectMetadataResponse + +func (x *MsgUpdateProjectMetadataResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectMetadataResponse)(x) +} + +func (x *MsgUpdateProjectMetadataResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[33] + 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_MsgUpdateProjectMetadataResponse_messageType fastReflection_MsgUpdateProjectMetadataResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectMetadataResponse_messageType{} + +type fastReflection_MsgUpdateProjectMetadataResponse_messageType struct{} + +func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectMetadataResponse)(nil) +} +func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectMetadataResponse) +} +func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectMetadataResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectMetadataResponse +} + +// 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_MsgUpdateProjectMetadataResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectMetadataResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateProjectMetadataResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectMetadataResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectMetadataResponse)(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_MsgUpdateProjectMetadataResponse) 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_MsgUpdateProjectMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse 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_MsgUpdateProjectMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse 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_MsgUpdateProjectMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse 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_MsgUpdateProjectMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse 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_MsgUpdateProjectMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse 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_MsgUpdateProjectMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse 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_MsgUpdateProjectMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", 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_MsgUpdateProjectMetadataResponse) 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_MsgUpdateProjectMetadataResponse) 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_MsgUpdateProjectMetadataResponse) 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_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateProjectMetadataResponse) + 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().(*MsgUpdateProjectMetadataResponse) + 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().(*MsgUpdateProjectMetadataResponse) + 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: MsgUpdateProjectMetadataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadataResponse: 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 _ protoreflect.List = (*_MsgBridge_4_list)(nil) + +type _MsgBridge_4_list struct { + list *[]*Credits +} + +func (x *_MsgBridge_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgBridge_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgBridge_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Credits) + (*x.list)[i] = concreteValue +} + +func (x *_MsgBridge_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Credits) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgBridge_4_list) AppendMutable() protoreflect.Value { + v := new(Credits) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgBridge_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgBridge_4_list) NewElement() protoreflect.Value { + v := new(Credits) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgBridge_4_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgBridge protoreflect.MessageDescriptor + fd_MsgBridge_owner protoreflect.FieldDescriptor + fd_MsgBridge_target protoreflect.FieldDescriptor + fd_MsgBridge_recipient protoreflect.FieldDescriptor + fd_MsgBridge_credits protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgBridge = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridge") + fd_MsgBridge_owner = md_MsgBridge.Fields().ByName("owner") + fd_MsgBridge_target = md_MsgBridge.Fields().ByName("target") + fd_MsgBridge_recipient = md_MsgBridge.Fields().ByName("recipient") + fd_MsgBridge_credits = md_MsgBridge.Fields().ByName("credits") +} + +var _ protoreflect.Message = (*fastReflection_MsgBridge)(nil) + +type fastReflection_MsgBridge MsgBridge + +func (x *MsgBridge) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBridge)(x) +} + +func (x *MsgBridge) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[34] + 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_MsgBridge_messageType fastReflection_MsgBridge_messageType +var _ protoreflect.MessageType = fastReflection_MsgBridge_messageType{} + +type fastReflection_MsgBridge_messageType struct{} + +func (x fastReflection_MsgBridge_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBridge)(nil) +} +func (x fastReflection_MsgBridge_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBridge) +} +func (x fastReflection_MsgBridge_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridge +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgBridge) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridge +} + +// 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_MsgBridge) Type() protoreflect.MessageType { + return _fastReflection_MsgBridge_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgBridge) New() protoreflect.Message { + return new(fastReflection_MsgBridge) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgBridge) Interface() protoreflect.ProtoMessage { + return (*MsgBridge)(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_MsgBridge) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_MsgBridge_owner, value) { + return + } + } + if x.Target != "" { + value := protoreflect.ValueOfString(x.Target) + if !f(fd_MsgBridge_target, value) { + return + } + } + if x.Recipient != "" { + value := protoreflect.ValueOfString(x.Recipient) + if !f(fd_MsgBridge_recipient, value) { + return + } + } + if len(x.Credits) != 0 { + value := protoreflect.ValueOfList(&_MsgBridge_4_list{list: &x.Credits}) + if !f(fd_MsgBridge_credits, 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_MsgBridge) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridge.owner": + return x.Owner != "" + case "regen.ecocredit.v1.MsgBridge.target": + return x.Target != "" + case "regen.ecocredit.v1.MsgBridge.recipient": + return x.Recipient != "" + case "regen.ecocredit.v1.MsgBridge.credits": + return len(x.Credits) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge 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_MsgBridge) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridge.owner": + x.Owner = "" + case "regen.ecocredit.v1.MsgBridge.target": + x.Target = "" + case "regen.ecocredit.v1.MsgBridge.recipient": + x.Recipient = "" + case "regen.ecocredit.v1.MsgBridge.credits": + x.Credits = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge 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_MsgBridge) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgBridge.owner": + value := x.Owner + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridge.target": + value := x.Target + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridge.recipient": + value := x.Recipient + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridge.credits": + if len(x.Credits) == 0 { + return protoreflect.ValueOfList(&_MsgBridge_4_list{}) + } + listValue := &_MsgBridge_4_list{list: &x.Credits} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge 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_MsgBridge) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridge.owner": + x.Owner = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridge.target": + x.Target = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridge.recipient": + x.Recipient = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridge.credits": + lv := value.List() + clv := lv.(*_MsgBridge_4_list) + x.Credits = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge 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_MsgBridge) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridge.credits": + if x.Credits == nil { + x.Credits = []*Credits{} + } + value := &_MsgBridge_4_list{list: &x.Credits} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.MsgBridge.owner": + panic(fmt.Errorf("field owner of message regen.ecocredit.v1.MsgBridge is not mutable")) + case "regen.ecocredit.v1.MsgBridge.target": + panic(fmt.Errorf("field target of message regen.ecocredit.v1.MsgBridge is not mutable")) + case "regen.ecocredit.v1.MsgBridge.recipient": + panic(fmt.Errorf("field recipient of message regen.ecocredit.v1.MsgBridge is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge 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_MsgBridge) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridge.owner": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridge.target": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridge.recipient": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridge.credits": + list := []*Credits{} + return protoreflect.ValueOfList(&_MsgBridge_4_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge 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_MsgBridge) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridge", 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_MsgBridge) 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_MsgBridge) 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_MsgBridge) 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_MsgBridge) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgBridge) + 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.Owner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Target) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Recipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Credits) > 0 { + for _, e := range x.Credits { + 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().(*MsgBridge) + 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.Credits) > 0 { + for iNdEx := len(x.Credits) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Credits[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.Recipient) > 0 { + i -= len(x.Recipient) + copy(dAtA[i:], x.Recipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + i-- + dAtA[i] = 0x1a + } + if len(x.Target) > 0 { + i -= len(x.Target) + copy(dAtA[i:], x.Target) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Target))) + i-- + dAtA[i] = 0x12 + } + if len(x.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) + 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().(*MsgBridge) + 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: MsgBridge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridge: 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 Owner", 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.Owner = 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 Target", 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.Target = 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 Recipient", 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.Recipient = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Credits", 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.Credits = append(x.Credits, &Credits{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-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_MsgUpdateBatchMetadata protoreflect.MessageDescriptor + fd_MsgUpdateBatchMetadata_issuer protoreflect.FieldDescriptor + fd_MsgUpdateBatchMetadata_batch_denom protoreflect.FieldDescriptor + fd_MsgUpdateBatchMetadata_new_metadata protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgUpdateBatchMetadata = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateBatchMetadata") + fd_MsgUpdateBatchMetadata_issuer = md_MsgUpdateBatchMetadata.Fields().ByName("issuer") + fd_MsgUpdateBatchMetadata_batch_denom = md_MsgUpdateBatchMetadata.Fields().ByName("batch_denom") + fd_MsgUpdateBatchMetadata_new_metadata = md_MsgUpdateBatchMetadata.Fields().ByName("new_metadata") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateBatchMetadata)(nil) + +type fastReflection_MsgUpdateBatchMetadata MsgUpdateBatchMetadata + +func (x *MsgUpdateBatchMetadata) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateBatchMetadata)(x) +} + +func (x *MsgUpdateBatchMetadata) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[35] + 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_MsgUpdateBatchMetadata_messageType fastReflection_MsgUpdateBatchMetadata_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateBatchMetadata_messageType{} + +type fastReflection_MsgUpdateBatchMetadata_messageType struct{} + +func (x fastReflection_MsgUpdateBatchMetadata_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateBatchMetadata)(nil) +} +func (x fastReflection_MsgUpdateBatchMetadata_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateBatchMetadata) +} +func (x fastReflection_MsgUpdateBatchMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateBatchMetadata +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateBatchMetadata) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateBatchMetadata +} + +// 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_MsgUpdateBatchMetadata) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateBatchMetadata_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateBatchMetadata) New() protoreflect.Message { + return new(fastReflection_MsgUpdateBatchMetadata) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateBatchMetadata) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateBatchMetadata)(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_MsgUpdateBatchMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Issuer != "" { + value := protoreflect.ValueOfString(x.Issuer) + if !f(fd_MsgUpdateBatchMetadata_issuer, value) { + return + } + } + if x.BatchDenom != "" { + value := protoreflect.ValueOfString(x.BatchDenom) + if !f(fd_MsgUpdateBatchMetadata_batch_denom, value) { + return + } + } + if x.NewMetadata != "" { + value := protoreflect.ValueOfString(x.NewMetadata) + if !f(fd_MsgUpdateBatchMetadata_new_metadata, 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_MsgUpdateBatchMetadata) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": + return x.Issuer != "" + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": + return x.BatchDenom != "" + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": + return x.NewMetadata != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata 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_MsgUpdateBatchMetadata) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": + x.Issuer = "" + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": + x.BatchDenom = "" + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": + x.NewMetadata = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata 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_MsgUpdateBatchMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": + value := x.Issuer + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": + value := x.BatchDenom + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": + value := x.NewMetadata + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata 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_MsgUpdateBatchMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": + x.Issuer = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": + x.BatchDenom = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": + x.NewMetadata = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata 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_MsgUpdateBatchMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": + panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgUpdateBatchMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": + panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgUpdateBatchMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": + panic(fmt.Errorf("field new_metadata of message regen.ecocredit.v1.MsgUpdateBatchMetadata is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata 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_MsgUpdateBatchMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata 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_MsgUpdateBatchMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateBatchMetadata", 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_MsgUpdateBatchMetadata) 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_MsgUpdateBatchMetadata) 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_MsgUpdateBatchMetadata) 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_MsgUpdateBatchMetadata) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateBatchMetadata) + 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.Issuer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BatchDenom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewMetadata) + 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().(*MsgUpdateBatchMetadata) + 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.NewMetadata) > 0 { + i -= len(x.NewMetadata) + copy(dAtA[i:], x.NewMetadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewMetadata))) + i-- + dAtA[i] = 0x1a + } + if len(x.BatchDenom) > 0 { + i -= len(x.BatchDenom) + copy(dAtA[i:], x.BatchDenom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) + i-- + dAtA[i] = 0x12 + } + if len(x.Issuer) > 0 { + i -= len(x.Issuer) + copy(dAtA[i:], x.Issuer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) + 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().(*MsgUpdateBatchMetadata) + 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: MsgUpdateBatchMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateBatchMetadata: 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 Issuer", 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.Issuer = 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 BatchDenom", 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.BatchDenom = 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 NewMetadata", 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.NewMetadata = 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_MsgUpdateBatchMetadataResponse protoreflect.MessageDescriptor +) + +func init() { + file_regen_ecocredit_v1_tx_proto_init() + md_MsgUpdateBatchMetadataResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateBatchMetadataResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateBatchMetadataResponse)(nil) + +type fastReflection_MsgUpdateBatchMetadataResponse MsgUpdateBatchMetadataResponse + +func (x *MsgUpdateBatchMetadataResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateBatchMetadataResponse)(x) +} + +func (x *MsgUpdateBatchMetadataResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[36] + 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_MsgUpdateBatchMetadataResponse_messageType fastReflection_MsgUpdateBatchMetadataResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateBatchMetadataResponse_messageType{} + +type fastReflection_MsgUpdateBatchMetadataResponse_messageType struct{} + +func (x fastReflection_MsgUpdateBatchMetadataResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateBatchMetadataResponse)(nil) +} +func (x fastReflection_MsgUpdateBatchMetadataResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateBatchMetadataResponse) +} +func (x fastReflection_MsgUpdateBatchMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateBatchMetadataResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateBatchMetadataResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateBatchMetadataResponse +} + +// 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_MsgUpdateBatchMetadataResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateBatchMetadataResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateBatchMetadataResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateBatchMetadataResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateBatchMetadataResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateBatchMetadataResponse)(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_MsgUpdateBatchMetadataResponse) 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_MsgUpdateBatchMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse 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_MsgUpdateBatchMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse 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_MsgUpdateBatchMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse 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_MsgUpdateBatchMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse 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_MsgUpdateBatchMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse 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_MsgUpdateBatchMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse 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_MsgUpdateBatchMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", 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_MsgUpdateBatchMetadataResponse) 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_MsgUpdateBatchMetadataResponse) 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_MsgUpdateBatchMetadataResponse) 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_MsgUpdateBatchMetadataResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateBatchMetadataResponse) + 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().(*MsgUpdateBatchMetadataResponse) + 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().(*MsgUpdateBatchMetadataResponse) + 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 postIndex > l { + if iNdEx >= l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Credits = append(x.Credits, &Credits{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateBatchMetadataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateBatchMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -15498,30 +19693,24 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { } var ( - md_MsgUpdateBatchMetadata protoreflect.MessageDescriptor - fd_MsgUpdateBatchMetadata_issuer protoreflect.FieldDescriptor - fd_MsgUpdateBatchMetadata_batch_denom protoreflect.FieldDescriptor - fd_MsgUpdateBatchMetadata_new_metadata protoreflect.FieldDescriptor + md_MsgBridgeResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateBatchMetadata = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateBatchMetadata") - fd_MsgUpdateBatchMetadata_issuer = md_MsgUpdateBatchMetadata.Fields().ByName("issuer") - fd_MsgUpdateBatchMetadata_batch_denom = md_MsgUpdateBatchMetadata.Fields().ByName("batch_denom") - fd_MsgUpdateBatchMetadata_new_metadata = md_MsgUpdateBatchMetadata.Fields().ByName("new_metadata") + md_MsgBridgeResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridgeResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateBatchMetadata)(nil) +var _ protoreflect.Message = (*fastReflection_MsgBridgeResponse)(nil) -type fastReflection_MsgUpdateBatchMetadata MsgUpdateBatchMetadata +type fastReflection_MsgBridgeResponse MsgBridgeResponse -func (x *MsgUpdateBatchMetadata) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateBatchMetadata)(x) +func (x *MsgBridgeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBridgeResponse)(x) } -func (x *MsgUpdateBatchMetadata) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[29] +func (x *MsgBridgeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15532,43 +19721,43 @@ func (x *MsgUpdateBatchMetadata) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateBatchMetadata_messageType fastReflection_MsgUpdateBatchMetadata_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateBatchMetadata_messageType{} +var _fastReflection_MsgBridgeResponse_messageType fastReflection_MsgBridgeResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgBridgeResponse_messageType{} -type fastReflection_MsgUpdateBatchMetadata_messageType struct{} +type fastReflection_MsgBridgeResponse_messageType struct{} -func (x fastReflection_MsgUpdateBatchMetadata_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateBatchMetadata)(nil) +func (x fastReflection_MsgBridgeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBridgeResponse)(nil) } -func (x fastReflection_MsgUpdateBatchMetadata_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateBatchMetadata) +func (x fastReflection_MsgBridgeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBridgeResponse) } -func (x fastReflection_MsgUpdateBatchMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateBatchMetadata +func (x fastReflection_MsgBridgeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridgeResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateBatchMetadata) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateBatchMetadata +func (x *fastReflection_MsgBridgeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridgeResponse } // 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_MsgUpdateBatchMetadata) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateBatchMetadata_messageType +func (x *fastReflection_MsgBridgeResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgBridgeResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateBatchMetadata) New() protoreflect.Message { - return new(fastReflection_MsgUpdateBatchMetadata) +func (x *fastReflection_MsgBridgeResponse) New() protoreflect.Message { + return new(fastReflection_MsgBridgeResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateBatchMetadata) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateBatchMetadata)(x) +func (x *fastReflection_MsgBridgeResponse) Interface() protoreflect.ProtoMessage { + return (*MsgBridgeResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -15576,25 +19765,7 @@ func (x *fastReflection_MsgUpdateBatchMetadata) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateBatchMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Issuer != "" { - value := protoreflect.ValueOfString(x.Issuer) - if !f(fd_MsgUpdateBatchMetadata_issuer, value) { - return - } - } - if x.BatchDenom != "" { - value := protoreflect.ValueOfString(x.BatchDenom) - if !f(fd_MsgUpdateBatchMetadata_batch_denom, value) { - return - } - } - if x.NewMetadata != "" { - value := protoreflect.ValueOfString(x.NewMetadata) - if !f(fd_MsgUpdateBatchMetadata_new_metadata, value) { - return - } - } +func (x *fastReflection_MsgBridgeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -15608,19 +19779,13 @@ func (x *fastReflection_MsgUpdateBatchMetadata) Range(f func(protoreflect.FieldD // 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_MsgUpdateBatchMetadata) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgBridgeResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": - return x.Issuer != "" - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": - return x.BatchDenom != "" - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": - return x.NewMetadata != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse does not contain field %s", fd.FullName())) } } @@ -15630,19 +19795,13 @@ func (x *fastReflection_MsgUpdateBatchMetadata) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateBatchMetadata) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgBridgeResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": - x.Issuer = "" - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": - x.BatchDenom = "" - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": - x.NewMetadata = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse does not contain field %s", fd.FullName())) } } @@ -15652,22 +19811,13 @@ func (x *fastReflection_MsgUpdateBatchMetadata) Clear(fd protoreflect.FieldDescr // 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_MsgUpdateBatchMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": - value := x.Issuer - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": - value := x.BatchDenom - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": - value := x.NewMetadata - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse does not contain field %s", descriptor.FullName())) } } @@ -15681,19 +19831,13 @@ func (x *fastReflection_MsgUpdateBatchMetadata) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateBatchMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgBridgeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": - x.Issuer = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": - x.BatchDenom = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": - x.NewMetadata = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse does not contain field %s", fd.FullName())) } } @@ -15707,48 +19851,36 @@ func (x *fastReflection_MsgUpdateBatchMetadata) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateBatchMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": - panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgUpdateBatchMetadata is not mutable")) - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": - panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgUpdateBatchMetadata is not mutable")) - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": - panic(fmt.Errorf("field new_metadata of message regen.ecocredit.v1.MsgUpdateBatchMetadata is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse 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_MsgUpdateBatchMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.issuer": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.batch_denom": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateBatchMetadata.new_metadata": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse 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_MsgUpdateBatchMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgBridgeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateBatchMetadata", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridgeResponse", d.FullName())) } panic("unreachable") } @@ -15756,7 +19888,7 @@ func (x *fastReflection_MsgUpdateBatchMetadata) WhichOneof(d protoreflect.OneofD // 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_MsgUpdateBatchMetadata) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgBridgeResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -15767,7 +19899,7 @@ func (x *fastReflection_MsgUpdateBatchMetadata) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateBatchMetadata) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgBridgeResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -15779,7 +19911,7 @@ func (x *fastReflection_MsgUpdateBatchMetadata) SetUnknown(fields protoreflect.R // 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_MsgUpdateBatchMetadata) IsValid() bool { +func (x *fastReflection_MsgBridgeResponse) IsValid() bool { return x != nil } @@ -15789,9 +19921,9 @@ func (x *fastReflection_MsgUpdateBatchMetadata) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateBatchMetadata) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgBridgeResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateBatchMetadata) + x := input.Message.Interface().(*MsgBridgeResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15803,18 +19935,6 @@ func (x *fastReflection_MsgUpdateBatchMetadata) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.Issuer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.BatchDenom) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NewMetadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -15825,7 +19945,7 @@ func (x *fastReflection_MsgUpdateBatchMetadata) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateBatchMetadata) + x := input.Message.Interface().(*MsgBridgeResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15844,27 +19964,6 @@ func (x *fastReflection_MsgUpdateBatchMetadata) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NewMetadata) > 0 { - i -= len(x.NewMetadata) - copy(dAtA[i:], x.NewMetadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewMetadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.BatchDenom) > 0 { - i -= len(x.BatchDenom) - copy(dAtA[i:], x.BatchDenom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) - i-- - dAtA[i] = 0x12 - } - if len(x.Issuer) > 0 { - i -= len(x.Issuer) - copy(dAtA[i:], x.Issuer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -15876,7 +19975,7 @@ func (x *fastReflection_MsgUpdateBatchMetadata) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateBatchMetadata) + x := input.Message.Interface().(*MsgBridgeResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15908,108 +20007,12 @@ func (x *fastReflection_MsgUpdateBatchMetadata) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateBatchMetadata: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateBatchMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeResponse: 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 Issuer", 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.Issuer = 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 BatchDenom", 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.BatchDenom = 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 NewMetadata", 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.NewMetadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -16046,24 +20049,34 @@ func (x *fastReflection_MsgUpdateBatchMetadata) ProtoMethods() *protoiface.Metho } var ( - md_MsgUpdateBatchMetadataResponse protoreflect.MessageDescriptor + md_MsgBridgeReceive protoreflect.MessageDescriptor + fd_MsgBridgeReceive_issuer protoreflect.FieldDescriptor + fd_MsgBridgeReceive_class_id protoreflect.FieldDescriptor + fd_MsgBridgeReceive_project protoreflect.FieldDescriptor + fd_MsgBridgeReceive_batch protoreflect.FieldDescriptor + fd_MsgBridgeReceive_origin_tx protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateBatchMetadataResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateBatchMetadataResponse") + md_MsgBridgeReceive = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridgeReceive") + fd_MsgBridgeReceive_issuer = md_MsgBridgeReceive.Fields().ByName("issuer") + fd_MsgBridgeReceive_class_id = md_MsgBridgeReceive.Fields().ByName("class_id") + fd_MsgBridgeReceive_project = md_MsgBridgeReceive.Fields().ByName("project") + fd_MsgBridgeReceive_batch = md_MsgBridgeReceive.Fields().ByName("batch") + fd_MsgBridgeReceive_origin_tx = md_MsgBridgeReceive.Fields().ByName("origin_tx") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateBatchMetadataResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgBridgeReceive)(nil) -type fastReflection_MsgUpdateBatchMetadataResponse MsgUpdateBatchMetadataResponse +type fastReflection_MsgBridgeReceive MsgBridgeReceive -func (x *MsgUpdateBatchMetadataResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateBatchMetadataResponse)(x) +func (x *MsgBridgeReceive) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBridgeReceive)(x) } -func (x *MsgUpdateBatchMetadataResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[30] +func (x *MsgBridgeReceive) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16074,43 +20087,43 @@ func (x *MsgUpdateBatchMetadataResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgUpdateBatchMetadataResponse_messageType fastReflection_MsgUpdateBatchMetadataResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateBatchMetadataResponse_messageType{} +var _fastReflection_MsgBridgeReceive_messageType fastReflection_MsgBridgeReceive_messageType +var _ protoreflect.MessageType = fastReflection_MsgBridgeReceive_messageType{} -type fastReflection_MsgUpdateBatchMetadataResponse_messageType struct{} +type fastReflection_MsgBridgeReceive_messageType struct{} -func (x fastReflection_MsgUpdateBatchMetadataResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateBatchMetadataResponse)(nil) +func (x fastReflection_MsgBridgeReceive_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBridgeReceive)(nil) } -func (x fastReflection_MsgUpdateBatchMetadataResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateBatchMetadataResponse) +func (x fastReflection_MsgBridgeReceive_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBridgeReceive) } -func (x fastReflection_MsgUpdateBatchMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateBatchMetadataResponse +func (x fastReflection_MsgBridgeReceive_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridgeReceive } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateBatchMetadataResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateBatchMetadataResponse +func (x *fastReflection_MsgBridgeReceive) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridgeReceive } // 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_MsgUpdateBatchMetadataResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateBatchMetadataResponse_messageType +func (x *fastReflection_MsgBridgeReceive) Type() protoreflect.MessageType { + return _fastReflection_MsgBridgeReceive_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateBatchMetadataResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateBatchMetadataResponse) +func (x *fastReflection_MsgBridgeReceive) New() protoreflect.Message { + return new(fastReflection_MsgBridgeReceive) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateBatchMetadataResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateBatchMetadataResponse)(x) +func (x *fastReflection_MsgBridgeReceive) Interface() protoreflect.ProtoMessage { + return (*MsgBridgeReceive)(x) } // Range iterates over every populated field in an undefined order, @@ -16118,7 +20131,37 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateBatchMetadataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgBridgeReceive) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Issuer != "" { + value := protoreflect.ValueOfString(x.Issuer) + if !f(fd_MsgBridgeReceive_issuer, value) { + return + } + } + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_MsgBridgeReceive_class_id, value) { + return + } + } + if x.Project != nil { + value := protoreflect.ValueOfMessage(x.Project.ProtoReflect()) + if !f(fd_MsgBridgeReceive_project, value) { + return + } + } + if x.Batch != nil { + value := protoreflect.ValueOfMessage(x.Batch.ProtoReflect()) + if !f(fd_MsgBridgeReceive_batch, value) { + return + } + } + if x.OriginTx != nil { + value := protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) + if !f(fd_MsgBridgeReceive_origin_tx, value) { + return + } + } } // Has reports whether a field is populated. @@ -16132,13 +20175,23 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) Range(f func(protoreflec // 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_MsgUpdateBatchMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgBridgeReceive) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.issuer": + return x.Issuer != "" + case "regen.ecocredit.v1.MsgBridgeReceive.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.MsgBridgeReceive.project": + return x.Project != nil + case "regen.ecocredit.v1.MsgBridgeReceive.batch": + return x.Batch != nil + case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": + return x.OriginTx != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive does not contain field %s", fd.FullName())) } } @@ -16148,13 +20201,23 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateBatchMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgBridgeReceive) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.issuer": + x.Issuer = "" + case "regen.ecocredit.v1.MsgBridgeReceive.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.MsgBridgeReceive.project": + x.Project = nil + case "regen.ecocredit.v1.MsgBridgeReceive.batch": + x.Batch = nil + case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": + x.OriginTx = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive does not contain field %s", fd.FullName())) } } @@ -16164,13 +20227,28 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) Clear(fd protoreflect.Fi // 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_MsgUpdateBatchMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceive) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.issuer": + value := x.Issuer + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridgeReceive.class_id": + value := x.ClassId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridgeReceive.project": + value := x.Project + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.batch": + value := x.Batch + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": + value := x.OriginTx + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive does not contain field %s", descriptor.FullName())) } } @@ -16184,13 +20262,23 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateBatchMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgBridgeReceive) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.issuer": + x.Issuer = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridgeReceive.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridgeReceive.project": + x.Project = value.Message().Interface().(*MsgBridgeReceive_Project) + case "regen.ecocredit.v1.MsgBridgeReceive.batch": + x.Batch = value.Message().Interface().(*MsgBridgeReceive_Batch) + case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": + x.OriginTx = value.Message().Interface().(*OriginTx) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive does not contain field %s", fd.FullName())) } } @@ -16204,36 +20292,68 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateBatchMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceive) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.project": + if x.Project == nil { + x.Project = new(MsgBridgeReceive_Project) + } + return protoreflect.ValueOfMessage(x.Project.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.batch": + if x.Batch == nil { + x.Batch = new(MsgBridgeReceive_Batch) + } + return protoreflect.ValueOfMessage(x.Batch.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": + if x.OriginTx == nil { + x.OriginTx = new(OriginTx) + } + return protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.issuer": + panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgBridgeReceive is not mutable")) + case "regen.ecocredit.v1.MsgBridgeReceive.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgBridgeReceive is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive 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_MsgUpdateBatchMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceive) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.issuer": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridgeReceive.class_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridgeReceive.project": + m := new(MsgBridgeReceive_Project) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.batch": + m := new(MsgBridgeReceive_Batch) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": + m := new(OriginTx) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateBatchMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive 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_MsgUpdateBatchMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgBridgeReceive) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridgeReceive", d.FullName())) } panic("unreachable") } @@ -16241,7 +20361,7 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) WhichOneof(d protoreflec // 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_MsgUpdateBatchMetadataResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgBridgeReceive) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -16252,7 +20372,7 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateBatchMetadataResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgBridgeReceive) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -16264,7 +20384,7 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) SetUnknown(fields protor // 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_MsgUpdateBatchMetadataResponse) IsValid() bool { +func (x *fastReflection_MsgBridgeReceive) IsValid() bool { return x != nil } @@ -16274,9 +20394,9 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateBatchMetadataResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateBatchMetadataResponse) + x := input.Message.Interface().(*MsgBridgeReceive) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16288,6 +20408,26 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) ProtoMethods() *protoifa var n int var l int _ = l + l = len(x.Issuer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ClassId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Project != nil { + l = options.Size(x.Project) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Batch != nil { + l = options.Size(x.Batch) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.OriginTx != nil { + l = options.Size(x.OriginTx) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -16298,7 +20438,7 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateBatchMetadataResponse) + x := input.Message.Interface().(*MsgBridgeReceive) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16317,6 +20457,62 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) ProtoMethods() *protoifa i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.OriginTx != nil { + encoded, err := options.Marshal(x.OriginTx) + 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.Batch != nil { + encoded, err := options.Marshal(x.Batch) + 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.Project != nil { + encoded, err := options.Marshal(x.Project) + 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.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Issuer) > 0 { + i -= len(x.Issuer) + copy(dAtA[i:], x.Issuer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -16328,7 +20524,7 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateBatchMetadataResponse) + x := input.Message.Interface().(*MsgBridgeReceive) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16347,25 +20543,197 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) ProtoMethods() *protoifa if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow } - if iNdEx >= l { + 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: MsgBridgeReceive: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceive: 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 Issuer", 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.Issuer = 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 ClassId", 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 } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + x.ClassId = 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 Project", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateBatchMetadataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateBatchMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + 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.Project == nil { + x.Project = &MsgBridgeReceive_Project{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Project); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Batch", 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.Batch == nil { + x.Batch = &MsgBridgeReceive_Batch{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Batch); 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 OriginTx", 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.OriginTx == nil { + x.OriginTx = &OriginTx{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OriginTx); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -16402,24 +20770,34 @@ func (x *fastReflection_MsgUpdateBatchMetadataResponse) ProtoMethods() *protoifa } var ( - md_MsgBridgeResponse protoreflect.MessageDescriptor + md_MsgBridgeReceive_Batch protoreflect.MessageDescriptor + fd_MsgBridgeReceive_Batch_recipient protoreflect.FieldDescriptor + fd_MsgBridgeReceive_Batch_amount protoreflect.FieldDescriptor + fd_MsgBridgeReceive_Batch_start_date protoreflect.FieldDescriptor + fd_MsgBridgeReceive_Batch_end_date protoreflect.FieldDescriptor + fd_MsgBridgeReceive_Batch_metadata protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgBridgeResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridgeResponse") + md_MsgBridgeReceive_Batch = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridgeReceive").Messages().ByName("Batch") + fd_MsgBridgeReceive_Batch_recipient = md_MsgBridgeReceive_Batch.Fields().ByName("recipient") + fd_MsgBridgeReceive_Batch_amount = md_MsgBridgeReceive_Batch.Fields().ByName("amount") + fd_MsgBridgeReceive_Batch_start_date = md_MsgBridgeReceive_Batch.Fields().ByName("start_date") + fd_MsgBridgeReceive_Batch_end_date = md_MsgBridgeReceive_Batch.Fields().ByName("end_date") + fd_MsgBridgeReceive_Batch_metadata = md_MsgBridgeReceive_Batch.Fields().ByName("metadata") } -var _ protoreflect.Message = (*fastReflection_MsgBridgeResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgBridgeReceive_Batch)(nil) -type fastReflection_MsgBridgeResponse MsgBridgeResponse +type fastReflection_MsgBridgeReceive_Batch MsgBridgeReceive_Batch -func (x *MsgBridgeResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBridgeResponse)(x) +func (x *MsgBridgeReceive_Batch) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBridgeReceive_Batch)(x) } -func (x *MsgBridgeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[31] +func (x *MsgBridgeReceive_Batch) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16430,43 +20808,43 @@ func (x *MsgBridgeResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgBridgeResponse_messageType fastReflection_MsgBridgeResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgBridgeResponse_messageType{} +var _fastReflection_MsgBridgeReceive_Batch_messageType fastReflection_MsgBridgeReceive_Batch_messageType +var _ protoreflect.MessageType = fastReflection_MsgBridgeReceive_Batch_messageType{} -type fastReflection_MsgBridgeResponse_messageType struct{} +type fastReflection_MsgBridgeReceive_Batch_messageType struct{} -func (x fastReflection_MsgBridgeResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBridgeResponse)(nil) +func (x fastReflection_MsgBridgeReceive_Batch_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBridgeReceive_Batch)(nil) } -func (x fastReflection_MsgBridgeResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBridgeResponse) +func (x fastReflection_MsgBridgeReceive_Batch_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBridgeReceive_Batch) } -func (x fastReflection_MsgBridgeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridgeResponse +func (x fastReflection_MsgBridgeReceive_Batch_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridgeReceive_Batch } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgBridgeResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridgeResponse +func (x *fastReflection_MsgBridgeReceive_Batch) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridgeReceive_Batch } // 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_MsgBridgeResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgBridgeResponse_messageType +func (x *fastReflection_MsgBridgeReceive_Batch) Type() protoreflect.MessageType { + return _fastReflection_MsgBridgeReceive_Batch_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBridgeResponse) New() protoreflect.Message { - return new(fastReflection_MsgBridgeResponse) +func (x *fastReflection_MsgBridgeReceive_Batch) New() protoreflect.Message { + return new(fastReflection_MsgBridgeReceive_Batch) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBridgeResponse) Interface() protoreflect.ProtoMessage { - return (*MsgBridgeResponse)(x) +func (x *fastReflection_MsgBridgeReceive_Batch) Interface() protoreflect.ProtoMessage { + return (*MsgBridgeReceive_Batch)(x) } // Range iterates over every populated field in an undefined order, @@ -16474,7 +20852,37 @@ func (x *fastReflection_MsgBridgeResponse) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgBridgeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgBridgeReceive_Batch) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Recipient != "" { + value := protoreflect.ValueOfString(x.Recipient) + if !f(fd_MsgBridgeReceive_Batch_recipient, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_MsgBridgeReceive_Batch_amount, value) { + return + } + } + if x.StartDate != nil { + value := protoreflect.ValueOfMessage(x.StartDate.ProtoReflect()) + if !f(fd_MsgBridgeReceive_Batch_start_date, value) { + return + } + } + if x.EndDate != nil { + value := protoreflect.ValueOfMessage(x.EndDate.ProtoReflect()) + if !f(fd_MsgBridgeReceive_Batch_end_date, value) { + return + } + } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_MsgBridgeReceive_Batch_metadata, value) { + return + } + } } // Has reports whether a field is populated. @@ -16488,13 +20896,23 @@ func (x *fastReflection_MsgBridgeResponse) Range(f func(protoreflect.FieldDescri // 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_MsgBridgeResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgBridgeReceive_Batch) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": + return x.Recipient != "" + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": + return x.Amount != "" + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": + return x.StartDate != nil + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": + return x.EndDate != nil + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": + return x.Metadata != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch does not contain field %s", fd.FullName())) } } @@ -16504,13 +20922,23 @@ func (x *fastReflection_MsgBridgeResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgBridgeReceive_Batch) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": + x.Recipient = "" + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": + x.Amount = "" + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": + x.StartDate = nil + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": + x.EndDate = nil + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": + x.Metadata = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch does not contain field %s", fd.FullName())) } } @@ -16520,13 +20948,28 @@ func (x *fastReflection_MsgBridgeResponse) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgBridgeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceive_Batch) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": + value := x.Recipient + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": + value := x.StartDate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": + value := x.EndDate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch does not contain field %s", descriptor.FullName())) } } @@ -16540,13 +20983,23 @@ func (x *fastReflection_MsgBridgeResponse) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgBridgeReceive_Batch) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": + x.Recipient = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": + x.Amount = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": + x.StartDate = value.Message().Interface().(*timestamppb.Timestamp) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": + x.EndDate = value.Message().Interface().(*timestamppb.Timestamp) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": + x.Metadata = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch does not contain field %s", fd.FullName())) } } @@ -16560,36 +21013,64 @@ func (x *fastReflection_MsgBridgeResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceive_Batch) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": + if x.StartDate == nil { + x.StartDate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.StartDate.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": + if x.EndDate == nil { + x.EndDate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.EndDate.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": + panic(fmt.Errorf("field recipient of message regen.ecocredit.v1.MsgBridgeReceive.Batch is not mutable")) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": + panic(fmt.Errorf("field amount of message regen.ecocredit.v1.MsgBridgeReceive.Batch is not mutable")) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": + panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgBridgeReceive.Batch is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch 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_MsgBridgeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceive_Batch) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch 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_MsgBridgeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgBridgeReceive_Batch) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridgeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridgeReceive.Batch", d.FullName())) } panic("unreachable") } @@ -16597,7 +21078,7 @@ func (x *fastReflection_MsgBridgeResponse) WhichOneof(d protoreflect.OneofDescri // 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_MsgBridgeResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgBridgeReceive_Batch) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -16608,7 +21089,7 @@ func (x *fastReflection_MsgBridgeResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgBridgeReceive_Batch) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -16620,7 +21101,7 @@ func (x *fastReflection_MsgBridgeResponse) SetUnknown(fields protoreflect.RawFie // 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_MsgBridgeResponse) IsValid() bool { +func (x *fastReflection_MsgBridgeReceive_Batch) IsValid() bool { return x != nil } @@ -16630,9 +21111,9 @@ func (x *fastReflection_MsgBridgeResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgBridgeResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgBridgeReceive_Batch) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBridgeResponse) + x := input.Message.Interface().(*MsgBridgeReceive_Batch) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16644,6 +21125,26 @@ func (x *fastReflection_MsgBridgeResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Recipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.StartDate != nil { + l = options.Size(x.StartDate) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.EndDate != nil { + l = options.Size(x.EndDate) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -16654,7 +21155,7 @@ func (x *fastReflection_MsgBridgeResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgBridgeResponse) + x := input.Message.Interface().(*MsgBridgeReceive_Batch) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16673,6 +21174,55 @@ func (x *fastReflection_MsgBridgeResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x2a + } + if x.EndDate != nil { + encoded, err := options.Marshal(x.EndDate) + 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.StartDate != nil { + encoded, err := options.Marshal(x.StartDate) + 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.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x12 + } + if len(x.Recipient) > 0 { + i -= len(x.Recipient) + copy(dAtA[i:], x.Recipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -16684,7 +21234,7 @@ func (x *fastReflection_MsgBridgeResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgBridgeResponse) + x := input.Message.Interface().(*MsgBridgeReceive_Batch) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16703,25 +21253,193 @@ func (x *fastReflection_MsgBridgeResponse) ProtoMethods() *protoiface.Methods { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow } - if iNdEx >= l { + 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: MsgBridgeReceive_Batch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceive_Batch: 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 Recipient", 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.Recipient = 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 Amount", 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.Amount = 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 StartDate", 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 } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if x.StartDate == nil { + x.StartDate = ×tamppb.Timestamp{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StartDate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EndDate", 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.EndDate == nil { + x.EndDate = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EndDate); 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 Metadata", 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.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -16758,34 +21476,30 @@ func (x *fastReflection_MsgBridgeResponse) ProtoMethods() *protoiface.Methods { } var ( - md_MsgBridgeReceive protoreflect.MessageDescriptor - fd_MsgBridgeReceive_issuer protoreflect.FieldDescriptor - fd_MsgBridgeReceive_class_id protoreflect.FieldDescriptor - fd_MsgBridgeReceive_project protoreflect.FieldDescriptor - fd_MsgBridgeReceive_batch protoreflect.FieldDescriptor - fd_MsgBridgeReceive_origin_tx protoreflect.FieldDescriptor + md_MsgBridgeReceive_Project protoreflect.MessageDescriptor + fd_MsgBridgeReceive_Project_reference_id protoreflect.FieldDescriptor + fd_MsgBridgeReceive_Project_jurisdiction protoreflect.FieldDescriptor + fd_MsgBridgeReceive_Project_metadata protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgBridgeReceive = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridgeReceive") - fd_MsgBridgeReceive_issuer = md_MsgBridgeReceive.Fields().ByName("issuer") - fd_MsgBridgeReceive_class_id = md_MsgBridgeReceive.Fields().ByName("class_id") - fd_MsgBridgeReceive_project = md_MsgBridgeReceive.Fields().ByName("project") - fd_MsgBridgeReceive_batch = md_MsgBridgeReceive.Fields().ByName("batch") - fd_MsgBridgeReceive_origin_tx = md_MsgBridgeReceive.Fields().ByName("origin_tx") + md_MsgBridgeReceive_Project = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridgeReceive").Messages().ByName("Project") + fd_MsgBridgeReceive_Project_reference_id = md_MsgBridgeReceive_Project.Fields().ByName("reference_id") + fd_MsgBridgeReceive_Project_jurisdiction = md_MsgBridgeReceive_Project.Fields().ByName("jurisdiction") + fd_MsgBridgeReceive_Project_metadata = md_MsgBridgeReceive_Project.Fields().ByName("metadata") } -var _ protoreflect.Message = (*fastReflection_MsgBridgeReceive)(nil) +var _ protoreflect.Message = (*fastReflection_MsgBridgeReceive_Project)(nil) -type fastReflection_MsgBridgeReceive MsgBridgeReceive +type fastReflection_MsgBridgeReceive_Project MsgBridgeReceive_Project -func (x *MsgBridgeReceive) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBridgeReceive)(x) +func (x *MsgBridgeReceive_Project) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBridgeReceive_Project)(x) } -func (x *MsgBridgeReceive) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[32] +func (x *MsgBridgeReceive_Project) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16796,43 +21510,43 @@ func (x *MsgBridgeReceive) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgBridgeReceive_messageType fastReflection_MsgBridgeReceive_messageType -var _ protoreflect.MessageType = fastReflection_MsgBridgeReceive_messageType{} +var _fastReflection_MsgBridgeReceive_Project_messageType fastReflection_MsgBridgeReceive_Project_messageType +var _ protoreflect.MessageType = fastReflection_MsgBridgeReceive_Project_messageType{} -type fastReflection_MsgBridgeReceive_messageType struct{} +type fastReflection_MsgBridgeReceive_Project_messageType struct{} -func (x fastReflection_MsgBridgeReceive_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBridgeReceive)(nil) +func (x fastReflection_MsgBridgeReceive_Project_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBridgeReceive_Project)(nil) } -func (x fastReflection_MsgBridgeReceive_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBridgeReceive) +func (x fastReflection_MsgBridgeReceive_Project_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBridgeReceive_Project) } -func (x fastReflection_MsgBridgeReceive_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridgeReceive +func (x fastReflection_MsgBridgeReceive_Project_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridgeReceive_Project } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgBridgeReceive) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridgeReceive +func (x *fastReflection_MsgBridgeReceive_Project) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridgeReceive_Project } // 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_MsgBridgeReceive) Type() protoreflect.MessageType { - return _fastReflection_MsgBridgeReceive_messageType +func (x *fastReflection_MsgBridgeReceive_Project) Type() protoreflect.MessageType { + return _fastReflection_MsgBridgeReceive_Project_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBridgeReceive) New() protoreflect.Message { - return new(fastReflection_MsgBridgeReceive) +func (x *fastReflection_MsgBridgeReceive_Project) New() protoreflect.Message { + return new(fastReflection_MsgBridgeReceive_Project) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBridgeReceive) Interface() protoreflect.ProtoMessage { - return (*MsgBridgeReceive)(x) +func (x *fastReflection_MsgBridgeReceive_Project) Interface() protoreflect.ProtoMessage { + return (*MsgBridgeReceive_Project)(x) } // Range iterates over every populated field in an undefined order, @@ -16840,34 +21554,22 @@ func (x *fastReflection_MsgBridgeReceive) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgBridgeReceive) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Issuer != "" { - value := protoreflect.ValueOfString(x.Issuer) - if !f(fd_MsgBridgeReceive_issuer, value) { - return - } - } - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_MsgBridgeReceive_class_id, value) { - return - } - } - if x.Project != nil { - value := protoreflect.ValueOfMessage(x.Project.ProtoReflect()) - if !f(fd_MsgBridgeReceive_project, value) { +func (x *fastReflection_MsgBridgeReceive_Project) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ReferenceId != "" { + value := protoreflect.ValueOfString(x.ReferenceId) + if !f(fd_MsgBridgeReceive_Project_reference_id, value) { return } } - if x.Batch != nil { - value := protoreflect.ValueOfMessage(x.Batch.ProtoReflect()) - if !f(fd_MsgBridgeReceive_batch, value) { + if x.Jurisdiction != "" { + value := protoreflect.ValueOfString(x.Jurisdiction) + if !f(fd_MsgBridgeReceive_Project_jurisdiction, value) { return } } - if x.OriginTx != nil { - value := protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) - if !f(fd_MsgBridgeReceive_origin_tx, value) { + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_MsgBridgeReceive_Project_metadata, value) { return } } @@ -16884,23 +21586,19 @@ func (x *fastReflection_MsgBridgeReceive) Range(f func(protoreflect.FieldDescrip // 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_MsgBridgeReceive) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgBridgeReceive_Project) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.issuer": - return x.Issuer != "" - case "regen.ecocredit.v1.MsgBridgeReceive.class_id": - return x.ClassId != "" - case "regen.ecocredit.v1.MsgBridgeReceive.project": - return x.Project != nil - case "regen.ecocredit.v1.MsgBridgeReceive.batch": - return x.Batch != nil - case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": - return x.OriginTx != nil + case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": + return x.ReferenceId != "" + case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": + return x.Jurisdiction != "" + case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": + return x.Metadata != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project does not contain field %s", fd.FullName())) } } @@ -16910,23 +21608,19 @@ func (x *fastReflection_MsgBridgeReceive) Has(fd protoreflect.FieldDescriptor) b // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgBridgeReceive_Project) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.issuer": - x.Issuer = "" - case "regen.ecocredit.v1.MsgBridgeReceive.class_id": - x.ClassId = "" - case "regen.ecocredit.v1.MsgBridgeReceive.project": - x.Project = nil - case "regen.ecocredit.v1.MsgBridgeReceive.batch": - x.Batch = nil - case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": - x.OriginTx = nil + case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": + x.ReferenceId = "" + case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": + x.Jurisdiction = "" + case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": + x.Metadata = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project does not contain field %s", fd.FullName())) } } @@ -16936,28 +21630,22 @@ func (x *fastReflection_MsgBridgeReceive) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgBridgeReceive) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceive_Project) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.issuer": - value := x.Issuer + case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": + value := x.ReferenceId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": + value := x.Jurisdiction return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridgeReceive.class_id": - value := x.ClassId + case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": + value := x.Metadata return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridgeReceive.project": - value := x.Project - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.batch": - value := x.Batch - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": - value := x.OriginTx - return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project does not contain field %s", descriptor.FullName())) } } @@ -16971,23 +21659,19 @@ func (x *fastReflection_MsgBridgeReceive) Get(descriptor protoreflect.FieldDescr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgBridgeReceive_Project) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.issuer": - x.Issuer = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridgeReceive.class_id": - x.ClassId = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridgeReceive.project": - x.Project = value.Message().Interface().(*MsgBridgeReceive_Project) - case "regen.ecocredit.v1.MsgBridgeReceive.batch": - x.Batch = value.Message().Interface().(*MsgBridgeReceive_Batch) - case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": - x.OriginTx = value.Message().Interface().(*OriginTx) + case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": + x.ReferenceId = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": + x.Jurisdiction = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": + x.Metadata = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project does not contain field %s", fd.FullName())) } } @@ -17001,68 +21685,48 @@ func (x *fastReflection_MsgBridgeReceive) Set(fd protoreflect.FieldDescriptor, v // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceive_Project) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.project": - if x.Project == nil { - x.Project = new(MsgBridgeReceive_Project) - } - return protoreflect.ValueOfMessage(x.Project.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.batch": - if x.Batch == nil { - x.Batch = new(MsgBridgeReceive_Batch) - } - return protoreflect.ValueOfMessage(x.Batch.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": - if x.OriginTx == nil { - x.OriginTx = new(OriginTx) - } - return protoreflect.ValueOfMessage(x.OriginTx.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.issuer": - panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgBridgeReceive is not mutable")) - case "regen.ecocredit.v1.MsgBridgeReceive.class_id": - panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgBridgeReceive is not mutable")) + case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": + panic(fmt.Errorf("field reference_id of message regen.ecocredit.v1.MsgBridgeReceive.Project is not mutable")) + case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": + panic(fmt.Errorf("field jurisdiction of message regen.ecocredit.v1.MsgBridgeReceive.Project is not mutable")) + case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": + panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgBridgeReceive.Project is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project 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_MsgBridgeReceive) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceive_Project) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.issuer": + case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridgeReceive.class_id": + case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridgeReceive.project": - m := new(MsgBridgeReceive_Project) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.batch": - m := new(MsgBridgeReceive_Batch) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.origin_tx": - m := new(OriginTx) - return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project 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_MsgBridgeReceive) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgBridgeReceive_Project) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridgeReceive", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridgeReceive.Project", d.FullName())) } panic("unreachable") } @@ -17070,7 +21734,7 @@ func (x *fastReflection_MsgBridgeReceive) WhichOneof(d protoreflect.OneofDescrip // 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_MsgBridgeReceive) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgBridgeReceive_Project) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -17081,7 +21745,7 @@ func (x *fastReflection_MsgBridgeReceive) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgBridgeReceive_Project) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -17093,7 +21757,7 @@ func (x *fastReflection_MsgBridgeReceive) SetUnknown(fields protoreflect.RawFiel // 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_MsgBridgeReceive) IsValid() bool { +func (x *fastReflection_MsgBridgeReceive_Project) IsValid() bool { return x != nil } @@ -17103,9 +21767,9 @@ func (x *fastReflection_MsgBridgeReceive) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgBridgeReceive_Project) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBridgeReceive) + x := input.Message.Interface().(*MsgBridgeReceive_Project) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17117,24 +21781,16 @@ func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Issuer) + l = len(x.ReferenceId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ClassId) + l = len(x.Jurisdiction) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.Project != nil { - l = options.Size(x.Project) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Batch != nil { - l = options.Size(x.Batch) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.OriginTx != nil { - l = options.Size(x.OriginTx) + l = len(x.Metadata) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -17147,7 +21803,7 @@ func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgBridgeReceive) + x := input.Message.Interface().(*MsgBridgeReceive_Project) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17166,59 +21822,24 @@ func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.OriginTx != nil { - encoded, err := options.Marshal(x.OriginTx) - 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.Batch != nil { - encoded, err := options.Marshal(x.Batch) - 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.Project != nil { - encoded, err := options.Marshal(x.Project) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) i-- dAtA[i] = 0x1a } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + if len(x.Jurisdiction) > 0 { + i -= len(x.Jurisdiction) + copy(dAtA[i:], x.Jurisdiction) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jurisdiction))) i-- dAtA[i] = 0x12 } - if len(x.Issuer) > 0 { - i -= len(x.Issuer) - copy(dAtA[i:], x.Issuer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) + if len(x.ReferenceId) > 0 { + i -= len(x.ReferenceId) + copy(dAtA[i:], x.ReferenceId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReferenceId))) i-- dAtA[i] = 0xa } @@ -17233,7 +21854,7 @@ func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgBridgeReceive) + x := input.Message.Interface().(*MsgBridgeReceive_Project) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17265,81 +21886,17 @@ func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceive: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceive_Project: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceive: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceive_Project: 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 Issuer", 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.Issuer = 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 ClassId", 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.ClassId = 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 Project", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReferenceId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -17349,33 +21906,29 @@ func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Project == nil { - x.Project = &MsgBridgeReceive_Project{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Project); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.ReferenceId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Batch", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Jurisdiction", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -17385,33 +21938,29 @@ func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Batch == nil { - x.Batch = &MsgBridgeReceive_Batch{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Batch); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Jurisdiction = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginTx", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -17421,27 +21970,23 @@ func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.OriginTx == nil { - x.OriginTx = &OriginTx{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OriginTx); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Metadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -17479,34 +22024,28 @@ func (x *fastReflection_MsgBridgeReceive) ProtoMethods() *protoiface.Methods { } var ( - md_MsgBridgeReceive_Batch protoreflect.MessageDescriptor - fd_MsgBridgeReceive_Batch_recipient protoreflect.FieldDescriptor - fd_MsgBridgeReceive_Batch_amount protoreflect.FieldDescriptor - fd_MsgBridgeReceive_Batch_start_date protoreflect.FieldDescriptor - fd_MsgBridgeReceive_Batch_end_date protoreflect.FieldDescriptor - fd_MsgBridgeReceive_Batch_metadata protoreflect.FieldDescriptor + md_MsgBridgeReceiveResponse protoreflect.MessageDescriptor + fd_MsgBridgeReceiveResponse_batch_denom protoreflect.FieldDescriptor + fd_MsgBridgeReceiveResponse_project_id protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgBridgeReceive_Batch = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridgeReceive").Messages().ByName("Batch") - fd_MsgBridgeReceive_Batch_recipient = md_MsgBridgeReceive_Batch.Fields().ByName("recipient") - fd_MsgBridgeReceive_Batch_amount = md_MsgBridgeReceive_Batch.Fields().ByName("amount") - fd_MsgBridgeReceive_Batch_start_date = md_MsgBridgeReceive_Batch.Fields().ByName("start_date") - fd_MsgBridgeReceive_Batch_end_date = md_MsgBridgeReceive_Batch.Fields().ByName("end_date") - fd_MsgBridgeReceive_Batch_metadata = md_MsgBridgeReceive_Batch.Fields().ByName("metadata") + md_MsgBridgeReceiveResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridgeReceiveResponse") + fd_MsgBridgeReceiveResponse_batch_denom = md_MsgBridgeReceiveResponse.Fields().ByName("batch_denom") + fd_MsgBridgeReceiveResponse_project_id = md_MsgBridgeReceiveResponse.Fields().ByName("project_id") } -var _ protoreflect.Message = (*fastReflection_MsgBridgeReceive_Batch)(nil) +var _ protoreflect.Message = (*fastReflection_MsgBridgeReceiveResponse)(nil) -type fastReflection_MsgBridgeReceive_Batch MsgBridgeReceive_Batch +type fastReflection_MsgBridgeReceiveResponse MsgBridgeReceiveResponse -func (x *MsgBridgeReceive_Batch) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBridgeReceive_Batch)(x) +func (x *MsgBridgeReceiveResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBridgeReceiveResponse)(x) } -func (x *MsgBridgeReceive_Batch) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[49] +func (x *MsgBridgeReceiveResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17517,43 +22056,43 @@ func (x *MsgBridgeReceive_Batch) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgBridgeReceive_Batch_messageType fastReflection_MsgBridgeReceive_Batch_messageType -var _ protoreflect.MessageType = fastReflection_MsgBridgeReceive_Batch_messageType{} +var _fastReflection_MsgBridgeReceiveResponse_messageType fastReflection_MsgBridgeReceiveResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgBridgeReceiveResponse_messageType{} -type fastReflection_MsgBridgeReceive_Batch_messageType struct{} +type fastReflection_MsgBridgeReceiveResponse_messageType struct{} -func (x fastReflection_MsgBridgeReceive_Batch_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBridgeReceive_Batch)(nil) +func (x fastReflection_MsgBridgeReceiveResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBridgeReceiveResponse)(nil) } -func (x fastReflection_MsgBridgeReceive_Batch_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBridgeReceive_Batch) +func (x fastReflection_MsgBridgeReceiveResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBridgeReceiveResponse) } -func (x fastReflection_MsgBridgeReceive_Batch_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridgeReceive_Batch +func (x fastReflection_MsgBridgeReceiveResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridgeReceiveResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgBridgeReceive_Batch) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridgeReceive_Batch +func (x *fastReflection_MsgBridgeReceiveResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridgeReceiveResponse } // 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_MsgBridgeReceive_Batch) Type() protoreflect.MessageType { - return _fastReflection_MsgBridgeReceive_Batch_messageType +func (x *fastReflection_MsgBridgeReceiveResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgBridgeReceiveResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBridgeReceive_Batch) New() protoreflect.Message { - return new(fastReflection_MsgBridgeReceive_Batch) +func (x *fastReflection_MsgBridgeReceiveResponse) New() protoreflect.Message { + return new(fastReflection_MsgBridgeReceiveResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBridgeReceive_Batch) Interface() protoreflect.ProtoMessage { - return (*MsgBridgeReceive_Batch)(x) +func (x *fastReflection_MsgBridgeReceiveResponse) Interface() protoreflect.ProtoMessage { + return (*MsgBridgeReceiveResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -17561,34 +22100,16 @@ func (x *fastReflection_MsgBridgeReceive_Batch) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgBridgeReceive_Batch) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Recipient != "" { - value := protoreflect.ValueOfString(x.Recipient) - if !f(fd_MsgBridgeReceive_Batch_recipient, value) { - return - } - } - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_MsgBridgeReceive_Batch_amount, value) { - return - } - } - if x.StartDate != nil { - value := protoreflect.ValueOfMessage(x.StartDate.ProtoReflect()) - if !f(fd_MsgBridgeReceive_Batch_start_date, value) { - return - } - } - if x.EndDate != nil { - value := protoreflect.ValueOfMessage(x.EndDate.ProtoReflect()) - if !f(fd_MsgBridgeReceive_Batch_end_date, value) { +func (x *fastReflection_MsgBridgeReceiveResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BatchDenom != "" { + value := protoreflect.ValueOfString(x.BatchDenom) + if !f(fd_MsgBridgeReceiveResponse_batch_denom, value) { return } } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgBridgeReceive_Batch_metadata, value) { + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_MsgBridgeReceiveResponse_project_id, value) { return } } @@ -17605,23 +22126,17 @@ func (x *fastReflection_MsgBridgeReceive_Batch) Range(f func(protoreflect.FieldD // 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_MsgBridgeReceive_Batch) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgBridgeReceiveResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": - return x.Recipient != "" - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": - return x.Amount != "" - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": - return x.StartDate != nil - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": - return x.EndDate != nil - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": - return x.Metadata != "" + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": + return x.BatchDenom != "" + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": + return x.ProjectId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse does not contain field %s", fd.FullName())) } } @@ -17631,23 +22146,17 @@ func (x *fastReflection_MsgBridgeReceive_Batch) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive_Batch) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgBridgeReceiveResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": - x.Recipient = "" - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": - x.Amount = "" - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": - x.StartDate = nil - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": - x.EndDate = nil - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": - x.Metadata = "" + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": + x.BatchDenom = "" + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": + x.ProjectId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse does not contain field %s", fd.FullName())) } } @@ -17657,28 +22166,19 @@ func (x *fastReflection_MsgBridgeReceive_Batch) Clear(fd protoreflect.FieldDescr // 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_MsgBridgeReceive_Batch) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceiveResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": - value := x.Recipient - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": - value := x.Amount + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": + value := x.BatchDenom return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": - value := x.StartDate - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": - value := x.EndDate - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": - value := x.Metadata + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": + value := x.ProjectId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse does not contain field %s", descriptor.FullName())) } } @@ -17692,23 +22192,17 @@ func (x *fastReflection_MsgBridgeReceive_Batch) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive_Batch) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgBridgeReceiveResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": - x.Recipient = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": - x.Amount = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": - x.StartDate = value.Message().Interface().(*timestamppb.Timestamp) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": - x.EndDate = value.Message().Interface().(*timestamppb.Timestamp) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": - x.Metadata = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": + x.BatchDenom = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": + x.ProjectId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse does not contain field %s", fd.FullName())) } } @@ -17722,64 +22216,44 @@ func (x *fastReflection_MsgBridgeReceive_Batch) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive_Batch) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceiveResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": - if x.StartDate == nil { - x.StartDate = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.StartDate.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": - if x.EndDate == nil { - x.EndDate = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.EndDate.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": - panic(fmt.Errorf("field recipient of message regen.ecocredit.v1.MsgBridgeReceive.Batch is not mutable")) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": - panic(fmt.Errorf("field amount of message regen.ecocredit.v1.MsgBridgeReceive.Batch is not mutable")) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": - panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgBridgeReceive.Batch is not mutable")) + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": + panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgBridgeReceiveResponse is not mutable")) + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgBridgeReceiveResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse 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_MsgBridgeReceive_Batch) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridgeReceiveResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.recipient": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.amount": + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "regen.ecocredit.v1.MsgBridgeReceive.Batch.metadata": + case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Batch")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Batch does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse 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_MsgBridgeReceive_Batch) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgBridgeReceiveResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridgeReceive.Batch", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridgeReceiveResponse", d.FullName())) } panic("unreachable") } @@ -17787,7 +22261,7 @@ func (x *fastReflection_MsgBridgeReceive_Batch) WhichOneof(d protoreflect.OneofD // 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_MsgBridgeReceive_Batch) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgBridgeReceiveResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -17798,7 +22272,7 @@ func (x *fastReflection_MsgBridgeReceive_Batch) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive_Batch) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgBridgeReceiveResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -17810,7 +22284,7 @@ func (x *fastReflection_MsgBridgeReceive_Batch) SetUnknown(fields protoreflect.R // 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_MsgBridgeReceive_Batch) IsValid() bool { +func (x *fastReflection_MsgBridgeReceiveResponse) IsValid() bool { return x != nil } @@ -17820,9 +22294,9 @@ func (x *fastReflection_MsgBridgeReceive_Batch) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgBridgeReceive_Batch) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgBridgeReceiveResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBridgeReceive_Batch) + x := input.Message.Interface().(*MsgBridgeReceiveResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17834,23 +22308,11 @@ func (x *fastReflection_MsgBridgeReceive_Batch) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.Recipient) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Amount) + l = len(x.BatchDenom) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.StartDate != nil { - l = options.Size(x.StartDate) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.EndDate != nil { - l = options.Size(x.EndDate) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Metadata) + l = len(x.ProjectId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -17864,7 +22326,7 @@ func (x *fastReflection_MsgBridgeReceive_Batch) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgBridgeReceive_Batch) + x := input.Message.Interface().(*MsgBridgeReceiveResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17883,52 +22345,17 @@ func (x *fastReflection_MsgBridgeReceive_Batch) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x2a - } - if x.EndDate != nil { - encoded, err := options.Marshal(x.EndDate) - 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.StartDate != nil { - encoded, err := options.Marshal(x.StartDate) - 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.Amount) > 0 { - i -= len(x.Amount) - copy(dAtA[i:], x.Amount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) i-- dAtA[i] = 0x12 } - if len(x.Recipient) > 0 { - i -= len(x.Recipient) - copy(dAtA[i:], x.Recipient) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + if len(x.BatchDenom) > 0 { + i -= len(x.BatchDenom) + copy(dAtA[i:], x.BatchDenom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) i-- dAtA[i] = 0xa } @@ -17943,7 +22370,7 @@ func (x *fastReflection_MsgBridgeReceive_Batch) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgBridgeReceive_Batch) + x := input.Message.Interface().(*MsgBridgeReceiveResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17975,15 +22402,15 @@ func (x *fastReflection_MsgBridgeReceive_Batch) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceive_Batch: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceiveResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceive_Batch: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceiveResponse: 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 Recipient", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BatchDenom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -18011,115 +22438,11 @@ func (x *fastReflection_MsgBridgeReceive_Batch) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Recipient = string(dAtA[iNdEx:postIndex]) + x.BatchDenom = 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 Amount", 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.Amount = 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 StartDate", 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.StartDate == nil { - x.StartDate = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StartDate); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EndDate", 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.EndDate == nil { - x.EndDate = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EndDate); 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 Metadata", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -18147,7 +22470,7 @@ func (x *fastReflection_MsgBridgeReceive_Batch) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Metadata = string(dAtA[iNdEx:postIndex]) + x.ProjectId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -18185,30 +22508,28 @@ func (x *fastReflection_MsgBridgeReceive_Batch) ProtoMethods() *protoiface.Metho } var ( - md_MsgBridgeReceive_Project protoreflect.MessageDescriptor - fd_MsgBridgeReceive_Project_reference_id protoreflect.FieldDescriptor - fd_MsgBridgeReceive_Project_jurisdiction protoreflect.FieldDescriptor - fd_MsgBridgeReceive_Project_metadata protoreflect.FieldDescriptor + md_MsgAddClassCreator protoreflect.MessageDescriptor + fd_MsgAddClassCreator_authority protoreflect.FieldDescriptor + fd_MsgAddClassCreator_creator protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgBridgeReceive_Project = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridgeReceive").Messages().ByName("Project") - fd_MsgBridgeReceive_Project_reference_id = md_MsgBridgeReceive_Project.Fields().ByName("reference_id") - fd_MsgBridgeReceive_Project_jurisdiction = md_MsgBridgeReceive_Project.Fields().ByName("jurisdiction") - fd_MsgBridgeReceive_Project_metadata = md_MsgBridgeReceive_Project.Fields().ByName("metadata") + md_MsgAddClassCreator = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgAddClassCreator") + fd_MsgAddClassCreator_authority = md_MsgAddClassCreator.Fields().ByName("authority") + fd_MsgAddClassCreator_creator = md_MsgAddClassCreator.Fields().ByName("creator") } -var _ protoreflect.Message = (*fastReflection_MsgBridgeReceive_Project)(nil) +var _ protoreflect.Message = (*fastReflection_MsgAddClassCreator)(nil) -type fastReflection_MsgBridgeReceive_Project MsgBridgeReceive_Project +type fastReflection_MsgAddClassCreator MsgAddClassCreator -func (x *MsgBridgeReceive_Project) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBridgeReceive_Project)(x) +func (x *MsgAddClassCreator) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAddClassCreator)(x) } -func (x *MsgBridgeReceive_Project) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[50] +func (x *MsgAddClassCreator) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18219,43 +22540,43 @@ func (x *MsgBridgeReceive_Project) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgBridgeReceive_Project_messageType fastReflection_MsgBridgeReceive_Project_messageType -var _ protoreflect.MessageType = fastReflection_MsgBridgeReceive_Project_messageType{} +var _fastReflection_MsgAddClassCreator_messageType fastReflection_MsgAddClassCreator_messageType +var _ protoreflect.MessageType = fastReflection_MsgAddClassCreator_messageType{} -type fastReflection_MsgBridgeReceive_Project_messageType struct{} +type fastReflection_MsgAddClassCreator_messageType struct{} -func (x fastReflection_MsgBridgeReceive_Project_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBridgeReceive_Project)(nil) +func (x fastReflection_MsgAddClassCreator_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAddClassCreator)(nil) } -func (x fastReflection_MsgBridgeReceive_Project_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBridgeReceive_Project) +func (x fastReflection_MsgAddClassCreator_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAddClassCreator) } -func (x fastReflection_MsgBridgeReceive_Project_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridgeReceive_Project +func (x fastReflection_MsgAddClassCreator_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddClassCreator } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgBridgeReceive_Project) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridgeReceive_Project +func (x *fastReflection_MsgAddClassCreator) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddClassCreator } // 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_MsgBridgeReceive_Project) Type() protoreflect.MessageType { - return _fastReflection_MsgBridgeReceive_Project_messageType +func (x *fastReflection_MsgAddClassCreator) Type() protoreflect.MessageType { + return _fastReflection_MsgAddClassCreator_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBridgeReceive_Project) New() protoreflect.Message { - return new(fastReflection_MsgBridgeReceive_Project) +func (x *fastReflection_MsgAddClassCreator) New() protoreflect.Message { + return new(fastReflection_MsgAddClassCreator) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBridgeReceive_Project) Interface() protoreflect.ProtoMessage { - return (*MsgBridgeReceive_Project)(x) +func (x *fastReflection_MsgAddClassCreator) Interface() protoreflect.ProtoMessage { + return (*MsgAddClassCreator)(x) } // Range iterates over every populated field in an undefined order, @@ -18263,22 +22584,16 @@ func (x *fastReflection_MsgBridgeReceive_Project) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgBridgeReceive_Project) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ReferenceId != "" { - value := protoreflect.ValueOfString(x.ReferenceId) - if !f(fd_MsgBridgeReceive_Project_reference_id, value) { - return - } - } - if x.Jurisdiction != "" { - value := protoreflect.ValueOfString(x.Jurisdiction) - if !f(fd_MsgBridgeReceive_Project_jurisdiction, value) { +func (x *fastReflection_MsgAddClassCreator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgAddClassCreator_authority, value) { return } } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgBridgeReceive_Project_metadata, value) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgAddClassCreator_creator, value) { return } } @@ -18295,19 +22610,17 @@ func (x *fastReflection_MsgBridgeReceive_Project) Range(f func(protoreflect.Fiel // 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_MsgBridgeReceive_Project) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgAddClassCreator) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": - return x.ReferenceId != "" - case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": - return x.Jurisdiction != "" - case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": - return x.Metadata != "" + case "regen.ecocredit.v1.MsgAddClassCreator.authority": + return x.Authority != "" + case "regen.ecocredit.v1.MsgAddClassCreator.creator": + return x.Creator != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator does not contain field %s", fd.FullName())) } } @@ -18317,19 +22630,17 @@ func (x *fastReflection_MsgBridgeReceive_Project) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive_Project) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgAddClassCreator) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": - x.ReferenceId = "" - case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": - x.Jurisdiction = "" - case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": - x.Metadata = "" + case "regen.ecocredit.v1.MsgAddClassCreator.authority": + x.Authority = "" + case "regen.ecocredit.v1.MsgAddClassCreator.creator": + x.Creator = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator does not contain field %s", fd.FullName())) } } @@ -18339,22 +22650,19 @@ func (x *fastReflection_MsgBridgeReceive_Project) Clear(fd protoreflect.FieldDes // 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_MsgBridgeReceive_Project) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAddClassCreator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": - value := x.ReferenceId - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": - value := x.Jurisdiction + case "regen.ecocredit.v1.MsgAddClassCreator.authority": + value := x.Authority return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": - value := x.Metadata + case "regen.ecocredit.v1.MsgAddClassCreator.creator": + value := x.Creator return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator does not contain field %s", descriptor.FullName())) } } @@ -18368,19 +22676,17 @@ func (x *fastReflection_MsgBridgeReceive_Project) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive_Project) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgAddClassCreator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": - x.ReferenceId = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": - x.Jurisdiction = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": - x.Metadata = value.Interface().(string) + case "regen.ecocredit.v1.MsgAddClassCreator.authority": + x.Authority = value.Interface().(string) + case "regen.ecocredit.v1.MsgAddClassCreator.creator": + x.Creator = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator does not contain field %s", fd.FullName())) } } @@ -18394,48 +22700,44 @@ func (x *fastReflection_MsgBridgeReceive_Project) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive_Project) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAddClassCreator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": - panic(fmt.Errorf("field reference_id of message regen.ecocredit.v1.MsgBridgeReceive.Project is not mutable")) - case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": - panic(fmt.Errorf("field jurisdiction of message regen.ecocredit.v1.MsgBridgeReceive.Project is not mutable")) - case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": - panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgBridgeReceive.Project is not mutable")) + case "regen.ecocredit.v1.MsgAddClassCreator.authority": + panic(fmt.Errorf("field authority of message regen.ecocredit.v1.MsgAddClassCreator is not mutable")) + case "regen.ecocredit.v1.MsgAddClassCreator.creator": + panic(fmt.Errorf("field creator of message regen.ecocredit.v1.MsgAddClassCreator is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator 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_MsgBridgeReceive_Project) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAddClassCreator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceive.Project.reference_id": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridgeReceive.Project.jurisdiction": + case "regen.ecocredit.v1.MsgAddClassCreator.authority": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridgeReceive.Project.metadata": + case "regen.ecocredit.v1.MsgAddClassCreator.creator": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceive.Project")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceive.Project does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator 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_MsgBridgeReceive_Project) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgAddClassCreator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridgeReceive.Project", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgAddClassCreator", d.FullName())) } panic("unreachable") } @@ -18443,7 +22745,7 @@ func (x *fastReflection_MsgBridgeReceive_Project) WhichOneof(d protoreflect.Oneo // 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_MsgBridgeReceive_Project) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgAddClassCreator) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -18454,7 +22756,7 @@ func (x *fastReflection_MsgBridgeReceive_Project) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceive_Project) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgAddClassCreator) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -18466,7 +22768,7 @@ func (x *fastReflection_MsgBridgeReceive_Project) SetUnknown(fields protoreflect // 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_MsgBridgeReceive_Project) IsValid() bool { +func (x *fastReflection_MsgAddClassCreator) IsValid() bool { return x != nil } @@ -18476,9 +22778,9 @@ func (x *fastReflection_MsgBridgeReceive_Project) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgBridgeReceive_Project) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgAddClassCreator) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBridgeReceive_Project) + x := input.Message.Interface().(*MsgAddClassCreator) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18490,15 +22792,11 @@ func (x *fastReflection_MsgBridgeReceive_Project) ProtoMethods() *protoiface.Met var n int var l int _ = l - l = len(x.ReferenceId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Jurisdiction) + l = len(x.Authority) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Metadata) + l = len(x.Creator) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -18512,7 +22810,7 @@ func (x *fastReflection_MsgBridgeReceive_Project) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgBridgeReceive_Project) + x := input.Message.Interface().(*MsgAddClassCreator) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18531,24 +22829,17 @@ func (x *fastReflection_MsgBridgeReceive_Project) ProtoMethods() *protoiface.Met i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.Jurisdiction) > 0 { - i -= len(x.Jurisdiction) - copy(dAtA[i:], x.Jurisdiction) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jurisdiction))) + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) i-- dAtA[i] = 0x12 } - if len(x.ReferenceId) > 0 { - i -= len(x.ReferenceId) - copy(dAtA[i:], x.ReferenceId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReferenceId))) + 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 } @@ -18563,7 +22854,7 @@ func (x *fastReflection_MsgBridgeReceive_Project) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgBridgeReceive_Project) + x := input.Message.Interface().(*MsgAddClassCreator) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18595,15 +22886,15 @@ func (x *fastReflection_MsgBridgeReceive_Project) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceive_Project: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddClassCreator: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceive_Project: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddClassCreator: 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 ReferenceId", wireType) + 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 { @@ -18631,43 +22922,11 @@ func (x *fastReflection_MsgBridgeReceive_Project) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ReferenceId = string(dAtA[iNdEx:postIndex]) + 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 Jurisdiction", 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.Jurisdiction = 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 Metadata", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -18695,7 +22954,7 @@ func (x *fastReflection_MsgBridgeReceive_Project) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Metadata = string(dAtA[iNdEx:postIndex]) + x.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -18733,28 +22992,24 @@ func (x *fastReflection_MsgBridgeReceive_Project) ProtoMethods() *protoiface.Met } var ( - md_MsgBridgeReceiveResponse protoreflect.MessageDescriptor - fd_MsgBridgeReceiveResponse_batch_denom protoreflect.FieldDescriptor - fd_MsgBridgeReceiveResponse_project_id protoreflect.FieldDescriptor + md_MsgAddClassCreatorResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgBridgeReceiveResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridgeReceiveResponse") - fd_MsgBridgeReceiveResponse_batch_denom = md_MsgBridgeReceiveResponse.Fields().ByName("batch_denom") - fd_MsgBridgeReceiveResponse_project_id = md_MsgBridgeReceiveResponse.Fields().ByName("project_id") + md_MsgAddClassCreatorResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgAddClassCreatorResponse") } -var _ protoreflect.Message = (*fastReflection_MsgBridgeReceiveResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgAddClassCreatorResponse)(nil) -type fastReflection_MsgBridgeReceiveResponse MsgBridgeReceiveResponse +type fastReflection_MsgAddClassCreatorResponse MsgAddClassCreatorResponse -func (x *MsgBridgeReceiveResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBridgeReceiveResponse)(x) +func (x *MsgAddClassCreatorResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAddClassCreatorResponse)(x) } -func (x *MsgBridgeReceiveResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[33] +func (x *MsgAddClassCreatorResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18765,43 +23020,43 @@ func (x *MsgBridgeReceiveResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgBridgeReceiveResponse_messageType fastReflection_MsgBridgeReceiveResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgBridgeReceiveResponse_messageType{} +var _fastReflection_MsgAddClassCreatorResponse_messageType fastReflection_MsgAddClassCreatorResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgAddClassCreatorResponse_messageType{} -type fastReflection_MsgBridgeReceiveResponse_messageType struct{} +type fastReflection_MsgAddClassCreatorResponse_messageType struct{} -func (x fastReflection_MsgBridgeReceiveResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBridgeReceiveResponse)(nil) +func (x fastReflection_MsgAddClassCreatorResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAddClassCreatorResponse)(nil) } -func (x fastReflection_MsgBridgeReceiveResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBridgeReceiveResponse) +func (x fastReflection_MsgAddClassCreatorResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAddClassCreatorResponse) } -func (x fastReflection_MsgBridgeReceiveResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridgeReceiveResponse +func (x fastReflection_MsgAddClassCreatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddClassCreatorResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgBridgeReceiveResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridgeReceiveResponse +func (x *fastReflection_MsgAddClassCreatorResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddClassCreatorResponse } // 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_MsgBridgeReceiveResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgBridgeReceiveResponse_messageType +func (x *fastReflection_MsgAddClassCreatorResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgAddClassCreatorResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBridgeReceiveResponse) New() protoreflect.Message { - return new(fastReflection_MsgBridgeReceiveResponse) +func (x *fastReflection_MsgAddClassCreatorResponse) New() protoreflect.Message { + return new(fastReflection_MsgAddClassCreatorResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBridgeReceiveResponse) Interface() protoreflect.ProtoMessage { - return (*MsgBridgeReceiveResponse)(x) +func (x *fastReflection_MsgAddClassCreatorResponse) Interface() protoreflect.ProtoMessage { + return (*MsgAddClassCreatorResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -18809,19 +23064,7 @@ func (x *fastReflection_MsgBridgeReceiveResponse) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgBridgeReceiveResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.BatchDenom != "" { - value := protoreflect.ValueOfString(x.BatchDenom) - if !f(fd_MsgBridgeReceiveResponse_batch_denom, value) { - return - } - } - if x.ProjectId != "" { - value := protoreflect.ValueOfString(x.ProjectId) - if !f(fd_MsgBridgeReceiveResponse_project_id, value) { - return - } - } +func (x *fastReflection_MsgAddClassCreatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -18835,17 +23078,13 @@ func (x *fastReflection_MsgBridgeReceiveResponse) Range(f func(protoreflect.Fiel // 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_MsgBridgeReceiveResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgAddClassCreatorResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": - return x.BatchDenom != "" - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": - return x.ProjectId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse does not contain field %s", fd.FullName())) } } @@ -18855,17 +23094,13 @@ func (x *fastReflection_MsgBridgeReceiveResponse) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceiveResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgAddClassCreatorResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": - x.BatchDenom = "" - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": - x.ProjectId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse does not contain field %s", fd.FullName())) } } @@ -18875,19 +23110,13 @@ func (x *fastReflection_MsgBridgeReceiveResponse) Clear(fd protoreflect.FieldDes // 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_MsgBridgeReceiveResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAddClassCreatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": - value := x.BatchDenom - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": - value := x.ProjectId - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse does not contain field %s", descriptor.FullName())) } } @@ -18901,17 +23130,13 @@ func (x *fastReflection_MsgBridgeReceiveResponse) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceiveResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgAddClassCreatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": - x.BatchDenom = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": - x.ProjectId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse does not contain field %s", fd.FullName())) } } @@ -18925,44 +23150,36 @@ func (x *fastReflection_MsgBridgeReceiveResponse) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceiveResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAddClassCreatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": - panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgBridgeReceiveResponse is not mutable")) - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": - panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgBridgeReceiveResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse 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_MsgBridgeReceiveResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAddClassCreatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.batch_denom": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridgeReceiveResponse.project_id": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridgeReceiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridgeReceiveResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse 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_MsgBridgeReceiveResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgAddClassCreatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridgeReceiveResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgAddClassCreatorResponse", d.FullName())) } panic("unreachable") } @@ -18970,7 +23187,7 @@ func (x *fastReflection_MsgBridgeReceiveResponse) WhichOneof(d protoreflect.Oneo // 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_MsgBridgeReceiveResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgAddClassCreatorResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -18981,7 +23198,7 @@ func (x *fastReflection_MsgBridgeReceiveResponse) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridgeReceiveResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgAddClassCreatorResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -18993,7 +23210,7 @@ func (x *fastReflection_MsgBridgeReceiveResponse) SetUnknown(fields protoreflect // 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_MsgBridgeReceiveResponse) IsValid() bool { +func (x *fastReflection_MsgAddClassCreatorResponse) IsValid() bool { return x != nil } @@ -19003,9 +23220,9 @@ func (x *fastReflection_MsgBridgeReceiveResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgBridgeReceiveResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgAddClassCreatorResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBridgeReceiveResponse) + x := input.Message.Interface().(*MsgAddClassCreatorResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19017,14 +23234,6 @@ func (x *fastReflection_MsgBridgeReceiveResponse) ProtoMethods() *protoiface.Met var n int var l int _ = l - l = len(x.BatchDenom) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ProjectId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -19035,7 +23244,7 @@ func (x *fastReflection_MsgBridgeReceiveResponse) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgBridgeReceiveResponse) + x := input.Message.Interface().(*MsgAddClassCreatorResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19054,20 +23263,6 @@ func (x *fastReflection_MsgBridgeReceiveResponse) ProtoMethods() *protoiface.Met i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.ProjectId) > 0 { - i -= len(x.ProjectId) - copy(dAtA[i:], x.ProjectId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) - i-- - dAtA[i] = 0x12 - } - if len(x.BatchDenom) > 0 { - i -= len(x.BatchDenom) - copy(dAtA[i:], x.BatchDenom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -19079,7 +23274,7 @@ func (x *fastReflection_MsgBridgeReceiveResponse) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgBridgeReceiveResponse) + x := input.Message.Interface().(*MsgAddClassCreatorResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19111,76 +23306,12 @@ func (x *fastReflection_MsgBridgeReceiveResponse) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceiveResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddClassCreatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridgeReceiveResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddClassCreatorResponse: 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 BatchDenom", 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.BatchDenom = 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 ProjectId", 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.ProjectId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -19217,28 +23348,28 @@ func (x *fastReflection_MsgBridgeReceiveResponse) ProtoMethods() *protoiface.Met } var ( - md_MsgAddClassCreator protoreflect.MessageDescriptor - fd_MsgAddClassCreator_authority protoreflect.FieldDescriptor - fd_MsgAddClassCreator_creator protoreflect.FieldDescriptor + md_MsgSetClassCreatorAllowlist protoreflect.MessageDescriptor + fd_MsgSetClassCreatorAllowlist_authority protoreflect.FieldDescriptor + fd_MsgSetClassCreatorAllowlist_enabled protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgAddClassCreator = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgAddClassCreator") - fd_MsgAddClassCreator_authority = md_MsgAddClassCreator.Fields().ByName("authority") - fd_MsgAddClassCreator_creator = md_MsgAddClassCreator.Fields().ByName("creator") + md_MsgSetClassCreatorAllowlist = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSetClassCreatorAllowlist") + fd_MsgSetClassCreatorAllowlist_authority = md_MsgSetClassCreatorAllowlist.Fields().ByName("authority") + fd_MsgSetClassCreatorAllowlist_enabled = md_MsgSetClassCreatorAllowlist.Fields().ByName("enabled") } -var _ protoreflect.Message = (*fastReflection_MsgAddClassCreator)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSetClassCreatorAllowlist)(nil) -type fastReflection_MsgAddClassCreator MsgAddClassCreator +type fastReflection_MsgSetClassCreatorAllowlist MsgSetClassCreatorAllowlist -func (x *MsgAddClassCreator) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAddClassCreator)(x) +func (x *MsgSetClassCreatorAllowlist) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetClassCreatorAllowlist)(x) } -func (x *MsgAddClassCreator) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[34] +func (x *MsgSetClassCreatorAllowlist) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19249,43 +23380,43 @@ func (x *MsgAddClassCreator) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgAddClassCreator_messageType fastReflection_MsgAddClassCreator_messageType -var _ protoreflect.MessageType = fastReflection_MsgAddClassCreator_messageType{} +var _fastReflection_MsgSetClassCreatorAllowlist_messageType fastReflection_MsgSetClassCreatorAllowlist_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetClassCreatorAllowlist_messageType{} -type fastReflection_MsgAddClassCreator_messageType struct{} +type fastReflection_MsgSetClassCreatorAllowlist_messageType struct{} -func (x fastReflection_MsgAddClassCreator_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAddClassCreator)(nil) +func (x fastReflection_MsgSetClassCreatorAllowlist_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetClassCreatorAllowlist)(nil) } -func (x fastReflection_MsgAddClassCreator_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAddClassCreator) +func (x fastReflection_MsgSetClassCreatorAllowlist_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetClassCreatorAllowlist) } -func (x fastReflection_MsgAddClassCreator_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAddClassCreator +func (x fastReflection_MsgSetClassCreatorAllowlist_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetClassCreatorAllowlist } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgAddClassCreator) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAddClassCreator +func (x *fastReflection_MsgSetClassCreatorAllowlist) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetClassCreatorAllowlist } // 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_MsgAddClassCreator) Type() protoreflect.MessageType { - return _fastReflection_MsgAddClassCreator_messageType +func (x *fastReflection_MsgSetClassCreatorAllowlist) Type() protoreflect.MessageType { + return _fastReflection_MsgSetClassCreatorAllowlist_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAddClassCreator) New() protoreflect.Message { - return new(fastReflection_MsgAddClassCreator) +func (x *fastReflection_MsgSetClassCreatorAllowlist) New() protoreflect.Message { + return new(fastReflection_MsgSetClassCreatorAllowlist) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAddClassCreator) Interface() protoreflect.ProtoMessage { - return (*MsgAddClassCreator)(x) +func (x *fastReflection_MsgSetClassCreatorAllowlist) Interface() protoreflect.ProtoMessage { + return (*MsgSetClassCreatorAllowlist)(x) } // Range iterates over every populated field in an undefined order, @@ -19293,16 +23424,16 @@ func (x *fastReflection_MsgAddClassCreator) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgAddClassCreator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSetClassCreatorAllowlist) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Authority != "" { value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgAddClassCreator_authority, value) { + if !f(fd_MsgSetClassCreatorAllowlist_authority, value) { return } } - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgAddClassCreator_creator, value) { + if x.Enabled != false { + value := protoreflect.ValueOfBool(x.Enabled) + if !f(fd_MsgSetClassCreatorAllowlist_enabled, value) { return } } @@ -19319,17 +23450,17 @@ func (x *fastReflection_MsgAddClassCreator) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgAddClassCreator) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSetClassCreatorAllowlist) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgAddClassCreator.authority": + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": return x.Authority != "" - case "regen.ecocredit.v1.MsgAddClassCreator.creator": - return x.Creator != "" + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": + return x.Enabled != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist does not contain field %s", fd.FullName())) } } @@ -19339,17 +23470,17 @@ func (x *fastReflection_MsgAddClassCreator) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddClassCreator) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSetClassCreatorAllowlist) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgAddClassCreator.authority": + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": x.Authority = "" - case "regen.ecocredit.v1.MsgAddClassCreator.creator": - x.Creator = "" + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": + x.Enabled = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist does not contain field %s", fd.FullName())) } } @@ -19359,19 +23490,19 @@ func (x *fastReflection_MsgAddClassCreator) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgAddClassCreator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSetClassCreatorAllowlist) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgAddClassCreator.authority": + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": value := x.Authority return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgAddClassCreator.creator": - value := x.Creator - return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": + value := x.Enabled + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist does not contain field %s", descriptor.FullName())) } } @@ -19385,17 +23516,17 @@ func (x *fastReflection_MsgAddClassCreator) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddClassCreator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSetClassCreatorAllowlist) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgAddClassCreator.authority": + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": x.Authority = value.Interface().(string) - case "regen.ecocredit.v1.MsgAddClassCreator.creator": - x.Creator = value.Interface().(string) + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": + x.Enabled = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist does not contain field %s", fd.FullName())) } } @@ -19409,44 +23540,44 @@ func (x *fastReflection_MsgAddClassCreator) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddClassCreator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSetClassCreatorAllowlist) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgAddClassCreator.authority": - panic(fmt.Errorf("field authority of message regen.ecocredit.v1.MsgAddClassCreator is not mutable")) - case "regen.ecocredit.v1.MsgAddClassCreator.creator": - panic(fmt.Errorf("field creator of message regen.ecocredit.v1.MsgAddClassCreator is not mutable")) + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": + panic(fmt.Errorf("field authority of message regen.ecocredit.v1.MsgSetClassCreatorAllowlist is not mutable")) + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": + panic(fmt.Errorf("field enabled of message regen.ecocredit.v1.MsgSetClassCreatorAllowlist is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist 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_MsgAddClassCreator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSetClassCreatorAllowlist) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgAddClassCreator.authority": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgAddClassCreator.creator": + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist 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_MsgAddClassCreator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSetClassCreatorAllowlist) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgAddClassCreator", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSetClassCreatorAllowlist", d.FullName())) } panic("unreachable") } @@ -19454,7 +23585,7 @@ func (x *fastReflection_MsgAddClassCreator) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgAddClassCreator) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSetClassCreatorAllowlist) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -19465,7 +23596,7 @@ func (x *fastReflection_MsgAddClassCreator) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddClassCreator) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSetClassCreatorAllowlist) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -19477,7 +23608,7 @@ func (x *fastReflection_MsgAddClassCreator) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgAddClassCreator) IsValid() bool { +func (x *fastReflection_MsgSetClassCreatorAllowlist) IsValid() bool { return x != nil } @@ -19487,9 +23618,9 @@ func (x *fastReflection_MsgAddClassCreator) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgAddClassCreator) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSetClassCreatorAllowlist) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAddClassCreator) + x := input.Message.Interface().(*MsgSetClassCreatorAllowlist) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19505,9 +23636,8 @@ func (x *fastReflection_MsgAddClassCreator) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.Enabled { + n += 2 } if x.unknownFields != nil { n += len(x.unknownFields) @@ -19519,7 +23649,7 @@ func (x *fastReflection_MsgAddClassCreator) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAddClassCreator) + x := input.Message.Interface().(*MsgSetClassCreatorAllowlist) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19538,12 +23668,15 @@ func (x *fastReflection_MsgAddClassCreator) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + if x.Enabled { i-- - dAtA[i] = 0x12 + if x.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 } if len(x.Authority) > 0 { i -= len(x.Authority) @@ -19563,7 +23696,7 @@ func (x *fastReflection_MsgAddClassCreator) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAddClassCreator) + x := input.Message.Interface().(*MsgSetClassCreatorAllowlist) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19595,10 +23728,10 @@ func (x *fastReflection_MsgAddClassCreator) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddClassCreator: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetClassCreatorAllowlist: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddClassCreator: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetClassCreatorAllowlist: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -19634,10 +23767,10 @@ func (x *fastReflection_MsgAddClassCreator) ProtoMethods() *protoiface.Methods { 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 Creator", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -19647,24 +23780,12 @@ func (x *fastReflection_MsgAddClassCreator) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + x.Enabled = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -19701,24 +23822,24 @@ func (x *fastReflection_MsgAddClassCreator) ProtoMethods() *protoiface.Methods { } var ( - md_MsgAddClassCreatorResponse protoreflect.MessageDescriptor + md_MsgSetClassCreatorAllowlistResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgAddClassCreatorResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgAddClassCreatorResponse") + md_MsgSetClassCreatorAllowlistResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSetClassCreatorAllowlistResponse") } -var _ protoreflect.Message = (*fastReflection_MsgAddClassCreatorResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSetClassCreatorAllowlistResponse)(nil) -type fastReflection_MsgAddClassCreatorResponse MsgAddClassCreatorResponse +type fastReflection_MsgSetClassCreatorAllowlistResponse MsgSetClassCreatorAllowlistResponse -func (x *MsgAddClassCreatorResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAddClassCreatorResponse)(x) +func (x *MsgSetClassCreatorAllowlistResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetClassCreatorAllowlistResponse)(x) } -func (x *MsgAddClassCreatorResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[35] +func (x *MsgSetClassCreatorAllowlistResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19729,43 +23850,43 @@ func (x *MsgAddClassCreatorResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgAddClassCreatorResponse_messageType fastReflection_MsgAddClassCreatorResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgAddClassCreatorResponse_messageType{} +var _fastReflection_MsgSetClassCreatorAllowlistResponse_messageType fastReflection_MsgSetClassCreatorAllowlistResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetClassCreatorAllowlistResponse_messageType{} -type fastReflection_MsgAddClassCreatorResponse_messageType struct{} +type fastReflection_MsgSetClassCreatorAllowlistResponse_messageType struct{} -func (x fastReflection_MsgAddClassCreatorResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAddClassCreatorResponse)(nil) +func (x fastReflection_MsgSetClassCreatorAllowlistResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetClassCreatorAllowlistResponse)(nil) } -func (x fastReflection_MsgAddClassCreatorResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAddClassCreatorResponse) +func (x fastReflection_MsgSetClassCreatorAllowlistResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetClassCreatorAllowlistResponse) } -func (x fastReflection_MsgAddClassCreatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAddClassCreatorResponse +func (x fastReflection_MsgSetClassCreatorAllowlistResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetClassCreatorAllowlistResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgAddClassCreatorResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAddClassCreatorResponse +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetClassCreatorAllowlistResponse } // 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_MsgAddClassCreatorResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgAddClassCreatorResponse_messageType +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetClassCreatorAllowlistResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAddClassCreatorResponse) New() protoreflect.Message { - return new(fastReflection_MsgAddClassCreatorResponse) +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetClassCreatorAllowlistResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAddClassCreatorResponse) Interface() protoreflect.ProtoMessage { - return (*MsgAddClassCreatorResponse)(x) +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetClassCreatorAllowlistResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -19773,7 +23894,7 @@ func (x *fastReflection_MsgAddClassCreatorResponse) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgAddClassCreatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -19787,13 +23908,13 @@ func (x *fastReflection_MsgAddClassCreatorResponse) Range(f func(protoreflect.Fi // 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_MsgAddClassCreatorResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse does not contain field %s", fd.FullName())) } } @@ -19803,13 +23924,13 @@ func (x *fastReflection_MsgAddClassCreatorResponse) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddClassCreatorResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse does not contain field %s", fd.FullName())) } } @@ -19819,13 +23940,13 @@ func (x *fastReflection_MsgAddClassCreatorResponse) Clear(fd protoreflect.FieldD // 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_MsgAddClassCreatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse does not contain field %s", descriptor.FullName())) } } @@ -19839,13 +23960,13 @@ func (x *fastReflection_MsgAddClassCreatorResponse) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddClassCreatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse does not contain field %s", fd.FullName())) } } @@ -19859,36 +23980,36 @@ func (x *fastReflection_MsgAddClassCreatorResponse) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddClassCreatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse 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_MsgAddClassCreatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgAddClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgAddClassCreatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse 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_MsgAddClassCreatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgAddClassCreatorResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", d.FullName())) } panic("unreachable") } @@ -19896,7 +24017,7 @@ func (x *fastReflection_MsgAddClassCreatorResponse) WhichOneof(d protoreflect.On // 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_MsgAddClassCreatorResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -19907,7 +24028,7 @@ func (x *fastReflection_MsgAddClassCreatorResponse) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddClassCreatorResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -19919,7 +24040,7 @@ func (x *fastReflection_MsgAddClassCreatorResponse) SetUnknown(fields protorefle // 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_MsgAddClassCreatorResponse) IsValid() bool { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) IsValid() bool { return x != nil } @@ -19929,9 +24050,9 @@ func (x *fastReflection_MsgAddClassCreatorResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgAddClassCreatorResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAddClassCreatorResponse) + x := input.Message.Interface().(*MsgSetClassCreatorAllowlistResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19953,7 +24074,7 @@ func (x *fastReflection_MsgAddClassCreatorResponse) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAddClassCreatorResponse) + x := input.Message.Interface().(*MsgSetClassCreatorAllowlistResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19983,7 +24104,7 @@ func (x *fastReflection_MsgAddClassCreatorResponse) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAddClassCreatorResponse) + x := input.Message.Interface().(*MsgSetClassCreatorAllowlistResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20015,10 +24136,10 @@ func (x *fastReflection_MsgAddClassCreatorResponse) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddClassCreatorResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetClassCreatorAllowlistResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddClassCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetClassCreatorAllowlistResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -20057,28 +24178,28 @@ func (x *fastReflection_MsgAddClassCreatorResponse) ProtoMethods() *protoiface.M } var ( - md_MsgSetClassCreatorAllowlist protoreflect.MessageDescriptor - fd_MsgSetClassCreatorAllowlist_authority protoreflect.FieldDescriptor - fd_MsgSetClassCreatorAllowlist_enabled protoreflect.FieldDescriptor + md_MsgRemoveClassCreator protoreflect.MessageDescriptor + fd_MsgRemoveClassCreator_authority protoreflect.FieldDescriptor + fd_MsgRemoveClassCreator_creator protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgSetClassCreatorAllowlist = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSetClassCreatorAllowlist") - fd_MsgSetClassCreatorAllowlist_authority = md_MsgSetClassCreatorAllowlist.Fields().ByName("authority") - fd_MsgSetClassCreatorAllowlist_enabled = md_MsgSetClassCreatorAllowlist.Fields().ByName("enabled") + md_MsgRemoveClassCreator = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgRemoveClassCreator") + fd_MsgRemoveClassCreator_authority = md_MsgRemoveClassCreator.Fields().ByName("authority") + fd_MsgRemoveClassCreator_creator = md_MsgRemoveClassCreator.Fields().ByName("creator") } -var _ protoreflect.Message = (*fastReflection_MsgSetClassCreatorAllowlist)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRemoveClassCreator)(nil) -type fastReflection_MsgSetClassCreatorAllowlist MsgSetClassCreatorAllowlist +type fastReflection_MsgRemoveClassCreator MsgRemoveClassCreator -func (x *MsgSetClassCreatorAllowlist) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetClassCreatorAllowlist)(x) +func (x *MsgRemoveClassCreator) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveClassCreator)(x) } -func (x *MsgSetClassCreatorAllowlist) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[36] +func (x *MsgRemoveClassCreator) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -20089,43 +24210,43 @@ func (x *MsgSetClassCreatorAllowlist) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSetClassCreatorAllowlist_messageType fastReflection_MsgSetClassCreatorAllowlist_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetClassCreatorAllowlist_messageType{} +var _fastReflection_MsgRemoveClassCreator_messageType fastReflection_MsgRemoveClassCreator_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveClassCreator_messageType{} -type fastReflection_MsgSetClassCreatorAllowlist_messageType struct{} +type fastReflection_MsgRemoveClassCreator_messageType struct{} -func (x fastReflection_MsgSetClassCreatorAllowlist_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetClassCreatorAllowlist)(nil) +func (x fastReflection_MsgRemoveClassCreator_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveClassCreator)(nil) } -func (x fastReflection_MsgSetClassCreatorAllowlist_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetClassCreatorAllowlist) +func (x fastReflection_MsgRemoveClassCreator_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveClassCreator) } -func (x fastReflection_MsgSetClassCreatorAllowlist_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetClassCreatorAllowlist +func (x fastReflection_MsgRemoveClassCreator_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveClassCreator } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSetClassCreatorAllowlist) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetClassCreatorAllowlist +func (x *fastReflection_MsgRemoveClassCreator) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveClassCreator } // 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_MsgSetClassCreatorAllowlist) Type() protoreflect.MessageType { - return _fastReflection_MsgSetClassCreatorAllowlist_messageType +func (x *fastReflection_MsgRemoveClassCreator) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveClassCreator_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetClassCreatorAllowlist) New() protoreflect.Message { - return new(fastReflection_MsgSetClassCreatorAllowlist) +func (x *fastReflection_MsgRemoveClassCreator) New() protoreflect.Message { + return new(fastReflection_MsgRemoveClassCreator) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetClassCreatorAllowlist) Interface() protoreflect.ProtoMessage { - return (*MsgSetClassCreatorAllowlist)(x) +func (x *fastReflection_MsgRemoveClassCreator) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveClassCreator)(x) } // Range iterates over every populated field in an undefined order, @@ -20133,16 +24254,16 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgSetClassCreatorAllowlist) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRemoveClassCreator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Authority != "" { value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgSetClassCreatorAllowlist_authority, value) { + if !f(fd_MsgRemoveClassCreator_authority, value) { return } } - if x.Enabled != false { - value := protoreflect.ValueOfBool(x.Enabled) - if !f(fd_MsgSetClassCreatorAllowlist_enabled, value) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgRemoveClassCreator_creator, value) { return } } @@ -20159,17 +24280,17 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) Range(f func(protoreflect.F // 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_MsgSetClassCreatorAllowlist) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRemoveClassCreator) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": + case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": return x.Authority != "" - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": - return x.Enabled != false + case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": + return x.Creator != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator does not contain field %s", fd.FullName())) } } @@ -20179,17 +24300,17 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetClassCreatorAllowlist) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRemoveClassCreator) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": + case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": x.Authority = "" - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": - x.Enabled = false + case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": + x.Creator = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator does not contain field %s", fd.FullName())) } } @@ -20199,19 +24320,19 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) Clear(fd protoreflect.Field // 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_MsgSetClassCreatorAllowlist) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRemoveClassCreator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": + case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": value := x.Authority return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": - value := x.Enabled - return protoreflect.ValueOfBool(value) + case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": + value := x.Creator + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator does not contain field %s", descriptor.FullName())) } } @@ -20225,17 +24346,17 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetClassCreatorAllowlist) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRemoveClassCreator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": + case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": x.Authority = value.Interface().(string) - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": - x.Enabled = value.Bool() + case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": + x.Creator = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator does not contain field %s", fd.FullName())) } } @@ -20249,44 +24370,44 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetClassCreatorAllowlist) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRemoveClassCreator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": - panic(fmt.Errorf("field authority of message regen.ecocredit.v1.MsgSetClassCreatorAllowlist is not mutable")) - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": - panic(fmt.Errorf("field enabled of message regen.ecocredit.v1.MsgSetClassCreatorAllowlist is not mutable")) + case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": + panic(fmt.Errorf("field authority of message regen.ecocredit.v1.MsgRemoveClassCreator is not mutable")) + case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": + panic(fmt.Errorf("field creator of message regen.ecocredit.v1.MsgRemoveClassCreator is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator 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_MsgSetClassCreatorAllowlist) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRemoveClassCreator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.authority": + case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgSetClassCreatorAllowlist.enabled": - return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlist")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlist does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator 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_MsgSetClassCreatorAllowlist) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRemoveClassCreator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSetClassCreatorAllowlist", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgRemoveClassCreator", d.FullName())) } panic("unreachable") } @@ -20294,7 +24415,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) WhichOneof(d protoreflect.O // 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_MsgSetClassCreatorAllowlist) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRemoveClassCreator) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -20305,7 +24426,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetClassCreatorAllowlist) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRemoveClassCreator) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -20317,7 +24438,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) SetUnknown(fields protorefl // 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_MsgSetClassCreatorAllowlist) IsValid() bool { +func (x *fastReflection_MsgRemoveClassCreator) IsValid() bool { return x != nil } @@ -20327,9 +24448,9 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSetClassCreatorAllowlist) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRemoveClassCreator) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetClassCreatorAllowlist) + x := input.Message.Interface().(*MsgRemoveClassCreator) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20345,8 +24466,9 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) ProtoMethods() *protoiface. if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.Enabled { - n += 2 + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -20358,7 +24480,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSetClassCreatorAllowlist) + x := input.Message.Interface().(*MsgRemoveClassCreator) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20377,15 +24499,12 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) ProtoMethods() *protoiface. i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Enabled { - i-- - if x.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if len(x.Authority) > 0 { i -= len(x.Authority) @@ -20405,7 +24524,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSetClassCreatorAllowlist) + x := input.Message.Interface().(*MsgRemoveClassCreator) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20437,10 +24556,10 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetClassCreatorAllowlist: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveClassCreator: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetClassCreatorAllowlist: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveClassCreator: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -20476,10 +24595,10 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) ProtoMethods() *protoiface. x.Authority = 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 Enabled", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -20489,12 +24608,24 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) ProtoMethods() *protoiface. } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - x.Enabled = bool(v != 0) + 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -20531,24 +24662,24 @@ func (x *fastReflection_MsgSetClassCreatorAllowlist) ProtoMethods() *protoiface. } var ( - md_MsgSetClassCreatorAllowlistResponse protoreflect.MessageDescriptor + md_MsgRemoveClassCreatorResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgSetClassCreatorAllowlistResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSetClassCreatorAllowlistResponse") + md_MsgRemoveClassCreatorResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgRemoveClassCreatorResponse") } -var _ protoreflect.Message = (*fastReflection_MsgSetClassCreatorAllowlistResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRemoveClassCreatorResponse)(nil) -type fastReflection_MsgSetClassCreatorAllowlistResponse MsgSetClassCreatorAllowlistResponse +type fastReflection_MsgRemoveClassCreatorResponse MsgRemoveClassCreatorResponse -func (x *MsgSetClassCreatorAllowlistResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetClassCreatorAllowlistResponse)(x) +func (x *MsgRemoveClassCreatorResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveClassCreatorResponse)(x) } -func (x *MsgSetClassCreatorAllowlistResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[37] +func (x *MsgRemoveClassCreatorResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -20559,43 +24690,43 @@ func (x *MsgSetClassCreatorAllowlistResponse) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_MsgSetClassCreatorAllowlistResponse_messageType fastReflection_MsgSetClassCreatorAllowlistResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetClassCreatorAllowlistResponse_messageType{} +var _fastReflection_MsgRemoveClassCreatorResponse_messageType fastReflection_MsgRemoveClassCreatorResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveClassCreatorResponse_messageType{} -type fastReflection_MsgSetClassCreatorAllowlistResponse_messageType struct{} +type fastReflection_MsgRemoveClassCreatorResponse_messageType struct{} -func (x fastReflection_MsgSetClassCreatorAllowlistResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetClassCreatorAllowlistResponse)(nil) +func (x fastReflection_MsgRemoveClassCreatorResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveClassCreatorResponse)(nil) } -func (x fastReflection_MsgSetClassCreatorAllowlistResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetClassCreatorAllowlistResponse) +func (x fastReflection_MsgRemoveClassCreatorResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveClassCreatorResponse) } -func (x fastReflection_MsgSetClassCreatorAllowlistResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetClassCreatorAllowlistResponse +func (x fastReflection_MsgRemoveClassCreatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveClassCreatorResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetClassCreatorAllowlistResponse +func (x *fastReflection_MsgRemoveClassCreatorResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveClassCreatorResponse } // 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_MsgSetClassCreatorAllowlistResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetClassCreatorAllowlistResponse_messageType +func (x *fastReflection_MsgRemoveClassCreatorResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveClassCreatorResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetClassCreatorAllowlistResponse) +func (x *fastReflection_MsgRemoveClassCreatorResponse) New() protoreflect.Message { + return new(fastReflection_MsgRemoveClassCreatorResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetClassCreatorAllowlistResponse)(x) +func (x *fastReflection_MsgRemoveClassCreatorResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveClassCreatorResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -20603,7 +24734,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRemoveClassCreatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -20617,13 +24748,13 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Range(f func(protor // 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_MsgSetClassCreatorAllowlistResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRemoveClassCreatorResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse does not contain field %s", fd.FullName())) } } @@ -20633,13 +24764,13 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRemoveClassCreatorResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse does not contain field %s", fd.FullName())) } } @@ -20649,13 +24780,13 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Clear(fd protorefle // 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_MsgSetClassCreatorAllowlistResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRemoveClassCreatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse does not contain field %s", descriptor.FullName())) } } @@ -20669,13 +24800,13 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRemoveClassCreatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse does not contain field %s", fd.FullName())) } } @@ -20689,36 +24820,36 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRemoveClassCreatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse 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_MsgSetClassCreatorAllowlistResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRemoveClassCreatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse 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_MsgSetClassCreatorAllowlistResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRemoveClassCreatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgRemoveClassCreatorResponse", d.FullName())) } panic("unreachable") } @@ -20726,7 +24857,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) WhichOneof(d protor // 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_MsgSetClassCreatorAllowlistResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRemoveClassCreatorResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -20737,7 +24868,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRemoveClassCreatorResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -20749,7 +24880,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) SetUnknown(fields p // 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_MsgSetClassCreatorAllowlistResponse) IsValid() bool { +func (x *fastReflection_MsgRemoveClassCreatorResponse) IsValid() bool { return x != nil } @@ -20759,9 +24890,9 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRemoveClassCreatorResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetClassCreatorAllowlistResponse) + x := input.Message.Interface().(*MsgRemoveClassCreatorResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20783,7 +24914,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSetClassCreatorAllowlistResponse) + x := input.Message.Interface().(*MsgRemoveClassCreatorResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20813,7 +24944,7 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSetClassCreatorAllowlistResponse) + x := input.Message.Interface().(*MsgRemoveClassCreatorResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20845,10 +24976,10 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetClassCreatorAllowlistResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveClassCreatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetClassCreatorAllowlistResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveClassCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -20887,28 +25018,28 @@ func (x *fastReflection_MsgSetClassCreatorAllowlistResponse) ProtoMethods() *pro } var ( - md_MsgRemoveClassCreator protoreflect.MessageDescriptor - fd_MsgRemoveClassCreator_authority protoreflect.FieldDescriptor - fd_MsgRemoveClassCreator_creator protoreflect.FieldDescriptor + md_MsgUpdateClassFee protoreflect.MessageDescriptor + fd_MsgUpdateClassFee_authority protoreflect.FieldDescriptor + fd_MsgUpdateClassFee_fee protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgRemoveClassCreator = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgRemoveClassCreator") - fd_MsgRemoveClassCreator_authority = md_MsgRemoveClassCreator.Fields().ByName("authority") - fd_MsgRemoveClassCreator_creator = md_MsgRemoveClassCreator.Fields().ByName("creator") + md_MsgUpdateClassFee = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassFee") + fd_MsgUpdateClassFee_authority = md_MsgUpdateClassFee.Fields().ByName("authority") + fd_MsgUpdateClassFee_fee = md_MsgUpdateClassFee.Fields().ByName("fee") } -var _ protoreflect.Message = (*fastReflection_MsgRemoveClassCreator)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassFee)(nil) -type fastReflection_MsgRemoveClassCreator MsgRemoveClassCreator +type fastReflection_MsgUpdateClassFee MsgUpdateClassFee -func (x *MsgRemoveClassCreator) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRemoveClassCreator)(x) +func (x *MsgUpdateClassFee) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassFee)(x) } -func (x *MsgRemoveClassCreator) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[38] +func (x *MsgUpdateClassFee) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -20919,43 +25050,43 @@ func (x *MsgRemoveClassCreator) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgRemoveClassCreator_messageType fastReflection_MsgRemoveClassCreator_messageType -var _ protoreflect.MessageType = fastReflection_MsgRemoveClassCreator_messageType{} +var _fastReflection_MsgUpdateClassFee_messageType fastReflection_MsgUpdateClassFee_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassFee_messageType{} -type fastReflection_MsgRemoveClassCreator_messageType struct{} +type fastReflection_MsgUpdateClassFee_messageType struct{} -func (x fastReflection_MsgRemoveClassCreator_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRemoveClassCreator)(nil) +func (x fastReflection_MsgUpdateClassFee_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassFee)(nil) } -func (x fastReflection_MsgRemoveClassCreator_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRemoveClassCreator) +func (x fastReflection_MsgUpdateClassFee_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassFee) } -func (x fastReflection_MsgRemoveClassCreator_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRemoveClassCreator +func (x fastReflection_MsgUpdateClassFee_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassFee } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgRemoveClassCreator) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRemoveClassCreator +func (x *fastReflection_MsgUpdateClassFee) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassFee } // 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_MsgRemoveClassCreator) Type() protoreflect.MessageType { - return _fastReflection_MsgRemoveClassCreator_messageType +func (x *fastReflection_MsgUpdateClassFee) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassFee_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRemoveClassCreator) New() protoreflect.Message { - return new(fastReflection_MsgRemoveClassCreator) +func (x *fastReflection_MsgUpdateClassFee) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassFee) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRemoveClassCreator) Interface() protoreflect.ProtoMessage { - return (*MsgRemoveClassCreator)(x) +func (x *fastReflection_MsgUpdateClassFee) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassFee)(x) } // Range iterates over every populated field in an undefined order, @@ -20963,16 +25094,16 @@ func (x *fastReflection_MsgRemoveClassCreator) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgRemoveClassCreator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateClassFee) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Authority != "" { value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgRemoveClassCreator_authority, value) { + if !f(fd_MsgUpdateClassFee_authority, value) { return } } - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgRemoveClassCreator_creator, value) { + if x.Fee != nil { + value := protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) + if !f(fd_MsgUpdateClassFee_fee, value) { return } } @@ -20989,17 +25120,17 @@ func (x *fastReflection_MsgRemoveClassCreator) Range(f func(protoreflect.FieldDe // 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_MsgRemoveClassCreator) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassFee) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": + case "regen.ecocredit.v1.MsgUpdateClassFee.authority": return x.Authority != "" - case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": - return x.Creator != "" + case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + return x.Fee != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee does not contain field %s", fd.FullName())) } } @@ -21009,17 +25140,17 @@ func (x *fastReflection_MsgRemoveClassCreator) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRemoveClassCreator) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassFee) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": + case "regen.ecocredit.v1.MsgUpdateClassFee.authority": x.Authority = "" - case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": - x.Creator = "" + case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + x.Fee = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee does not contain field %s", fd.FullName())) } } @@ -21029,19 +25160,19 @@ func (x *fastReflection_MsgRemoveClassCreator) Clear(fd protoreflect.FieldDescri // 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_MsgRemoveClassCreator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassFee) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": + case "regen.ecocredit.v1.MsgUpdateClassFee.authority": value := x.Authority return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": - value := x.Creator - return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + value := x.Fee + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee does not contain field %s", descriptor.FullName())) } } @@ -21055,17 +25186,17 @@ func (x *fastReflection_MsgRemoveClassCreator) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRemoveClassCreator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassFee) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": + case "regen.ecocredit.v1.MsgUpdateClassFee.authority": x.Authority = value.Interface().(string) - case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": - x.Creator = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + x.Fee = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee does not contain field %s", fd.FullName())) } } @@ -21079,44 +25210,48 @@ func (x *fastReflection_MsgRemoveClassCreator) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRemoveClassCreator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassFee) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": - panic(fmt.Errorf("field authority of message regen.ecocredit.v1.MsgRemoveClassCreator is not mutable")) - case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": - panic(fmt.Errorf("field creator of message regen.ecocredit.v1.MsgRemoveClassCreator is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + if x.Fee == nil { + x.Fee = new(v1beta1.Coin) + } + return protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) + case "regen.ecocredit.v1.MsgUpdateClassFee.authority": + panic(fmt.Errorf("field authority of message regen.ecocredit.v1.MsgUpdateClassFee is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee 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_MsgRemoveClassCreator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassFee) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRemoveClassCreator.authority": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgRemoveClassCreator.creator": + case "regen.ecocredit.v1.MsgUpdateClassFee.authority": return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + m := new(v1beta1.Coin) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee 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_MsgRemoveClassCreator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassFee) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgRemoveClassCreator", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassFee", d.FullName())) } panic("unreachable") } @@ -21124,7 +25259,7 @@ func (x *fastReflection_MsgRemoveClassCreator) WhichOneof(d protoreflect.OneofDe // 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_MsgRemoveClassCreator) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassFee) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -21135,7 +25270,7 @@ func (x *fastReflection_MsgRemoveClassCreator) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRemoveClassCreator) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassFee) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -21147,7 +25282,7 @@ func (x *fastReflection_MsgRemoveClassCreator) SetUnknown(fields protoreflect.Ra // 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_MsgRemoveClassCreator) IsValid() bool { +func (x *fastReflection_MsgUpdateClassFee) IsValid() bool { return x != nil } @@ -21157,9 +25292,9 @@ func (x *fastReflection_MsgRemoveClassCreator) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgRemoveClassCreator) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassFee) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRemoveClassCreator) + x := input.Message.Interface().(*MsgUpdateClassFee) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21175,8 +25310,8 @@ func (x *fastReflection_MsgRemoveClassCreator) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Creator) - if l > 0 { + if x.Fee != nil { + l = options.Size(x.Fee) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -21189,7 +25324,7 @@ func (x *fastReflection_MsgRemoveClassCreator) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRemoveClassCreator) + x := input.Message.Interface().(*MsgUpdateClassFee) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21208,10 +25343,17 @@ func (x *fastReflection_MsgRemoveClassCreator) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + if x.Fee != nil { + encoded, err := options.Marshal(x.Fee) + 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 } @@ -21233,7 +25375,7 @@ func (x *fastReflection_MsgRemoveClassCreator) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgRemoveClassCreator) + x := input.Message.Interface().(*MsgUpdateClassFee) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21265,10 +25407,10 @@ func (x *fastReflection_MsgRemoveClassCreator) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveClassCreator: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassFee: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveClassCreator: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassFee: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21305,9 +25447,9 @@ func (x *fastReflection_MsgRemoveClassCreator) ProtoMethods() *protoiface.Method iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -21317,23 +25459,27 @@ func (x *fastReflection_MsgRemoveClassCreator) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Creator = string(dAtA[iNdEx:postIndex]) + if x.Fee == nil { + x.Fee = &v1beta1.Coin{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Fee); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -21371,24 +25517,24 @@ func (x *fastReflection_MsgRemoveClassCreator) ProtoMethods() *protoiface.Method } var ( - md_MsgRemoveClassCreatorResponse protoreflect.MessageDescriptor + md_MsgUpdateClassFeeResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgRemoveClassCreatorResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgRemoveClassCreatorResponse") + md_MsgUpdateClassFeeResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassFeeResponse") } -var _ protoreflect.Message = (*fastReflection_MsgRemoveClassCreatorResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassFeeResponse)(nil) -type fastReflection_MsgRemoveClassCreatorResponse MsgRemoveClassCreatorResponse +type fastReflection_MsgUpdateClassFeeResponse MsgUpdateClassFeeResponse -func (x *MsgRemoveClassCreatorResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRemoveClassCreatorResponse)(x) +func (x *MsgUpdateClassFeeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassFeeResponse)(x) } -func (x *MsgRemoveClassCreatorResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[39] +func (x *MsgUpdateClassFeeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -21399,43 +25545,43 @@ func (x *MsgRemoveClassCreatorResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgRemoveClassCreatorResponse_messageType fastReflection_MsgRemoveClassCreatorResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgRemoveClassCreatorResponse_messageType{} +var _fastReflection_MsgUpdateClassFeeResponse_messageType fastReflection_MsgUpdateClassFeeResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassFeeResponse_messageType{} -type fastReflection_MsgRemoveClassCreatorResponse_messageType struct{} +type fastReflection_MsgUpdateClassFeeResponse_messageType struct{} -func (x fastReflection_MsgRemoveClassCreatorResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRemoveClassCreatorResponse)(nil) +func (x fastReflection_MsgUpdateClassFeeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassFeeResponse)(nil) } -func (x fastReflection_MsgRemoveClassCreatorResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRemoveClassCreatorResponse) +func (x fastReflection_MsgUpdateClassFeeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassFeeResponse) } -func (x fastReflection_MsgRemoveClassCreatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRemoveClassCreatorResponse +func (x fastReflection_MsgUpdateClassFeeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassFeeResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgRemoveClassCreatorResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRemoveClassCreatorResponse +func (x *fastReflection_MsgUpdateClassFeeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassFeeResponse } // 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_MsgRemoveClassCreatorResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgRemoveClassCreatorResponse_messageType +func (x *fastReflection_MsgUpdateClassFeeResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassFeeResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRemoveClassCreatorResponse) New() protoreflect.Message { - return new(fastReflection_MsgRemoveClassCreatorResponse) +func (x *fastReflection_MsgUpdateClassFeeResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassFeeResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRemoveClassCreatorResponse) Interface() protoreflect.ProtoMessage { - return (*MsgRemoveClassCreatorResponse)(x) +func (x *fastReflection_MsgUpdateClassFeeResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassFeeResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -21443,7 +25589,7 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgRemoveClassCreatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateClassFeeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -21457,13 +25603,13 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) Range(f func(protoreflect // 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_MsgRemoveClassCreatorResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassFeeResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse does not contain field %s", fd.FullName())) } } @@ -21473,13 +25619,13 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRemoveClassCreatorResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassFeeResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse does not contain field %s", fd.FullName())) } } @@ -21489,13 +25635,13 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) Clear(fd protoreflect.Fie // 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_MsgRemoveClassCreatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassFeeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse does not contain field %s", descriptor.FullName())) } } @@ -21509,13 +25655,13 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRemoveClassCreatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassFeeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse does not contain field %s", fd.FullName())) } } @@ -21529,36 +25675,36 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRemoveClassCreatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassFeeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse 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_MsgRemoveClassCreatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassFeeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRemoveClassCreatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRemoveClassCreatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse 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_MsgRemoveClassCreatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassFeeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgRemoveClassCreatorResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassFeeResponse", d.FullName())) } panic("unreachable") } @@ -21566,7 +25712,7 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) WhichOneof(d protoreflect // 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_MsgRemoveClassCreatorResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassFeeResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -21577,7 +25723,7 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRemoveClassCreatorResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassFeeResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -21589,7 +25735,7 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) SetUnknown(fields protore // 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_MsgRemoveClassCreatorResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateClassFeeResponse) IsValid() bool { return x != nil } @@ -21599,9 +25745,9 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgRemoveClassCreatorResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassFeeResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRemoveClassCreatorResponse) + x := input.Message.Interface().(*MsgUpdateClassFeeResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21623,7 +25769,7 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRemoveClassCreatorResponse) + x := input.Message.Interface().(*MsgUpdateClassFeeResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21653,7 +25799,7 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgRemoveClassCreatorResponse) + x := input.Message.Interface().(*MsgUpdateClassFeeResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21685,10 +25831,10 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveClassCreatorResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassFeeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveClassCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -21727,28 +25873,28 @@ func (x *fastReflection_MsgRemoveClassCreatorResponse) ProtoMethods() *protoifac } var ( - md_MsgUpdateClassFee protoreflect.MessageDescriptor - fd_MsgUpdateClassFee_authority protoreflect.FieldDescriptor - fd_MsgUpdateClassFee_fee protoreflect.FieldDescriptor + md_MsgUpdateProjectFee protoreflect.MessageDescriptor + fd_MsgUpdateProjectFee_authority protoreflect.FieldDescriptor + fd_MsgUpdateProjectFee_fee protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassFee = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassFee") - fd_MsgUpdateClassFee_authority = md_MsgUpdateClassFee.Fields().ByName("authority") - fd_MsgUpdateClassFee_fee = md_MsgUpdateClassFee.Fields().ByName("fee") + md_MsgUpdateProjectFee = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectFee") + fd_MsgUpdateProjectFee_authority = md_MsgUpdateProjectFee.Fields().ByName("authority") + fd_MsgUpdateProjectFee_fee = md_MsgUpdateProjectFee.Fields().ByName("fee") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassFee)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectFee)(nil) -type fastReflection_MsgUpdateClassFee MsgUpdateClassFee +type fastReflection_MsgUpdateProjectFee MsgUpdateProjectFee -func (x *MsgUpdateClassFee) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassFee)(x) +func (x *MsgUpdateProjectFee) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectFee)(x) } -func (x *MsgUpdateClassFee) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[40] +func (x *MsgUpdateProjectFee) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -21759,43 +25905,43 @@ func (x *MsgUpdateClassFee) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassFee_messageType fastReflection_MsgUpdateClassFee_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassFee_messageType{} +var _fastReflection_MsgUpdateProjectFee_messageType fastReflection_MsgUpdateProjectFee_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectFee_messageType{} -type fastReflection_MsgUpdateClassFee_messageType struct{} +type fastReflection_MsgUpdateProjectFee_messageType struct{} -func (x fastReflection_MsgUpdateClassFee_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassFee)(nil) +func (x fastReflection_MsgUpdateProjectFee_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectFee)(nil) } -func (x fastReflection_MsgUpdateClassFee_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassFee) +func (x fastReflection_MsgUpdateProjectFee_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectFee) } -func (x fastReflection_MsgUpdateClassFee_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassFee +func (x fastReflection_MsgUpdateProjectFee_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectFee } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassFee) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassFee +func (x *fastReflection_MsgUpdateProjectFee) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectFee } // 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_MsgUpdateClassFee) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassFee_messageType +func (x *fastReflection_MsgUpdateProjectFee) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectFee_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassFee) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassFee) +func (x *fastReflection_MsgUpdateProjectFee) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectFee) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassFee) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassFee)(x) +func (x *fastReflection_MsgUpdateProjectFee) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectFee)(x) } // Range iterates over every populated field in an undefined order, @@ -21803,16 +25949,16 @@ func (x *fastReflection_MsgUpdateClassFee) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassFee) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateProjectFee) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Authority != "" { value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgUpdateClassFee_authority, value) { + if !f(fd_MsgUpdateProjectFee_authority, value) { return } } if x.Fee != nil { value := protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) - if !f(fd_MsgUpdateClassFee_fee, value) { + if !f(fd_MsgUpdateProjectFee_fee, value) { return } } @@ -21829,17 +25975,17 @@ func (x *fastReflection_MsgUpdateClassFee) Range(f func(protoreflect.FieldDescri // 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_MsgUpdateClassFee) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateProjectFee) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassFee.authority": + case "regen.ecocredit.v1.MsgUpdateProjectFee.authority": return x.Authority != "" - case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + case "regen.ecocredit.v1.MsgUpdateProjectFee.fee": return x.Fee != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFee does not contain field %s", fd.FullName())) } } @@ -21849,17 +25995,17 @@ func (x *fastReflection_MsgUpdateClassFee) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassFee) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateProjectFee) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassFee.authority": + case "regen.ecocredit.v1.MsgUpdateProjectFee.authority": x.Authority = "" - case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + case "regen.ecocredit.v1.MsgUpdateProjectFee.fee": x.Fee = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFee does not contain field %s", fd.FullName())) } } @@ -21869,19 +26015,19 @@ func (x *fastReflection_MsgUpdateClassFee) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateClassFee) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectFee) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassFee.authority": + case "regen.ecocredit.v1.MsgUpdateProjectFee.authority": value := x.Authority return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + case "regen.ecocredit.v1.MsgUpdateProjectFee.fee": value := x.Fee return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFee does not contain field %s", descriptor.FullName())) } } @@ -21895,17 +26041,17 @@ func (x *fastReflection_MsgUpdateClassFee) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassFee) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateProjectFee) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassFee.authority": + case "regen.ecocredit.v1.MsgUpdateProjectFee.authority": x.Authority = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + case "regen.ecocredit.v1.MsgUpdateProjectFee.fee": x.Fee = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFee does not contain field %s", fd.FullName())) } } @@ -21919,48 +26065,48 @@ func (x *fastReflection_MsgUpdateClassFee) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassFee) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectFee) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + case "regen.ecocredit.v1.MsgUpdateProjectFee.fee": if x.Fee == nil { x.Fee = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) - case "regen.ecocredit.v1.MsgUpdateClassFee.authority": - panic(fmt.Errorf("field authority of message regen.ecocredit.v1.MsgUpdateClassFee is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectFee.authority": + panic(fmt.Errorf("field authority of message regen.ecocredit.v1.MsgUpdateProjectFee is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFee 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_MsgUpdateClassFee) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectFee) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassFee.authority": + case "regen.ecocredit.v1.MsgUpdateProjectFee.authority": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassFee.fee": + case "regen.ecocredit.v1.MsgUpdateProjectFee.fee": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFee")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFee 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_MsgUpdateClassFee) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateProjectFee) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassFee", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectFee", d.FullName())) } panic("unreachable") } @@ -21968,7 +26114,7 @@ func (x *fastReflection_MsgUpdateClassFee) WhichOneof(d protoreflect.OneofDescri // 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_MsgUpdateClassFee) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateProjectFee) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -21979,7 +26125,7 @@ func (x *fastReflection_MsgUpdateClassFee) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassFee) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateProjectFee) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -21991,7 +26137,7 @@ func (x *fastReflection_MsgUpdateClassFee) SetUnknown(fields protoreflect.RawFie // 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_MsgUpdateClassFee) IsValid() bool { +func (x *fastReflection_MsgUpdateProjectFee) IsValid() bool { return x != nil } @@ -22001,9 +26147,9 @@ func (x *fastReflection_MsgUpdateClassFee) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassFee) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateProjectFee) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassFee) + x := input.Message.Interface().(*MsgUpdateProjectFee) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22033,7 +26179,7 @@ func (x *fastReflection_MsgUpdateClassFee) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassFee) + x := input.Message.Interface().(*MsgUpdateProjectFee) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22084,7 +26230,7 @@ func (x *fastReflection_MsgUpdateClassFee) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassFee) + x := input.Message.Interface().(*MsgUpdateProjectFee) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22116,10 +26262,10 @@ func (x *fastReflection_MsgUpdateClassFee) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassFee: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectFee: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassFee: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectFee: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22226,24 +26372,24 @@ func (x *fastReflection_MsgUpdateClassFee) ProtoMethods() *protoiface.Methods { } var ( - md_MsgUpdateClassFeeResponse protoreflect.MessageDescriptor + md_MsgUpdateProjectFeeResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassFeeResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassFeeResponse") + md_MsgUpdateProjectFeeResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectFeeResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassFeeResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectFeeResponse)(nil) -type fastReflection_MsgUpdateClassFeeResponse MsgUpdateClassFeeResponse +type fastReflection_MsgUpdateProjectFeeResponse MsgUpdateProjectFeeResponse -func (x *MsgUpdateClassFeeResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassFeeResponse)(x) +func (x *MsgUpdateProjectFeeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectFeeResponse)(x) } -func (x *MsgUpdateClassFeeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[41] +func (x *MsgUpdateProjectFeeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -22254,43 +26400,43 @@ func (x *MsgUpdateClassFeeResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassFeeResponse_messageType fastReflection_MsgUpdateClassFeeResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassFeeResponse_messageType{} +var _fastReflection_MsgUpdateProjectFeeResponse_messageType fastReflection_MsgUpdateProjectFeeResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectFeeResponse_messageType{} -type fastReflection_MsgUpdateClassFeeResponse_messageType struct{} +type fastReflection_MsgUpdateProjectFeeResponse_messageType struct{} -func (x fastReflection_MsgUpdateClassFeeResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassFeeResponse)(nil) +func (x fastReflection_MsgUpdateProjectFeeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectFeeResponse)(nil) } -func (x fastReflection_MsgUpdateClassFeeResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassFeeResponse) +func (x fastReflection_MsgUpdateProjectFeeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectFeeResponse) } -func (x fastReflection_MsgUpdateClassFeeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassFeeResponse +func (x fastReflection_MsgUpdateProjectFeeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectFeeResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassFeeResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassFeeResponse +func (x *fastReflection_MsgUpdateProjectFeeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectFeeResponse } // 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_MsgUpdateClassFeeResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassFeeResponse_messageType +func (x *fastReflection_MsgUpdateProjectFeeResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectFeeResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassFeeResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassFeeResponse) +func (x *fastReflection_MsgUpdateProjectFeeResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectFeeResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassFeeResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassFeeResponse)(x) +func (x *fastReflection_MsgUpdateProjectFeeResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectFeeResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -22298,7 +26444,7 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassFeeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateProjectFeeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -22312,13 +26458,13 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) Range(f func(protoreflect.Fie // 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_MsgUpdateClassFeeResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateProjectFeeResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFeeResponse does not contain field %s", fd.FullName())) } } @@ -22328,13 +26474,13 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassFeeResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateProjectFeeResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFeeResponse does not contain field %s", fd.FullName())) } } @@ -22344,13 +26490,13 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) Clear(fd protoreflect.FieldDe // 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_MsgUpdateClassFeeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectFeeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFeeResponse does not contain field %s", descriptor.FullName())) } } @@ -22364,13 +26510,13 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassFeeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateProjectFeeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFeeResponse does not contain field %s", fd.FullName())) } } @@ -22384,36 +26530,36 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassFeeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectFeeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFeeResponse 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_MsgUpdateClassFeeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectFeeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectFeeResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectFeeResponse 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_MsgUpdateClassFeeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateProjectFeeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassFeeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectFeeResponse", d.FullName())) } panic("unreachable") } @@ -22421,7 +26567,7 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) WhichOneof(d protoreflect.One // 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_MsgUpdateClassFeeResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateProjectFeeResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -22432,7 +26578,7 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassFeeResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateProjectFeeResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -22444,7 +26590,7 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) SetUnknown(fields protoreflec // 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_MsgUpdateClassFeeResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateProjectFeeResponse) IsValid() bool { return x != nil } @@ -22454,9 +26600,9 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassFeeResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateProjectFeeResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassFeeResponse) + x := input.Message.Interface().(*MsgUpdateProjectFeeResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22478,7 +26624,7 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassFeeResponse) + x := input.Message.Interface().(*MsgUpdateProjectFeeResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22508,7 +26654,7 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassFeeResponse) + x := input.Message.Interface().(*MsgUpdateProjectFeeResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22540,10 +26686,10 @@ func (x *fastReflection_MsgUpdateClassFeeResponse) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassFeeResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectFeeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -22603,7 +26749,7 @@ func (x *MsgAddAllowedBridgeChain) ProtoReflect() protoreflect.Message { } func (x *MsgAddAllowedBridgeChain) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[42] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -23083,7 +27229,7 @@ func (x *MsgAddAllowedBridgeChainResponse) ProtoReflect() protoreflect.Message { } func (x *MsgAddAllowedBridgeChainResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[43] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -23443,7 +27589,7 @@ func (x *MsgRemoveAllowedBridgeChain) ProtoReflect() protoreflect.Message { } func (x *MsgRemoveAllowedBridgeChain) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[44] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -23923,7 +28069,7 @@ func (x *MsgRemoveAllowedBridgeChainResponse) ProtoReflect() protoreflect.Messag } func (x *MsgRemoveAllowedBridgeChainResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[45] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -24285,7 +28431,7 @@ func (x *MsgBurnRegen) ProtoReflect() protoreflect.Message { } func (x *MsgBurnRegen) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[46] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -24827,7 +28973,7 @@ func (x *MsgBurnRegenResponse) ProtoReflect() protoreflect.Message { } func (x *MsgBurnRegenResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[47] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -25192,309 +29338,654 @@ type MsgAddCreditType struct { CreditType *CreditType `protobuf:"bytes,2,opt,name=credit_type,json=creditType,proto3" json:"credit_type,omitempty"` } -func (x *MsgAddCreditType) Reset() { - *x = MsgAddCreditType{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *MsgAddCreditType) Reset() { + *x = MsgAddCreditType{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAddCreditType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAddCreditType) ProtoMessage() {} + +// Deprecated: Use MsgAddCreditType.ProtoReflect.Descriptor instead. +func (*MsgAddCreditType) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgAddCreditType) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgAddCreditType) GetCreditType() *CreditType { + if x != nil { + return x.CreditType + } + return nil +} + +// MsgAddCreditTypeResponse is the Msg/AddCreditType response type. +// +// Since Revision 2 +type MsgAddCreditTypeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgAddCreditTypeResponse) Reset() { + *x = MsgAddCreditTypeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAddCreditTypeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAddCreditTypeResponse) ProtoMessage() {} + +// Deprecated: Use MsgAddCreditTypeResponse.ProtoReflect.Descriptor instead. +func (*MsgAddCreditTypeResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{1} +} + +// MsgCreateClass is the Msg/CreateClass request type. +type MsgCreateClass struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // admin is the address of the account creating the credit class that will + // become the admin of the credit class upon creation. The admin will have + // permissions within the credit class to update the credit class including + // the list of approved issuers. If Params.allowlist_enabled is set to true, + // this address must be included in Params.allowed_class_creators. + Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` + // issuers are the addresses of the accounts that will have permissions within + // the credit class to create projects and issue credits. + Issuers []string `protobuf:"bytes,2,rep,name=issuers,proto3" json:"issuers,omitempty"` + // metadata is any arbitrary string with a maximum length of 256 characters + // that includes or references metadata to attach to the credit class. + Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + // credit_type_abbrev is the abbreviation of the credit type under which the + // credit class will be created (e.g. "C", "BIO"). + CreditTypeAbbrev string `protobuf:"bytes,4,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"` + // fee is the credit class creation fee. An equal fee is required if the class + // creation fee parameter is set. The provided fee can be greater than the + // parameter, but only the amount in the parameter will be charged. + Fee *v1beta1.Coin `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"` +} + +func (x *MsgCreateClass) Reset() { + *x = MsgCreateClass{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateClass) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateClass) ProtoMessage() {} + +// Deprecated: Use MsgCreateClass.ProtoReflect.Descriptor instead. +func (*MsgCreateClass) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgCreateClass) GetAdmin() string { + if x != nil { + return x.Admin + } + return "" +} + +func (x *MsgCreateClass) GetIssuers() []string { + if x != nil { + return x.Issuers + } + return nil +} + +func (x *MsgCreateClass) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + +func (x *MsgCreateClass) GetCreditTypeAbbrev() string { + if x != nil { + return x.CreditTypeAbbrev + } + return "" +} + +func (x *MsgCreateClass) GetFee() *v1beta1.Coin { + if x != nil { + return x.Fee + } + return nil +} + +// MsgCreateClassResponse is the Msg/CreateClass response type. +type MsgCreateClassResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // class_id is the unique identifier of the credit class. + ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` +} + +func (x *MsgCreateClassResponse) Reset() { + *x = MsgCreateClassResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateClassResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateClassResponse) ProtoMessage() {} + +// Deprecated: Use MsgCreateClassResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateClassResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{3} +} + +func (x *MsgCreateClassResponse) GetClassId() string { + if x != nil { + return x.ClassId + } + return "" +} + +// MsgCreateProjectResponse is the Msg/CreateProject request type. +type MsgCreateProject struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // admin is the address of the account creating the project that will become + // the admin of the project upon creation. The creator of the project must be + // an approved issuer within the credit class under which the project is being + // created. The admin will have permissions to update the project including + // the ability to reassign the admin role to another account. + Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` + // class_id is the unique identifier of the credit class under which the + // project will be created. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // metadata is any arbitrary string with a maximum length of 256 characters + // that includes or references metadata to attach to the project. + Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + // jurisdiction is the jurisdiction of the project. A jurisdiction has with + // the format: [-[ ]] + // The country-code must be 2 alphabetic characters, the sub-national-code + // can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + // alphanumeric characters. Only the country-code is required, while the + // sub-national-code and postal-code are optional and can be added for + // increased precision. + Jurisdiction string `protobuf:"bytes,4,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"` + // reference_id is any arbitrary string used to reference the project with a + // maximum length of 32 characters. + ReferenceId string `protobuf:"bytes,5,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + // fee is the project creation fee. An equal fee is required if the project + // creation fee parameter is set. The provided fee can be greater than the + // parameter, but only the amount in the parameter will be charged. + // + // Since Revision 3 + Fee *v1beta1.Coin `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"` +} + +func (x *MsgCreateProject) Reset() { + *x = MsgCreateProject{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateProject) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateProject) ProtoMessage() {} + +// Deprecated: Use MsgCreateProject.ProtoReflect.Descriptor instead. +func (*MsgCreateProject) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{4} +} + +func (x *MsgCreateProject) GetAdmin() string { + if x != nil { + return x.Admin } + return "" } -func (x *MsgAddCreditType) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *MsgCreateProject) GetClassId() string { + if x != nil { + return x.ClassId + } + return "" } -func (*MsgAddCreditType) ProtoMessage() {} +func (x *MsgCreateProject) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} -// Deprecated: Use MsgAddCreditType.ProtoReflect.Descriptor instead. -func (*MsgAddCreditType) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{0} +func (x *MsgCreateProject) GetJurisdiction() string { + if x != nil { + return x.Jurisdiction + } + return "" } -func (x *MsgAddCreditType) GetAuthority() string { +func (x *MsgCreateProject) GetReferenceId() string { if x != nil { - return x.Authority + return x.ReferenceId } return "" } -func (x *MsgAddCreditType) GetCreditType() *CreditType { +func (x *MsgCreateProject) GetFee() *v1beta1.Coin { if x != nil { - return x.CreditType + return x.Fee } return nil } -// MsgAddCreditTypeResponse is the Msg/AddCreditType response type. -// -// Since Revision 2 -type MsgAddCreditTypeResponse struct { +// MsgCreateProjectResponse is the Msg/CreateProject response type. +type MsgCreateProjectResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // project_id is the unique identifier of the project. + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` } -func (x *MsgAddCreditTypeResponse) Reset() { - *x = MsgAddCreditTypeResponse{} +func (x *MsgCreateProjectResponse) Reset() { + *x = MsgCreateProjectResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[1] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgAddCreditTypeResponse) String() string { +func (x *MsgCreateProjectResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgAddCreditTypeResponse) ProtoMessage() {} +func (*MsgCreateProjectResponse) ProtoMessage() {} -// Deprecated: Use MsgAddCreditTypeResponse.ProtoReflect.Descriptor instead. -func (*MsgAddCreditTypeResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{1} +// Deprecated: Use MsgCreateProjectResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateProjectResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{5} } -// MsgCreateClass is the Msg/CreateClass request type. -type MsgCreateClass struct { +func (x *MsgCreateProjectResponse) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +// MsgCreateUnregisteredProject is the Msg/CreateUnregisteredProject request type. +type MsgCreateUnregisteredProject struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // admin is the address of the account creating the credit class that will - // become the admin of the credit class upon creation. The admin will have - // permissions within the credit class to update the credit class including - // the list of approved issuers. If Params.allowlist_enabled is set to true, - // this address must be included in Params.allowed_class_creators. + // admin is the address of the account creating the project that will become + // the admin of the project upon creation. Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // issuers are the addresses of the accounts that will have permissions within - // the credit class to create projects and issue credits. - Issuers []string `protobuf:"bytes,2,rep,name=issuers,proto3" json:"issuers,omitempty"` // metadata is any arbitrary string with a maximum length of 256 characters - // that includes or references metadata to attach to the credit class. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // credit_type_abbrev is the abbreviation of the credit type under which the - // credit class will be created (e.g. "C", "BIO"). - CreditTypeAbbrev string `protobuf:"bytes,4,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"` - // fee is the credit class creation fee. An equal fee is required if the class + // that includes or references metadata to attach to the project. + Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // jurisdiction is the jurisdiction of the project. A jurisdiction has with + // the format: [-[ ]] + // The country-code must be 2 alphabetic characters, the sub-national-code + // can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + // alphanumeric characters. Only the country-code is required, while the + // sub-national-code and postal-code are optional and can be added for + // increased precision. + Jurisdiction string `protobuf:"bytes,3,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"` + // reference_id is any arbitrary string used to reference the project with a + // maximum length of 32 characters. + ReferenceId string `protobuf:"bytes,4,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + // fee is the project creation fee. An equal fee is required if the project // creation fee parameter is set. The provided fee can be greater than the // parameter, but only the amount in the parameter will be charged. + // + // Since Revision 3 Fee *v1beta1.Coin `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"` } -func (x *MsgCreateClass) Reset() { - *x = MsgCreateClass{} +func (x *MsgCreateUnregisteredProject) Reset() { + *x = MsgCreateUnregisteredProject{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[2] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCreateClass) String() string { +func (x *MsgCreateUnregisteredProject) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateClass) ProtoMessage() {} +func (*MsgCreateUnregisteredProject) ProtoMessage() {} -// Deprecated: Use MsgCreateClass.ProtoReflect.Descriptor instead. -func (*MsgCreateClass) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{2} +// Deprecated: Use MsgCreateUnregisteredProject.ProtoReflect.Descriptor instead. +func (*MsgCreateUnregisteredProject) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{6} } -func (x *MsgCreateClass) GetAdmin() string { +func (x *MsgCreateUnregisteredProject) GetAdmin() string { if x != nil { return x.Admin } return "" } -func (x *MsgCreateClass) GetIssuers() []string { +func (x *MsgCreateUnregisteredProject) GetMetadata() string { if x != nil { - return x.Issuers + return x.Metadata } - return nil + return "" } -func (x *MsgCreateClass) GetMetadata() string { +func (x *MsgCreateUnregisteredProject) GetJurisdiction() string { if x != nil { - return x.Metadata + return x.Jurisdiction } return "" } -func (x *MsgCreateClass) GetCreditTypeAbbrev() string { +func (x *MsgCreateUnregisteredProject) GetReferenceId() string { if x != nil { - return x.CreditTypeAbbrev + return x.ReferenceId } return "" } -func (x *MsgCreateClass) GetFee() *v1beta1.Coin { +func (x *MsgCreateUnregisteredProject) GetFee() *v1beta1.Coin { if x != nil { return x.Fee } return nil } -// MsgCreateClassResponse is the Msg/CreateClass response type. -type MsgCreateClassResponse struct { +// MsgCreateUnregisteredProjectResponse is the Msg/CreateUnregisteredProject response type. +type MsgCreateUnregisteredProjectResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // class_id is the unique identifier of the credit class. - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // project_id is the unique identifier of the project. + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` } -func (x *MsgCreateClassResponse) Reset() { - *x = MsgCreateClassResponse{} +func (x *MsgCreateUnregisteredProjectResponse) Reset() { + *x = MsgCreateUnregisteredProjectResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[3] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCreateClassResponse) String() string { +func (x *MsgCreateUnregisteredProjectResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateClassResponse) ProtoMessage() {} +func (*MsgCreateUnregisteredProjectResponse) ProtoMessage() {} -// Deprecated: Use MsgCreateClassResponse.ProtoReflect.Descriptor instead. -func (*MsgCreateClassResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{3} +// Deprecated: Use MsgCreateUnregisteredProjectResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateUnregisteredProjectResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{7} } -func (x *MsgCreateClassResponse) GetClassId() string { +func (x *MsgCreateUnregisteredProjectResponse) GetProjectId() string { if x != nil { - return x.ClassId + return x.ProjectId } return "" } -// MsgCreateProjectResponse is the Msg/CreateProject request type. -type MsgCreateProject struct { +// MsgCreateOrUpdateApplication is the Msg/CreateOrUpdateApplication request type. +type MsgCreateOrUpdateApplication struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // admin is the address of the account creating the project that will become - // the admin of the project upon creation. The creator of the project must be - // an approved issuer within the credit class under which the project is being - // created. The admin will have permissions to update the project including - // the ability to reassign the admin role to another account. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // class_id is the unique identifier of the credit class under which the - // project will be created. - ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // metadata is any arbitrary string with a maximum length of 256 characters - // that includes or references metadata to attach to the project. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // jurisdiction is the jurisdiction of the project. A jurisdiction has with - // the format: [-[ ]] - // The country-code must be 2 alphabetic characters, the sub-national-code - // can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - // alphanumeric characters. Only the country-code is required, while the - // sub-national-code and postal-code are optional and can be added for - // increased precision. - Jurisdiction string `protobuf:"bytes,4,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"` - // reference_id is any arbitrary string used to reference the project with a - // maximum length of 32 characters. - ReferenceId string `protobuf:"bytes,5,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + // project_admin is the address of the account that is the admin of the + // project which is applying to the credit class. + ProjectAdmin string `protobuf:"bytes,1,opt,name=project_admin,json=projectAdmin,proto3" json:"project_admin,omitempty"` + // project_id is the identifier of the project which is applying to + // the credit class. + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // class_id is the identifier of the credit class which the project is + // applying to. + ClassId string `protobuf:"bytes,3,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // metadata is any optional arbitrary string with a maximum length of 256 characters + // that includes or references any metadata relevant to the application. + // This could be used as a digital reference to the actual contents of the application. + Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + // withdraw is a boolean that indicates whether the application is being + // withdrawn rather than updated. + Withdraw bool `protobuf:"varint,5,opt,name=withdraw,proto3" json:"withdraw,omitempty"` } -func (x *MsgCreateProject) Reset() { - *x = MsgCreateProject{} +func (x *MsgCreateOrUpdateApplication) Reset() { + *x = MsgCreateOrUpdateApplication{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[4] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCreateProject) String() string { +func (x *MsgCreateOrUpdateApplication) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateProject) ProtoMessage() {} +func (*MsgCreateOrUpdateApplication) ProtoMessage() {} -// Deprecated: Use MsgCreateProject.ProtoReflect.Descriptor instead. -func (*MsgCreateProject) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{4} +// Deprecated: Use MsgCreateOrUpdateApplication.ProtoReflect.Descriptor instead. +func (*MsgCreateOrUpdateApplication) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{8} } -func (x *MsgCreateProject) GetAdmin() string { +func (x *MsgCreateOrUpdateApplication) GetProjectAdmin() string { if x != nil { - return x.Admin + return x.ProjectAdmin } return "" } -func (x *MsgCreateProject) GetClassId() string { +func (x *MsgCreateOrUpdateApplication) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *MsgCreateOrUpdateApplication) GetClassId() string { if x != nil { return x.ClassId } return "" } -func (x *MsgCreateProject) GetMetadata() string { +func (x *MsgCreateOrUpdateApplication) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + +func (x *MsgCreateOrUpdateApplication) GetWithdraw() bool { + if x != nil { + return x.Withdraw + } + return false +} + +// MsgCreateOrUpdateApplicationResponse is the Msg/CreateOrUpdateApplication response type. +type MsgCreateOrUpdateApplicationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgCreateOrUpdateApplicationResponse) Reset() { + *x = MsgCreateOrUpdateApplicationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateOrUpdateApplicationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateOrUpdateApplicationResponse) ProtoMessage() {} + +// Deprecated: Use MsgCreateOrUpdateApplicationResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateOrUpdateApplicationResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{9} +} + +// MsgUpdateProjectEnrollment is the Msg/UpdateProjectEnrollment request type. +type MsgUpdateProjectEnrollment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // issuer is the address of the account that is the issuer of the credit class + // which is updating the project enrollment status. + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + // project_id is the identifier of the project. + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // class_id is the identifier of the credit class. + ClassId string `protobuf:"bytes,3,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // new_status is the new status of the project enrollment. + NewStatus ProjectEnrollmentStatus `protobuf:"varint,4,opt,name=new_status,json=newStatus,proto3,enum=regen.ecocredit.v1.ProjectEnrollmentStatus" json:"new_status,omitempty"` + // metadata is any optiopnal arbitrary string with a maximum length of 256 characters + // that includes or references the reason for the approving, requesting changes + // to, or rejecting the application, or terminating the project. + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *MsgUpdateProjectEnrollment) Reset() { + *x = MsgUpdateProjectEnrollment{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateProjectEnrollment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateProjectEnrollment) ProtoMessage() {} + +// Deprecated: Use MsgUpdateProjectEnrollment.ProtoReflect.Descriptor instead. +func (*MsgUpdateProjectEnrollment) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{10} +} + +func (x *MsgUpdateProjectEnrollment) GetIssuer() string { + if x != nil { + return x.Issuer + } + return "" +} + +func (x *MsgUpdateProjectEnrollment) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *MsgUpdateProjectEnrollment) GetClassId() string { if x != nil { - return x.Metadata + return x.ClassId } return "" } -func (x *MsgCreateProject) GetJurisdiction() string { +func (x *MsgUpdateProjectEnrollment) GetNewStatus() ProjectEnrollmentStatus { if x != nil { - return x.Jurisdiction + return x.NewStatus } - return "" + return ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_UNSPECIFIED } -func (x *MsgCreateProject) GetReferenceId() string { +func (x *MsgUpdateProjectEnrollment) GetMetadata() string { if x != nil { - return x.ReferenceId + return x.Metadata } return "" } -// MsgCreateProjectResponse is the Msg/CreateProject response type. -type MsgCreateProjectResponse struct { +// MsgEvaluateProjectEnrollmentResponse is the Msg/EvaluateProjectEnrollment response type. +type MsgUpdateProjectEnrollmentResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // project_id is the unique identifier of the project. - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` } -func (x *MsgCreateProjectResponse) Reset() { - *x = MsgCreateProjectResponse{} +func (x *MsgUpdateProjectEnrollmentResponse) Reset() { + *x = MsgUpdateProjectEnrollmentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[5] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCreateProjectResponse) String() string { +func (x *MsgUpdateProjectEnrollmentResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateProjectResponse) ProtoMessage() {} - -// Deprecated: Use MsgCreateProjectResponse.ProtoReflect.Descriptor instead. -func (*MsgCreateProjectResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{5} -} +func (*MsgUpdateProjectEnrollmentResponse) ProtoMessage() {} -func (x *MsgCreateProjectResponse) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" +// Deprecated: Use MsgUpdateProjectEnrollmentResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateProjectEnrollmentResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{11} } // MsgCreateBatch is the Msg/CreateBatch request type. @@ -25504,7 +29995,7 @@ type MsgCreateBatch struct { unknownFields protoimpl.UnknownFields // issuer is the address of the account issuing the credits and must be an - // approved issuer within the credit class of the project. + // approved issuer within a credit class of the project. Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // project_id is the unique identifier of the project under which the credit // batch will be created. @@ -25532,12 +30023,17 @@ type MsgCreateBatch struct { // issuing credits and should only be set when bridging assets from another // chain or registry as a result of a bridge operation. OriginTx *OriginTx `protobuf:"bytes,8,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"` + // class_id is the unique identifier of the credit class under which the + // credit batch will be created. + // + // Since Revision 3 + ClassId string `protobuf:"bytes,9,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` } func (x *MsgCreateBatch) Reset() { *x = MsgCreateBatch{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[6] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -25551,7 +30047,7 @@ func (*MsgCreateBatch) ProtoMessage() {} // Deprecated: Use MsgCreateBatch.ProtoReflect.Descriptor instead. func (*MsgCreateBatch) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{6} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{12} } func (x *MsgCreateBatch) GetIssuer() string { @@ -25610,6 +30106,13 @@ func (x *MsgCreateBatch) GetOriginTx() *OriginTx { return nil } +func (x *MsgCreateBatch) GetClassId() string { + if x != nil { + return x.ClassId + } + return "" +} + // MsgCreateBatchResponse is the Msg/CreateBatch response type. type MsgCreateBatchResponse struct { state protoimpl.MessageState @@ -25623,7 +30126,7 @@ type MsgCreateBatchResponse struct { func (x *MsgCreateBatchResponse) Reset() { *x = MsgCreateBatchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[7] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -25637,7 +30140,7 @@ func (*MsgCreateBatchResponse) ProtoMessage() {} // Deprecated: Use MsgCreateBatchResponse.ProtoReflect.Descriptor instead. func (*MsgCreateBatchResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{7} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{13} } func (x *MsgCreateBatchResponse) GetBatchDenom() string { @@ -25670,7 +30173,7 @@ type MsgMintBatchCredits struct { func (x *MsgMintBatchCredits) Reset() { *x = MsgMintBatchCredits{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[8] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -25684,7 +30187,7 @@ func (*MsgMintBatchCredits) ProtoMessage() {} // Deprecated: Use MsgMintBatchCredits.ProtoReflect.Descriptor instead. func (*MsgMintBatchCredits) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{8} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{14} } func (x *MsgMintBatchCredits) GetIssuer() string { @@ -25725,7 +30228,7 @@ type MsgMintBatchCreditsResponse struct { func (x *MsgMintBatchCreditsResponse) Reset() { *x = MsgMintBatchCreditsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[9] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -25739,7 +30242,7 @@ func (*MsgMintBatchCreditsResponse) ProtoMessage() {} // Deprecated: Use MsgMintBatchCreditsResponse.ProtoReflect.Descriptor instead. func (*MsgMintBatchCreditsResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{9} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{15} } // MsgSealBatch is the Msg/MintBatchCredits request type. @@ -25758,7 +30261,7 @@ type MsgSealBatch struct { func (x *MsgSealBatch) Reset() { *x = MsgSealBatch{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[10] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -25772,7 +30275,7 @@ func (*MsgSealBatch) ProtoMessage() {} // Deprecated: Use MsgSealBatch.ProtoReflect.Descriptor instead. func (*MsgSealBatch) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{10} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{16} } func (x *MsgSealBatch) GetIssuer() string { @@ -25799,7 +30302,7 @@ type MsgSealBatchResponse struct { func (x *MsgSealBatchResponse) Reset() { *x = MsgSealBatchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[11] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -25813,7 +30316,7 @@ func (*MsgSealBatchResponse) ProtoMessage() {} // Deprecated: Use MsgSealBatchResponse.ProtoReflect.Descriptor instead. func (*MsgSealBatchResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{11} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{17} } // MsgSend is the Msg/Send request type. @@ -25833,7 +30336,7 @@ type MsgSend struct { func (x *MsgSend) Reset() { *x = MsgSend{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[12] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -25847,7 +30350,7 @@ func (*MsgSend) ProtoMessage() {} // Deprecated: Use MsgSend.ProtoReflect.Descriptor instead. func (*MsgSend) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{12} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{18} } func (x *MsgSend) GetSender() string { @@ -25881,7 +30384,7 @@ type MsgSendResponse struct { func (x *MsgSendResponse) Reset() { *x = MsgSendResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[13] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -25895,7 +30398,7 @@ func (*MsgSendResponse) ProtoMessage() {} // Deprecated: Use MsgSendResponse.ProtoReflect.Descriptor instead. func (*MsgSendResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{13} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{19} } // MsgRetire is the Msg/Retire request type. @@ -25926,7 +30429,7 @@ type MsgRetire struct { func (x *MsgRetire) Reset() { *x = MsgRetire{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[14] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -25940,7 +30443,7 @@ func (*MsgRetire) ProtoMessage() {} // Deprecated: Use MsgRetire.ProtoReflect.Descriptor instead. func (*MsgRetire) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{14} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{20} } func (x *MsgRetire) GetOwner() string { @@ -25981,7 +30484,7 @@ type MsgRetireResponse struct { func (x *MsgRetireResponse) Reset() { *x = MsgRetireResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[15] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -25995,7 +30498,7 @@ func (*MsgRetireResponse) ProtoMessage() {} // Deprecated: Use MsgRetireResponse.ProtoReflect.Descriptor instead. func (*MsgRetireResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{15} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{21} } // MsgCancel is the Msg/Cancel request type. @@ -26016,7 +30519,7 @@ type MsgCancel struct { func (x *MsgCancel) Reset() { *x = MsgCancel{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[16] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26030,7 +30533,7 @@ func (*MsgCancel) ProtoMessage() {} // Deprecated: Use MsgCancel.ProtoReflect.Descriptor instead. func (*MsgCancel) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{16} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{22} } func (x *MsgCancel) GetOwner() string { @@ -26064,7 +30567,7 @@ type MsgCancelResponse struct { func (x *MsgCancelResponse) Reset() { *x = MsgCancelResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[17] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26078,7 +30581,7 @@ func (*MsgCancelResponse) ProtoMessage() {} // Deprecated: Use MsgCancelResponse.ProtoReflect.Descriptor instead. func (*MsgCancelResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{17} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{23} } // MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. @@ -26100,7 +30603,7 @@ type MsgUpdateClassAdmin struct { func (x *MsgUpdateClassAdmin) Reset() { *x = MsgUpdateClassAdmin{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[18] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26114,7 +30617,7 @@ func (*MsgUpdateClassAdmin) ProtoMessage() {} // Deprecated: Use MsgUpdateClassAdmin.ProtoReflect.Descriptor instead. func (*MsgUpdateClassAdmin) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{18} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{24} } func (x *MsgUpdateClassAdmin) GetAdmin() string { @@ -26148,7 +30651,7 @@ type MsgUpdateClassAdminResponse struct { func (x *MsgUpdateClassAdminResponse) Reset() { *x = MsgUpdateClassAdminResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[19] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26162,7 +30665,7 @@ func (*MsgUpdateClassAdminResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateClassAdminResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateClassAdminResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{19} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{25} } // MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. @@ -26186,7 +30689,7 @@ type MsgUpdateClassIssuers struct { func (x *MsgUpdateClassIssuers) Reset() { *x = MsgUpdateClassIssuers{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[20] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26200,7 +30703,7 @@ func (*MsgUpdateClassIssuers) ProtoMessage() {} // Deprecated: Use MsgUpdateClassIssuers.ProtoReflect.Descriptor instead. func (*MsgUpdateClassIssuers) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{20} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{26} } func (x *MsgUpdateClassIssuers) GetAdmin() string { @@ -26241,7 +30744,7 @@ type MsgUpdateClassIssuersResponse struct { func (x *MsgUpdateClassIssuersResponse) Reset() { *x = MsgUpdateClassIssuersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[21] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26255,7 +30758,7 @@ func (*MsgUpdateClassIssuersResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateClassIssuersResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateClassIssuersResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{21} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{27} } // MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. @@ -26277,7 +30780,7 @@ type MsgUpdateClassMetadata struct { func (x *MsgUpdateClassMetadata) Reset() { *x = MsgUpdateClassMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[22] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26291,7 +30794,7 @@ func (*MsgUpdateClassMetadata) ProtoMessage() {} // Deprecated: Use MsgUpdateClassMetadata.ProtoReflect.Descriptor instead. func (*MsgUpdateClassMetadata) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{22} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{28} } func (x *MsgUpdateClassMetadata) GetAdmin() string { @@ -26325,7 +30828,7 @@ type MsgUpdateClassMetadataResponse struct { func (x *MsgUpdateClassMetadataResponse) Reset() { *x = MsgUpdateClassMetadataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[23] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26339,7 +30842,7 @@ func (*MsgUpdateClassMetadataResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateClassMetadataResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateClassMetadataResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{23} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{29} } // MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. @@ -26361,7 +30864,7 @@ type MsgUpdateProjectAdmin struct { func (x *MsgUpdateProjectAdmin) Reset() { *x = MsgUpdateProjectAdmin{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[24] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26375,7 +30878,7 @@ func (*MsgUpdateProjectAdmin) ProtoMessage() {} // Deprecated: Use MsgUpdateProjectAdmin.ProtoReflect.Descriptor instead. func (*MsgUpdateProjectAdmin) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{24} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{30} } func (x *MsgUpdateProjectAdmin) GetAdmin() string { @@ -26409,7 +30912,7 @@ type MsgUpdateProjectAdminResponse struct { func (x *MsgUpdateProjectAdminResponse) Reset() { *x = MsgUpdateProjectAdminResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[25] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26423,7 +30926,7 @@ func (*MsgUpdateProjectAdminResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateProjectAdminResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateProjectAdminResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{25} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{31} } // MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. @@ -26445,7 +30948,7 @@ type MsgUpdateProjectMetadata struct { func (x *MsgUpdateProjectMetadata) Reset() { *x = MsgUpdateProjectMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[26] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26459,7 +30962,7 @@ func (*MsgUpdateProjectMetadata) ProtoMessage() {} // Deprecated: Use MsgUpdateProjectMetadata.ProtoReflect.Descriptor instead. func (*MsgUpdateProjectMetadata) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{26} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{32} } func (x *MsgUpdateProjectMetadata) GetAdmin() string { @@ -26494,7 +30997,7 @@ type MsgUpdateProjectMetadataResponse struct { func (x *MsgUpdateProjectMetadataResponse) Reset() { *x = MsgUpdateProjectMetadataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[27] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26508,7 +31011,7 @@ func (*MsgUpdateProjectMetadataResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateProjectMetadataResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateProjectMetadataResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{27} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{33} } // MsgBridge is the Msg/Bridge request type. @@ -26530,7 +31033,7 @@ type MsgBridge struct { func (x *MsgBridge) Reset() { *x = MsgBridge{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[28] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26544,7 +31047,7 @@ func (*MsgBridge) ProtoMessage() {} // Deprecated: Use MsgBridge.ProtoReflect.Descriptor instead. func (*MsgBridge) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{28} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{34} } func (x *MsgBridge) GetOwner() string { @@ -26596,7 +31099,7 @@ type MsgUpdateBatchMetadata struct { func (x *MsgUpdateBatchMetadata) Reset() { *x = MsgUpdateBatchMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[29] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26610,7 +31113,7 @@ func (*MsgUpdateBatchMetadata) ProtoMessage() {} // Deprecated: Use MsgUpdateBatchMetadata.ProtoReflect.Descriptor instead. func (*MsgUpdateBatchMetadata) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{29} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{35} } func (x *MsgUpdateBatchMetadata) GetIssuer() string { @@ -26647,7 +31150,7 @@ type MsgUpdateBatchMetadataResponse struct { func (x *MsgUpdateBatchMetadataResponse) Reset() { *x = MsgUpdateBatchMetadataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[30] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26661,7 +31164,7 @@ func (*MsgUpdateBatchMetadataResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateBatchMetadataResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateBatchMetadataResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{30} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{36} } // MsgBridgeResponse is the Msg/Bridge response type. @@ -26674,7 +31177,7 @@ type MsgBridgeResponse struct { func (x *MsgBridgeResponse) Reset() { *x = MsgBridgeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[31] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26688,7 +31191,7 @@ func (*MsgBridgeResponse) ProtoMessage() {} // Deprecated: Use MsgBridgeResponse.ProtoReflect.Descriptor instead. func (*MsgBridgeResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{31} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{37} } // MsgBridgeReceive is the Msg/BridgeReceive request type. @@ -26714,7 +31217,7 @@ type MsgBridgeReceive struct { func (x *MsgBridgeReceive) Reset() { *x = MsgBridgeReceive{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[32] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26728,7 +31231,7 @@ func (*MsgBridgeReceive) ProtoMessage() {} // Deprecated: Use MsgBridgeReceive.ProtoReflect.Descriptor instead. func (*MsgBridgeReceive) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{32} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{38} } func (x *MsgBridgeReceive) GetIssuer() string { @@ -26783,7 +31286,7 @@ type MsgBridgeReceiveResponse struct { func (x *MsgBridgeReceiveResponse) Reset() { *x = MsgBridgeReceiveResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[33] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26797,7 +31300,7 @@ func (*MsgBridgeReceiveResponse) ProtoMessage() {} // Deprecated: Use MsgBridgeReceiveResponse.ProtoReflect.Descriptor instead. func (*MsgBridgeReceiveResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{33} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{39} } func (x *MsgBridgeReceiveResponse) GetBatchDenom() string { @@ -26831,7 +31334,7 @@ type MsgAddClassCreator struct { func (x *MsgAddClassCreator) Reset() { *x = MsgAddClassCreator{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[34] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26845,7 +31348,7 @@ func (*MsgAddClassCreator) ProtoMessage() {} // Deprecated: Use MsgAddClassCreator.ProtoReflect.Descriptor instead. func (*MsgAddClassCreator) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{34} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{40} } func (x *MsgAddClassCreator) GetAuthority() string { @@ -26874,7 +31377,7 @@ type MsgAddClassCreatorResponse struct { func (x *MsgAddClassCreatorResponse) Reset() { *x = MsgAddClassCreatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[35] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26888,7 +31391,7 @@ func (*MsgAddClassCreatorResponse) ProtoMessage() {} // Deprecated: Use MsgAddClassCreatorResponse.ProtoReflect.Descriptor instead. func (*MsgAddClassCreatorResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{35} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{41} } // MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request @@ -26909,7 +31412,7 @@ type MsgSetClassCreatorAllowlist struct { func (x *MsgSetClassCreatorAllowlist) Reset() { *x = MsgSetClassCreatorAllowlist{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[36] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26923,7 +31426,7 @@ func (*MsgSetClassCreatorAllowlist) ProtoMessage() {} // Deprecated: Use MsgSetClassCreatorAllowlist.ProtoReflect.Descriptor instead. func (*MsgSetClassCreatorAllowlist) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{36} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{42} } func (x *MsgSetClassCreatorAllowlist) GetAuthority() string { @@ -26953,7 +31456,7 @@ type MsgSetClassCreatorAllowlistResponse struct { func (x *MsgSetClassCreatorAllowlistResponse) Reset() { *x = MsgSetClassCreatorAllowlistResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[37] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -26967,7 +31470,7 @@ func (*MsgSetClassCreatorAllowlistResponse) ProtoMessage() {} // Deprecated: Use MsgSetClassCreatorAllowlistResponse.ProtoReflect.Descriptor instead. func (*MsgSetClassCreatorAllowlistResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{37} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{43} } // MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. @@ -26987,7 +31490,7 @@ type MsgRemoveClassCreator struct { func (x *MsgRemoveClassCreator) Reset() { *x = MsgRemoveClassCreator{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[38] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27001,7 +31504,7 @@ func (*MsgRemoveClassCreator) ProtoMessage() {} // Deprecated: Use MsgRemoveClassCreator.ProtoReflect.Descriptor instead. func (*MsgRemoveClassCreator) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{38} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{44} } func (x *MsgRemoveClassCreator) GetAuthority() string { @@ -27030,7 +31533,7 @@ type MsgRemoveClassCreatorResponse struct { func (x *MsgRemoveClassCreatorResponse) Reset() { *x = MsgRemoveClassCreatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[39] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27044,7 +31547,7 @@ func (*MsgRemoveClassCreatorResponse) ProtoMessage() {} // Deprecated: Use MsgRemoveClassCreatorResponse.ProtoReflect.Descriptor instead. func (*MsgRemoveClassCreatorResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{39} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{45} } // MsgUpdateClassFee is the Msg/UpdateClassFee request type. @@ -27065,7 +31568,7 @@ type MsgUpdateClassFee struct { func (x *MsgUpdateClassFee) Reset() { *x = MsgUpdateClassFee{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[40] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27079,7 +31582,7 @@ func (*MsgUpdateClassFee) ProtoMessage() {} // Deprecated: Use MsgUpdateClassFee.ProtoReflect.Descriptor instead. func (*MsgUpdateClassFee) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{40} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{46} } func (x *MsgUpdateClassFee) GetAuthority() string { @@ -27108,7 +31611,7 @@ type MsgUpdateClassFeeResponse struct { func (x *MsgUpdateClassFeeResponse) Reset() { *x = MsgUpdateClassFeeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[41] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27122,7 +31625,81 @@ func (*MsgUpdateClassFeeResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateClassFeeResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateClassFeeResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{41} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{47} +} + +// MsgUpdateProjectFee is the Msg/UpdateProjectFee request type. +type MsgUpdateProjectFee struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // fee is the project creation fee. If not set, the project creation fee will + // be removed and no fee will be required to create a project. + Fee *v1beta1.Coin `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` +} + +func (x *MsgUpdateProjectFee) Reset() { + *x = MsgUpdateProjectFee{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateProjectFee) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateProjectFee) ProtoMessage() {} + +// Deprecated: Use MsgUpdateProjectFee.ProtoReflect.Descriptor instead. +func (*MsgUpdateProjectFee) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{48} +} + +func (x *MsgUpdateProjectFee) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateProjectFee) GetFee() *v1beta1.Coin { + if x != nil { + return x.Fee + } + return nil +} + +// MsgUpdateProjectFeeResponse is the Msg/UpdateProjectFee response type. +type MsgUpdateProjectFeeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateProjectFeeResponse) Reset() { + *x = MsgUpdateProjectFeeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateProjectFeeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateProjectFeeResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateProjectFeeResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateProjectFeeResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{49} } // MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. @@ -27143,7 +31720,7 @@ type MsgAddAllowedBridgeChain struct { func (x *MsgAddAllowedBridgeChain) Reset() { *x = MsgAddAllowedBridgeChain{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[42] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27157,7 +31734,7 @@ func (*MsgAddAllowedBridgeChain) ProtoMessage() {} // Deprecated: Use MsgAddAllowedBridgeChain.ProtoReflect.Descriptor instead. func (*MsgAddAllowedBridgeChain) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{42} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{50} } func (x *MsgAddAllowedBridgeChain) GetAuthority() string { @@ -27187,7 +31764,7 @@ type MsgAddAllowedBridgeChainResponse struct { func (x *MsgAddAllowedBridgeChainResponse) Reset() { *x = MsgAddAllowedBridgeChainResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[43] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27201,7 +31778,7 @@ func (*MsgAddAllowedBridgeChainResponse) ProtoMessage() {} // Deprecated: Use MsgAddAllowedBridgeChainResponse.ProtoReflect.Descriptor instead. func (*MsgAddAllowedBridgeChainResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{43} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{51} } // MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. @@ -27222,7 +31799,7 @@ type MsgRemoveAllowedBridgeChain struct { func (x *MsgRemoveAllowedBridgeChain) Reset() { *x = MsgRemoveAllowedBridgeChain{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[44] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27236,7 +31813,7 @@ func (*MsgRemoveAllowedBridgeChain) ProtoMessage() {} // Deprecated: Use MsgRemoveAllowedBridgeChain.ProtoReflect.Descriptor instead. func (*MsgRemoveAllowedBridgeChain) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{44} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{52} } func (x *MsgRemoveAllowedBridgeChain) GetAuthority() string { @@ -27266,7 +31843,7 @@ type MsgRemoveAllowedBridgeChainResponse struct { func (x *MsgRemoveAllowedBridgeChainResponse) Reset() { *x = MsgRemoveAllowedBridgeChainResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[45] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27280,7 +31857,7 @@ func (*MsgRemoveAllowedBridgeChainResponse) ProtoMessage() {} // Deprecated: Use MsgRemoveAllowedBridgeChainResponse.ProtoReflect.Descriptor instead. func (*MsgRemoveAllowedBridgeChainResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{45} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{53} } // MsgBurnRegen is the Msg/BurnRegen request type. @@ -27303,7 +31880,7 @@ type MsgBurnRegen struct { func (x *MsgBurnRegen) Reset() { *x = MsgBurnRegen{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[46] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27317,7 +31894,7 @@ func (*MsgBurnRegen) ProtoMessage() {} // Deprecated: Use MsgBurnRegen.ProtoReflect.Descriptor instead. func (*MsgBurnRegen) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{46} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{54} } func (x *MsgBurnRegen) GetBurner() string { @@ -27353,7 +31930,7 @@ type MsgBurnRegenResponse struct { func (x *MsgBurnRegenResponse) Reset() { *x = MsgBurnRegenResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[47] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27367,7 +31944,7 @@ func (*MsgBurnRegenResponse) ProtoMessage() {} // Deprecated: Use MsgBurnRegenResponse.ProtoReflect.Descriptor instead. func (*MsgBurnRegenResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{47} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{55} } // SendCredits specifies the amount of tradable and retired credits of a @@ -27407,7 +31984,7 @@ type MsgSend_SendCredits struct { func (x *MsgSend_SendCredits) Reset() { *x = MsgSend_SendCredits{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[48] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27421,7 +31998,7 @@ func (*MsgSend_SendCredits) ProtoMessage() {} // Deprecated: Use MsgSend_SendCredits.ProtoReflect.Descriptor instead. func (*MsgSend_SendCredits) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{12, 0} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{18, 0} } func (x *MsgSend_SendCredits) GetBatchDenom() string { @@ -27484,7 +32061,7 @@ type MsgBridgeReceive_Batch struct { func (x *MsgBridgeReceive_Batch) Reset() { *x = MsgBridgeReceive_Batch{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[49] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27498,7 +32075,7 @@ func (*MsgBridgeReceive_Batch) ProtoMessage() {} // Deprecated: Use MsgBridgeReceive_Batch.ProtoReflect.Descriptor instead. func (*MsgBridgeReceive_Batch) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{32, 0} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{38, 0} } func (x *MsgBridgeReceive_Batch) GetRecipient() string { @@ -27555,7 +32132,7 @@ type MsgBridgeReceive_Project struct { func (x *MsgBridgeReceive_Project) Reset() { *x = MsgBridgeReceive_Project{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[50] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -27569,7 +32146,7 @@ func (*MsgBridgeReceive_Project) ProtoMessage() {} // Deprecated: Use MsgBridgeReceive_Project.ProtoReflect.Descriptor instead. func (*MsgBridgeReceive_Project) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{32, 1} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{38, 1} } func (x *MsgBridgeReceive_Project) GetReferenceId() string { @@ -27635,7 +32212,7 @@ var file_regen_ecocredit_v1_tx_proto_rawDesc = []byte{ 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x33, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x22, 0xb2, 0x01, 0x0a, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x22, 0xdf, 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, @@ -27646,454 +32223,550 @@ var file_regen_ecocredit_v1_tx_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6a, 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x49, 0x64, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x22, 0x39, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0xfc, 0x02, 0x0a, - 0x0e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, + 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x03, 0x66, + 0x65, 0x65, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x39, + 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0xd0, 0x01, 0x0a, 0x1c, 0x4d, 0x73, + 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0c, + 0x6a, 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x6a, 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x03, 0x66, 0x65, 0x65, + 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x45, 0x0a, 0x24, + 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x49, 0x64, 0x22, 0xc9, 0x01, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x1a, 0x0a, 0x08, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x08, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x3a, 0x12, 0x82, 0xe7, 0xb0, + 0x2a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, + 0x26, 0x0a, 0x24, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe3, 0x01, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, + 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, + 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, + 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x22, 0x24, 0x0a, + 0x22, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x97, 0x03, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, + 0x08, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x73, 0x73, 0x75, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x08, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3f, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 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, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x65, 0x6e, 0x64, + 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 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, 0x07, 0x65, + 0x6e, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x39, 0x0a, 0x09, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x74, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, 0x78, 0x52, 0x08, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x54, 0x78, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, + 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, + 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x22, 0x39, 0x0a, + 0x16, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, + 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0xd5, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, + 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, + 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x73, 0x73, + 0x75, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, + 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x5f, 0x74, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, 0x78, 0x52, 0x08, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x54, 0x78, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, + 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x54, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, - 0x63, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x49, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x73, 0x73, - 0x75, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x3f, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, + 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x69, + 0x73, 0x73, 0x75, 0x65, 0x72, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf6, 0x02, + 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, + 0x41, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x2e, 0x53, 0x65, + 0x6e, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x73, 0x1a, 0xe4, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, + 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, + 0x6e, 0x6f, 0x6d, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x72, + 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, + 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x64, 0x41, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x17, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x5f, 0x6a, 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x4a, 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x11, + 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, + 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa0, 0x01, 0x0a, 0x09, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, + 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x6a, 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6a, 0x75, 0x72, 0x69, + 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x13, 0x0a, 0x11, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x7c, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x14, + 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, + 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6e, 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x14, + 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, + 0x1f, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, + 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, + 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x78, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, + 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, + 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x20, + 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x75, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, + 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, + 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x6e, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0a, 0x82, 0xe7, + 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9a, 0x01, 0x0a, + 0x09, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, + 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x63, + 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x3a, 0x0a, 0x82, + 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x81, 0x01, 0x0a, 0x16, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, + 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x21, 0x0a, + 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x22, 0x20, 0x0a, + 0x1e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdf, 0x04, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, + 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, + 0x72, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x07, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x12, 0x40, 0x0a, 0x05, 0x62, 0x61, 0x74, 0x63, 0x68, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, + 0x05, 0x62, 0x61, 0x74, 0x63, 0x68, 0x12, 0x39, 0x0a, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x5f, 0x74, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, 0x78, 0x52, 0x08, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, + 0x78, 0x1a, 0xd7, 0x01, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x72, + 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x3f, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 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, 0x73, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, - 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, + 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x64, 0x61, 0x74, 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, 0x07, 0x65, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6f, - 0x70, 0x65, 0x6e, 0x12, 0x39, 0x0a, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x74, 0x78, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x54, 0x78, 0x52, 0x08, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, 0x78, 0x3a, 0x0b, - 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x22, 0x39, 0x0a, 0x16, 0x4d, - 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, - 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0xd5, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x4d, 0x69, - 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x12, 0x16, - 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, - 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x73, 0x73, 0x75, 0x61, - 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x42, - 0x61, 0x74, 0x63, 0x68, 0x49, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x73, - 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, - 0x5f, 0x74, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, 0x78, 0x52, 0x08, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, - 0x78, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x22, 0x1d, - 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a, - 0x0c, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x16, 0x0a, - 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, - 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, - 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x69, 0x73, 0x73, - 0x75, 0x65, 0x72, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf6, 0x02, 0x0a, 0x07, - 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, - 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, - 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x2e, 0x53, 0x65, 0x6e, 0x64, - 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, - 0x1a, 0xe4, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, - 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, - 0x6d, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x64, - 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, - 0x74, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x37, 0x0a, 0x17, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, - 0x6a, 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x16, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4a, 0x75, - 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, - 0x74, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa0, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x52, - 0x65, 0x74, 0x69, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x07, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x6a, 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6a, 0x75, 0x72, 0x69, 0x73, 0x64, - 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x0a, - 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x7c, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, - 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x13, 0x0a, - 0x11, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x6f, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, - 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, - 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, - 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x1f, 0x0a, - 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x25, - 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x73, - 0x73, 0x75, 0x65, 0x72, 0x73, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, - 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x78, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x21, 0x0a, - 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x20, 0x0a, 0x1e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, - 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, - 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6e, 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, - 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, - 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9a, 0x01, 0x0a, 0x09, 0x4d, - 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x16, - 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, - 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, - 0x69, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, - 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x81, 0x01, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, - 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x6e, - 0x65, 0x77, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0b, - 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0x0a, - 0x11, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0xdf, 0x04, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, - 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x07, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x12, 0x40, 0x0a, 0x05, 0x62, 0x61, 0x74, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x05, 0x62, - 0x61, 0x74, 0x63, 0x68, 0x12, 0x39, 0x0a, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x74, - 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x54, 0x78, 0x52, 0x08, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, 0x78, 0x1a, - 0xd7, 0x01, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, - 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, - 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x3f, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 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, 0x73, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, 0x74, 0x65, - 0x12, 0x3b, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x64, 0x61, 0x74, 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, 0x07, 0x65, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x6c, 0x0a, 0x07, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x6a, 0x75, 0x72, 0x69, 0x73, - 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6a, - 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x69, 0x73, - 0x73, 0x75, 0x65, 0x72, 0x22, 0x5a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, - 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, - 0x22, 0x5c, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0e, - 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1c, - 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x0a, 0x1b, - 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x0a, 0x15, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, - 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6e, 0x0a, 0x11, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, - 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, - 0x2b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x03, 0x66, 0x65, 0x65, 0x3a, 0x0e, 0x82, 0xe7, - 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1b, 0x0a, 0x19, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x18, 0x4d, 0x73, 0x67, - 0x41, 0x64, 0x64, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x6c, 0x0a, 0x07, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x6a, 0x75, 0x72, + 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x6a, 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, + 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x22, 0x5a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, + 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, + 0x6e, 0x6f, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x49, 0x64, 0x22, 0x5c, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, + 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x1c, 0x0a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x65, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, + 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x0a, 0x15, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x61, - 0x6d, 0x65, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x41, 0x6c, 0x6c, 0x6f, - 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6a, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x61, - 0x6d, 0x65, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, + 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0e, 0x82, + 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1f, 0x0a, + 0x1d, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6e, + 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x46, 0x65, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x03, 0x66, 0x65, 0x65, 0x3a, 0x0e, + 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1b, + 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x70, 0x0a, 0x13, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x46, + 0x65, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x03, 0x66, 0x65, 0x65, 0x3a, 0x0e, 0x82, + 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1d, 0x0a, + 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x18, + 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, 0x0c, 0x4d, 0x73, 0x67, - 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x72, - 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x72, 0x6e, 0x65, - 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x62, 0x75, 0x72, 0x6e, 0x65, 0x72, 0x22, 0x16, - 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xdf, 0x13, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x5d, - 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x22, 0x2e, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, - 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x24, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6a, 0x0a, 0x1b, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, 0x0c, + 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, + 0x62, 0x75, 0x72, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, + 0x72, 0x6e, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x62, 0x75, 0x72, 0x6e, 0x65, + 0x72, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x67, 0x65, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xe5, 0x17, 0x0a, 0x03, 0x4d, 0x73, + 0x67, 0x12, 0x5d, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x12, 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x12, 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x63, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x12, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x12, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x1a, 0x38, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x6c, 0x0a, 0x10, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, - 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x1a, 0x2f, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x57, 0x0a, 0x09, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x1a, 0x28, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x04, 0x53, 0x65, 0x6e, 0x64, - 0x12, 0x1b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x1a, 0x23, 0x2e, + 0x65, 0x61, 0x74, 0x65, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x87, 0x01, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x12, 0x1d, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x1a, 0x25, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x1d, 0x2e, 0x72, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, + 0x38, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, + 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, + 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x1a, 0x36, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x72, 0x6f, 0x6c, + 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, + 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x1a, 0x25, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, - 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, - 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x72, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, - 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, - 0x73, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, - 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x2e, 0x72, 0x65, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x10, + 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, + 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x1a, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x09, 0x53, 0x65, + 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x04, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x1b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x32, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x1a, 0x23, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, + 0x06, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x1a, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x74, 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, + 0x06, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x12, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x1a, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, + 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x2f, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x12, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, + 0x73, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x31, 0x2e, 0x72, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x7b, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x34, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x75, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x13, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, - 0x32, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x1d, 0x2e, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x1a, 0x25, 0x2e, 0x72, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x1a, 0x32, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0d, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x12, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, - 0x64, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x43, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, - 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x84, 0x01, - 0x0a, 0x18, 0x53, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x15, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x1a, 0x34, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x32, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, + 0x0a, 0x06, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x1a, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x41, 0x64, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x1a, - 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x72, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, + 0x0a, 0x0d, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x12, + 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, + 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x18, 0x53, 0x65, 0x74, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, + 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, + 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, + 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, + 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, + 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x69, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x2e, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x46, 0x65, 0x65, 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, 0x1a, 0x2d, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x15, 0x41, - 0x64, 0x64, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x12, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, - 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, - 0x69, 0x6e, 0x1a, 0x34, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x41, 0x6c, - 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x37, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x57, 0x0a, 0x09, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x12, 0x20, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x1a, 0x28, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x67, 0x65, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xd5, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, + 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x31, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, + 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, + 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, 0x1a, 0x2d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x46, 0x65, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x46, 0x65, 0x65, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x46, 0x65, 0x65, 0x1a, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x41, 0x6c, 0x6c, 0x6f, 0x77, + 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x2c, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, + 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x34, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x84, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x6c, 0x6c, 0x6f, + 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, - 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, - 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, - 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, - 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x6c, 0x6c, + 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x1a, + 0x37, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x6c, + 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x09, 0x42, 0x75, 0x72, 0x6e, + 0x52, 0x65, 0x67, 0x65, 0x6e, 0x12, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x75, + 0x72, 0x6e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0xd5, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, + 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -28108,138 +32781,159 @@ func file_regen_ecocredit_v1_tx_proto_rawDescGZIP() []byte { return file_regen_ecocredit_v1_tx_proto_rawDescData } -var file_regen_ecocredit_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 51) +var file_regen_ecocredit_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 59) var file_regen_ecocredit_v1_tx_proto_goTypes = []interface{}{ - (*MsgAddCreditType)(nil), // 0: regen.ecocredit.v1.MsgAddCreditType - (*MsgAddCreditTypeResponse)(nil), // 1: regen.ecocredit.v1.MsgAddCreditTypeResponse - (*MsgCreateClass)(nil), // 2: regen.ecocredit.v1.MsgCreateClass - (*MsgCreateClassResponse)(nil), // 3: regen.ecocredit.v1.MsgCreateClassResponse - (*MsgCreateProject)(nil), // 4: regen.ecocredit.v1.MsgCreateProject - (*MsgCreateProjectResponse)(nil), // 5: regen.ecocredit.v1.MsgCreateProjectResponse - (*MsgCreateBatch)(nil), // 6: regen.ecocredit.v1.MsgCreateBatch - (*MsgCreateBatchResponse)(nil), // 7: regen.ecocredit.v1.MsgCreateBatchResponse - (*MsgMintBatchCredits)(nil), // 8: regen.ecocredit.v1.MsgMintBatchCredits - (*MsgMintBatchCreditsResponse)(nil), // 9: regen.ecocredit.v1.MsgMintBatchCreditsResponse - (*MsgSealBatch)(nil), // 10: regen.ecocredit.v1.MsgSealBatch - (*MsgSealBatchResponse)(nil), // 11: regen.ecocredit.v1.MsgSealBatchResponse - (*MsgSend)(nil), // 12: regen.ecocredit.v1.MsgSend - (*MsgSendResponse)(nil), // 13: regen.ecocredit.v1.MsgSendResponse - (*MsgRetire)(nil), // 14: regen.ecocredit.v1.MsgRetire - (*MsgRetireResponse)(nil), // 15: regen.ecocredit.v1.MsgRetireResponse - (*MsgCancel)(nil), // 16: regen.ecocredit.v1.MsgCancel - (*MsgCancelResponse)(nil), // 17: regen.ecocredit.v1.MsgCancelResponse - (*MsgUpdateClassAdmin)(nil), // 18: regen.ecocredit.v1.MsgUpdateClassAdmin - (*MsgUpdateClassAdminResponse)(nil), // 19: regen.ecocredit.v1.MsgUpdateClassAdminResponse - (*MsgUpdateClassIssuers)(nil), // 20: regen.ecocredit.v1.MsgUpdateClassIssuers - (*MsgUpdateClassIssuersResponse)(nil), // 21: regen.ecocredit.v1.MsgUpdateClassIssuersResponse - (*MsgUpdateClassMetadata)(nil), // 22: regen.ecocredit.v1.MsgUpdateClassMetadata - (*MsgUpdateClassMetadataResponse)(nil), // 23: regen.ecocredit.v1.MsgUpdateClassMetadataResponse - (*MsgUpdateProjectAdmin)(nil), // 24: regen.ecocredit.v1.MsgUpdateProjectAdmin - (*MsgUpdateProjectAdminResponse)(nil), // 25: regen.ecocredit.v1.MsgUpdateProjectAdminResponse - (*MsgUpdateProjectMetadata)(nil), // 26: regen.ecocredit.v1.MsgUpdateProjectMetadata - (*MsgUpdateProjectMetadataResponse)(nil), // 27: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse - (*MsgBridge)(nil), // 28: regen.ecocredit.v1.MsgBridge - (*MsgUpdateBatchMetadata)(nil), // 29: regen.ecocredit.v1.MsgUpdateBatchMetadata - (*MsgUpdateBatchMetadataResponse)(nil), // 30: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse - (*MsgBridgeResponse)(nil), // 31: regen.ecocredit.v1.MsgBridgeResponse - (*MsgBridgeReceive)(nil), // 32: regen.ecocredit.v1.MsgBridgeReceive - (*MsgBridgeReceiveResponse)(nil), // 33: regen.ecocredit.v1.MsgBridgeReceiveResponse - (*MsgAddClassCreator)(nil), // 34: regen.ecocredit.v1.MsgAddClassCreator - (*MsgAddClassCreatorResponse)(nil), // 35: regen.ecocredit.v1.MsgAddClassCreatorResponse - (*MsgSetClassCreatorAllowlist)(nil), // 36: regen.ecocredit.v1.MsgSetClassCreatorAllowlist - (*MsgSetClassCreatorAllowlistResponse)(nil), // 37: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse - (*MsgRemoveClassCreator)(nil), // 38: regen.ecocredit.v1.MsgRemoveClassCreator - (*MsgRemoveClassCreatorResponse)(nil), // 39: regen.ecocredit.v1.MsgRemoveClassCreatorResponse - (*MsgUpdateClassFee)(nil), // 40: regen.ecocredit.v1.MsgUpdateClassFee - (*MsgUpdateClassFeeResponse)(nil), // 41: regen.ecocredit.v1.MsgUpdateClassFeeResponse - (*MsgAddAllowedBridgeChain)(nil), // 42: regen.ecocredit.v1.MsgAddAllowedBridgeChain - (*MsgAddAllowedBridgeChainResponse)(nil), // 43: regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse - (*MsgRemoveAllowedBridgeChain)(nil), // 44: regen.ecocredit.v1.MsgRemoveAllowedBridgeChain - (*MsgRemoveAllowedBridgeChainResponse)(nil), // 45: regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse - (*MsgBurnRegen)(nil), // 46: regen.ecocredit.v1.MsgBurnRegen - (*MsgBurnRegenResponse)(nil), // 47: regen.ecocredit.v1.MsgBurnRegenResponse - (*MsgSend_SendCredits)(nil), // 48: regen.ecocredit.v1.MsgSend.SendCredits - (*MsgBridgeReceive_Batch)(nil), // 49: regen.ecocredit.v1.MsgBridgeReceive.Batch - (*MsgBridgeReceive_Project)(nil), // 50: regen.ecocredit.v1.MsgBridgeReceive.Project - (*CreditType)(nil), // 51: regen.ecocredit.v1.CreditType - (*v1beta1.Coin)(nil), // 52: cosmos.base.v1beta1.Coin - (*BatchIssuance)(nil), // 53: regen.ecocredit.v1.BatchIssuance - (*timestamppb.Timestamp)(nil), // 54: google.protobuf.Timestamp - (*OriginTx)(nil), // 55: regen.ecocredit.v1.OriginTx - (*Credits)(nil), // 56: regen.ecocredit.v1.Credits + (*MsgAddCreditType)(nil), // 0: regen.ecocredit.v1.MsgAddCreditType + (*MsgAddCreditTypeResponse)(nil), // 1: regen.ecocredit.v1.MsgAddCreditTypeResponse + (*MsgCreateClass)(nil), // 2: regen.ecocredit.v1.MsgCreateClass + (*MsgCreateClassResponse)(nil), // 3: regen.ecocredit.v1.MsgCreateClassResponse + (*MsgCreateProject)(nil), // 4: regen.ecocredit.v1.MsgCreateProject + (*MsgCreateProjectResponse)(nil), // 5: regen.ecocredit.v1.MsgCreateProjectResponse + (*MsgCreateUnregisteredProject)(nil), // 6: regen.ecocredit.v1.MsgCreateUnregisteredProject + (*MsgCreateUnregisteredProjectResponse)(nil), // 7: regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse + (*MsgCreateOrUpdateApplication)(nil), // 8: regen.ecocredit.v1.MsgCreateOrUpdateApplication + (*MsgCreateOrUpdateApplicationResponse)(nil), // 9: regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse + (*MsgUpdateProjectEnrollment)(nil), // 10: regen.ecocredit.v1.MsgUpdateProjectEnrollment + (*MsgUpdateProjectEnrollmentResponse)(nil), // 11: regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse + (*MsgCreateBatch)(nil), // 12: regen.ecocredit.v1.MsgCreateBatch + (*MsgCreateBatchResponse)(nil), // 13: regen.ecocredit.v1.MsgCreateBatchResponse + (*MsgMintBatchCredits)(nil), // 14: regen.ecocredit.v1.MsgMintBatchCredits + (*MsgMintBatchCreditsResponse)(nil), // 15: regen.ecocredit.v1.MsgMintBatchCreditsResponse + (*MsgSealBatch)(nil), // 16: regen.ecocredit.v1.MsgSealBatch + (*MsgSealBatchResponse)(nil), // 17: regen.ecocredit.v1.MsgSealBatchResponse + (*MsgSend)(nil), // 18: regen.ecocredit.v1.MsgSend + (*MsgSendResponse)(nil), // 19: regen.ecocredit.v1.MsgSendResponse + (*MsgRetire)(nil), // 20: regen.ecocredit.v1.MsgRetire + (*MsgRetireResponse)(nil), // 21: regen.ecocredit.v1.MsgRetireResponse + (*MsgCancel)(nil), // 22: regen.ecocredit.v1.MsgCancel + (*MsgCancelResponse)(nil), // 23: regen.ecocredit.v1.MsgCancelResponse + (*MsgUpdateClassAdmin)(nil), // 24: regen.ecocredit.v1.MsgUpdateClassAdmin + (*MsgUpdateClassAdminResponse)(nil), // 25: regen.ecocredit.v1.MsgUpdateClassAdminResponse + (*MsgUpdateClassIssuers)(nil), // 26: regen.ecocredit.v1.MsgUpdateClassIssuers + (*MsgUpdateClassIssuersResponse)(nil), // 27: regen.ecocredit.v1.MsgUpdateClassIssuersResponse + (*MsgUpdateClassMetadata)(nil), // 28: regen.ecocredit.v1.MsgUpdateClassMetadata + (*MsgUpdateClassMetadataResponse)(nil), // 29: regen.ecocredit.v1.MsgUpdateClassMetadataResponse + (*MsgUpdateProjectAdmin)(nil), // 30: regen.ecocredit.v1.MsgUpdateProjectAdmin + (*MsgUpdateProjectAdminResponse)(nil), // 31: regen.ecocredit.v1.MsgUpdateProjectAdminResponse + (*MsgUpdateProjectMetadata)(nil), // 32: regen.ecocredit.v1.MsgUpdateProjectMetadata + (*MsgUpdateProjectMetadataResponse)(nil), // 33: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse + (*MsgBridge)(nil), // 34: regen.ecocredit.v1.MsgBridge + (*MsgUpdateBatchMetadata)(nil), // 35: regen.ecocredit.v1.MsgUpdateBatchMetadata + (*MsgUpdateBatchMetadataResponse)(nil), // 36: regen.ecocredit.v1.MsgUpdateBatchMetadataResponse + (*MsgBridgeResponse)(nil), // 37: regen.ecocredit.v1.MsgBridgeResponse + (*MsgBridgeReceive)(nil), // 38: regen.ecocredit.v1.MsgBridgeReceive + (*MsgBridgeReceiveResponse)(nil), // 39: regen.ecocredit.v1.MsgBridgeReceiveResponse + (*MsgAddClassCreator)(nil), // 40: regen.ecocredit.v1.MsgAddClassCreator + (*MsgAddClassCreatorResponse)(nil), // 41: regen.ecocredit.v1.MsgAddClassCreatorResponse + (*MsgSetClassCreatorAllowlist)(nil), // 42: regen.ecocredit.v1.MsgSetClassCreatorAllowlist + (*MsgSetClassCreatorAllowlistResponse)(nil), // 43: regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse + (*MsgRemoveClassCreator)(nil), // 44: regen.ecocredit.v1.MsgRemoveClassCreator + (*MsgRemoveClassCreatorResponse)(nil), // 45: regen.ecocredit.v1.MsgRemoveClassCreatorResponse + (*MsgUpdateClassFee)(nil), // 46: regen.ecocredit.v1.MsgUpdateClassFee + (*MsgUpdateClassFeeResponse)(nil), // 47: regen.ecocredit.v1.MsgUpdateClassFeeResponse + (*MsgUpdateProjectFee)(nil), // 48: regen.ecocredit.v1.MsgUpdateProjectFee + (*MsgUpdateProjectFeeResponse)(nil), // 49: regen.ecocredit.v1.MsgUpdateProjectFeeResponse + (*MsgAddAllowedBridgeChain)(nil), // 50: regen.ecocredit.v1.MsgAddAllowedBridgeChain + (*MsgAddAllowedBridgeChainResponse)(nil), // 51: regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse + (*MsgRemoveAllowedBridgeChain)(nil), // 52: regen.ecocredit.v1.MsgRemoveAllowedBridgeChain + (*MsgRemoveAllowedBridgeChainResponse)(nil), // 53: regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse + (*MsgBurnRegen)(nil), // 54: regen.ecocredit.v1.MsgBurnRegen + (*MsgBurnRegenResponse)(nil), // 55: regen.ecocredit.v1.MsgBurnRegenResponse + (*MsgSend_SendCredits)(nil), // 56: regen.ecocredit.v1.MsgSend.SendCredits + (*MsgBridgeReceive_Batch)(nil), // 57: regen.ecocredit.v1.MsgBridgeReceive.Batch + (*MsgBridgeReceive_Project)(nil), // 58: regen.ecocredit.v1.MsgBridgeReceive.Project + (*CreditType)(nil), // 59: regen.ecocredit.v1.CreditType + (*v1beta1.Coin)(nil), // 60: cosmos.base.v1beta1.Coin + (ProjectEnrollmentStatus)(0), // 61: regen.ecocredit.v1.ProjectEnrollmentStatus + (*BatchIssuance)(nil), // 62: regen.ecocredit.v1.BatchIssuance + (*timestamppb.Timestamp)(nil), // 63: google.protobuf.Timestamp + (*OriginTx)(nil), // 64: regen.ecocredit.v1.OriginTx + (*Credits)(nil), // 65: regen.ecocredit.v1.Credits } var file_regen_ecocredit_v1_tx_proto_depIdxs = []int32{ - 51, // 0: regen.ecocredit.v1.MsgAddCreditType.credit_type:type_name -> regen.ecocredit.v1.CreditType - 52, // 1: regen.ecocredit.v1.MsgCreateClass.fee:type_name -> cosmos.base.v1beta1.Coin - 53, // 2: regen.ecocredit.v1.MsgCreateBatch.issuance:type_name -> regen.ecocredit.v1.BatchIssuance - 54, // 3: regen.ecocredit.v1.MsgCreateBatch.start_date:type_name -> google.protobuf.Timestamp - 54, // 4: regen.ecocredit.v1.MsgCreateBatch.end_date:type_name -> google.protobuf.Timestamp - 55, // 5: regen.ecocredit.v1.MsgCreateBatch.origin_tx:type_name -> regen.ecocredit.v1.OriginTx - 53, // 6: regen.ecocredit.v1.MsgMintBatchCredits.issuance:type_name -> regen.ecocredit.v1.BatchIssuance - 55, // 7: regen.ecocredit.v1.MsgMintBatchCredits.origin_tx:type_name -> regen.ecocredit.v1.OriginTx - 48, // 8: regen.ecocredit.v1.MsgSend.credits:type_name -> regen.ecocredit.v1.MsgSend.SendCredits - 56, // 9: regen.ecocredit.v1.MsgRetire.credits:type_name -> regen.ecocredit.v1.Credits - 56, // 10: regen.ecocredit.v1.MsgCancel.credits:type_name -> regen.ecocredit.v1.Credits - 56, // 11: regen.ecocredit.v1.MsgBridge.credits:type_name -> regen.ecocredit.v1.Credits - 50, // 12: regen.ecocredit.v1.MsgBridgeReceive.project:type_name -> regen.ecocredit.v1.MsgBridgeReceive.Project - 49, // 13: regen.ecocredit.v1.MsgBridgeReceive.batch:type_name -> regen.ecocredit.v1.MsgBridgeReceive.Batch - 55, // 14: regen.ecocredit.v1.MsgBridgeReceive.origin_tx:type_name -> regen.ecocredit.v1.OriginTx - 52, // 15: regen.ecocredit.v1.MsgUpdateClassFee.fee:type_name -> cosmos.base.v1beta1.Coin - 54, // 16: regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date:type_name -> google.protobuf.Timestamp - 54, // 17: regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date:type_name -> google.protobuf.Timestamp - 2, // 18: regen.ecocredit.v1.Msg.CreateClass:input_type -> regen.ecocredit.v1.MsgCreateClass - 4, // 19: regen.ecocredit.v1.Msg.CreateProject:input_type -> regen.ecocredit.v1.MsgCreateProject - 6, // 20: regen.ecocredit.v1.Msg.CreateBatch:input_type -> regen.ecocredit.v1.MsgCreateBatch - 8, // 21: regen.ecocredit.v1.Msg.MintBatchCredits:input_type -> regen.ecocredit.v1.MsgMintBatchCredits - 10, // 22: regen.ecocredit.v1.Msg.SealBatch:input_type -> regen.ecocredit.v1.MsgSealBatch - 12, // 23: regen.ecocredit.v1.Msg.Send:input_type -> regen.ecocredit.v1.MsgSend - 14, // 24: regen.ecocredit.v1.Msg.Retire:input_type -> regen.ecocredit.v1.MsgRetire - 16, // 25: regen.ecocredit.v1.Msg.Cancel:input_type -> regen.ecocredit.v1.MsgCancel - 18, // 26: regen.ecocredit.v1.Msg.UpdateClassAdmin:input_type -> regen.ecocredit.v1.MsgUpdateClassAdmin - 20, // 27: regen.ecocredit.v1.Msg.UpdateClassIssuers:input_type -> regen.ecocredit.v1.MsgUpdateClassIssuers - 22, // 28: regen.ecocredit.v1.Msg.UpdateClassMetadata:input_type -> regen.ecocredit.v1.MsgUpdateClassMetadata - 24, // 29: regen.ecocredit.v1.Msg.UpdateProjectAdmin:input_type -> regen.ecocredit.v1.MsgUpdateProjectAdmin - 26, // 30: regen.ecocredit.v1.Msg.UpdateProjectMetadata:input_type -> regen.ecocredit.v1.MsgUpdateProjectMetadata - 29, // 31: regen.ecocredit.v1.Msg.UpdateBatchMetadata:input_type -> regen.ecocredit.v1.MsgUpdateBatchMetadata - 28, // 32: regen.ecocredit.v1.Msg.Bridge:input_type -> regen.ecocredit.v1.MsgBridge - 32, // 33: regen.ecocredit.v1.Msg.BridgeReceive:input_type -> regen.ecocredit.v1.MsgBridgeReceive - 0, // 34: regen.ecocredit.v1.Msg.AddCreditType:input_type -> regen.ecocredit.v1.MsgAddCreditType - 36, // 35: regen.ecocredit.v1.Msg.SetClassCreatorAllowlist:input_type -> regen.ecocredit.v1.MsgSetClassCreatorAllowlist - 34, // 36: regen.ecocredit.v1.Msg.AddClassCreator:input_type -> regen.ecocredit.v1.MsgAddClassCreator - 38, // 37: regen.ecocredit.v1.Msg.RemoveClassCreator:input_type -> regen.ecocredit.v1.MsgRemoveClassCreator - 40, // 38: regen.ecocredit.v1.Msg.UpdateClassFee:input_type -> regen.ecocredit.v1.MsgUpdateClassFee - 42, // 39: regen.ecocredit.v1.Msg.AddAllowedBridgeChain:input_type -> regen.ecocredit.v1.MsgAddAllowedBridgeChain - 44, // 40: regen.ecocredit.v1.Msg.RemoveAllowedBridgeChain:input_type -> regen.ecocredit.v1.MsgRemoveAllowedBridgeChain - 46, // 41: regen.ecocredit.v1.Msg.BurnRegen:input_type -> regen.ecocredit.v1.MsgBurnRegen - 3, // 42: regen.ecocredit.v1.Msg.CreateClass:output_type -> regen.ecocredit.v1.MsgCreateClassResponse - 5, // 43: regen.ecocredit.v1.Msg.CreateProject:output_type -> regen.ecocredit.v1.MsgCreateProjectResponse - 7, // 44: regen.ecocredit.v1.Msg.CreateBatch:output_type -> regen.ecocredit.v1.MsgCreateBatchResponse - 9, // 45: regen.ecocredit.v1.Msg.MintBatchCredits:output_type -> regen.ecocredit.v1.MsgMintBatchCreditsResponse - 11, // 46: regen.ecocredit.v1.Msg.SealBatch:output_type -> regen.ecocredit.v1.MsgSealBatchResponse - 13, // 47: regen.ecocredit.v1.Msg.Send:output_type -> regen.ecocredit.v1.MsgSendResponse - 15, // 48: regen.ecocredit.v1.Msg.Retire:output_type -> regen.ecocredit.v1.MsgRetireResponse - 17, // 49: regen.ecocredit.v1.Msg.Cancel:output_type -> regen.ecocredit.v1.MsgCancelResponse - 19, // 50: regen.ecocredit.v1.Msg.UpdateClassAdmin:output_type -> regen.ecocredit.v1.MsgUpdateClassAdminResponse - 21, // 51: regen.ecocredit.v1.Msg.UpdateClassIssuers:output_type -> regen.ecocredit.v1.MsgUpdateClassIssuersResponse - 23, // 52: regen.ecocredit.v1.Msg.UpdateClassMetadata:output_type -> regen.ecocredit.v1.MsgUpdateClassMetadataResponse - 25, // 53: regen.ecocredit.v1.Msg.UpdateProjectAdmin:output_type -> regen.ecocredit.v1.MsgUpdateProjectAdminResponse - 27, // 54: regen.ecocredit.v1.Msg.UpdateProjectMetadata:output_type -> regen.ecocredit.v1.MsgUpdateProjectMetadataResponse - 30, // 55: regen.ecocredit.v1.Msg.UpdateBatchMetadata:output_type -> regen.ecocredit.v1.MsgUpdateBatchMetadataResponse - 31, // 56: regen.ecocredit.v1.Msg.Bridge:output_type -> regen.ecocredit.v1.MsgBridgeResponse - 33, // 57: regen.ecocredit.v1.Msg.BridgeReceive:output_type -> regen.ecocredit.v1.MsgBridgeReceiveResponse - 1, // 58: regen.ecocredit.v1.Msg.AddCreditType:output_type -> regen.ecocredit.v1.MsgAddCreditTypeResponse - 37, // 59: regen.ecocredit.v1.Msg.SetClassCreatorAllowlist:output_type -> regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse - 35, // 60: regen.ecocredit.v1.Msg.AddClassCreator:output_type -> regen.ecocredit.v1.MsgAddClassCreatorResponse - 39, // 61: regen.ecocredit.v1.Msg.RemoveClassCreator:output_type -> regen.ecocredit.v1.MsgRemoveClassCreatorResponse - 41, // 62: regen.ecocredit.v1.Msg.UpdateClassFee:output_type -> regen.ecocredit.v1.MsgUpdateClassFeeResponse - 43, // 63: regen.ecocredit.v1.Msg.AddAllowedBridgeChain:output_type -> regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse - 45, // 64: regen.ecocredit.v1.Msg.RemoveAllowedBridgeChain:output_type -> regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse - 47, // 65: regen.ecocredit.v1.Msg.BurnRegen:output_type -> regen.ecocredit.v1.MsgBurnRegenResponse - 42, // [42:66] is the sub-list for method output_type - 18, // [18:42] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name + 59, // 0: regen.ecocredit.v1.MsgAddCreditType.credit_type:type_name -> regen.ecocredit.v1.CreditType + 60, // 1: regen.ecocredit.v1.MsgCreateClass.fee:type_name -> cosmos.base.v1beta1.Coin + 60, // 2: regen.ecocredit.v1.MsgCreateProject.fee:type_name -> cosmos.base.v1beta1.Coin + 60, // 3: regen.ecocredit.v1.MsgCreateUnregisteredProject.fee:type_name -> cosmos.base.v1beta1.Coin + 61, // 4: regen.ecocredit.v1.MsgUpdateProjectEnrollment.new_status:type_name -> regen.ecocredit.v1.ProjectEnrollmentStatus + 62, // 5: regen.ecocredit.v1.MsgCreateBatch.issuance:type_name -> regen.ecocredit.v1.BatchIssuance + 63, // 6: regen.ecocredit.v1.MsgCreateBatch.start_date:type_name -> google.protobuf.Timestamp + 63, // 7: regen.ecocredit.v1.MsgCreateBatch.end_date:type_name -> google.protobuf.Timestamp + 64, // 8: regen.ecocredit.v1.MsgCreateBatch.origin_tx:type_name -> regen.ecocredit.v1.OriginTx + 62, // 9: regen.ecocredit.v1.MsgMintBatchCredits.issuance:type_name -> regen.ecocredit.v1.BatchIssuance + 64, // 10: regen.ecocredit.v1.MsgMintBatchCredits.origin_tx:type_name -> regen.ecocredit.v1.OriginTx + 56, // 11: regen.ecocredit.v1.MsgSend.credits:type_name -> regen.ecocredit.v1.MsgSend.SendCredits + 65, // 12: regen.ecocredit.v1.MsgRetire.credits:type_name -> regen.ecocredit.v1.Credits + 65, // 13: regen.ecocredit.v1.MsgCancel.credits:type_name -> regen.ecocredit.v1.Credits + 65, // 14: regen.ecocredit.v1.MsgBridge.credits:type_name -> regen.ecocredit.v1.Credits + 58, // 15: regen.ecocredit.v1.MsgBridgeReceive.project:type_name -> regen.ecocredit.v1.MsgBridgeReceive.Project + 57, // 16: regen.ecocredit.v1.MsgBridgeReceive.batch:type_name -> regen.ecocredit.v1.MsgBridgeReceive.Batch + 64, // 17: regen.ecocredit.v1.MsgBridgeReceive.origin_tx:type_name -> regen.ecocredit.v1.OriginTx + 60, // 18: regen.ecocredit.v1.MsgUpdateClassFee.fee:type_name -> cosmos.base.v1beta1.Coin + 60, // 19: regen.ecocredit.v1.MsgUpdateProjectFee.fee:type_name -> cosmos.base.v1beta1.Coin + 63, // 20: regen.ecocredit.v1.MsgBridgeReceive.Batch.start_date:type_name -> google.protobuf.Timestamp + 63, // 21: regen.ecocredit.v1.MsgBridgeReceive.Batch.end_date:type_name -> google.protobuf.Timestamp + 2, // 22: regen.ecocredit.v1.Msg.CreateClass:input_type -> regen.ecocredit.v1.MsgCreateClass + 4, // 23: regen.ecocredit.v1.Msg.CreateProject:input_type -> regen.ecocredit.v1.MsgCreateProject + 6, // 24: regen.ecocredit.v1.Msg.CreateUnregisteredProject:input_type -> regen.ecocredit.v1.MsgCreateUnregisteredProject + 8, // 25: regen.ecocredit.v1.Msg.CreateOrUpdateApplication:input_type -> regen.ecocredit.v1.MsgCreateOrUpdateApplication + 10, // 26: regen.ecocredit.v1.Msg.UpdateProjectEnrollment:input_type -> regen.ecocredit.v1.MsgUpdateProjectEnrollment + 12, // 27: regen.ecocredit.v1.Msg.CreateBatch:input_type -> regen.ecocredit.v1.MsgCreateBatch + 14, // 28: regen.ecocredit.v1.Msg.MintBatchCredits:input_type -> regen.ecocredit.v1.MsgMintBatchCredits + 16, // 29: regen.ecocredit.v1.Msg.SealBatch:input_type -> regen.ecocredit.v1.MsgSealBatch + 18, // 30: regen.ecocredit.v1.Msg.Send:input_type -> regen.ecocredit.v1.MsgSend + 20, // 31: regen.ecocredit.v1.Msg.Retire:input_type -> regen.ecocredit.v1.MsgRetire + 22, // 32: regen.ecocredit.v1.Msg.Cancel:input_type -> regen.ecocredit.v1.MsgCancel + 24, // 33: regen.ecocredit.v1.Msg.UpdateClassAdmin:input_type -> regen.ecocredit.v1.MsgUpdateClassAdmin + 26, // 34: regen.ecocredit.v1.Msg.UpdateClassIssuers:input_type -> regen.ecocredit.v1.MsgUpdateClassIssuers + 28, // 35: regen.ecocredit.v1.Msg.UpdateClassMetadata:input_type -> regen.ecocredit.v1.MsgUpdateClassMetadata + 30, // 36: regen.ecocredit.v1.Msg.UpdateProjectAdmin:input_type -> regen.ecocredit.v1.MsgUpdateProjectAdmin + 32, // 37: regen.ecocredit.v1.Msg.UpdateProjectMetadata:input_type -> regen.ecocredit.v1.MsgUpdateProjectMetadata + 35, // 38: regen.ecocredit.v1.Msg.UpdateBatchMetadata:input_type -> regen.ecocredit.v1.MsgUpdateBatchMetadata + 34, // 39: regen.ecocredit.v1.Msg.Bridge:input_type -> regen.ecocredit.v1.MsgBridge + 38, // 40: regen.ecocredit.v1.Msg.BridgeReceive:input_type -> regen.ecocredit.v1.MsgBridgeReceive + 0, // 41: regen.ecocredit.v1.Msg.AddCreditType:input_type -> regen.ecocredit.v1.MsgAddCreditType + 42, // 42: regen.ecocredit.v1.Msg.SetClassCreatorAllowlist:input_type -> regen.ecocredit.v1.MsgSetClassCreatorAllowlist + 40, // 43: regen.ecocredit.v1.Msg.AddClassCreator:input_type -> regen.ecocredit.v1.MsgAddClassCreator + 44, // 44: regen.ecocredit.v1.Msg.RemoveClassCreator:input_type -> regen.ecocredit.v1.MsgRemoveClassCreator + 46, // 45: regen.ecocredit.v1.Msg.UpdateClassFee:input_type -> regen.ecocredit.v1.MsgUpdateClassFee + 48, // 46: regen.ecocredit.v1.Msg.UpdateProjectFee:input_type -> regen.ecocredit.v1.MsgUpdateProjectFee + 50, // 47: regen.ecocredit.v1.Msg.AddAllowedBridgeChain:input_type -> regen.ecocredit.v1.MsgAddAllowedBridgeChain + 52, // 48: regen.ecocredit.v1.Msg.RemoveAllowedBridgeChain:input_type -> regen.ecocredit.v1.MsgRemoveAllowedBridgeChain + 54, // 49: regen.ecocredit.v1.Msg.BurnRegen:input_type -> regen.ecocredit.v1.MsgBurnRegen + 3, // 50: regen.ecocredit.v1.Msg.CreateClass:output_type -> regen.ecocredit.v1.MsgCreateClassResponse + 5, // 51: regen.ecocredit.v1.Msg.CreateProject:output_type -> regen.ecocredit.v1.MsgCreateProjectResponse + 7, // 52: regen.ecocredit.v1.Msg.CreateUnregisteredProject:output_type -> regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse + 9, // 53: regen.ecocredit.v1.Msg.CreateOrUpdateApplication:output_type -> regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse + 11, // 54: regen.ecocredit.v1.Msg.UpdateProjectEnrollment:output_type -> regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse + 13, // 55: regen.ecocredit.v1.Msg.CreateBatch:output_type -> regen.ecocredit.v1.MsgCreateBatchResponse + 15, // 56: regen.ecocredit.v1.Msg.MintBatchCredits:output_type -> regen.ecocredit.v1.MsgMintBatchCreditsResponse + 17, // 57: regen.ecocredit.v1.Msg.SealBatch:output_type -> regen.ecocredit.v1.MsgSealBatchResponse + 19, // 58: regen.ecocredit.v1.Msg.Send:output_type -> regen.ecocredit.v1.MsgSendResponse + 21, // 59: regen.ecocredit.v1.Msg.Retire:output_type -> regen.ecocredit.v1.MsgRetireResponse + 23, // 60: regen.ecocredit.v1.Msg.Cancel:output_type -> regen.ecocredit.v1.MsgCancelResponse + 25, // 61: regen.ecocredit.v1.Msg.UpdateClassAdmin:output_type -> regen.ecocredit.v1.MsgUpdateClassAdminResponse + 27, // 62: regen.ecocredit.v1.Msg.UpdateClassIssuers:output_type -> regen.ecocredit.v1.MsgUpdateClassIssuersResponse + 29, // 63: regen.ecocredit.v1.Msg.UpdateClassMetadata:output_type -> regen.ecocredit.v1.MsgUpdateClassMetadataResponse + 31, // 64: regen.ecocredit.v1.Msg.UpdateProjectAdmin:output_type -> regen.ecocredit.v1.MsgUpdateProjectAdminResponse + 33, // 65: regen.ecocredit.v1.Msg.UpdateProjectMetadata:output_type -> regen.ecocredit.v1.MsgUpdateProjectMetadataResponse + 36, // 66: regen.ecocredit.v1.Msg.UpdateBatchMetadata:output_type -> regen.ecocredit.v1.MsgUpdateBatchMetadataResponse + 37, // 67: regen.ecocredit.v1.Msg.Bridge:output_type -> regen.ecocredit.v1.MsgBridgeResponse + 39, // 68: regen.ecocredit.v1.Msg.BridgeReceive:output_type -> regen.ecocredit.v1.MsgBridgeReceiveResponse + 1, // 69: regen.ecocredit.v1.Msg.AddCreditType:output_type -> regen.ecocredit.v1.MsgAddCreditTypeResponse + 43, // 70: regen.ecocredit.v1.Msg.SetClassCreatorAllowlist:output_type -> regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse + 41, // 71: regen.ecocredit.v1.Msg.AddClassCreator:output_type -> regen.ecocredit.v1.MsgAddClassCreatorResponse + 45, // 72: regen.ecocredit.v1.Msg.RemoveClassCreator:output_type -> regen.ecocredit.v1.MsgRemoveClassCreatorResponse + 47, // 73: regen.ecocredit.v1.Msg.UpdateClassFee:output_type -> regen.ecocredit.v1.MsgUpdateClassFeeResponse + 49, // 74: regen.ecocredit.v1.Msg.UpdateProjectFee:output_type -> regen.ecocredit.v1.MsgUpdateProjectFeeResponse + 51, // 75: regen.ecocredit.v1.Msg.AddAllowedBridgeChain:output_type -> regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse + 53, // 76: regen.ecocredit.v1.Msg.RemoveAllowedBridgeChain:output_type -> regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse + 55, // 77: regen.ecocredit.v1.Msg.BurnRegen:output_type -> regen.ecocredit.v1.MsgBurnRegenResponse + 50, // [50:78] is the sub-list for method output_type + 22, // [22:50] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] is the sub-list for field type_name } func init() { file_regen_ecocredit_v1_tx_proto_init() } @@ -28323,7 +33017,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateBatch); i { + switch v := v.(*MsgCreateUnregisteredProject); i { case 0: return &v.state case 1: @@ -28335,7 +33029,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateBatchResponse); i { + switch v := v.(*MsgCreateUnregisteredProjectResponse); i { case 0: return &v.state case 1: @@ -28347,7 +33041,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMintBatchCredits); i { + switch v := v.(*MsgCreateOrUpdateApplication); i { case 0: return &v.state case 1: @@ -28359,7 +33053,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMintBatchCreditsResponse); i { + switch v := v.(*MsgCreateOrUpdateApplicationResponse); i { case 0: return &v.state case 1: @@ -28371,7 +33065,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSealBatch); i { + switch v := v.(*MsgUpdateProjectEnrollment); i { case 0: return &v.state case 1: @@ -28383,7 +33077,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSealBatchResponse); i { + switch v := v.(*MsgUpdateProjectEnrollmentResponse); i { case 0: return &v.state case 1: @@ -28395,7 +33089,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSend); i { + switch v := v.(*MsgCreateBatch); i { case 0: return &v.state case 1: @@ -28407,7 +33101,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSendResponse); i { + switch v := v.(*MsgCreateBatchResponse); i { case 0: return &v.state case 1: @@ -28419,7 +33113,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRetire); i { + switch v := v.(*MsgMintBatchCredits); i { case 0: return &v.state case 1: @@ -28431,7 +33125,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRetireResponse); i { + switch v := v.(*MsgMintBatchCreditsResponse); i { case 0: return &v.state case 1: @@ -28443,7 +33137,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCancel); i { + switch v := v.(*MsgSealBatch); i { case 0: return &v.state case 1: @@ -28455,7 +33149,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCancelResponse); i { + switch v := v.(*MsgSealBatchResponse); i { case 0: return &v.state case 1: @@ -28467,7 +33161,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateClassAdmin); i { + switch v := v.(*MsgSend); i { case 0: return &v.state case 1: @@ -28479,7 +33173,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateClassAdminResponse); i { + switch v := v.(*MsgSendResponse); i { case 0: return &v.state case 1: @@ -28491,7 +33185,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateClassIssuers); i { + switch v := v.(*MsgRetire); i { case 0: return &v.state case 1: @@ -28503,7 +33197,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateClassIssuersResponse); i { + switch v := v.(*MsgRetireResponse); i { case 0: return &v.state case 1: @@ -28515,7 +33209,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateClassMetadata); i { + switch v := v.(*MsgCancel); i { case 0: return &v.state case 1: @@ -28527,7 +33221,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateClassMetadataResponse); i { + switch v := v.(*MsgCancelResponse); i { case 0: return &v.state case 1: @@ -28539,7 +33233,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateProjectAdmin); i { + switch v := v.(*MsgUpdateClassAdmin); i { case 0: return &v.state case 1: @@ -28551,7 +33245,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateProjectAdminResponse); i { + switch v := v.(*MsgUpdateClassAdminResponse); i { case 0: return &v.state case 1: @@ -28563,7 +33257,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateProjectMetadata); i { + switch v := v.(*MsgUpdateClassIssuers); i { case 0: return &v.state case 1: @@ -28575,7 +33269,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateProjectMetadataResponse); i { + switch v := v.(*MsgUpdateClassIssuersResponse); i { case 0: return &v.state case 1: @@ -28587,7 +33281,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBridge); i { + switch v := v.(*MsgUpdateClassMetadata); i { case 0: return &v.state case 1: @@ -28599,7 +33293,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateBatchMetadata); i { + switch v := v.(*MsgUpdateClassMetadataResponse); i { case 0: return &v.state case 1: @@ -28611,7 +33305,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateBatchMetadataResponse); i { + switch v := v.(*MsgUpdateProjectAdmin); i { case 0: return &v.state case 1: @@ -28623,7 +33317,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBridgeResponse); i { + switch v := v.(*MsgUpdateProjectAdminResponse); i { case 0: return &v.state case 1: @@ -28635,7 +33329,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBridgeReceive); i { + switch v := v.(*MsgUpdateProjectMetadata); i { case 0: return &v.state case 1: @@ -28647,7 +33341,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBridgeReceiveResponse); i { + switch v := v.(*MsgUpdateProjectMetadataResponse); i { case 0: return &v.state case 1: @@ -28659,7 +33353,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAddClassCreator); i { + switch v := v.(*MsgBridge); i { case 0: return &v.state case 1: @@ -28671,7 +33365,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAddClassCreatorResponse); i { + switch v := v.(*MsgUpdateBatchMetadata); i { case 0: return &v.state case 1: @@ -28683,7 +33377,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetClassCreatorAllowlist); i { + switch v := v.(*MsgUpdateBatchMetadataResponse); i { case 0: return &v.state case 1: @@ -28695,7 +33389,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetClassCreatorAllowlistResponse); i { + switch v := v.(*MsgBridgeResponse); i { case 0: return &v.state case 1: @@ -28707,7 +33401,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRemoveClassCreator); i { + switch v := v.(*MsgBridgeReceive); i { case 0: return &v.state case 1: @@ -28719,7 +33413,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRemoveClassCreatorResponse); i { + switch v := v.(*MsgBridgeReceiveResponse); i { case 0: return &v.state case 1: @@ -28731,7 +33425,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateClassFee); i { + switch v := v.(*MsgAddClassCreator); i { case 0: return &v.state case 1: @@ -28743,7 +33437,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateClassFeeResponse); i { + switch v := v.(*MsgAddClassCreatorResponse); i { case 0: return &v.state case 1: @@ -28755,7 +33449,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAddAllowedBridgeChain); i { + switch v := v.(*MsgSetClassCreatorAllowlist); i { case 0: return &v.state case 1: @@ -28767,7 +33461,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAddAllowedBridgeChainResponse); i { + switch v := v.(*MsgSetClassCreatorAllowlistResponse); i { case 0: return &v.state case 1: @@ -28779,7 +33473,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRemoveAllowedBridgeChain); i { + switch v := v.(*MsgRemoveClassCreator); i { case 0: return &v.state case 1: @@ -28791,7 +33485,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRemoveAllowedBridgeChainResponse); i { + switch v := v.(*MsgRemoveClassCreatorResponse); i { case 0: return &v.state case 1: @@ -28803,7 +33497,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBurnRegen); i { + switch v := v.(*MsgUpdateClassFee); i { case 0: return &v.state case 1: @@ -28815,7 +33509,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBurnRegenResponse); i { + switch v := v.(*MsgUpdateClassFeeResponse); i { case 0: return &v.state case 1: @@ -28827,7 +33521,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSend_SendCredits); i { + switch v := v.(*MsgUpdateProjectFee); i { case 0: return &v.state case 1: @@ -28839,7 +33533,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBridgeReceive_Batch); i { + switch v := v.(*MsgUpdateProjectFeeResponse); i { case 0: return &v.state case 1: @@ -28851,6 +33545,102 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAddAllowedBridgeChain); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_tx_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAddAllowedBridgeChainResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_tx_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveAllowedBridgeChain); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_tx_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveAllowedBridgeChainResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_tx_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgBurnRegen); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_tx_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgBurnRegenResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_tx_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSend_SendCredits); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_tx_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgBridgeReceive_Batch); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_tx_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgBridgeReceive_Project); i { case 0: return &v.state @@ -28869,7 +33659,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_ecocredit_v1_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 51, + NumMessages: 59, NumExtensions: 0, NumServices: 1, }, diff --git a/api/regen/ecocredit/v1/tx_grpc.pb.go b/api/regen/ecocredit/v1/tx_grpc.pb.go index 3aed770e7c..de6f12ef34 100644 --- a/api/regen/ecocredit/v1/tx_grpc.pb.go +++ b/api/regen/ecocredit/v1/tx_grpc.pb.go @@ -19,30 +19,34 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Msg_CreateClass_FullMethodName = "/regen.ecocredit.v1.Msg/CreateClass" - Msg_CreateProject_FullMethodName = "/regen.ecocredit.v1.Msg/CreateProject" - Msg_CreateBatch_FullMethodName = "/regen.ecocredit.v1.Msg/CreateBatch" - Msg_MintBatchCredits_FullMethodName = "/regen.ecocredit.v1.Msg/MintBatchCredits" - Msg_SealBatch_FullMethodName = "/regen.ecocredit.v1.Msg/SealBatch" - Msg_Send_FullMethodName = "/regen.ecocredit.v1.Msg/Send" - Msg_Retire_FullMethodName = "/regen.ecocredit.v1.Msg/Retire" - Msg_Cancel_FullMethodName = "/regen.ecocredit.v1.Msg/Cancel" - Msg_UpdateClassAdmin_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassAdmin" - Msg_UpdateClassIssuers_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassIssuers" - Msg_UpdateClassMetadata_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassMetadata" - Msg_UpdateProjectAdmin_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateProjectAdmin" - Msg_UpdateProjectMetadata_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateProjectMetadata" - Msg_UpdateBatchMetadata_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateBatchMetadata" - Msg_Bridge_FullMethodName = "/regen.ecocredit.v1.Msg/Bridge" - Msg_BridgeReceive_FullMethodName = "/regen.ecocredit.v1.Msg/BridgeReceive" - Msg_AddCreditType_FullMethodName = "/regen.ecocredit.v1.Msg/AddCreditType" - Msg_SetClassCreatorAllowlist_FullMethodName = "/regen.ecocredit.v1.Msg/SetClassCreatorAllowlist" - Msg_AddClassCreator_FullMethodName = "/regen.ecocredit.v1.Msg/AddClassCreator" - Msg_RemoveClassCreator_FullMethodName = "/regen.ecocredit.v1.Msg/RemoveClassCreator" - Msg_UpdateClassFee_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassFee" - Msg_AddAllowedBridgeChain_FullMethodName = "/regen.ecocredit.v1.Msg/AddAllowedBridgeChain" - Msg_RemoveAllowedBridgeChain_FullMethodName = "/regen.ecocredit.v1.Msg/RemoveAllowedBridgeChain" - Msg_BurnRegen_FullMethodName = "/regen.ecocredit.v1.Msg/BurnRegen" + Msg_CreateClass_FullMethodName = "/regen.ecocredit.v1.Msg/CreateClass" + Msg_CreateProject_FullMethodName = "/regen.ecocredit.v1.Msg/CreateProject" + Msg_CreateUnregisteredProject_FullMethodName = "/regen.ecocredit.v1.Msg/CreateUnregisteredProject" + Msg_CreateOrUpdateApplication_FullMethodName = "/regen.ecocredit.v1.Msg/CreateOrUpdateApplication" + Msg_UpdateProjectEnrollment_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateProjectEnrollment" + Msg_CreateBatch_FullMethodName = "/regen.ecocredit.v1.Msg/CreateBatch" + Msg_MintBatchCredits_FullMethodName = "/regen.ecocredit.v1.Msg/MintBatchCredits" + Msg_SealBatch_FullMethodName = "/regen.ecocredit.v1.Msg/SealBatch" + Msg_Send_FullMethodName = "/regen.ecocredit.v1.Msg/Send" + Msg_Retire_FullMethodName = "/regen.ecocredit.v1.Msg/Retire" + Msg_Cancel_FullMethodName = "/regen.ecocredit.v1.Msg/Cancel" + Msg_UpdateClassAdmin_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassAdmin" + Msg_UpdateClassIssuers_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassIssuers" + Msg_UpdateClassMetadata_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassMetadata" + Msg_UpdateProjectAdmin_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateProjectAdmin" + Msg_UpdateProjectMetadata_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateProjectMetadata" + Msg_UpdateBatchMetadata_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateBatchMetadata" + Msg_Bridge_FullMethodName = "/regen.ecocredit.v1.Msg/Bridge" + Msg_BridgeReceive_FullMethodName = "/regen.ecocredit.v1.Msg/BridgeReceive" + Msg_AddCreditType_FullMethodName = "/regen.ecocredit.v1.Msg/AddCreditType" + Msg_SetClassCreatorAllowlist_FullMethodName = "/regen.ecocredit.v1.Msg/SetClassCreatorAllowlist" + Msg_AddClassCreator_FullMethodName = "/regen.ecocredit.v1.Msg/AddClassCreator" + Msg_RemoveClassCreator_FullMethodName = "/regen.ecocredit.v1.Msg/RemoveClassCreator" + Msg_UpdateClassFee_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassFee" + Msg_UpdateProjectFee_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateProjectFee" + Msg_AddAllowedBridgeChain_FullMethodName = "/regen.ecocredit.v1.Msg/AddAllowedBridgeChain" + Msg_RemoveAllowedBridgeChain_FullMethodName = "/regen.ecocredit.v1.Msg/RemoveAllowedBridgeChain" + Msg_BurnRegen_FullMethodName = "/regen.ecocredit.v1.Msg/BurnRegen" ) // MsgClient is the client API for Msg service. @@ -61,6 +65,39 @@ type MsgClient interface { // of the project must be an approved credit class issuer for the given credit // class. The creator becomes the admin of the project upon creation. CreateProject(ctx context.Context, in *MsgCreateProject, opts ...grpc.CallOption) (*MsgCreateProjectResponse, error) + // CreateUnregisteredProject creates a new project without registering it + // under a credit class. This method is intended to be used by project proponents + // who are not yet ready to register their project under a credit class, but who + // want to create a project and receive a project ID. + CreateUnregisteredProject(ctx context.Context, in *MsgCreateUnregisteredProject, opts ...grpc.CallOption) (*MsgCreateUnregisteredProjectResponse, error) + // CreateOrUpdateApplicaton creates a new project credit class application, updates + // the metadata for an existing one when changes have been requested, or withdraws + // the application. When an application is withdrawn, its data will be deleted from + // state and the project may apply again to the same credit class in the future. + // + // Since Revision 3 + CreateOrUpdateApplication(ctx context.Context, in *MsgCreateOrUpdateApplication, opts ...grpc.CallOption) (*MsgCreateOrUpdateApplicationResponse, error) + // UpdateProjectEnrollment allows a credit class issuer to evaluate a project + // application - either approving, requesting changes to, or + // rejecting it, or to terminate an existing enrollment. + // Any issuer in the credit class may update the project credit + // class enrollment status using this method. If more sophisticated rules are + // required to coordinate between different issuers, the credit class admin + // should set up an on or off-chain governance process to coordinate this. + // Issuers may not admit projects into credit classes using this method + // without the project first creating an application. For an issuer to + // admit a project into a credit class without an + // application the CreateProject method should be used instead. + // + // If a project has not yet been accepted then the issuer may change the + // status to either changes requested, accepted or rejected. If the status + // is already accepted, the issuer may only change the status to terminated. + // Whenever a project is rejected or terminated, the project's enrollment + // the enrollment state will be deleted and the project may apply again + // to the same credit class in the future. + // + // Since Revision 3 + UpdateProjectEnrollment(ctx context.Context, in *MsgUpdateProjectEnrollment, opts ...grpc.CallOption) (*MsgUpdateProjectEnrollmentResponse, error) // CreateBatch creates a new batch of credits under the given project with a // start and end date representing the monitoring period, a list of credits to // be issued with each issuance specifying a recipient, the amount of tradable @@ -163,6 +200,13 @@ type MsgClient interface { // // Since Revision 2 UpdateClassFee(ctx context.Context, in *MsgUpdateClassFee, opts ...grpc.CallOption) (*MsgUpdateClassFeeResponse, error) + // UpdateProjectFee is a governance method that allows for updating the + // project creation fee. If no fee is specified in the request, the project + // creation fee will be removed and no fee will be required to create a + // project. + // + // Since Revision 3 + UpdateProjectFee(ctx context.Context, in *MsgUpdateProjectFee, opts ...grpc.CallOption) (*MsgUpdateProjectFeeResponse, error) // AddAllowedBridgeChain is a governance method that allows for the // addition of a chain to bridge ecocredits to. // @@ -205,6 +249,33 @@ func (c *msgClient) CreateProject(ctx context.Context, in *MsgCreateProject, opt return out, nil } +func (c *msgClient) CreateUnregisteredProject(ctx context.Context, in *MsgCreateUnregisteredProject, opts ...grpc.CallOption) (*MsgCreateUnregisteredProjectResponse, error) { + out := new(MsgCreateUnregisteredProjectResponse) + err := c.cc.Invoke(ctx, Msg_CreateUnregisteredProject_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateOrUpdateApplication(ctx context.Context, in *MsgCreateOrUpdateApplication, opts ...grpc.CallOption) (*MsgCreateOrUpdateApplicationResponse, error) { + out := new(MsgCreateOrUpdateApplicationResponse) + err := c.cc.Invoke(ctx, Msg_CreateOrUpdateApplication_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateProjectEnrollment(ctx context.Context, in *MsgUpdateProjectEnrollment, opts ...grpc.CallOption) (*MsgUpdateProjectEnrollmentResponse, error) { + out := new(MsgUpdateProjectEnrollmentResponse) + err := c.cc.Invoke(ctx, Msg_UpdateProjectEnrollment_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *msgClient) CreateBatch(ctx context.Context, in *MsgCreateBatch, opts ...grpc.CallOption) (*MsgCreateBatchResponse, error) { out := new(MsgCreateBatchResponse) err := c.cc.Invoke(ctx, Msg_CreateBatch_FullMethodName, in, out, opts...) @@ -376,6 +447,15 @@ func (c *msgClient) UpdateClassFee(ctx context.Context, in *MsgUpdateClassFee, o return out, nil } +func (c *msgClient) UpdateProjectFee(ctx context.Context, in *MsgUpdateProjectFee, opts ...grpc.CallOption) (*MsgUpdateProjectFeeResponse, error) { + out := new(MsgUpdateProjectFeeResponse) + err := c.cc.Invoke(ctx, Msg_UpdateProjectFee_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *msgClient) AddAllowedBridgeChain(ctx context.Context, in *MsgAddAllowedBridgeChain, opts ...grpc.CallOption) (*MsgAddAllowedBridgeChainResponse, error) { out := new(MsgAddAllowedBridgeChainResponse) err := c.cc.Invoke(ctx, Msg_AddAllowedBridgeChain_FullMethodName, in, out, opts...) @@ -419,6 +499,39 @@ type MsgServer interface { // of the project must be an approved credit class issuer for the given credit // class. The creator becomes the admin of the project upon creation. CreateProject(context.Context, *MsgCreateProject) (*MsgCreateProjectResponse, error) + // CreateUnregisteredProject creates a new project without registering it + // under a credit class. This method is intended to be used by project proponents + // who are not yet ready to register their project under a credit class, but who + // want to create a project and receive a project ID. + CreateUnregisteredProject(context.Context, *MsgCreateUnregisteredProject) (*MsgCreateUnregisteredProjectResponse, error) + // CreateOrUpdateApplicaton creates a new project credit class application, updates + // the metadata for an existing one when changes have been requested, or withdraws + // the application. When an application is withdrawn, its data will be deleted from + // state and the project may apply again to the same credit class in the future. + // + // Since Revision 3 + CreateOrUpdateApplication(context.Context, *MsgCreateOrUpdateApplication) (*MsgCreateOrUpdateApplicationResponse, error) + // UpdateProjectEnrollment allows a credit class issuer to evaluate a project + // application - either approving, requesting changes to, or + // rejecting it, or to terminate an existing enrollment. + // Any issuer in the credit class may update the project credit + // class enrollment status using this method. If more sophisticated rules are + // required to coordinate between different issuers, the credit class admin + // should set up an on or off-chain governance process to coordinate this. + // Issuers may not admit projects into credit classes using this method + // without the project first creating an application. For an issuer to + // admit a project into a credit class without an + // application the CreateProject method should be used instead. + // + // If a project has not yet been accepted then the issuer may change the + // status to either changes requested, accepted or rejected. If the status + // is already accepted, the issuer may only change the status to terminated. + // Whenever a project is rejected or terminated, the project's enrollment + // the enrollment state will be deleted and the project may apply again + // to the same credit class in the future. + // + // Since Revision 3 + UpdateProjectEnrollment(context.Context, *MsgUpdateProjectEnrollment) (*MsgUpdateProjectEnrollmentResponse, error) // CreateBatch creates a new batch of credits under the given project with a // start and end date representing the monitoring period, a list of credits to // be issued with each issuance specifying a recipient, the amount of tradable @@ -521,6 +634,13 @@ type MsgServer interface { // // Since Revision 2 UpdateClassFee(context.Context, *MsgUpdateClassFee) (*MsgUpdateClassFeeResponse, error) + // UpdateProjectFee is a governance method that allows for updating the + // project creation fee. If no fee is specified in the request, the project + // creation fee will be removed and no fee will be required to create a + // project. + // + // Since Revision 3 + UpdateProjectFee(context.Context, *MsgUpdateProjectFee) (*MsgUpdateProjectFeeResponse, error) // AddAllowedBridgeChain is a governance method that allows for the // addition of a chain to bridge ecocredits to. // @@ -548,6 +668,15 @@ func (UnimplementedMsgServer) CreateClass(context.Context, *MsgCreateClass) (*Ms func (UnimplementedMsgServer) CreateProject(context.Context, *MsgCreateProject) (*MsgCreateProjectResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateProject not implemented") } +func (UnimplementedMsgServer) CreateUnregisteredProject(context.Context, *MsgCreateUnregisteredProject) (*MsgCreateUnregisteredProjectResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUnregisteredProject not implemented") +} +func (UnimplementedMsgServer) CreateOrUpdateApplication(context.Context, *MsgCreateOrUpdateApplication) (*MsgCreateOrUpdateApplicationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateOrUpdateApplication not implemented") +} +func (UnimplementedMsgServer) UpdateProjectEnrollment(context.Context, *MsgUpdateProjectEnrollment) (*MsgUpdateProjectEnrollmentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectEnrollment not implemented") +} func (UnimplementedMsgServer) CreateBatch(context.Context, *MsgCreateBatch) (*MsgCreateBatchResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateBatch not implemented") } @@ -605,6 +734,9 @@ func (UnimplementedMsgServer) RemoveClassCreator(context.Context, *MsgRemoveClas func (UnimplementedMsgServer) UpdateClassFee(context.Context, *MsgUpdateClassFee) (*MsgUpdateClassFeeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateClassFee not implemented") } +func (UnimplementedMsgServer) UpdateProjectFee(context.Context, *MsgUpdateProjectFee) (*MsgUpdateProjectFeeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectFee not implemented") +} func (UnimplementedMsgServer) AddAllowedBridgeChain(context.Context, *MsgAddAllowedBridgeChain) (*MsgAddAllowedBridgeChainResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddAllowedBridgeChain not implemented") } @@ -663,6 +795,60 @@ func _Msg_CreateProject_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +func _Msg_CreateUnregisteredProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateUnregisteredProject) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateUnregisteredProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_CreateUnregisteredProject_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateUnregisteredProject(ctx, req.(*MsgCreateUnregisteredProject)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateOrUpdateApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateOrUpdateApplication) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateOrUpdateApplication(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_CreateOrUpdateApplication_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateOrUpdateApplication(ctx, req.(*MsgCreateOrUpdateApplication)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateProjectEnrollment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateProjectEnrollment) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateProjectEnrollment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateProjectEnrollment_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateProjectEnrollment(ctx, req.(*MsgUpdateProjectEnrollment)) + } + return interceptor(ctx, in, info, handler) +} + func _Msg_CreateBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgCreateBatch) if err := dec(in); err != nil { @@ -1005,6 +1191,24 @@ func _Msg_UpdateClassFee_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _Msg_UpdateProjectFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateProjectFee) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateProjectFee(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateProjectFee_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateProjectFee(ctx, req.(*MsgUpdateProjectFee)) + } + return interceptor(ctx, in, info, handler) +} + func _Msg_AddAllowedBridgeChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgAddAllowedBridgeChain) if err := dec(in); err != nil { @@ -1074,6 +1278,18 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "CreateProject", Handler: _Msg_CreateProject_Handler, }, + { + MethodName: "CreateUnregisteredProject", + Handler: _Msg_CreateUnregisteredProject_Handler, + }, + { + MethodName: "CreateOrUpdateApplication", + Handler: _Msg_CreateOrUpdateApplication_Handler, + }, + { + MethodName: "UpdateProjectEnrollment", + Handler: _Msg_UpdateProjectEnrollment_Handler, + }, { MethodName: "CreateBatch", Handler: _Msg_CreateBatch_Handler, @@ -1150,6 +1366,10 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "UpdateClassFee", Handler: _Msg_UpdateClassFee_Handler, }, + { + MethodName: "UpdateProjectFee", + Handler: _Msg_UpdateProjectFee_Handler, + }, { MethodName: "AddAllowedBridgeChain", Handler: _Msg_AddAllowedBridgeChain_Handler, diff --git a/proto/regen/ecocredit/v1/events.proto b/proto/regen/ecocredit/v1/events.proto index d8ebfe83bd..f8319b53b9 100644 --- a/proto/regen/ecocredit/v1/events.proto +++ b/proto/regen/ecocredit/v1/events.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package regen.ecocredit.v1; +import "regen/ecocredit/v1/state.proto"; import "regen/ecocredit/v1/types.proto"; option go_package = "github.com/regen-network/regen-ledger/x/ecocredit/base/types/v1"; @@ -259,3 +260,61 @@ message EventBurnRegen { // reason is the reason for the burn. string reason = 3; } + +// EventUpdateApplication is emitted when a project admin creates, updates +// or withdraws a project's application to a credit class. +message EventUpdateApplication { + // project_id is the unique identifier of the project that was updated. + string project_id = 1; + + // class_id is the unique identifier of the class that was updated. + string class_id = 2; + + // Action describes an action taken on an application. + enum Action { + // ACTION_UNSPECIFIED is the default value for the action and is invalid. + ACTION_UNSPECIFIED = 0; + + // ACTION_CREATE is the action taken when a project admin creates an + // application to a credit class. + ACTION_CREATE = 1; + + // ACTION_UPDATE is the action taken when a project admin updates an + // application to a credit class. + ACTION_UPDATE = 2; + + // ACTION_WITHDRAW is the action taken when a project admin withdraws an + // application to a credit class. + ACTION_WITHDRAW = 3; + } + + // action is the action that was taken on the application. + Action action = 3; + + // new_application_metadata is any new application metadata. + string new_application_metadata = 4; +} + +// EventUpdateProjectEnrollment is emitted when a credit class issuer updates +// the enrollment status of a project. +message EventUpdateProjectEnrollment { + // issuer is the address of the credit class issuer which evaluated the + // project. + string issuer = 1; + + // project_id is the unique identifier of the project that was evaluated. + string project_id = 2; + + // class_id is the unique identifier of the class in which the project was + // evaluated. + string class_id = 3; + + // old_status is the old status of the project class relationship. + ProjectEnrollmentStatus old_status = 4; + + // new_status is the new status of the project class relationship. + ProjectEnrollmentStatus new_status = 5; + + // new_enrollment_metadata is any new enrollment metadata. + string new_enrollment_metadata = 6; +} \ No newline at end of file diff --git a/proto/regen/ecocredit/v1/query.proto b/proto/regen/ecocredit/v1/query.proto index 2b35bac56b..1545a73457 100644 --- a/proto/regen/ecocredit/v1/query.proto +++ b/proto/regen/ecocredit/v1/query.proto @@ -259,6 +259,24 @@ service Query { returns (QueryAllowedBridgeChainsResponse) { option (google.api.http).get = "/regen/ecocredit/v1/allowed-bridge-chains"; } + + // ProjectEnrollment queries information about a project's enrollment in a + // credit class. + // + // Since Revision 3 + rpc ProjectEnrollment(QueryProjectEnrollmentRequest) returns (QueryProjectEnrollmentResponse) { + option (google.api.http) = { + get : "/regen/ecocredit/v1/project/{project_id}/enrollments/{class_id}" + }; + } + + // ProjectEnrollments queries all credit class enrollments associated with a + // project. + rpc ProjectEnrollments(QueryProjectEnrollmentsRequest) returns (QueryProjectEnrollmentsResponse) { + option (google.api.http) = { + get : "/regen/ecocredit/v1/project/{project_id}/enrollments" + }; + } } // QueryClassesRequest is the Query/Classes request type. @@ -826,3 +844,47 @@ message QueryAllowedBridgeChainsResponse { // bridge operations. repeated string allowed_bridge_chains = 1; } + +// QueryProjectEnrollmentRequest is the Query/ProjectEnrollment request type. +// +// Since Revision 3 +message QueryProjectEnrollmentRequest { + + // project_id is the unique identifier of the project to query. + string project_id = 1; + + // class_id is the unique identifier of the credit class to query. + string class_id = 2; +} + +// QueryProjectEnrollmentResponse is the Query/ProjectEnrollment response type. +// +// Since Revision 3 +message QueryProjectEnrollmentResponse { + + // project_class is the fetched project class relationship. + ProjectEnrollment project_class = 1; +} + +// QueryProjectEnrollmentsRequest is the Query/ProjectEnrollments request type. +// +// Since Revision 3 +message QueryProjectEnrollmentsRequest { + // project_id is the unique identifier of the project to query. + string project_id = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryProjectEnrollmentsResponse is the Query/ProjectEnrollments response type. +// +// Since Revision 3 +message QueryProjectEnrollmentsResponse { + + // enrollments are the fetched project credit class enrollments. + repeated ProjectEnrollment enrollments = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} \ No newline at end of file diff --git a/proto/regen/ecocredit/v1/state.proto b/proto/regen/ecocredit/v1/state.proto index 99c9d1838c..10e485ee99 100644 --- a/proto/regen/ecocredit/v1/state.proto +++ b/proto/regen/ecocredit/v1/state.proto @@ -122,6 +122,7 @@ message Batch { index : {id : 2 fields : "project_key"} index : {id : 3 fields : "start_date"} index : {id : 4 fields : "issuer"} + index : {id: 5 fields : "class_key"} }; // key is the table row identifier of the credit batch used internally for @@ -137,8 +138,9 @@ message Batch { uint64 project_key = 3; // denom is the unique identifier of the credit batch formed from the - // project id, the batch sequence number, and the start and end date of the - // credit batch. + // credit class ID (or just project ID for old project IDs which included the credit class), + // project id, the batch sequence number, and the start and + // end date of the credit batch. string denom = 4; // metadata is any arbitrary metadata attached to the credit batch. @@ -158,6 +160,10 @@ message Batch { // open tells if it's possible to mint new credits in the future. // Once `open` is set to false, it can't be toggled any more. bool open = 9; + + // class_key is the table row identifier of the credit class used internally + // for efficient lookups. This links a batch to a credit class. + uint64 class_key = 10; } // ClassSequence stores and increments the sequence number for credit classes @@ -381,3 +387,74 @@ message AllowedBridgeChain { // chain_name is the name of the chain allowed to bridge ecocredits to. string chain_name = 1; } + +// ProjectEnrollment stores the data a project's enrollment in a credit class. +message ProjectEnrollment { + option (cosmos.orm.v1.table) = { + id : 17 + primary_key : {fields : "project_key,class_key"} + index: {id: 1, fields: "class_key"} + }; + + // project_key is the table row identifier of the project used internally for + // efficient lookups. + uint64 project_key = 1; + + // class_key is the table row identifier of the credit class used internally + // for efficient lookups. + uint64 class_key = 3; + + // status is the status of the enrollment. + ProjectEnrollmentStatus status = 4; + + // application_metadata is any arbitrary metadata set by the project + // admin related to its application to the credit class. + string application_metadata = 5; + + // enrollment_metadata is any arbitrary metadata set by the credit class + // admin evaluating the project's application to the credit class. + string enrollment_metadata = 6; +} + +// Application represents the evaluation status that a credit class issuer +// assigns to a credit class application. +enum ProjectEnrollmentStatus { + // PROJECT_ENROLLMENT_STATUS_UNSPECIFIED indicates that a credit class application + // has been submitted but not evaluated. + PROJECT_ENROLLMENT_STATUS_UNSPECIFIED = 0; + + // PROJECT_ENROLLMENT_STATUS_ACCEPTED indicates that the project has been + // accepted into the credit class. + PROJECT_ENROLLMENT_STATUS_ACCEPTED = 1; + + // PROJECT_ENROLLMENT_STATUS_CHANGES_REQUESTED indicates that an application to + // a credit class has been reviewed and that changes to the application have + // been requested. It can also be used to indicate that a project within a credit + // class has had its status reassessed and that changes to the project are + // requested in order to continue in the credit class. + PROJECT_ENROLLMENT_STATUS_CHANGES_REQUESTED = 2; + + // PROJECT_ENROLLMENT_STATUS_REJECTED indicates that the application has been + // rejected and that the project will not be accepted into the credit class. + PROJECT_ENROLLMENT_STATUS_REJECTED = 3; + + // PROJECT_ENROLLMENT_STATUS_TERMINATED indicates that the project has been + // terminated from the credit class. This status is used when a project the + // was previously accepted into the credit class but has been removed or + // completed. + PROJECT_ENROLLMENT_STATUS_TERMINATED = 4; +} + +// ProjectFee is the project creation fee. If not set, a project creation fee is +// not required. This table is controlled via governance. +// +// Since Revision 3 +message ProjectFee { + option (cosmos.orm.v1.singleton) = { + id : 18 + }; + + // fee is the project creation fee. If not set, a project creation fee is not + // required. + cosmos.base.v1beta1.Coin fee = 1; +} diff --git a/proto/regen/ecocredit/v1/tx.proto b/proto/regen/ecocredit/v1/tx.proto index ef5a5943ce..84ea41c7f1 100644 --- a/proto/regen/ecocredit/v1/tx.proto +++ b/proto/regen/ecocredit/v1/tx.proto @@ -28,6 +28,45 @@ service Msg { // class. The creator becomes the admin of the project upon creation. rpc CreateProject(MsgCreateProject) returns (MsgCreateProjectResponse); + // CreateUnregisteredProject creates a new project without registering it + // under a credit class. This method is intended to be used by project proponents + // who are not yet ready to register their project under a credit class, but who + // want to create a project and receive a project ID. + rpc CreateUnregisteredProject(MsgCreateUnregisteredProject) + returns (MsgCreateUnregisteredProjectResponse); + + // CreateOrUpdateApplicaton creates a new project credit class application, updates + // the metadata for an existing one when changes have been requested, or withdraws + // the application. When an application is withdrawn, its data will be deleted from + // state and the project may apply again to the same credit class in the future. + // + // Since Revision 3 + rpc CreateOrUpdateApplication(MsgCreateOrUpdateApplication) + returns (MsgCreateOrUpdateApplicationResponse); + + // UpdateProjectEnrollment allows a credit class issuer to evaluate a project + // application - either approving, requesting changes to, or + // rejecting it, or to terminate an existing enrollment. + // Any issuer in the credit class may update the project credit + // class enrollment status using this method. If more sophisticated rules are + // required to coordinate between different issuers, the credit class admin + // should set up an on or off-chain governance process to coordinate this. + // Issuers may not admit projects into credit classes using this method + // without the project first creating an application. For an issuer to + // admit a project into a credit class without an + // application the CreateProject method should be used instead. + // + // If a project has not yet been accepted then the issuer may change the + // status to either changes requested, accepted or rejected. If the status + // is already accepted, the issuer may only change the status to terminated. + // Whenever a project is rejected or terminated, the project's enrollment + // the enrollment state will be deleted and the project may apply again + // to the same credit class in the future. + // + // Since Revision 3 + rpc UpdateProjectEnrollment(MsgUpdateProjectEnrollment) + returns (MsgUpdateProjectEnrollmentResponse); + // CreateBatch creates a new batch of credits under the given project with a // start and end date representing the monitoring period, a list of credits to // be issued with each issuance specifying a recipient, the amount of tradable @@ -158,6 +197,14 @@ service Msg { // Since Revision 2 rpc UpdateClassFee(MsgUpdateClassFee) returns (MsgUpdateClassFeeResponse); + // UpdateProjectFee is a governance method that allows for updating the + // project creation fee. If no fee is specified in the request, the project + // creation fee will be removed and no fee will be required to create a + // project. + // + // Since Revision 3 + rpc UpdateProjectFee(MsgUpdateProjectFee) returns (MsgUpdateProjectFeeResponse); + // AddAllowedBridgeChain is a governance method that allows for the // addition of a chain to bridge ecocredits to. // @@ -264,6 +311,13 @@ message MsgCreateProject { // reference_id is any arbitrary string used to reference the project with a // maximum length of 32 characters. string reference_id = 5; + + // fee is the project creation fee. An equal fee is required if the project + // creation fee parameter is set. The provided fee can be greater than the + // parameter, but only the amount in the parameter will be charged. + // + // Since Revision 3 + cosmos.base.v1beta1.Coin fee = 6; } // MsgCreateProjectResponse is the Msg/CreateProject response type. @@ -273,12 +327,106 @@ message MsgCreateProjectResponse { string project_id = 1; } +// MsgCreateUnregisteredProject is the Msg/CreateUnregisteredProject request type. +message MsgCreateUnregisteredProject { + option (cosmos.msg.v1.signer) = "admin"; + + // admin is the address of the account creating the project that will become + // the admin of the project upon creation. + string admin = 1; + + // metadata is any arbitrary string with a maximum length of 256 characters + // that includes or references metadata to attach to the project. + string metadata = 2; + + // jurisdiction is the jurisdiction of the project. A jurisdiction has with + // the format: [-[ ]] + // The country-code must be 2 alphabetic characters, the sub-national-code + // can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + // alphanumeric characters. Only the country-code is required, while the + // sub-national-code and postal-code are optional and can be added for + // increased precision. + string jurisdiction = 3; + + // reference_id is any arbitrary string used to reference the project with a + // maximum length of 32 characters. + string reference_id = 4; + + // fee is the project creation fee. An equal fee is required if the project + // creation fee parameter is set. The provided fee can be greater than the + // parameter, but only the amount in the parameter will be charged. + // + // Since Revision 3 + cosmos.base.v1beta1.Coin fee = 5; +} + +// MsgCreateUnregisteredProjectResponse is the Msg/CreateUnregisteredProject response type. +message MsgCreateUnregisteredProjectResponse { + // project_id is the unique identifier of the project. + string project_id = 1; +} + +// MsgCreateOrUpdateApplication is the Msg/CreateOrUpdateApplication request type. +message MsgCreateOrUpdateApplication { + option (cosmos.msg.v1.signer) = "project_admin"; + + // project_admin is the address of the account that is the admin of the + // project which is applying to the credit class. + string project_admin = 1; + + // project_id is the identifier of the project which is applying to + // the credit class. + string project_id = 2; + + // class_id is the identifier of the credit class which the project is + // applying to. + string class_id = 3; + + // metadata is any optional arbitrary string with a maximum length of 256 characters + // that includes or references any metadata relevant to the application. + // This could be used as a digital reference to the actual contents of the application. + string metadata = 4; + + // withdraw is a boolean that indicates whether the application is being + // withdrawn rather than updated. + bool withdraw = 5; +} + +// MsgCreateOrUpdateApplicationResponse is the Msg/CreateOrUpdateApplication response type. +message MsgCreateOrUpdateApplicationResponse {} + +// MsgUpdateProjectEnrollment is the Msg/UpdateProjectEnrollment request type. +message MsgUpdateProjectEnrollment { + option (cosmos.msg.v1.signer) = "issuer"; + + // issuer is the address of the account that is the issuer of the credit class + // which is updating the project enrollment status. + string issuer = 1; + + // project_id is the identifier of the project. + string project_id = 2; + + // class_id is the identifier of the credit class. + string class_id = 3; + + // new_status is the new status of the project enrollment. + ProjectEnrollmentStatus new_status = 4; + + // metadata is any optiopnal arbitrary string with a maximum length of 256 characters + // that includes or references the reason for the approving, requesting changes + // to, or rejecting the application, or terminating the project. + string metadata = 5; +} + +// MsgEvaluateProjectEnrollmentResponse is the Msg/EvaluateProjectEnrollment response type. +message MsgUpdateProjectEnrollmentResponse {} + // MsgCreateBatch is the Msg/CreateBatch request type. message MsgCreateBatch { option (cosmos.msg.v1.signer) = "issuer"; // issuer is the address of the account issuing the credits and must be an - // approved issuer within the credit class of the project. + // approved issuer within a credit class of the project. string issuer = 1; // project_id is the unique identifier of the project under which the credit @@ -313,6 +461,12 @@ message MsgCreateBatch { // issuing credits and should only be set when bridging assets from another // chain or registry as a result of a bridge operation. OriginTx origin_tx = 8; + + // class_id is the unique identifier of the credit class under which the + // credit batch will be created. + // + // Since Revision 3 + string class_id = 9; } // MsgCreateBatchResponse is the Msg/CreateBatch response type. @@ -750,6 +904,21 @@ message MsgUpdateClassFee { // Since Revision 2 message MsgUpdateClassFeeResponse {} +// MsgUpdateProjectFee is the Msg/UpdateProjectFee request type. +message MsgUpdateProjectFee { + option (cosmos.msg.v1.signer) = "authority"; + + // authority is the address of the governance account. + string authority = 1; + + // fee is the project creation fee. If not set, the project creation fee will + // be removed and no fee will be required to create a project. + cosmos.base.v1beta1.Coin fee = 2; +} + +// MsgUpdateProjectFeeResponse is the Msg/UpdateProjectFee response type. +message MsgUpdateProjectFeeResponse {} + // MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. // // Since Revision 2 diff --git a/x/ecocredit/base/keeper/keeper.go b/x/ecocredit/base/keeper/keeper.go index f2214c2e32..4817597e39 100644 --- a/x/ecocredit/base/keeper/keeper.go +++ b/x/ecocredit/base/keeper/keeper.go @@ -16,6 +16,9 @@ var ( ) type Keeper struct { + *types.UnimplementedMsgServer + *types.UnimplementedQueryServer + stateStore api.StateStore bankKeeper ecocredit.BankKeeper moduleAddress sdk.AccAddress diff --git a/x/ecocredit/base/types/v1/events.pb.go b/x/ecocredit/base/types/v1/events.pb.go index 09ca58e555..a16a78cf0f 100644 --- a/x/ecocredit/base/types/v1/events.pb.go +++ b/x/ecocredit/base/types/v1/events.pb.go @@ -22,6 +22,45 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// Action describes an action taken on an application. +type EventUpdateApplication_Action int32 + +const ( + // ACTION_UNSPECIFIED is the default value for the action and is invalid. + EventUpdateApplication_ACTION_UNSPECIFIED EventUpdateApplication_Action = 0 + // ACTION_CREATE is the action taken when a project admin creates an + // application to a credit class. + EventUpdateApplication_ACTION_CREATE EventUpdateApplication_Action = 1 + // ACTION_UPDATE is the action taken when a project admin updates an + // application to a credit class. + EventUpdateApplication_ACTION_UPDATE EventUpdateApplication_Action = 2 + // ACTION_WITHDRAW is the action taken when a project admin withdraws an + // application to a credit class. + EventUpdateApplication_ACTION_WITHDRAW EventUpdateApplication_Action = 3 +) + +var EventUpdateApplication_Action_name = map[int32]string{ + 0: "ACTION_UNSPECIFIED", + 1: "ACTION_CREATE", + 2: "ACTION_UPDATE", + 3: "ACTION_WITHDRAW", +} + +var EventUpdateApplication_Action_value = map[string]int32{ + "ACTION_UNSPECIFIED": 0, + "ACTION_CREATE": 1, + "ACTION_UPDATE": 2, + "ACTION_WITHDRAW": 3, +} + +func (x EventUpdateApplication_Action) String() string { + return proto.EnumName(EventUpdateApplication_Action_name, int32(x)) +} + +func (EventUpdateApplication_Action) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e32415575ff8b4b2, []int{19, 0} +} + // EventCreateClass is an event emitted when a credit class is created. type EventCreateClass struct { // class_id is the unique identifier of the credit class. @@ -1168,7 +1207,176 @@ func (m *EventBurnRegen) GetReason() string { return "" } +// EventUpdateApplication is emitted when a project admin creates, updates +// or withdraws a project's application to a credit class. +type EventUpdateApplication struct { + // project_id is the unique identifier of the project that was updated. + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // class_id is the unique identifier of the class that was updated. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // action is the action that was taken on the application. + Action EventUpdateApplication_Action `protobuf:"varint,3,opt,name=action,proto3,enum=regen.ecocredit.v1.EventUpdateApplication_Action" json:"action,omitempty"` + // new_application_metadata is any new application metadata. + NewApplicationMetadata string `protobuf:"bytes,4,opt,name=new_application_metadata,json=newApplicationMetadata,proto3" json:"new_application_metadata,omitempty"` +} + +func (m *EventUpdateApplication) Reset() { *m = EventUpdateApplication{} } +func (m *EventUpdateApplication) String() string { return proto.CompactTextString(m) } +func (*EventUpdateApplication) ProtoMessage() {} +func (*EventUpdateApplication) Descriptor() ([]byte, []int) { + return fileDescriptor_e32415575ff8b4b2, []int{19} +} +func (m *EventUpdateApplication) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventUpdateApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventUpdateApplication.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventUpdateApplication) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUpdateApplication.Merge(m, src) +} +func (m *EventUpdateApplication) XXX_Size() int { + return m.Size() +} +func (m *EventUpdateApplication) XXX_DiscardUnknown() { + xxx_messageInfo_EventUpdateApplication.DiscardUnknown(m) +} + +var xxx_messageInfo_EventUpdateApplication proto.InternalMessageInfo + +func (m *EventUpdateApplication) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *EventUpdateApplication) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +func (m *EventUpdateApplication) GetAction() EventUpdateApplication_Action { + if m != nil { + return m.Action + } + return EventUpdateApplication_ACTION_UNSPECIFIED +} + +func (m *EventUpdateApplication) GetNewApplicationMetadata() string { + if m != nil { + return m.NewApplicationMetadata + } + return "" +} + +// EventUpdateProjectEnrollment is emitted when a credit class issuer updates +// the enrollment status of a project. +type EventUpdateProjectEnrollment struct { + // issuer is the address of the credit class issuer which evaluated the + // project. + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + // project_id is the unique identifier of the project that was evaluated. + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // class_id is the unique identifier of the class in which the project was + // evaluated. + ClassId string `protobuf:"bytes,3,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // old_status is the old status of the project class relationship. + OldStatus ProjectEnrollmentStatus `protobuf:"varint,4,opt,name=old_status,json=oldStatus,proto3,enum=regen.ecocredit.v1.ProjectEnrollmentStatus" json:"old_status,omitempty"` + // new_status is the new status of the project class relationship. + NewStatus ProjectEnrollmentStatus `protobuf:"varint,5,opt,name=new_status,json=newStatus,proto3,enum=regen.ecocredit.v1.ProjectEnrollmentStatus" json:"new_status,omitempty"` + // new_enrollment_metadata is any new enrollment metadata. + NewEnrollmentMetadata string `protobuf:"bytes,6,opt,name=new_enrollment_metadata,json=newEnrollmentMetadata,proto3" json:"new_enrollment_metadata,omitempty"` +} + +func (m *EventUpdateProjectEnrollment) Reset() { *m = EventUpdateProjectEnrollment{} } +func (m *EventUpdateProjectEnrollment) String() string { return proto.CompactTextString(m) } +func (*EventUpdateProjectEnrollment) ProtoMessage() {} +func (*EventUpdateProjectEnrollment) Descriptor() ([]byte, []int) { + return fileDescriptor_e32415575ff8b4b2, []int{20} +} +func (m *EventUpdateProjectEnrollment) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventUpdateProjectEnrollment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventUpdateProjectEnrollment.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventUpdateProjectEnrollment) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUpdateProjectEnrollment.Merge(m, src) +} +func (m *EventUpdateProjectEnrollment) XXX_Size() int { + return m.Size() +} +func (m *EventUpdateProjectEnrollment) XXX_DiscardUnknown() { + xxx_messageInfo_EventUpdateProjectEnrollment.DiscardUnknown(m) +} + +var xxx_messageInfo_EventUpdateProjectEnrollment proto.InternalMessageInfo + +func (m *EventUpdateProjectEnrollment) GetIssuer() string { + if m != nil { + return m.Issuer + } + return "" +} + +func (m *EventUpdateProjectEnrollment) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *EventUpdateProjectEnrollment) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +func (m *EventUpdateProjectEnrollment) GetOldStatus() ProjectEnrollmentStatus { + if m != nil { + return m.OldStatus + } + return ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_UNSPECIFIED +} + +func (m *EventUpdateProjectEnrollment) GetNewStatus() ProjectEnrollmentStatus { + if m != nil { + return m.NewStatus + } + return ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_UNSPECIFIED +} + +func (m *EventUpdateProjectEnrollment) GetNewEnrollmentMetadata() string { + if m != nil { + return m.NewEnrollmentMetadata + } + return "" +} + func init() { + proto.RegisterEnum("regen.ecocredit.v1.EventUpdateApplication_Action", EventUpdateApplication_Action_name, EventUpdateApplication_Action_value) proto.RegisterType((*EventCreateClass)(nil), "regen.ecocredit.v1.EventCreateClass") proto.RegisterType((*EventCreateProject)(nil), "regen.ecocredit.v1.EventCreateProject") proto.RegisterType((*EventCreateBatch)(nil), "regen.ecocredit.v1.EventCreateBatch") @@ -1188,55 +1396,72 @@ func init() { proto.RegisterType((*EventBridge)(nil), "regen.ecocredit.v1.EventBridge") proto.RegisterType((*EventBridgeReceive)(nil), "regen.ecocredit.v1.EventBridgeReceive") proto.RegisterType((*EventBurnRegen)(nil), "regen.ecocredit.v1.EventBurnRegen") + proto.RegisterType((*EventUpdateApplication)(nil), "regen.ecocredit.v1.EventUpdateApplication") + proto.RegisterType((*EventUpdateProjectEnrollment)(nil), "regen.ecocredit.v1.EventUpdateProjectEnrollment") } func init() { proto.RegisterFile("regen/ecocredit/v1/events.proto", fileDescriptor_e32415575ff8b4b2) } var fileDescriptor_e32415575ff8b4b2 = []byte{ - // 682 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x41, 0x4f, 0x13, 0x41, - 0x14, 0x66, 0xa1, 0x54, 0xfa, 0x10, 0x34, 0x1b, 0x45, 0x24, 0xb8, 0x90, 0x4d, 0x8c, 0x5c, 0x68, - 0x53, 0xd0, 0x04, 0xe3, 0xc1, 0xd0, 0xea, 0x81, 0x03, 0xd1, 0x54, 0x4c, 0xd4, 0x4b, 0x33, 0xbb, - 0xf3, 0x2c, 0x83, 0xed, 0x4c, 0xf3, 0x76, 0x5a, 0x20, 0xf1, 0x47, 0x78, 0xf4, 0x1f, 0x78, 0xf3, - 0xe8, 0x6f, 0xf0, 0xc8, 0xd1, 0xa3, 0x81, 0x3f, 0x62, 0x76, 0x76, 0xba, 0xed, 0xb6, 0xd8, 0xa2, - 0xd1, 0xdb, 0xbc, 0x97, 0xf7, 0xed, 0xf7, 0xbd, 0x9d, 0xf7, 0xbd, 0x81, 0x35, 0xc2, 0x06, 0xca, - 0x12, 0x86, 0x2a, 0x24, 0xe4, 0x42, 0x97, 0xba, 0xe5, 0x12, 0x76, 0x51, 0xea, 0xa8, 0xd8, 0x26, - 0xa5, 0x95, 0xeb, 0x9a, 0x82, 0x62, 0x5a, 0x50, 0xec, 0x96, 0x57, 0xbc, 0x4b, 0x40, 0xfa, 0xb4, - 0x8d, 0x16, 0xe3, 0x6f, 0xc2, 0xcd, 0xe7, 0xf1, 0x37, 0xaa, 0x84, 0x4c, 0x63, 0xb5, 0xc9, 0xa2, - 0xc8, 0xbd, 0x0b, 0x73, 0x61, 0x7c, 0xa8, 0x0b, 0xbe, 0xec, 0xac, 0x3b, 0x1b, 0x85, 0xda, 0x35, - 0x13, 0xef, 0x71, 0x7f, 0x1b, 0xdc, 0x81, 0xf2, 0x97, 0xa4, 0x8e, 0x30, 0xd4, 0xee, 0x3d, 0x80, - 0x76, 0x72, 0xec, 0x43, 0x0a, 0x36, 0xb3, 0xc7, 0x7d, 0x99, 0xe1, 0xa8, 0x30, 0x1d, 0x1e, 0xba, - 0x6b, 0x30, 0x1f, 0xc4, 0x87, 0x3a, 0x47, 0xa9, 0x5a, 0x16, 0x03, 0x26, 0xf5, 0x2c, 0xce, 0xb8, - 0x8f, 0xa1, 0xa0, 0x48, 0x34, 0x84, 0xac, 0xeb, 0x93, 0xe5, 0xe9, 0x75, 0x67, 0x63, 0x7e, 0x6b, - 0xb5, 0x38, 0xda, 0x60, 0xf1, 0x85, 0x29, 0x3a, 0x38, 0xa9, 0xcd, 0x29, 0x7b, 0xf2, 0x3f, 0x42, - 0xc1, 0xf0, 0xed, 0x0b, 0xa9, 0x27, 0x13, 0x3d, 0x80, 0x1b, 0x9a, 0x18, 0x67, 0x41, 0x13, 0xeb, - 0xac, 0xa5, 0x3a, 0x52, 0x1b, 0xba, 0x42, 0x6d, 0xb1, 0x97, 0xde, 0x35, 0x59, 0xf7, 0x3e, 0x2c, - 0x12, 0x6a, 0x41, 0xc8, 0x7b, 0x75, 0x33, 0xa6, 0x6e, 0xc1, 0x66, 0x93, 0x32, 0x3f, 0x82, 0xdb, - 0x29, 0xbb, 0xe9, 0xb5, 0x6a, 0xb4, 0x46, 0xff, 0xb5, 0xe5, 0x6f, 0x0e, 0x2c, 0x18, 0xd6, 0x03, - 0x62, 0x32, 0x7a, 0x8f, 0xe4, 0x2e, 0x41, 0x3e, 0x42, 0xc9, 0x91, 0x2c, 0x91, 0x8d, 0xdc, 0x55, - 0x28, 0x10, 0x86, 0xa2, 0x2d, 0x30, 0x6d, 0xb4, 0x9f, 0x18, 0xd6, 0x38, 0x73, 0x95, 0xbf, 0x95, - 0xbb, 0xe2, 0xdf, 0x9a, 0xbd, 0xec, 0x6f, 0x7d, 0x76, 0x60, 0xde, 0x08, 0xaf, 0x99, 0xb4, 0x7b, - 0x0b, 0x66, 0xd5, 0xb1, 0x4c, 0x55, 0x27, 0xc1, 0xb0, 0xac, 0xe9, 0x11, 0x59, 0x4b, 0x90, 0xcf, - 0xdc, 0x89, 0x8d, 0x5c, 0x1f, 0xae, 0x1f, 0x75, 0x48, 0x44, 0x5c, 0x84, 0x5a, 0x28, 0x69, 0xb5, - 0x66, 0x72, 0x31, 0x96, 0x90, 0x45, 0x4a, 0x5a, 0x85, 0x36, 0xf2, 0xb5, 0x55, 0x56, 0x65, 0x32, - 0xc4, 0xe6, 0xbf, 0x56, 0xd6, 0x67, 0xcd, 0x65, 0x58, 0xb7, 0xec, 0xf8, 0xbc, 0x6e, 0xf3, 0x9e, - 0x21, 0x77, 0x79, 0x4b, 0xc8, 0x71, 0xae, 0x7c, 0x08, 0x77, 0x86, 0x31, 0x7b, 0x51, 0xd4, 0x41, - 0x1a, 0xeb, 0xe5, 0x47, 0xb0, 0x3c, 0x8c, 0xda, 0x47, 0xcd, 0x38, 0xd3, 0x6c, 0x1c, 0x6c, 0x27, - 0x43, 0x66, 0x57, 0x40, 0x22, 0x71, 0xc2, 0x1e, 0x78, 0x02, 0x2b, 0xa3, 0xc8, 0x94, 0x72, 0x22, - 0x78, 0x50, 0xad, 0x31, 0x56, 0x0a, 0x9d, 0xe4, 0x2c, 0xbf, 0x0c, 0x8b, 0x06, 0xfc, 0x0a, 0x59, - 0xf3, 0x6a, 0xfb, 0xc7, 0xdf, 0xb1, 0x9b, 0x6e, 0x97, 0xf3, 0xc4, 0xc0, 0x07, 0xa7, 0x6d, 0x8c, - 0xe7, 0x89, 0x05, 0x01, 0x61, 0x57, 0x30, 0x33, 0x4f, 0x09, 0x2e, 0x93, 0xf3, 0xbf, 0xf6, 0x46, - 0xba, 0x42, 0x82, 0x37, 0x30, 0xbe, 0x69, 0xcd, 0xa8, 0x81, 0xba, 0xe7, 0xc4, 0x24, 0x9a, 0xe0, - 0xc4, 0x15, 0x98, 0x0b, 0x95, 0xd4, 0xc4, 0xc2, 0xde, 0xe4, 0xa4, 0xf1, 0xc0, 0x4c, 0xe5, 0x32, - 0x33, 0x95, 0x8e, 0xe8, 0xec, 0x98, 0x11, 0xcd, 0x8f, 0xb4, 0xfa, 0xc5, 0xb1, 0xbd, 0x26, 0x82, - 0x6b, 0x18, 0xa2, 0xe8, 0xe2, 0x84, 0x0b, 0xf9, 0xfb, 0xc9, 0xcf, 0xac, 0xb9, 0xdc, 0x1f, 0xad, - 0xb9, 0x37, 0xf6, 0x1e, 0x2b, 0x1d, 0x92, 0xb5, 0x18, 0x11, 0x93, 0x04, 0x1d, 0xea, 0xdb, 0xd2, - 0x46, 0x03, 0xe4, 0xd3, 0xbf, 0xb1, 0xdd, 0xcc, 0xa0, 0xed, 0x2a, 0x6f, 0xbf, 0x9f, 0x7b, 0xce, - 0xd9, 0xb9, 0xe7, 0xfc, 0x3c, 0xf7, 0x9c, 0x4f, 0x17, 0xde, 0xd4, 0xd9, 0x85, 0x37, 0xf5, 0xe3, - 0xc2, 0x9b, 0x7a, 0xf7, 0xb4, 0x21, 0xf4, 0x61, 0x27, 0x28, 0x86, 0xaa, 0x55, 0x32, 0x2a, 0x37, - 0x25, 0xea, 0x63, 0x45, 0x1f, 0x6c, 0xd4, 0x44, 0xde, 0x40, 0x2a, 0x9d, 0x0c, 0xbc, 0xb1, 0x01, - 0x8b, 0x30, 0x79, 0x65, 0x4b, 0xdd, 0x72, 0x90, 0x37, 0x2f, 0xed, 0xf6, 0xaf, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x70, 0x5b, 0x0a, 0xb1, 0xc0, 0x07, 0x00, 0x00, + // 917 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0xda, 0x89, 0x89, 0x5f, 0x88, 0x1b, 0x16, 0x9a, 0x86, 0x28, 0xb8, 0xd5, 0x4a, 0x88, + 0x4a, 0xa8, 0xb6, 0x9c, 0x02, 0x0a, 0xe2, 0x80, 0x36, 0xb6, 0x11, 0x46, 0x6a, 0x1b, 0x6d, 0x1c, + 0x95, 0x3f, 0x07, 0x6b, 0xbc, 0xf3, 0x70, 0xa7, 0xac, 0x67, 0xac, 0xd9, 0xb1, 0x9d, 0x4a, 0x7c, + 0x08, 0x8e, 0x7c, 0x03, 0x6e, 0x9c, 0x10, 0x67, 0x8e, 0x1c, 0x7b, 0xe4, 0x88, 0x92, 0x2f, 0x82, + 0x76, 0x76, 0x76, 0xbd, 0x6b, 0x1b, 0x3b, 0x54, 0xf4, 0x36, 0xef, 0xed, 0xfb, 0xbd, 0xdf, 0x9b, + 0x37, 0xef, 0xf7, 0xb4, 0x70, 0x57, 0xe2, 0x00, 0x79, 0x1d, 0x7d, 0xe1, 0x4b, 0xa4, 0x4c, 0xd5, + 0x27, 0x8d, 0x3a, 0x4e, 0x90, 0xab, 0xb0, 0x36, 0x92, 0x42, 0x09, 0xdb, 0xd6, 0x01, 0xb5, 0x34, + 0xa0, 0x36, 0x69, 0x1c, 0x56, 0x97, 0x80, 0x42, 0x45, 0x14, 0xc6, 0x98, 0xa5, 0xdf, 0xd5, 0x8b, + 0x11, 0x9a, 0x9c, 0xce, 0x03, 0xd8, 0x6b, 0x47, 0x1c, 0x4d, 0x89, 0x44, 0x61, 0x33, 0x20, 0x61, + 0x68, 0xbf, 0x0b, 0xdb, 0x7e, 0x74, 0xe8, 0x31, 0x7a, 0x60, 0xdd, 0xb3, 0xee, 0x97, 0xbd, 0x37, + 0xb4, 0xdd, 0xa1, 0xce, 0x43, 0xb0, 0x33, 0xe1, 0x67, 0x52, 0x3c, 0x47, 0x5f, 0xd9, 0xef, 0x01, + 0x8c, 0xe2, 0xe3, 0x0c, 0x52, 0x36, 0x9e, 0x0e, 0x75, 0x78, 0x8e, 0xe3, 0x94, 0x28, 0xff, 0x99, + 0x7d, 0x17, 0x76, 0xfa, 0xd1, 0xa1, 0x47, 0x91, 0x8b, 0xa1, 0xc1, 0x80, 0x76, 0xb5, 0x22, 0x8f, + 0xfd, 0x29, 0x94, 0x85, 0x64, 0x03, 0xc6, 0x7b, 0xea, 0xf2, 0xa0, 0x70, 0xcf, 0xba, 0xbf, 0x73, + 0x7c, 0x54, 0x5b, 0x6c, 0x40, 0xed, 0x89, 0x0e, 0xea, 0x5e, 0x7a, 0xdb, 0xc2, 0x9c, 0x9c, 0x1f, + 0xa1, 0xac, 0xf9, 0x1e, 0x31, 0xae, 0xd6, 0x13, 0x7d, 0x00, 0xb7, 0x94, 0x24, 0x94, 0xf4, 0x03, + 0xec, 0x91, 0xa1, 0x18, 0x73, 0xa5, 0xe9, 0xca, 0x5e, 0x25, 0x71, 0xbb, 0xda, 0x6b, 0xbf, 0x0f, + 0x15, 0x89, 0x8a, 0x49, 0xa4, 0x49, 0x5c, 0x51, 0xc7, 0xed, 0x1a, 0x6f, 0x1c, 0xe6, 0x84, 0x70, + 0x3b, 0x65, 0xd7, 0x77, 0x6d, 0xea, 0x5a, 0xc3, 0xd7, 0x7a, 0xe5, 0xdf, 0x2d, 0xd8, 0xd5, 0xac, + 0x5d, 0x49, 0x78, 0xf8, 0x3d, 0x4a, 0x7b, 0x1f, 0x4a, 0x21, 0x72, 0x8a, 0xd2, 0x10, 0x19, 0xcb, + 0x3e, 0x82, 0xb2, 0x44, 0x9f, 0x8d, 0x18, 0xa6, 0x17, 0x9d, 0x39, 0xe6, 0x6b, 0x2c, 0xde, 0xa4, + 0x5b, 0x9b, 0x37, 0xec, 0xd6, 0xd6, 0xb2, 0x6e, 0xfd, 0x6c, 0xc1, 0x8e, 0x2e, 0xdc, 0xd3, 0x6e, + 0xfb, 0x1d, 0xd8, 0x12, 0x53, 0x9e, 0x56, 0x1d, 0x1b, 0xf3, 0x65, 0x15, 0x16, 0xca, 0xda, 0x87, + 0x52, 0xee, 0x4d, 0x8c, 0x65, 0x3b, 0xf0, 0xe6, 0xf3, 0xb1, 0x64, 0x21, 0x65, 0xbe, 0x62, 0x82, + 0x9b, 0x5a, 0x73, 0xbe, 0x08, 0x2b, 0x91, 0x84, 0x82, 0x9b, 0x0a, 0x8d, 0xe5, 0x28, 0x53, 0x59, + 0x93, 0x70, 0x1f, 0x83, 0xff, 0xbb, 0xb2, 0x19, 0xeb, 0x66, 0x8e, 0xf5, 0xd8, 0x8c, 0xcf, 0xc5, + 0x88, 0x26, 0x82, 0x74, 0xe9, 0x90, 0xf1, 0x55, 0xaa, 0xfc, 0x08, 0xee, 0xcc, 0x63, 0x3a, 0x61, + 0x38, 0x46, 0xb9, 0x52, 0xcb, 0x1f, 0xc3, 0xc1, 0x3c, 0xea, 0x11, 0x2a, 0x42, 0x89, 0x22, 0xab, + 0x60, 0x27, 0x39, 0x32, 0xb3, 0x02, 0xe2, 0x12, 0xd7, 0xec, 0x81, 0xcf, 0xe0, 0x70, 0x11, 0x99, + 0x52, 0xae, 0x05, 0x67, 0xab, 0xd5, 0xc2, 0x4a, 0xa1, 0xeb, 0x94, 0xe5, 0x34, 0xa0, 0xa2, 0xc1, + 0xe7, 0x48, 0x82, 0x9b, 0xed, 0x1f, 0xe7, 0xc4, 0x6c, 0x3a, 0x97, 0xd2, 0x58, 0xc0, 0xdd, 0x17, + 0x23, 0x8c, 0xe6, 0x89, 0xf4, 0xfb, 0x12, 0x27, 0x8c, 0xe8, 0x79, 0x8a, 0x71, 0x39, 0x9f, 0xf3, + 0x6b, 0x32, 0xd2, 0xa7, 0x92, 0xd1, 0x01, 0x46, 0x2f, 0xad, 0x88, 0x1c, 0xa0, 0x4a, 0x94, 0x18, + 0x5b, 0x6b, 0x94, 0x78, 0x08, 0xdb, 0xbe, 0xe0, 0x4a, 0x12, 0x3f, 0x99, 0x9c, 0xd4, 0xce, 0xcc, + 0xd4, 0x66, 0x6e, 0xa6, 0xd2, 0x11, 0xdd, 0x5a, 0x31, 0xa2, 0xa5, 0x85, 0xab, 0xfe, 0x62, 0x99, + 0xbb, 0xc6, 0x05, 0x7b, 0xe8, 0x23, 0x9b, 0xe0, 0x9a, 0x07, 0x79, 0xf5, 0xc9, 0xcf, 0xad, 0xb9, + 0xcd, 0xff, 0xb4, 0xe6, 0xbe, 0x36, 0xef, 0x78, 0x3a, 0x96, 0xdc, 0x8b, 0x10, 0x11, 0x49, 0x7f, + 0x2c, 0x67, 0xb2, 0x34, 0x56, 0x86, 0xbc, 0xf0, 0x2f, 0xb2, 0x2b, 0xe6, 0x64, 0xf7, 0x5b, 0x01, + 0xf6, 0x33, 0xf3, 0xe5, 0x8e, 0x46, 0x01, 0xf3, 0xf5, 0x7b, 0xae, 0xeb, 0x43, 0x56, 0x2a, 0x85, + 0x9c, 0x54, 0xec, 0x0e, 0x94, 0x48, 0xbc, 0x77, 0x22, 0xb2, 0xca, 0x71, 0x63, 0xd9, 0x35, 0x97, + 0xb3, 0xd6, 0x5c, 0x0d, 0xf4, 0x4c, 0x02, 0xfb, 0x04, 0x0e, 0x38, 0x4e, 0x7b, 0x64, 0x16, 0xd1, + 0x1b, 0x9a, 0xf1, 0x37, 0x43, 0xb0, 0xcf, 0x71, 0x9a, 0x49, 0x90, 0x88, 0xc3, 0xf9, 0x0e, 0x4a, + 0x6e, 0xb2, 0xe8, 0x6c, 0xb7, 0xd9, 0xed, 0x3c, 0x79, 0xdc, 0xbb, 0x78, 0x7c, 0x7e, 0xd6, 0x6e, + 0x76, 0xbe, 0xe8, 0xb4, 0x5b, 0x7b, 0x1b, 0xf6, 0x5b, 0xb0, 0x6b, 0xfc, 0x4d, 0xaf, 0xed, 0x76, + 0xdb, 0x7b, 0x56, 0xc6, 0x75, 0x71, 0xd6, 0x8a, 0x5c, 0x05, 0xfb, 0x6d, 0xb8, 0x65, 0x5c, 0x4f, + 0x3b, 0xdd, 0x2f, 0x5b, 0x9e, 0xfb, 0x74, 0xaf, 0xe8, 0xfc, 0x51, 0x80, 0xa3, 0x45, 0x4d, 0xb7, + 0xb9, 0x14, 0x41, 0x30, 0xc4, 0xb8, 0xdf, 0x4c, 0xaf, 0xa2, 0xe4, 0x7d, 0x62, 0x6b, 0xae, 0xa9, + 0x85, 0x55, 0x4d, 0x2d, 0xe6, 0x9b, 0xfa, 0x15, 0x80, 0x08, 0x68, 0x2f, 0xfa, 0xc9, 0x19, 0x87, + 0xfa, 0xee, 0x95, 0xe3, 0x0f, 0x97, 0x35, 0x76, 0xa1, 0x98, 0x73, 0x0d, 0xf1, 0xca, 0x22, 0xa0, + 0xf1, 0x31, 0xca, 0x15, 0x75, 0xd5, 0xe4, 0xda, 0x7a, 0x85, 0x5c, 0x1c, 0xa7, 0x26, 0xd7, 0x27, + 0x70, 0x27, 0xca, 0x85, 0x69, 0xc8, 0xec, 0x81, 0x62, 0xc9, 0xdd, 0xe6, 0x38, 0x9d, 0x25, 0x48, + 0xde, 0xe7, 0xf4, 0x9b, 0x3f, 0xaf, 0xaa, 0xd6, 0xcb, 0xab, 0xaa, 0xf5, 0xf7, 0x55, 0xd5, 0xfa, + 0xe9, 0xba, 0xba, 0xf1, 0xf2, 0xba, 0xba, 0xf1, 0xd7, 0x75, 0x75, 0xe3, 0xdb, 0xcf, 0x07, 0x4c, + 0x3d, 0x1b, 0xf7, 0x6b, 0xbe, 0x18, 0xd6, 0x75, 0x4d, 0x0f, 0x38, 0xaa, 0xa9, 0x90, 0x3f, 0x18, + 0x2b, 0x40, 0x3a, 0x40, 0x59, 0xbf, 0xcc, 0xfc, 0xdd, 0xf5, 0x49, 0x88, 0xf1, 0xff, 0x5d, 0x7d, + 0xd2, 0xe8, 0x97, 0xf4, 0x3f, 0xde, 0xc3, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xf1, 0x13, + 0xc6, 0x5a, 0x0a, 0x00, 0x00, } func (m *EventCreateClass) Marshal() (dAtA []byte, err error) { @@ -1999,6 +2224,116 @@ func (m *EventBurnRegen) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *EventUpdateApplication) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventUpdateApplication) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventUpdateApplication) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewApplicationMetadata) > 0 { + i -= len(m.NewApplicationMetadata) + copy(dAtA[i:], m.NewApplicationMetadata) + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewApplicationMetadata))) + i-- + dAtA[i] = 0x22 + } + if m.Action != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Action)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.ProjectId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventUpdateProjectEnrollment) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventUpdateProjectEnrollment) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventUpdateProjectEnrollment) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewEnrollmentMetadata) > 0 { + i -= len(m.NewEnrollmentMetadata) + copy(dAtA[i:], m.NewEnrollmentMetadata) + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewEnrollmentMetadata))) + i-- + dAtA[i] = 0x32 + } + if m.NewStatus != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.NewStatus)) + i-- + dAtA[i] = 0x28 + } + if m.OldStatus != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.OldStatus)) + i-- + dAtA[i] = 0x20 + } + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x1a + } + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.ProjectId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Issuer) > 0 { + i -= len(m.Issuer) + copy(dAtA[i:], m.Issuer) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Issuer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { offset -= sovEvents(v) base := offset @@ -2357,6 +2692,61 @@ func (m *EventBurnRegen) Size() (n int) { return n } +func (m *EventUpdateApplication) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.Action != 0 { + n += 1 + sovEvents(uint64(m.Action)) + } + l = len(m.NewApplicationMetadata) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *EventUpdateProjectEnrollment) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Issuer) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.OldStatus != 0 { + n += 1 + sovEvents(uint64(m.OldStatus)) + } + if m.NewStatus != 0 { + n += 1 + sovEvents(uint64(m.NewStatus)) + } + l = len(m.NewEnrollmentMetadata) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + func sovEvents(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -4733,6 +5123,387 @@ func (m *EventBurnRegen) Unmarshal(dAtA []byte) error { } return nil } +func (m *EventUpdateApplication) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventUpdateApplication: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventUpdateApplication: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + m.Action = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Action |= EventUpdateApplication_Action(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewApplicationMetadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewApplicationMetadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventUpdateProjectEnrollment) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventUpdateProjectEnrollment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventUpdateProjectEnrollment: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Issuer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Issuer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OldStatus", wireType) + } + m.OldStatus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OldStatus |= ProjectEnrollmentStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewStatus", wireType) + } + m.NewStatus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NewStatus |= ProjectEnrollmentStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewEnrollmentMetadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewEnrollmentMetadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipEvents(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/ecocredit/base/types/v1/msg_create_or_update_application.go b/x/ecocredit/base/types/v1/msg_create_or_update_application.go new file mode 100644 index 0000000000..4157e5843e --- /dev/null +++ b/x/ecocredit/base/types/v1/msg_create_or_update_application.go @@ -0,0 +1,29 @@ +package v1 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" +) + +var _ legacytx.LegacyMsg = &MsgCreateOrUpdateApplication{} + +// Route implements the LegacyMsg interface. +func (m *MsgCreateOrUpdateApplication) Route() string { return sdk.MsgTypeURL(m) } + +// Type implements the LegacyMsg interface. +func (m *MsgCreateOrUpdateApplication) Type() string { return sdk.MsgTypeURL(m) } + +// GetSignBytes implements the LegacyMsg interface. +func (m *MsgCreateOrUpdateApplication) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(m)) +} + +// ValidateBasic does a sanity check on the provided data. +func (m *MsgCreateOrUpdateApplication) ValidateBasic() error { + panic("implement me") +} + +// GetSigners returns the expected signers for MsgCreateOrUpdateApplication. +func (m *MsgCreateOrUpdateApplication) GetSigners() []sdk.AccAddress { + return []sdk.AccAddress{sdk.MustAccAddressFromBech32(m.ProjectAdmin)} +} diff --git a/x/ecocredit/base/types/v1/msg_create_unregistered_project.go b/x/ecocredit/base/types/v1/msg_create_unregistered_project.go new file mode 100644 index 0000000000..4f19f58642 --- /dev/null +++ b/x/ecocredit/base/types/v1/msg_create_unregistered_project.go @@ -0,0 +1,29 @@ +package v1 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" +) + +var _ legacytx.LegacyMsg = &MsgCreateUnregisteredProject{} + +// Route implements the LegacyMsg interface. +func (m *MsgCreateUnregisteredProject) Route() string { return sdk.MsgTypeURL(m) } + +// Type implements the LegacyMsg interface. +func (m *MsgCreateUnregisteredProject) Type() string { return sdk.MsgTypeURL(m) } + +// GetSignBytes implements the LegacyMsg interface. +func (m *MsgCreateUnregisteredProject) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(m)) +} + +// ValidateBasic does a sanity check on the provided data. +func (m *MsgCreateUnregisteredProject) ValidateBasic() error { + panic("implement me") +} + +// GetSigners returns the expected signers for MsgCreateUnregisteredProject. +func (m *MsgCreateUnregisteredProject) GetSigners() []sdk.AccAddress { + return []sdk.AccAddress{sdk.MustAccAddressFromBech32(m.Admin)} +} diff --git a/x/ecocredit/base/types/v1/msg_update_project_enrollment.go b/x/ecocredit/base/types/v1/msg_update_project_enrollment.go new file mode 100644 index 0000000000..14fcc692dd --- /dev/null +++ b/x/ecocredit/base/types/v1/msg_update_project_enrollment.go @@ -0,0 +1,29 @@ +package v1 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" +) + +var _ legacytx.LegacyMsg = &MsgUpdateProjectEnrollment{} + +// Route implements the LegacyMsg interface. +func (m *MsgUpdateProjectEnrollment) Route() string { return sdk.MsgTypeURL(m) } + +// Type implements the LegacyMsg interface. +func (m *MsgUpdateProjectEnrollment) Type() string { return sdk.MsgTypeURL(m) } + +// GetSignBytes implements the LegacyMsg interface. +func (m *MsgUpdateProjectEnrollment) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(m)) +} + +// ValidateBasic does a sanity check on the provided data. +func (m *MsgUpdateProjectEnrollment) ValidateBasic() error { + panic("implement me") +} + +// GetSigners returns the expected signers for MsgUpdateProjectEnrollment. +func (m *MsgUpdateProjectEnrollment) GetSigners() []sdk.AccAddress { + return []sdk.AccAddress{sdk.MustAccAddressFromBech32(m.Issuer)} +} diff --git a/x/ecocredit/base/types/v1/msg_update_project_fee.go b/x/ecocredit/base/types/v1/msg_update_project_fee.go new file mode 100644 index 0000000000..3abeab6e52 --- /dev/null +++ b/x/ecocredit/base/types/v1/msg_update_project_fee.go @@ -0,0 +1,43 @@ +package v1 + +import ( + "cosmossdk.io/errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" +) + +var _ legacytx.LegacyMsg = &MsgUpdateProjectFee{} + +// Route implements the LegacyMsg interface. +func (m MsgUpdateProjectFee) Route() string { return sdk.MsgTypeURL(&m) } + +// Type implements the LegacyMsg interface. +func (m MsgUpdateProjectFee) Type() string { return sdk.MsgTypeURL(&m) } + +// GetSignBytes implements the LegacyMsg interface. +func (m MsgUpdateProjectFee) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) +} + +// ValidateBasic does a sanity check on the provided data. +func (m *MsgUpdateProjectFee) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil { + return errors.Wrapf(err, "invalid authority address") + } + + if m.Fee != nil { + if err := m.Fee.Validate(); err != nil { + return sdkerrors.ErrInvalidRequest.Wrapf("%s", err) + } + } + + return nil +} + +// GetSigners returns the expected signers for MsgUpdateProjectFee. +func (m *MsgUpdateProjectFee) GetSigners() []sdk.AccAddress { + addr, _ := sdk.AccAddressFromBech32(m.Authority) + return []sdk.AccAddress{addr} +} diff --git a/x/ecocredit/base/types/v1/query.pb.go b/x/ecocredit/base/types/v1/query.pb.go index 960da1d1c9..40fb3c2ef7 100644 --- a/x/ecocredit/base/types/v1/query.pb.go +++ b/x/ecocredit/base/types/v1/query.pb.go @@ -3038,6 +3038,225 @@ func (m *QueryAllowedBridgeChainsResponse) GetAllowedBridgeChains() []string { return nil } +// QueryProjectEnrollmentRequest is the Query/ProjectEnrollment request type. +// +// Since Revision 3 +type QueryProjectEnrollmentRequest struct { + // project_id is the unique identifier of the project to query. + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // class_id is the unique identifier of the credit class to query. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` +} + +func (m *QueryProjectEnrollmentRequest) Reset() { *m = QueryProjectEnrollmentRequest{} } +func (m *QueryProjectEnrollmentRequest) String() string { return proto.CompactTextString(m) } +func (*QueryProjectEnrollmentRequest) ProtoMessage() {} +func (*QueryProjectEnrollmentRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c85efa417eafb74b, []int{56} +} +func (m *QueryProjectEnrollmentRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProjectEnrollmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProjectEnrollmentRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryProjectEnrollmentRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProjectEnrollmentRequest.Merge(m, src) +} +func (m *QueryProjectEnrollmentRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryProjectEnrollmentRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProjectEnrollmentRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProjectEnrollmentRequest proto.InternalMessageInfo + +func (m *QueryProjectEnrollmentRequest) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *QueryProjectEnrollmentRequest) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// QueryProjectEnrollmentResponse is the Query/ProjectEnrollment response type. +// +// Since Revision 3 +type QueryProjectEnrollmentResponse struct { + // project_class is the fetched project class relationship. + ProjectClass *ProjectEnrollment `protobuf:"bytes,1,opt,name=project_class,json=projectClass,proto3" json:"project_class,omitempty"` +} + +func (m *QueryProjectEnrollmentResponse) Reset() { *m = QueryProjectEnrollmentResponse{} } +func (m *QueryProjectEnrollmentResponse) String() string { return proto.CompactTextString(m) } +func (*QueryProjectEnrollmentResponse) ProtoMessage() {} +func (*QueryProjectEnrollmentResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c85efa417eafb74b, []int{57} +} +func (m *QueryProjectEnrollmentResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProjectEnrollmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProjectEnrollmentResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryProjectEnrollmentResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProjectEnrollmentResponse.Merge(m, src) +} +func (m *QueryProjectEnrollmentResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryProjectEnrollmentResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProjectEnrollmentResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProjectEnrollmentResponse proto.InternalMessageInfo + +func (m *QueryProjectEnrollmentResponse) GetProjectClass() *ProjectEnrollment { + if m != nil { + return m.ProjectClass + } + return nil +} + +// QueryProjectEnrollmentsRequest is the Query/ProjectEnrollments request type. +// +// Since Revision 3 +type QueryProjectEnrollmentsRequest struct { + // project_id is the unique identifier of the project to query. + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryProjectEnrollmentsRequest) Reset() { *m = QueryProjectEnrollmentsRequest{} } +func (m *QueryProjectEnrollmentsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryProjectEnrollmentsRequest) ProtoMessage() {} +func (*QueryProjectEnrollmentsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c85efa417eafb74b, []int{58} +} +func (m *QueryProjectEnrollmentsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProjectEnrollmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProjectEnrollmentsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryProjectEnrollmentsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProjectEnrollmentsRequest.Merge(m, src) +} +func (m *QueryProjectEnrollmentsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryProjectEnrollmentsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProjectEnrollmentsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProjectEnrollmentsRequest proto.InternalMessageInfo + +func (m *QueryProjectEnrollmentsRequest) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *QueryProjectEnrollmentsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryProjectEnrollmentsResponse is the Query/ProjectEnrollments response type. +// +// Since Revision 3 +type QueryProjectEnrollmentsResponse struct { + // enrollments are the fetched project credit class enrollments. + Enrollments []*ProjectEnrollment `protobuf:"bytes,1,rep,name=enrollments,proto3" json:"enrollments,omitempty"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryProjectEnrollmentsResponse) Reset() { *m = QueryProjectEnrollmentsResponse{} } +func (m *QueryProjectEnrollmentsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryProjectEnrollmentsResponse) ProtoMessage() {} +func (*QueryProjectEnrollmentsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c85efa417eafb74b, []int{59} +} +func (m *QueryProjectEnrollmentsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProjectEnrollmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProjectEnrollmentsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryProjectEnrollmentsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProjectEnrollmentsResponse.Merge(m, src) +} +func (m *QueryProjectEnrollmentsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryProjectEnrollmentsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProjectEnrollmentsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProjectEnrollmentsResponse proto.InternalMessageInfo + +func (m *QueryProjectEnrollmentsResponse) GetEnrollments() []*ProjectEnrollment { + if m != nil { + return m.Enrollments + } + return nil +} + +func (m *QueryProjectEnrollmentsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + func init() { proto.RegisterType((*QueryClassesRequest)(nil), "regen.ecocredit.v1.QueryClassesRequest") proto.RegisterType((*QueryClassesResponse)(nil), "regen.ecocredit.v1.QueryClassesResponse") @@ -3095,164 +3314,177 @@ func init() { proto.RegisterType((*QueryClassFeeResponse)(nil), "regen.ecocredit.v1.QueryClassFeeResponse") proto.RegisterType((*QueryAllowedBridgeChainsRequest)(nil), "regen.ecocredit.v1.QueryAllowedBridgeChainsRequest") proto.RegisterType((*QueryAllowedBridgeChainsResponse)(nil), "regen.ecocredit.v1.QueryAllowedBridgeChainsResponse") + proto.RegisterType((*QueryProjectEnrollmentRequest)(nil), "regen.ecocredit.v1.QueryProjectEnrollmentRequest") + proto.RegisterType((*QueryProjectEnrollmentResponse)(nil), "regen.ecocredit.v1.QueryProjectEnrollmentResponse") + proto.RegisterType((*QueryProjectEnrollmentsRequest)(nil), "regen.ecocredit.v1.QueryProjectEnrollmentsRequest") + proto.RegisterType((*QueryProjectEnrollmentsResponse)(nil), "regen.ecocredit.v1.QueryProjectEnrollmentsResponse") } func init() { proto.RegisterFile("regen/ecocredit/v1/query.proto", fileDescriptor_c85efa417eafb74b) } var fileDescriptor_c85efa417eafb74b = []byte{ - // 2427 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcd, 0x6f, 0x1c, 0x49, - 0x15, 0x4f, 0x4d, 0x62, 0x7b, 0xfc, 0xec, 0x38, 0xa1, 0xf2, 0x81, 0x33, 0x9b, 0x4c, 0x9c, 0xde, - 0x24, 0x76, 0x62, 0xcf, 0x74, 0xfc, 0x11, 0x60, 0x3f, 0xd8, 0x60, 0x3b, 0x5a, 0xf0, 0xcd, 0x3b, - 0xac, 0x82, 0x30, 0x64, 0x4d, 0xcf, 0x74, 0xd9, 0xe9, 0xec, 0x78, 0x7a, 0xd2, 0xdd, 0x76, 0xd6, - 0x58, 0x66, 0x17, 0xa4, 0x5d, 0x38, 0xc1, 0x8a, 0x45, 0x68, 0x2f, 0x2b, 0x3e, 0x04, 0x07, 0x38, - 0x20, 0xb1, 0x20, 0x21, 0xb4, 0x42, 0xdc, 0x10, 0xc7, 0x48, 0xcb, 0x81, 0x8f, 0x0b, 0x4a, 0x90, - 0xe0, 0xcf, 0x40, 0x53, 0xf5, 0xaa, 0xbf, 0xa6, 0xba, 0xa6, 0x0d, 0xb3, 0x2b, 0x9f, 0x3c, 0x5d, - 0xfd, 0x5e, 0xbd, 0xdf, 0x7b, 0xf5, 0xea, 0xd5, 0xab, 0x5f, 0x1b, 0xca, 0x1e, 0xdb, 0x64, 0x2d, - 0x93, 0x35, 0xdc, 0x86, 0xc7, 0x6c, 0x27, 0x30, 0x77, 0x66, 0xcd, 0x07, 0xdb, 0xcc, 0xdb, 0xad, - 0xb6, 0x3d, 0x37, 0x70, 0x29, 0xe5, 0xef, 0xab, 0xe1, 0xfb, 0xea, 0xce, 0x6c, 0xe9, 0x7a, 0xc3, - 0xf5, 0xb7, 0x5c, 0xdf, 0xac, 0x5b, 0x3e, 0x13, 0xc2, 0xe6, 0xce, 0x6c, 0x9d, 0x05, 0xd6, 0xac, - 0xd9, 0xb6, 0x36, 0x9d, 0x96, 0x15, 0x38, 0x6e, 0x4b, 0xe8, 0x97, 0xca, 0x71, 0x59, 0x29, 0xd5, - 0x70, 0x1d, 0xf9, 0xfe, 0xfc, 0xa6, 0xeb, 0x6e, 0x36, 0x99, 0x69, 0xb5, 0x1d, 0xd3, 0x6a, 0xb5, - 0xdc, 0x80, 0x2b, 0xfb, 0xf8, 0xf6, 0x22, 0xbe, 0xe5, 0x4f, 0xf5, 0xed, 0x0d, 0x33, 0x70, 0xb6, - 0x98, 0x1f, 0x58, 0x5b, 0x6d, 0x39, 0xbd, 0x02, 0xbe, 0x1f, 0x58, 0x01, 0xd3, 0xbc, 0x0f, 0x76, - 0xdb, 0x0c, 0x0d, 0x18, 0x77, 0xe1, 0xd4, 0x4b, 0x1d, 0x07, 0x96, 0x9b, 0x96, 0xef, 0x33, 0xbf, - 0xc6, 0x1e, 0x6c, 0x33, 0x3f, 0xa0, 0x2f, 0x02, 0x44, 0x9e, 0x8c, 0x93, 0x09, 0x32, 0x35, 0x32, - 0x77, 0xb5, 0x2a, 0x5c, 0xa9, 0x76, 0x5c, 0xa9, 0x8a, 0x18, 0xa1, 0x43, 0xd5, 0x55, 0x6b, 0x93, - 0xa1, 0x6e, 0x2d, 0xa6, 0x69, 0xbc, 0x4b, 0xe0, 0x74, 0x72, 0x7e, 0xbf, 0xed, 0xb6, 0x7c, 0x46, - 0x3f, 0x0d, 0x43, 0x0d, 0x31, 0x34, 0x4e, 0x26, 0x8e, 0x4e, 0x8d, 0xcc, 0x5d, 0xa8, 0x76, 0x07, - 0xba, 0xca, 0xb5, 0x56, 0x5a, 0x1b, 0x6e, 0x4d, 0x4a, 0xd3, 0xcf, 0x27, 0x90, 0x15, 0x38, 0xb2, - 0xc9, 0x9e, 0xc8, 0x84, 0xd5, 0x04, 0xb4, 0xaf, 0x43, 0x29, 0x8e, 0x6c, 0x69, 0x77, 0xd1, 0xde, - 0x72, 0x5a, 0x32, 0x00, 0xa7, 0x61, 0xc0, 0xea, 0x3c, 0x73, 0xdf, 0x87, 0x6b, 0xe2, 0x21, 0x15, - 0x96, 0xc2, 0xff, 0x1c, 0x96, 0x1f, 0x11, 0x78, 0x4a, 0x69, 0xfc, 0xd0, 0x44, 0xa7, 0x0a, 0x9f, - 0x88, 0x00, 0xca, 0xa0, 0x9c, 0x83, 0x22, 0x37, 0xb4, 0xee, 0xd8, 0x18, 0x17, 0x61, 0x78, 0xc5, - 0x36, 0x56, 0x80, 0xc6, 0xe5, 0xd1, 0x8f, 0x79, 0x18, 0xe0, 0x02, 0x98, 0x41, 0x3d, 0xbc, 0x10, - 0xb2, 0xc6, 0x3e, 0x8c, 0x47, 0x53, 0xad, 0xf8, 0xfe, 0x36, 0xf3, 0x72, 0x20, 0xe8, 0xdb, 0xda, - 0x7c, 0x03, 0xce, 0x29, 0xcc, 0xa3, 0x43, 0xe3, 0x30, 0xe4, 0x88, 0x21, 0xbe, 0x30, 0xc3, 0x35, - 0xf9, 0xd8, 0xbf, 0xc8, 0xbf, 0x82, 0x3b, 0x66, 0xd5, 0x73, 0xef, 0xb3, 0x46, 0xd0, 0xf7, 0x2d, - 0xf9, 0x1e, 0x81, 0x33, 0x29, 0x03, 0xe8, 0xdc, 0x73, 0x50, 0x6c, 0xe3, 0x18, 0xa6, 0xdd, 0x45, - 0xd5, 0x82, 0xa1, 0x1e, 0x5f, 0xb2, 0x50, 0xa1, 0x7f, 0xfe, 0xbf, 0x21, 0xf7, 0x86, 0xc4, 0xb7, - 0x94, 0x37, 0x09, 0xfb, 0x96, 0x02, 0x3f, 0x23, 0x70, 0x5e, 0x0d, 0xe1, 0x50, 0x45, 0xea, 0xbb, - 0x04, 0x2e, 0xa5, 0x60, 0xd6, 0xd8, 0x06, 0xf3, 0x58, 0xab, 0xc1, 0x56, 0x6c, 0x19, 0xaf, 0x4b, - 0x30, 0xea, 0xc9, 0xd1, 0x28, 0x66, 0x23, 0x5e, 0x24, 0xd9, 0xb7, 0xb8, 0xfd, 0x92, 0x80, 0xa1, - 0x03, 0x74, 0xa8, 0xa2, 0xb7, 0xd7, 0x95, 0x66, 0x1f, 0xe3, 0x01, 0xa0, 0xc8, 0xb0, 0xe4, 0x09, - 0x70, 0x38, 0x62, 0xb4, 0x80, 0xdd, 0x01, 0x9a, 0x91, 0xb1, 0xb9, 0x00, 0x80, 0xb6, 0xa2, 0x84, - 0x1a, 0xc6, 0x91, 0x15, 0xdb, 0x78, 0x29, 0x59, 0xc1, 0x42, 0x9f, 0x9e, 0x81, 0x21, 0x14, 0xc2, - 0xf2, 0xd5, 0xd3, 0x25, 0x29, 0x1f, 0xb6, 0x29, 0x4b, 0x56, 0xd0, 0xb8, 0xf7, 0x11, 0xb6, 0x29, - 0xe1, 0xfc, 0xd1, 0x41, 0x5c, 0x17, 0x43, 0xba, 0x83, 0x98, 0x6b, 0x09, 0xc0, 0x28, 0xdd, 0xbf, - 0x25, 0xd8, 0xc7, 0x34, 0x45, 0x64, 0x4b, 0xbb, 0xe2, 0x48, 0x92, 0x11, 0x38, 0x0b, 0x83, 0xe2, - 0x04, 0xc2, 0x65, 0xc0, 0xa7, 0xbe, 0x25, 0xea, 0x8f, 0x65, 0xa2, 0x76, 0xd9, 0x3f, 0x34, 0x11, - 0x7a, 0x1d, 0x1b, 0xb9, 0x10, 0xe1, 0xc7, 0x7d, 0x5c, 0xbc, 0xd9, 0x15, 0xa3, 0x03, 0xed, 0x97, - 0xbe, 0xe1, 0xf8, 0x09, 0x81, 0x0b, 0x19, 0x38, 0x0e, 0xcd, 0x62, 0x85, 0x9d, 0x6f, 0x7a, 0xb5, - 0x0e, 0x0d, 0xc2, 0x05, 0xec, 0x7c, 0xb9, 0x0d, 0xb9, 0x82, 0x17, 0x61, 0x84, 0x1b, 0x5a, 0xb7, - 0x59, 0xcb, 0xdd, 0xc2, 0x25, 0x04, 0x3e, 0x74, 0xbb, 0x33, 0x12, 0xf6, 0xbf, 0xa8, 0x15, 0xf5, - 0xbf, 0x5c, 0x46, 0xd7, 0xff, 0x46, 0xbe, 0x08, 0x59, 0x63, 0x35, 0xac, 0x75, 0x4d, 0xab, 0xd5, - 0x90, 0x2b, 0xdd, 0x69, 0x3d, 0x2d, 0xdb, 0xf6, 0x18, 0x76, 0xd3, 0xc3, 0x35, 0xf9, 0x98, 0x06, - 0x57, 0xe8, 0x02, 0x77, 0x27, 0xac, 0x6e, 0x38, 0x23, 0xc2, 0x7b, 0xa1, 0x13, 0x6c, 0x3e, 0x84, - 0x00, 0x2f, 0x67, 0x02, 0x44, 0x55, 0x19, 0x73, 0xfe, 0x60, 0xbc, 0x96, 0x9c, 0xd7, 0xef, 0x0d, - 0xb5, 0x5f, 0xa9, 0xfe, 0x53, 0xd9, 0xc4, 0x46, 0xa6, 0xd1, 0xa7, 0xcf, 0x41, 0x11, 0xe1, 0xc9, - 0x0c, 0xca, 0xe7, 0x54, 0xa8, 0xd5, 0xbf, 0x4c, 0x7a, 0x2b, 0xca, 0x75, 0x31, 0xf5, 0xd2, 0xc1, - 0x92, 0xaa, 0x6f, 0xd1, 0xfa, 0x45, 0x54, 0xa0, 0x52, 0x40, 0x0e, 0x5f, 0xd0, 0x2c, 0xf8, 0x24, - 0x87, 0xba, 0xd8, 0x6c, 0xa6, 0xd3, 0xaa, 0x5f, 0xa7, 0xfd, 0xcf, 0x09, 0xde, 0x30, 0x13, 0x36, - 0x0e, 0x5f, 0x28, 0x6e, 0x62, 0x4d, 0xf9, 0xe2, 0x76, 0xbb, 0xdd, 0xdc, 0xcd, 0x5d, 0x8a, 0xde, - 0x26, 0x58, 0x40, 0xa4, 0x1e, 0x7a, 0x36, 0x09, 0x27, 0x02, 0xcf, 0xb2, 0xad, 0x7a, 0x93, 0xad, - 0x5b, 0x5b, 0xee, 0x76, 0x2b, 0x40, 0xe5, 0x31, 0x39, 0xbc, 0xc8, 0x47, 0xe9, 0x15, 0x18, 0xf3, - 0x58, 0xe0, 0x78, 0xcc, 0x96, 0x72, 0xa2, 0xa4, 0x1c, 0xc7, 0x51, 0x14, 0xbb, 0x06, 0x27, 0x1b, - 0x1d, 0x8f, 0x9b, 0xcd, 0x48, 0xf0, 0x28, 0x17, 0x3c, 0x11, 0x8e, 0x0b, 0x51, 0xe3, 0x1c, 0x2e, - 0xea, 0x32, 0x8f, 0xdf, 0xcb, 0xbb, 0xed, 0x70, 0x51, 0x8d, 0xbb, 0xf2, 0xb6, 0x1f, 0x7f, 0x85, - 0x88, 0x17, 0x61, 0x54, 0x44, 0x7c, 0x9d, 0x53, 0x56, 0xb8, 0x1e, 0x65, 0x25, 0x8b, 0x10, 0xaa, - 0xd7, 0x46, 0x1a, 0xd1, 0x54, 0xc6, 0x69, 0x8c, 0xe1, 0xaa, 0xe5, 0x59, 0x5b, 0xa1, 0xd1, 0x15, - 0xd9, 0xd7, 0xe2, 0x28, 0xda, 0x9b, 0x83, 0xc1, 0x36, 0x1f, 0xc1, 0xe4, 0x2a, 0x29, 0xfb, 0x53, - 0xa1, 0x83, 0x92, 0xc6, 0xf3, 0x70, 0x36, 0x85, 0x5f, 0x2e, 0x94, 0x01, 0xa3, 0x56, 0xbd, 0xee, - 0xb1, 0x1d, 0x27, 0x4a, 0xd8, 0xe1, 0x5a, 0x62, 0xcc, 0x58, 0xeb, 0x0a, 0x4c, 0x08, 0xe6, 0x16, - 0x8c, 0xc4, 0x9c, 0x47, 0x44, 0xbd, 0x7c, 0x87, 0xc8, 0x77, 0x63, 0x0f, 0x86, 0x43, 0x6e, 0x85, - 0x8e, 0x41, 0x21, 0x6c, 0x3d, 0x0a, 0x8e, 0x1d, 0x5d, 0x6f, 0x0a, 0xf1, 0xeb, 0x4d, 0x09, 0x8a, - 0x5b, 0x2c, 0xb0, 0x6c, 0x2b, 0xb0, 0x70, 0x29, 0xc3, 0x67, 0x3a, 0x03, 0x34, 0x86, 0x67, 0x5d, - 0xb8, 0x31, 0x7e, 0x8c, 0x4b, 0x9d, 0x8c, 0xcc, 0x2e, 0xf2, 0x71, 0xe3, 0xd7, 0x04, 0x46, 0x62, - 0x9d, 0x7c, 0x4e, 0xfb, 0xf1, 0x66, 0xed, 0x68, 0xb2, 0x59, 0x33, 0x60, 0xf4, 0xfe, 0xb6, 0xe7, - 0xf8, 0xb6, 0xd3, 0xe0, 0xd1, 0x14, 0x86, 0x13, 0x63, 0x09, 0xf8, 0x03, 0x29, 0xf8, 0xe9, 0x6b, - 0xf0, 0x60, 0xd7, 0x35, 0xd8, 0xf8, 0xa0, 0x00, 0xc3, 0xe1, 0x69, 0x9c, 0xd9, 0x59, 0x27, 0x9b, - 0xb9, 0x42, 0xba, 0x99, 0x3b, 0x0d, 0x03, 0x62, 0x63, 0x0a, 0xfc, 0xe2, 0x21, 0x81, 0xec, 0x58, - 0x0a, 0xd9, 0x33, 0x00, 0x7e, 0x60, 0x79, 0xc1, 0xba, 0x6d, 0x05, 0x8c, 0xe3, 0xee, 0x64, 0x9e, - 0x20, 0x7e, 0xab, 0x92, 0xf8, 0xad, 0xbe, 0x2c, 0x89, 0xdf, 0xda, 0x30, 0x97, 0xbe, 0x6d, 0x05, - 0x8c, 0xde, 0x84, 0x22, 0x6b, 0xd9, 0x42, 0x71, 0xb0, 0xa7, 0xe2, 0x10, 0x6b, 0xd9, 0x5c, 0xed, - 0x16, 0x1c, 0xef, 0x38, 0xd3, 0xd9, 0xa4, 0x42, 0x77, 0xa8, 0xa7, 0xee, 0xa8, 0x54, 0xe0, 0x13, - 0x50, 0x38, 0xe6, 0xb6, 0x59, 0x6b, 0xbc, 0x38, 0x41, 0xa6, 0x8a, 0x35, 0xfe, 0xdb, 0xf8, 0x13, - 0x81, 0x93, 0xe9, 0xaa, 0xf8, 0x7f, 0x34, 0x2d, 0xaa, 0x72, 0x75, 0x34, 0x67, 0xb9, 0x3a, 0xa6, - 0x2a, 0x57, 0x93, 0x70, 0x82, 0xf9, 0x0d, 0xcf, 0x7d, 0x18, 0xc9, 0x89, 0x1c, 0x19, 0x93, 0xc3, - 0x58, 0xac, 0x9e, 0x46, 0x56, 0x85, 0x6f, 0x9e, 0x65, 0x8f, 0x59, 0x81, 0xeb, 0x2d, 0x36, 0x9b, - 0xee, 0xc3, 0xa6, 0xe3, 0xcb, 0x96, 0xde, 0x78, 0x01, 0x99, 0x8e, 0x0c, 0xa1, 0x88, 0x2e, 0x64, - 0xad, 0x0e, 0x54, 0x91, 0xfa, 0xc5, 0x9a, 0x7c, 0x34, 0xee, 0xc3, 0x84, 0x3c, 0x82, 0x3a, 0xa6, - 0xe3, 0xd3, 0xf4, 0xfd, 0xbc, 0x7b, 0x47, 0xf2, 0x44, 0x6a, 0x63, 0x88, 0xf5, 0x0a, 0x8c, 0x89, - 0xbd, 0xd7, 0xc0, 0x37, 0xc8, 0x70, 0x1e, 0x6f, 0xc4, 0xc5, 0xfb, 0x77, 0xba, 0x9d, 0x8d, 0x7f, - 0x19, 0x78, 0x91, 0x49, 0xe4, 0xc6, 0x6d, 0xec, 0xec, 0xa2, 0x71, 0x04, 0x38, 0x0d, 0x47, 0x37, - 0x98, 0x2c, 0x84, 0xe7, 0x12, 0x26, 0xa5, 0xb1, 0x65, 0xd7, 0x69, 0xd5, 0x3a, 0x52, 0xc6, 0x25, - 0xb8, 0x18, 0x77, 0x79, 0xc9, 0x73, 0xec, 0x4d, 0xb6, 0x7c, 0xcf, 0x72, 0x5a, 0xe1, 0x21, 0x70, - 0x27, 0xb9, 0x04, 0x49, 0x91, 0xf0, 0x44, 0x38, 0x63, 0x89, 0xd7, 0xeb, 0x75, 0xfe, 0x7e, 0xbd, - 0xc1, 0x05, 0x30, 0x36, 0xa7, 0xac, 0x6e, 0xdd, 0xb9, 0x3f, 0x4c, 0xc2, 0x00, 0x9f, 0x98, 0x7e, - 0x93, 0xc0, 0x10, 0x32, 0xfc, 0x74, 0x52, 0x55, 0xb9, 0x15, 0x9f, 0x5e, 0x4a, 0x53, 0xbd, 0x05, - 0x05, 0x38, 0xe3, 0xe9, 0x6f, 0x7d, 0xf8, 0xaf, 0x77, 0x0a, 0x17, 0xe8, 0x53, 0xa6, 0xe2, 0x23, - 0x8f, 0xfc, 0x22, 0xf0, 0x17, 0x02, 0x63, 0xc9, 0xaf, 0x0c, 0xb4, 0xda, 0xcb, 0x42, 0x92, 0x0a, - 0x2b, 0x99, 0xb9, 0xe5, 0x11, 0x98, 0xc5, 0x81, 0x7d, 0x85, 0xce, 0x68, 0x80, 0x55, 0xea, 0xbb, - 0x15, 0x5e, 0xf4, 0xcd, 0x3d, 0xfe, 0x67, 0x7f, 0x6d, 0x9a, 0x5e, 0xd3, 0xc8, 0x9b, 0x09, 0x61, - 0xfa, 0x2b, 0x02, 0x03, 0xdc, 0x3a, 0xbd, 0xa2, 0x47, 0x27, 0x9d, 0xb8, 0xda, 0x4b, 0x0c, 0xb1, - 0xdf, 0xe1, 0xd8, 0x57, 0xe9, 0xe5, 0x4c, 0x2c, 0xe6, 0x9e, 0x3c, 0xa3, 0xf6, 0xd7, 0xa6, 0xe8, - 0x55, 0x1d, 0xe6, 0x48, 0x92, 0x7e, 0x48, 0x60, 0x34, 0xfe, 0x49, 0x81, 0xce, 0xe8, 0x01, 0x25, - 0x3f, 0x7c, 0x94, 0x2a, 0x39, 0xa5, 0xd1, 0x8b, 0x0d, 0xee, 0xc5, 0xd7, 0x34, 0x2b, 0x50, 0xc1, - 0x0f, 0x17, 0x71, 0x6f, 0x6e, 0xd0, 0x6a, 0x3e, 0x6f, 0x4c, 0xf9, 0xd5, 0xe3, 0x4d, 0x02, 0x45, - 0x49, 0x61, 0xd2, 0xec, 0xcc, 0x4d, 0x7d, 0xcb, 0x28, 0x5d, 0xcb, 0x21, 0x89, 0x9e, 0x5c, 0xe6, - 0x9e, 0x94, 0xe9, 0x79, 0x15, 0xb2, 0x90, 0xf1, 0xfc, 0x41, 0x01, 0x4e, 0xa4, 0xc8, 0x7a, 0x6a, - 0xf6, 0x34, 0x92, 0xa4, 0x8a, 0x4a, 0x37, 0xf2, 0x2b, 0x20, 0xb8, 0xf7, 0x08, 0x47, 0xf7, 0x43, - 0x42, 0x6f, 0xe8, 0xe0, 0x75, 0x72, 0xbd, 0x2b, 0x75, 0x4c, 0x5a, 0xd1, 0xe9, 0x74, 0xe7, 0xda, - 0x2c, 0x35, 0x73, 0xae, 0x4e, 0x18, 0x96, 0x6f, 0x17, 0xe0, 0x8c, 0x92, 0x8b, 0xa7, 0x37, 0x73, - 0xf8, 0xda, 0xfd, 0x31, 0xa1, 0xf4, 0xa9, 0x83, 0xaa, 0x61, 0xa0, 0x5e, 0xe7, 0x71, 0xda, 0xa5, - 0xcf, 0xf5, 0x0a, 0x53, 0xd8, 0x8f, 0x55, 0x1c, 0xdb, 0xdc, 0x8b, 0x77, 0x6c, 0xfb, 0x6b, 0xcf, - 0xd2, 0xcf, 0x68, 0x23, 0xa6, 0xd1, 0xa5, 0x7f, 0x23, 0xf1, 0x04, 0x11, 0x75, 0x30, 0x4f, 0x82, - 0x24, 0x0a, 0xe1, 0x8d, 0xfc, 0x0a, 0xe8, 0x77, 0x83, 0xfb, 0x7d, 0x57, 0xbf, 0xd4, 0xdd, 0xa5, - 0x70, 0x86, 0x5e, 0xd7, 0x7a, 0x9a, 0xac, 0x85, 0x1f, 0x10, 0x18, 0x42, 0x00, 0x9a, 0x63, 0x26, - 0xc9, 0x49, 0x96, 0xa6, 0x7a, 0x0b, 0xa2, 0x0f, 0x77, 0xb9, 0x0f, 0x5f, 0xa2, 0x53, 0x1a, 0x48, - 0xe6, 0x5e, 0xd4, 0x13, 0x67, 0x56, 0xf2, 0x10, 0x7e, 0x5c, 0x98, 0x1f, 0x92, 0x48, 0x06, 0x6a, - 0xd0, 0x27, 0x89, 0x7f, 0x0d, 0xfa, 0x14, 0x83, 0xaf, 0x3f, 0x24, 0x25, 0x79, 0xf8, 0x0f, 0x02, - 0x27, 0x52, 0x04, 0xb7, 0x26, 0x3b, 0xd4, 0x54, 0xbc, 0x26, 0x3b, 0x32, 0xb8, 0x73, 0x83, 0x71, - 0x6c, 0xeb, 0xea, 0xaa, 0x8b, 0xd8, 0x3a, 0xc9, 0x21, 0xaa, 0xad, 0xb9, 0x27, 0xfe, 0xee, 0xaf, - 0x55, 0xe8, 0xb4, 0x46, 0xc3, 0x4c, 0x89, 0xd3, 0xbf, 0x13, 0x18, 0x4b, 0xd2, 0xad, 0x9a, 0x16, - 0x40, 0xc9, 0xa2, 0x97, 0xcc, 0xdc, 0xf2, 0xe8, 0xda, 0x26, 0x77, 0xcd, 0x52, 0x97, 0xac, 0x98, - 0x6b, 0x5d, 0x55, 0xae, 0xaa, 0x3e, 0xb3, 0xa4, 0x6f, 0x69, 0x79, 0xfa, 0x1f, 0x79, 0xed, 0x88, - 0xf1, 0xdd, 0x34, 0xc7, 0x52, 0xa4, 0xb6, 0xc3, 0xec, 0x01, 0x34, 0xd0, 0x45, 0x97, 0xbb, 0xe8, - 0xd0, 0xf9, 0x1e, 0x2e, 0x2a, 0xb7, 0xc8, 0x9c, 0xfa, 0xc4, 0x90, 0x6e, 0xaa, 0x74, 0xe8, 0x6f, - 0x09, 0x0c, 0x70, 0x34, 0x9a, 0x9e, 0x27, 0x4e, 0x30, 0x6a, 0x7a, 0x9e, 0x04, 0xfd, 0x67, 0x7c, - 0x95, 0x7b, 0x72, 0x87, 0x4e, 0x66, 0x42, 0x32, 0xf7, 0x62, 0x97, 0xb5, 0xcc, 0x0d, 0x2e, 0xd1, - 0x27, 0x84, 0xe9, 0xbb, 0x85, 0xce, 0x06, 0xe7, 0x77, 0x42, 0xed, 0x06, 0x8f, 0xb3, 0xdd, 0xda, - 0x0d, 0x9e, 0x20, 0xb1, 0x8d, 0xdf, 0x8b, 0x33, 0xf8, 0x7d, 0x92, 0xb5, 0x10, 0x5c, 0x3c, 0x89, - 0xa9, 0x53, 0x3a, 0xf9, 0x35, 0x74, 0x7f, 0xed, 0xb3, 0xea, 0x33, 0x49, 0xe9, 0x4a, 0x34, 0x59, - 0xa8, 0xfe, 0x3c, 0x7d, 0x56, 0x63, 0xd5, 0x8f, 0x24, 0x55, 0x71, 0xa4, 0xdf, 0x23, 0x50, 0x94, - 0x0c, 0x24, 0xed, 0xe9, 0x72, 0x8e, 0xf6, 0x29, 0x4d, 0x67, 0x1a, 0x55, 0x1e, 0x9c, 0x8c, 0x36, - 0xb5, 0x1b, 0x25, 0xfd, 0x37, 0xaf, 0x84, 0x09, 0x96, 0x58, 0x5b, 0x09, 0x55, 0xc4, 0xb6, 0xb6, - 0x12, 0x2a, 0x09, 0x68, 0xe3, 0x01, 0x87, 0xf9, 0xaa, 0x76, 0x09, 0xf9, 0x66, 0x52, 0x65, 0xe3, - 0x02, 0x9d, 0x3b, 0xf0, 0x12, 0xfa, 0xf4, 0x7d, 0x02, 0x23, 0x31, 0x02, 0x98, 0x4e, 0x67, 0x82, - 0xee, 0xa6, 0xa2, 0x4b, 0x33, 0xf9, 0x84, 0xd1, 0xbb, 0x2f, 0x70, 0xef, 0x96, 0xe8, 0x84, 0x0a, - 0xa6, 0xd5, 0x6c, 0x56, 0x24, 0xa8, 0xb5, 0x8c, 0x3e, 0x37, 0x04, 0xfd, 0x47, 0x02, 0x83, 0x82, - 0xd6, 0xa5, 0xd9, 0x9b, 0x3b, 0xc1, 0x17, 0x97, 0x26, 0x7b, 0xca, 0x21, 0x4a, 0x9b, 0xa3, 0x7c, - 0x45, 0x7d, 0xce, 0xfb, 0x5c, 0x36, 0x15, 0xf8, 0x1e, 0x45, 0x2c, 0x19, 0x78, 0x31, 0x03, 0xfd, - 0x3e, 0x81, 0x91, 0x18, 0xd7, 0xab, 0x09, 0x7b, 0x37, 0x59, 0xac, 0x09, 0xbb, 0x82, 0x3e, 0x36, - 0xa6, 0xb8, 0x43, 0x86, 0x3a, 0xec, 0xe2, 0x57, 0x85, 0x13, 0xcb, 0xf4, 0x0d, 0x02, 0x83, 0x82, - 0xd7, 0xd5, 0x84, 0x35, 0x41, 0x21, 0x6b, 0xc2, 0x9a, 0x24, 0x95, 0x8d, 0x2b, 0x1c, 0xc5, 0x79, - 0x5a, 0x52, 0xb6, 0x44, 0x5c, 0xf6, 0x3b, 0x05, 0x42, 0x1f, 0x11, 0x80, 0xc8, 0x09, 0x7a, 0x3d, - 0x87, 0xa7, 0x12, 0xca, 0x74, 0x2e, 0x59, 0x84, 0xe3, 0x70, 0x38, 0x8d, 0x8c, 0x9b, 0x5e, 0x14, - 0x14, 0x73, 0x2f, 0x4e, 0x54, 0x67, 0xdf, 0x3e, 0x62, 0x61, 0x4c, 0xa9, 0x74, 0xfa, 0xd2, 0x33, - 0x4a, 0x7e, 0x4c, 0x73, 0xfb, 0xd0, 0x91, 0x6e, 0x9a, 0xdb, 0x87, 0x96, 0x86, 0x33, 0xe6, 0xb9, - 0xcf, 0x19, 0x5d, 0x93, 0xb8, 0x0d, 0x23, 0xe9, 0x55, 0xb1, 0x42, 0x8c, 0xbf, 0x23, 0x70, 0x5a, - 0x45, 0x98, 0xd1, 0x05, 0xdd, 0xde, 0xcf, 0x22, 0xf3, 0x4a, 0x37, 0x0f, 0xa8, 0x85, 0xd0, 0xe7, - 0x38, 0xf4, 0x8c, 0xfb, 0x00, 0xb2, 0x4f, 0x95, 0x84, 0x0b, 0x3e, 0x7d, 0x8b, 0x40, 0x51, 0xb2, - 0x67, 0xb4, 0x07, 0x9d, 0x14, 0x11, 0x6f, 0x9a, 0x53, 0x25, 0x4d, 0xc5, 0x61, 0x4e, 0x5f, 0xa4, - 0x17, 0xb2, 0x03, 0xba, 0xc1, 0x18, 0xfd, 0x0d, 0x81, 0x53, 0x0a, 0x76, 0x8d, 0xce, 0xf7, 0x8a, - 0x85, 0x82, 0xae, 0x2b, 0x2d, 0x1c, 0x4c, 0x09, 0x91, 0xce, 0x72, 0xa4, 0x19, 0xfd, 0x8a, 0x8c, - 0x9f, 0xa0, 0xf6, 0x2a, 0x82, 0xda, 0x5b, 0xfa, 0xf2, 0x9f, 0x1f, 0x97, 0xc9, 0xa3, 0xc7, 0x65, - 0xf2, 0xcf, 0xc7, 0x65, 0xf2, 0xf6, 0x93, 0xf2, 0x91, 0x47, 0x4f, 0xca, 0x47, 0xfe, 0xfa, 0xa4, - 0x7c, 0x64, 0xed, 0xd6, 0xa6, 0x13, 0xdc, 0xdb, 0xae, 0x57, 0x1b, 0xee, 0x96, 0x98, 0xae, 0xd2, - 0x62, 0xc1, 0x43, 0xd7, 0x7b, 0x15, 0x9f, 0x9a, 0xcc, 0xde, 0x64, 0x9e, 0xf9, 0x5a, 0xcc, 0x0a, - 0xff, 0xb7, 0x6f, 0xb1, 0x3b, 0x76, 0x66, 0xeb, 0x83, 0x9c, 0x59, 0x9f, 0xff, 0x6f, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x3b, 0xf8, 0xe6, 0xac, 0x75, 0x2e, 0x00, 0x00, + // 2574 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5b, 0xdb, 0x8f, 0x1c, 0x47, + 0xd5, 0x77, 0x8d, 0xbd, 0xbb, 0xb3, 0x67, 0xd7, 0x6b, 0xa7, 0x7c, 0xf9, 0xd6, 0x13, 0x7b, 0x6c, + 0x77, 0x6c, 0xef, 0xfa, 0x32, 0xd3, 0xde, 0x8b, 0xf3, 0x91, 0xc4, 0xc4, 0xec, 0xda, 0xc4, 0x2c, + 0x4f, 0xce, 0x10, 0x19, 0x65, 0xc1, 0x59, 0x7a, 0xa6, 0x6b, 0xd7, 0xed, 0xcc, 0x76, 0x8f, 0xbb, + 0x7b, 0xed, 0x2c, 0xab, 0x25, 0x01, 0x29, 0x09, 0x4f, 0x10, 0x11, 0x84, 0xf2, 0x12, 0x71, 0x11, + 0x3c, 0xc0, 0x03, 0x12, 0x09, 0x12, 0x42, 0x7e, 0x40, 0x08, 0x09, 0xf1, 0x68, 0x29, 0x3c, 0x70, + 0x79, 0x41, 0x36, 0x12, 0xfc, 0x19, 0x68, 0xaa, 0x4e, 0xf5, 0x6d, 0xba, 0xab, 0x7b, 0xc2, 0x60, + 0xed, 0x93, 0xb7, 0x6b, 0xce, 0xa9, 0xfa, 0xfd, 0x4e, 0x9d, 0x3a, 0x75, 0xea, 0x1c, 0x19, 0xaa, + 0x2e, 0x5b, 0x63, 0xb6, 0xce, 0x5a, 0x4e, 0xcb, 0x65, 0xa6, 0xe5, 0xeb, 0xf7, 0x66, 0xf4, 0xbb, + 0x1b, 0xcc, 0xdd, 0xac, 0x77, 0x5c, 0xc7, 0x77, 0x28, 0xe5, 0xbf, 0xd7, 0x83, 0xdf, 0xeb, 0xf7, + 0x66, 0x2a, 0xe7, 0x5a, 0x8e, 0xb7, 0xee, 0x78, 0x7a, 0xd3, 0xf0, 0x98, 0x10, 0xd6, 0xef, 0xcd, + 0x34, 0x99, 0x6f, 0xcc, 0xe8, 0x1d, 0x63, 0xcd, 0xb2, 0x0d, 0xdf, 0x72, 0x6c, 0xa1, 0x5f, 0xa9, + 0x46, 0x65, 0xa5, 0x54, 0xcb, 0xb1, 0xe4, 0xef, 0x47, 0xd7, 0x1c, 0x67, 0xad, 0xcd, 0x74, 0xa3, + 0x63, 0xe9, 0x86, 0x6d, 0x3b, 0x3e, 0x57, 0xf6, 0xf0, 0xd7, 0xe3, 0xf8, 0x2b, 0xff, 0x6a, 0x6e, + 0xac, 0xea, 0xbe, 0xb5, 0xce, 0x3c, 0xdf, 0x58, 0xef, 0xc8, 0xe9, 0x53, 0xe0, 0x7b, 0xbe, 0xe1, + 0x33, 0xc5, 0xef, 0xfe, 0x66, 0x87, 0xe1, 0x02, 0xda, 0x2d, 0x38, 0xf0, 0x72, 0x97, 0xc0, 0xd5, + 0xb6, 0xe1, 0x79, 0xcc, 0x6b, 0xb0, 0xbb, 0x1b, 0xcc, 0xf3, 0xe9, 0x4b, 0x00, 0x21, 0x93, 0x49, + 0x72, 0x82, 0x4c, 0x8f, 0xcd, 0x9e, 0xa9, 0x0b, 0x2a, 0xf5, 0x2e, 0x95, 0xba, 0xb0, 0x11, 0x12, + 0xaa, 0xdf, 0x30, 0xd6, 0x18, 0xea, 0x36, 0x22, 0x9a, 0xda, 0x07, 0x04, 0x0e, 0xc6, 0xe7, 0xf7, + 0x3a, 0x8e, 0xed, 0x31, 0xfa, 0xff, 0x30, 0xd2, 0x12, 0x43, 0x93, 0xe4, 0xc4, 0xee, 0xe9, 0xb1, + 0xd9, 0x63, 0xf5, 0x5e, 0x43, 0xd7, 0xb9, 0xd6, 0x92, 0xbd, 0xea, 0x34, 0xa4, 0x34, 0xbd, 0x1e, + 0x43, 0x56, 0xe2, 0xc8, 0xa6, 0x72, 0x91, 0x89, 0x55, 0x63, 0xd0, 0xbe, 0x0e, 0x95, 0x28, 0xb2, + 0xc5, 0xcd, 0x05, 0x73, 0xdd, 0xb2, 0xa5, 0x01, 0x0e, 0xc2, 0x90, 0xd1, 0xfd, 0xe6, 0xdc, 0x47, + 0x1b, 0xe2, 0x23, 0x61, 0x96, 0xd2, 0xa7, 0x36, 0xcb, 0x0f, 0x09, 0x3c, 0x9d, 0xba, 0xf8, 0x8e, + 0xb1, 0x4e, 0x1d, 0x9e, 0x0a, 0x01, 0x4a, 0xa3, 0x1c, 0x81, 0x32, 0x5f, 0x68, 0xc5, 0x32, 0xd1, + 0x2e, 0x62, 0xe1, 0x25, 0x53, 0x5b, 0x02, 0x1a, 0x95, 0x47, 0x1e, 0x73, 0x30, 0xc4, 0x05, 0xd0, + 0x83, 0x72, 0x58, 0x08, 0x59, 0x6d, 0x1b, 0x26, 0xc3, 0xa9, 0x96, 0x3c, 0x6f, 0x83, 0xb9, 0x05, + 0x10, 0x0c, 0x6c, 0x6f, 0xbe, 0x01, 0x47, 0x52, 0x96, 0x47, 0x42, 0x93, 0x30, 0x62, 0x89, 0x21, + 0xbe, 0x31, 0xa3, 0x0d, 0xf9, 0x39, 0x38, 0xcb, 0xbf, 0x86, 0x27, 0xe6, 0x86, 0xeb, 0xdc, 0x61, + 0x2d, 0x7f, 0xe0, 0x47, 0xf2, 0x43, 0x02, 0x87, 0x12, 0x0b, 0x20, 0xb9, 0x17, 0xa0, 0xdc, 0xc1, + 0x31, 0x74, 0xbb, 0xe3, 0x69, 0x1b, 0x86, 0x7a, 0x7c, 0xcb, 0x02, 0x85, 0xc1, 0xf1, 0x7f, 0x4b, + 0x9e, 0x0d, 0x89, 0x6f, 0xb1, 0xa8, 0x13, 0x0e, 0xcc, 0x05, 0x7e, 0x4a, 0xe0, 0x68, 0x3a, 0x84, + 0x1d, 0x65, 0xa9, 0xef, 0x10, 0x38, 0x99, 0x80, 0xd9, 0x60, 0xab, 0xcc, 0x65, 0x76, 0x8b, 0x2d, + 0x99, 0xd2, 0x5e, 0x27, 0x61, 0xdc, 0x95, 0xa3, 0xa1, 0xcd, 0xc6, 0xdc, 0x50, 0x72, 0x60, 0x76, + 0xfb, 0x05, 0x01, 0x4d, 0x05, 0x68, 0x47, 0x59, 0x6f, 0xab, 0xc7, 0xcd, 0x9e, 0xe0, 0x05, 0x90, + 0xe2, 0x61, 0xf1, 0x1b, 0x60, 0x67, 0xd8, 0x68, 0x1e, 0xb3, 0x03, 0x5c, 0x46, 0xda, 0xe6, 0x18, + 0x00, 0xae, 0x15, 0x3a, 0xd4, 0x28, 0x8e, 0x2c, 0x99, 0xda, 0xcb, 0xf1, 0x08, 0x16, 0x70, 0x7a, + 0x0e, 0x46, 0x50, 0x08, 0xc3, 0x57, 0x2e, 0x25, 0x29, 0x1f, 0xa4, 0x29, 0x8b, 0x86, 0xdf, 0xba, + 0xfd, 0x3f, 0x4c, 0x53, 0x82, 0xf9, 0xc3, 0x8b, 0xb8, 0x29, 0x86, 0x54, 0x17, 0x31, 0xd7, 0x12, + 0x80, 0x51, 0x7a, 0x70, 0x5b, 0xb0, 0x8d, 0x6e, 0x8a, 0xc8, 0x16, 0x37, 0xc5, 0x95, 0x24, 0x2d, + 0x70, 0x18, 0x86, 0xc5, 0x0d, 0x84, 0xdb, 0x80, 0x5f, 0x03, 0x73, 0xd4, 0x1f, 0x49, 0x47, 0xed, + 0x59, 0x7f, 0xc7, 0x58, 0xe8, 0x4d, 0x4c, 0xe4, 0x02, 0x84, 0x4f, 0xfa, 0xba, 0x78, 0xbb, 0xc7, + 0x46, 0x7d, 0x9d, 0x97, 0x81, 0xe1, 0xf8, 0x31, 0x81, 0x63, 0x19, 0x38, 0x76, 0xcc, 0x66, 0x05, + 0x99, 0x6f, 0x72, 0xb7, 0x76, 0x0c, 0xc2, 0x79, 0xcc, 0x7c, 0xf9, 0x1a, 0x72, 0x07, 0x8f, 0xc3, + 0x18, 0x5f, 0x68, 0xc5, 0x64, 0xb6, 0xb3, 0x8e, 0x5b, 0x08, 0x7c, 0xe8, 0x5a, 0x77, 0x24, 0xc8, + 0x7f, 0x51, 0x2b, 0xcc, 0x7f, 0xb9, 0x8c, 0x2a, 0xff, 0x0d, 0xb9, 0x08, 0x59, 0xed, 0x46, 0x10, + 0xeb, 0xda, 0x86, 0xdd, 0x92, 0x3b, 0xdd, 0x4d, 0x3d, 0x0d, 0xd3, 0x74, 0x19, 0x66, 0xd3, 0xa3, + 0x0d, 0xf9, 0x99, 0x04, 0x57, 0xea, 0x01, 0x77, 0x33, 0x88, 0x6e, 0x38, 0x23, 0xc2, 0x7b, 0xb1, + 0x6b, 0x6c, 0x3e, 0x84, 0x00, 0x4f, 0x65, 0x02, 0x44, 0x55, 0x69, 0x73, 0xfe, 0xa1, 0xbd, 0x11, + 0x9f, 0xd7, 0xcb, 0x87, 0x3a, 0x28, 0x57, 0xff, 0x89, 0x4c, 0x62, 0xc3, 0xa5, 0x91, 0xd3, 0xe7, + 0xa0, 0x8c, 0xf0, 0xa4, 0x07, 0x15, 0x23, 0x15, 0x68, 0x0d, 0xce, 0x93, 0xde, 0x09, 0x7d, 0x5d, + 0x4c, 0xbd, 0xd8, 0x9f, 0x53, 0x0d, 0xcc, 0x5a, 0x3f, 0x0f, 0x03, 0x54, 0x02, 0xc8, 0xce, 0x33, + 0x9a, 0x01, 0xff, 0xc7, 0xa1, 0x2e, 0xb4, 0xdb, 0x49, 0xb7, 0x1a, 0xd4, 0x6d, 0xff, 0x33, 0x82, + 0x2f, 0xcc, 0xd8, 0x1a, 0x3b, 0xcf, 0x14, 0x97, 0x30, 0xa6, 0x7c, 0x69, 0xa3, 0xd3, 0x69, 0x6f, + 0x16, 0x0e, 0x45, 0xef, 0x11, 0x0c, 0x20, 0x52, 0x0f, 0x99, 0x4d, 0xc1, 0x3e, 0xdf, 0x35, 0x4c, + 0xa3, 0xd9, 0x66, 0x2b, 0xc6, 0xba, 0xb3, 0x61, 0xfb, 0xa8, 0x3c, 0x21, 0x87, 0x17, 0xf8, 0x28, + 0x3d, 0x0d, 0x13, 0x2e, 0xf3, 0x2d, 0x97, 0x99, 0x52, 0x4e, 0x84, 0x94, 0xbd, 0x38, 0x8a, 0x62, + 0x67, 0x61, 0x7f, 0xab, 0xcb, 0xb8, 0xdd, 0x0e, 0x05, 0x77, 0x73, 0xc1, 0x7d, 0xc1, 0xb8, 0x10, + 0xd5, 0x8e, 0xe0, 0xa6, 0x5e, 0xe5, 0xf6, 0x7b, 0x65, 0xb3, 0x13, 0x6c, 0xaa, 0x76, 0x4b, 0xbe, + 0xf6, 0xa3, 0x3f, 0x21, 0xe2, 0x05, 0x18, 0x17, 0x16, 0x5f, 0xe1, 0x25, 0x2b, 0xdc, 0x8f, 0x6a, + 0x6a, 0x15, 0x21, 0x50, 0x6f, 0x8c, 0xb5, 0xc2, 0xa9, 0xb4, 0x83, 0x68, 0xc3, 0x1b, 0x86, 0x6b, + 0xac, 0x07, 0x8b, 0x2e, 0xc9, 0xbc, 0x16, 0x47, 0x71, 0xbd, 0x59, 0x18, 0xee, 0xf0, 0x11, 0x74, + 0xae, 0x4a, 0x6a, 0x7e, 0x2a, 0x74, 0x50, 0x52, 0xbb, 0x0c, 0x87, 0x13, 0xf8, 0xe5, 0x46, 0x69, + 0x30, 0x6e, 0x34, 0x9b, 0x2e, 0xbb, 0x67, 0x85, 0x0e, 0x3b, 0xda, 0x88, 0x8d, 0x69, 0xcb, 0x3d, + 0x86, 0x09, 0xc0, 0x5c, 0x81, 0xb1, 0x08, 0x79, 0x44, 0x94, 0xc7, 0x1d, 0x42, 0xee, 0xda, 0x16, + 0x8c, 0x06, 0xb5, 0x15, 0x3a, 0x01, 0xa5, 0x20, 0xf5, 0x28, 0x59, 0x66, 0xf8, 0xbc, 0x29, 0x45, + 0x9f, 0x37, 0x15, 0x28, 0xaf, 0x33, 0xdf, 0x30, 0x0d, 0xdf, 0xc0, 0xad, 0x0c, 0xbe, 0xe9, 0x05, + 0xa0, 0x11, 0x3c, 0x2b, 0x82, 0xc6, 0xe4, 0x1e, 0x2e, 0xb5, 0x3f, 0x5c, 0x76, 0x81, 0x8f, 0x6b, + 0xbf, 0x22, 0x30, 0x16, 0xc9, 0xe4, 0x0b, 0xae, 0x1f, 0x4d, 0xd6, 0x76, 0xc7, 0x93, 0x35, 0x0d, + 0xc6, 0xef, 0x6c, 0xb8, 0x96, 0x67, 0x5a, 0x2d, 0x6e, 0x4d, 0xb1, 0x70, 0x6c, 0x2c, 0x06, 0x7f, + 0x28, 0x01, 0x3f, 0xf9, 0x0c, 0x1e, 0xee, 0x79, 0x06, 0x6b, 0x0f, 0x4a, 0x30, 0x1a, 0xdc, 0xc6, + 0x99, 0x99, 0x75, 0x3c, 0x99, 0x2b, 0x25, 0x93, 0xb9, 0x83, 0x30, 0x24, 0x0e, 0xa6, 0xc0, 0x2f, + 0x3e, 0x62, 0xc8, 0xf6, 0x24, 0x90, 0x3d, 0x07, 0xe0, 0xf9, 0x86, 0xeb, 0xaf, 0x98, 0x86, 0xcf, + 0x38, 0xee, 0xae, 0xe7, 0x89, 0xc2, 0x6f, 0x5d, 0x16, 0x7e, 0xeb, 0xaf, 0xc8, 0xc2, 0x6f, 0x63, + 0x94, 0x4b, 0x5f, 0x33, 0x7c, 0x46, 0x2f, 0x41, 0x99, 0xd9, 0xa6, 0x50, 0x1c, 0xce, 0x55, 0x1c, + 0x61, 0xb6, 0xc9, 0xd5, 0xae, 0xc0, 0xde, 0x2e, 0x99, 0xee, 0x21, 0x15, 0xba, 0x23, 0xb9, 0xba, + 0xe3, 0x52, 0x81, 0x4f, 0x40, 0x61, 0x8f, 0xd3, 0x61, 0xf6, 0x64, 0xf9, 0x04, 0x99, 0x2e, 0x37, + 0xf8, 0xdf, 0xda, 0x1f, 0x09, 0xec, 0x4f, 0x46, 0xc5, 0xff, 0x22, 0x69, 0x49, 0x0b, 0x57, 0xbb, + 0x0b, 0x86, 0xab, 0x3d, 0x69, 0xe1, 0x6a, 0x0a, 0xf6, 0x31, 0xaf, 0xe5, 0x3a, 0xf7, 0x43, 0x39, + 0xe1, 0x23, 0x13, 0x72, 0x18, 0x83, 0xd5, 0x33, 0x58, 0x55, 0xe1, 0x87, 0xe7, 0xaa, 0xcb, 0x0c, + 0xdf, 0x71, 0x17, 0xda, 0x6d, 0xe7, 0x7e, 0xdb, 0xf2, 0x64, 0x4a, 0xaf, 0xbd, 0x88, 0x95, 0x8e, + 0x0c, 0xa1, 0xb0, 0x5c, 0xc8, 0xec, 0x2e, 0x54, 0xe1, 0xfa, 0xe5, 0x86, 0xfc, 0xd4, 0xee, 0xc0, + 0x09, 0x79, 0x05, 0x75, 0x97, 0x8e, 0x4e, 0x33, 0xf0, 0xfb, 0xee, 0x7d, 0x59, 0x27, 0x4a, 0x5f, + 0x0c, 0xb1, 0x9e, 0x86, 0x09, 0x71, 0xf6, 0x5a, 0xf8, 0x0b, 0x56, 0x38, 0xf7, 0xb6, 0xa2, 0xe2, + 0x83, 0xbb, 0xdd, 0x0e, 0x47, 0x3b, 0x03, 0x2f, 0x31, 0x89, 0x5c, 0xbb, 0x86, 0x99, 0x5d, 0x38, + 0x8e, 0x00, 0xcf, 0xc3, 0xee, 0x55, 0x26, 0x03, 0xe1, 0x91, 0xd8, 0x92, 0x72, 0xb1, 0xab, 0x8e, + 0x65, 0x37, 0xba, 0x52, 0xda, 0x49, 0x38, 0x1e, 0xa5, 0xbc, 0xe8, 0x5a, 0xe6, 0x1a, 0xbb, 0x7a, + 0xdb, 0xb0, 0xec, 0xe0, 0x12, 0xb8, 0x19, 0xdf, 0x82, 0xb8, 0x48, 0x70, 0x23, 0x1c, 0x32, 0xc4, + 0xcf, 0x2b, 0x4d, 0xfe, 0xfb, 0x4a, 0x8b, 0x0b, 0xa0, 0x6d, 0x0e, 0x18, 0xbd, 0xba, 0xda, 0xab, + 0xf8, 0x0a, 0xc3, 0xf0, 0xf7, 0x79, 0xdb, 0x75, 0xda, 0xed, 0x75, 0x66, 0x17, 0x7d, 0x0e, 0x46, + 0x83, 0x60, 0x29, 0x5e, 0x65, 0x6f, 0x43, 0x35, 0x6b, 0x6a, 0x04, 0xfc, 0x45, 0xd8, 0x2b, 0xe7, + 0x8e, 0x56, 0xde, 0x4f, 0x2b, 0x2a, 0x2d, 0x91, 0x59, 0xc6, 0x51, 0x97, 0xdb, 0x5e, 0x7b, 0x97, + 0x64, 0x2d, 0xe7, 0x3d, 0xe1, 0x97, 0xed, 0xc7, 0x04, 0xb7, 0x33, 0x0d, 0x09, 0x32, 0xbf, 0x0e, + 0x63, 0x2c, 0x1c, 0xc6, 0x5c, 0xa1, 0x20, 0xef, 0xa8, 0xe6, 0xc0, 0x3c, 0x7c, 0xf6, 0xf7, 0xe7, + 0x60, 0x88, 0xa3, 0xa6, 0xdf, 0x24, 0x30, 0x82, 0xad, 0x1e, 0x3a, 0x95, 0x06, 0x29, 0xa5, 0x07, + 0x57, 0x99, 0xce, 0x17, 0x14, 0x8b, 0x6a, 0xcf, 0x7c, 0xeb, 0x93, 0x7f, 0xbe, 0x5f, 0x3a, 0x46, + 0x9f, 0xd6, 0x53, 0xba, 0x7d, 0xb2, 0x35, 0xf4, 0x67, 0x02, 0x13, 0xf1, 0x76, 0x13, 0xad, 0xe7, + 0xad, 0x10, 0xaf, 0x89, 0x56, 0xf4, 0xc2, 0xf2, 0x08, 0xcc, 0xe0, 0xc0, 0xbe, 0x42, 0x2f, 0x28, + 0x80, 0xd5, 0x9a, 0x9b, 0x35, 0x7e, 0xfb, 0xeb, 0x5b, 0xfc, 0x9f, 0xed, 0xe5, 0xf3, 0xf4, 0xac, + 0x42, 0x5e, 0x8f, 0x09, 0xd3, 0x5f, 0x12, 0x18, 0xe2, 0xab, 0xd3, 0xd3, 0x6a, 0x74, 0x92, 0xc4, + 0x99, 0x3c, 0x31, 0xc4, 0x7e, 0x93, 0x63, 0xbf, 0x41, 0x4f, 0x65, 0x62, 0xd1, 0xb7, 0xe4, 0x39, + 0xdd, 0x5e, 0x9e, 0xa6, 0x67, 0x54, 0x98, 0x43, 0x49, 0xfa, 0x09, 0x81, 0xf1, 0x68, 0x6f, 0x89, + 0x5e, 0x50, 0x03, 0x8a, 0x77, 0xc0, 0x2a, 0xb5, 0x82, 0xd2, 0xc8, 0x62, 0x95, 0xb3, 0xf8, 0x9a, + 0x62, 0x07, 0x6a, 0xd8, 0xc1, 0x8a, 0xb2, 0xb9, 0x48, 0xeb, 0xc5, 0xd8, 0xe8, 0xb2, 0xfd, 0xf5, + 0x36, 0x81, 0xb2, 0xac, 0x65, 0xd3, 0x6c, 0xcf, 0x4d, 0x34, 0xb5, 0x2a, 0x67, 0x0b, 0x48, 0x22, + 0x93, 0x53, 0x9c, 0x49, 0x95, 0x1e, 0x4d, 0x43, 0x16, 0x94, 0xbe, 0xbf, 0x5f, 0x82, 0x7d, 0x89, + 0xae, 0x0d, 0xd5, 0x73, 0x17, 0x89, 0xd7, 0x0c, 0x2b, 0x17, 0x8b, 0x2b, 0x20, 0xb8, 0x0f, 0x09, + 0x47, 0xf7, 0x03, 0x42, 0x2f, 0xaa, 0xe0, 0x75, 0x7d, 0xbd, 0xc7, 0x75, 0x74, 0x5a, 0x53, 0xe9, + 0xf4, 0xfa, 0xda, 0x0c, 0xd5, 0x0b, 0xee, 0x4e, 0x60, 0x96, 0x77, 0x4b, 0x70, 0x28, 0xb5, 0x29, + 0x43, 0x2f, 0x15, 0xe0, 0xda, 0xdb, 0x55, 0xaa, 0x3c, 0xdb, 0xaf, 0x1a, 0x1a, 0xea, 0x4d, 0x6e, + 0xa7, 0x4d, 0xfa, 0x42, 0x9e, 0x99, 0x82, 0xc4, 0xbc, 0x66, 0x99, 0xfa, 0x56, 0x34, 0x75, 0xdf, + 0x5e, 0x7e, 0x9e, 0x7e, 0x46, 0x69, 0x31, 0x85, 0x2e, 0xfd, 0x2b, 0x89, 0x3a, 0x88, 0x88, 0x83, + 0x45, 0x1c, 0x24, 0x16, 0x08, 0x2f, 0x16, 0x57, 0x40, 0xde, 0x2d, 0xce, 0xfb, 0x96, 0x7a, 0xab, + 0x7b, 0x43, 0xe1, 0x05, 0x7a, 0x4e, 0xc9, 0x34, 0x1e, 0x0b, 0x1f, 0x10, 0x18, 0x41, 0x00, 0x8a, + 0x6b, 0x26, 0x5e, 0x9c, 0xae, 0x4c, 0xe7, 0x0b, 0x22, 0x87, 0x5b, 0x9c, 0xc3, 0x97, 0xe9, 0xb4, + 0x02, 0x92, 0xbe, 0x15, 0xe6, 0x03, 0x99, 0x91, 0x3c, 0x80, 0x1f, 0x15, 0xe6, 0x97, 0x24, 0x56, + 0x85, 0x15, 0xe8, 0xe3, 0x1d, 0x20, 0x05, 0xfa, 0x44, 0x2b, 0x47, 0x7d, 0x49, 0xca, 0x2a, 0xf2, + 0xdf, 0x09, 0xec, 0x4b, 0x74, 0x3a, 0x14, 0xde, 0x91, 0xde, 0x93, 0x51, 0x78, 0x47, 0x46, 0x13, + 0x45, 0x63, 0x1c, 0xdb, 0x4a, 0x7a, 0xd4, 0x45, 0x6c, 0x5d, 0xe7, 0x10, 0xd1, 0x56, 0xdf, 0x12, + 0xff, 0x6e, 0x2f, 0xd7, 0xe8, 0x79, 0x85, 0x86, 0x9e, 0x10, 0xa7, 0x7f, 0x23, 0x30, 0x11, 0xaf, + 0xbb, 0x2b, 0x52, 0x80, 0xd4, 0x76, 0x4a, 0x45, 0x2f, 0x2c, 0x8f, 0xd4, 0xd6, 0x38, 0x35, 0x23, + 0x3d, 0x64, 0x45, 0xa8, 0xf5, 0x44, 0xb9, 0x7a, 0xfa, 0x9d, 0x25, 0xb9, 0x25, 0xe5, 0xe9, 0xbf, + 0xe5, 0xfb, 0x33, 0xd2, 0xf8, 0xa0, 0x05, 0xb6, 0x22, 0x71, 0x1c, 0x66, 0xfa, 0xd0, 0x40, 0x8a, + 0x0e, 0xa7, 0x68, 0xd1, 0xb9, 0x1c, 0x8a, 0xa9, 0x47, 0x64, 0x36, 0xfd, 0xc6, 0x90, 0x34, 0xd3, + 0x74, 0xe8, 0xaf, 0x09, 0x0c, 0x71, 0x34, 0x8a, 0x9c, 0x27, 0x5a, 0x69, 0x56, 0xe4, 0x3c, 0xb1, + 0x3a, 0xb0, 0xf6, 0x55, 0xce, 0xe4, 0x26, 0x9d, 0xca, 0x84, 0xa4, 0x6f, 0x45, 0x5e, 0xed, 0x99, + 0x07, 0x5c, 0xa2, 0x8f, 0x09, 0xd3, 0x0f, 0x4a, 0xdd, 0x03, 0xce, 0x8b, 0x03, 0xca, 0x03, 0x1e, + 0x6d, 0x7b, 0x28, 0x0f, 0x78, 0xac, 0x9b, 0xa1, 0xfd, 0x56, 0xdc, 0xc1, 0x1f, 0x91, 0xac, 0x8d, + 0xe0, 0xe2, 0x71, 0x4c, 0xdd, 0xd0, 0xc9, 0xeb, 0x11, 0xdb, 0xcb, 0x9f, 0x4d, 0xbf, 0x93, 0x52, + 0xa9, 0x84, 0x93, 0x05, 0xea, 0x97, 0xe9, 0xf3, 0x8a, 0x55, 0xbd, 0x50, 0x32, 0xcd, 0x8e, 0xf4, + 0xbb, 0x04, 0xca, 0xb2, 0x14, 0x4d, 0x73, 0x29, 0x17, 0x48, 0x9f, 0x92, 0x75, 0x6d, 0xad, 0xce, + 0x8d, 0x93, 0x91, 0xa6, 0xf6, 0xa2, 0xa4, 0xff, 0xe2, 0x91, 0x30, 0xd6, 0x2e, 0x50, 0x46, 0xc2, + 0xb4, 0x0e, 0x87, 0x32, 0x12, 0xa6, 0x76, 0x22, 0xb4, 0xbb, 0x1c, 0xe6, 0xeb, 0xca, 0x2d, 0xe4, + 0x87, 0x29, 0xcd, 0x1b, 0xe7, 0xe9, 0x6c, 0xdf, 0x5b, 0xe8, 0xd1, 0x8f, 0x08, 0x8c, 0x45, 0x3a, + 0x01, 0xf4, 0x7c, 0x26, 0xe8, 0xde, 0x9e, 0x44, 0xe5, 0x42, 0x31, 0x61, 0x64, 0xf7, 0x05, 0xce, + 0x6e, 0x91, 0x9e, 0x48, 0x83, 0x69, 0xb4, 0xdb, 0x35, 0x09, 0x6a, 0x39, 0x23, 0xcf, 0x0d, 0x40, + 0xff, 0x8e, 0xc0, 0xb0, 0xa8, 0xef, 0xd3, 0xec, 0xc3, 0x1d, 0x6b, 0x1c, 0x54, 0xa6, 0x72, 0xe5, + 0x10, 0xa5, 0xc9, 0x51, 0xbe, 0x96, 0x7e, 0xcf, 0x7b, 0x5c, 0x36, 0x61, 0xf8, 0x9c, 0x20, 0x16, + 0x37, 0xbc, 0x98, 0x81, 0x7e, 0x8f, 0xc0, 0x58, 0xa4, 0xe8, 0xaf, 0x30, 0x7b, 0x6f, 0xd7, 0x40, + 0x61, 0xf6, 0x94, 0x3e, 0x82, 0x36, 0xcd, 0x09, 0x69, 0xe9, 0x66, 0x17, 0x7f, 0xd5, 0x78, 0x87, + 0x81, 0xbe, 0x45, 0x60, 0x58, 0x14, 0xf8, 0x15, 0x66, 0x8d, 0xf5, 0x12, 0x14, 0x66, 0x8d, 0x77, + 0x17, 0xb4, 0xd3, 0x1c, 0xc5, 0x51, 0x5a, 0x49, 0x4d, 0x89, 0xb8, 0xec, 0xb7, 0x4b, 0x84, 0x3e, + 0x24, 0x00, 0x21, 0x09, 0x7a, 0xae, 0x00, 0x53, 0x09, 0xe5, 0x7c, 0x21, 0x59, 0x84, 0x63, 0x71, + 0x38, 0xad, 0x8c, 0x97, 0x5e, 0x68, 0x14, 0x7d, 0x2b, 0xda, 0xb1, 0xc8, 0x7e, 0x7d, 0x44, 0xcc, + 0x98, 0x50, 0xe9, 0xe6, 0xa5, 0x87, 0x52, 0x0b, 0xa5, 0x8a, 0xd7, 0x87, 0xaa, 0xfa, 0xaa, 0x78, + 0x7d, 0x28, 0xeb, 0xb1, 0xda, 0x1c, 0xe7, 0x9c, 0x91, 0x35, 0x89, 0xd7, 0x30, 0x56, 0x3f, 0x6b, + 0x46, 0x80, 0xf1, 0x37, 0x04, 0x0e, 0xa6, 0x55, 0x4e, 0xe9, 0xbc, 0xea, 0xec, 0x67, 0x55, 0x75, + 0x2b, 0x97, 0xfa, 0xd4, 0x42, 0xe8, 0xb3, 0x1c, 0x7a, 0xc6, 0x7b, 0x00, 0xcb, 0x90, 0xb5, 0x18, + 0x05, 0x8f, 0xbe, 0x43, 0xa0, 0x2c, 0xcb, 0xa8, 0x34, 0xa7, 0x9c, 0x14, 0x56, 0x60, 0x15, 0xb7, + 0x4a, 0xb2, 0x26, 0x8b, 0x3e, 0x7d, 0x9c, 0x1e, 0xcb, 0x36, 0xe8, 0x2a, 0x63, 0xf4, 0x63, 0x02, + 0x07, 0x52, 0xca, 0xac, 0x74, 0x2e, 0xcf, 0x16, 0x29, 0x75, 0xdb, 0xca, 0x7c, 0x7f, 0x4a, 0x88, + 0x74, 0x86, 0x23, 0xcd, 0xc8, 0x57, 0xa4, 0xfd, 0x44, 0x8d, 0xb7, 0x26, 0x6a, 0xbc, 0xf4, 0x0f, + 0x04, 0x9e, 0xea, 0xa9, 0x15, 0xd2, 0x99, 0xbc, 0xf7, 0x52, 0x4f, 0xc1, 0xb7, 0x32, 0xdb, 0x8f, + 0x0a, 0xe2, 0xbd, 0xce, 0xf1, 0x2e, 0xd0, 0x2b, 0x45, 0x1f, 0x5b, 0x7a, 0xa4, 0x86, 0x19, 0xcd, + 0x8b, 0x1f, 0x10, 0xa0, 0xbd, 0x65, 0x53, 0xda, 0x07, 0xa6, 0xc0, 0xf2, 0x73, 0x7d, 0xe9, 0x20, + 0x91, 0xcb, 0x9c, 0xc8, 0xb3, 0x74, 0xfe, 0xd3, 0x10, 0x59, 0x7c, 0xf5, 0x4f, 0x8f, 0xaa, 0xe4, + 0xe1, 0xa3, 0x2a, 0xf9, 0xc7, 0xa3, 0x2a, 0x79, 0xef, 0x71, 0x75, 0xd7, 0xc3, 0xc7, 0xd5, 0x5d, + 0x7f, 0x79, 0x5c, 0xdd, 0xb5, 0x7c, 0x65, 0xcd, 0xf2, 0x6f, 0x6f, 0x34, 0xeb, 0x2d, 0x67, 0x5d, + 0xcc, 0x5c, 0xb3, 0x99, 0x7f, 0xdf, 0x71, 0x5f, 0xc7, 0xaf, 0x36, 0x33, 0xd7, 0x98, 0xab, 0xbf, + 0x11, 0x59, 0x90, 0xff, 0x1f, 0x0c, 0x11, 0xa1, 0xee, 0xcd, 0x34, 0x87, 0x79, 0x9b, 0x6b, 0xee, + 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x03, 0x90, 0x55, 0x29, 0x02, 0x32, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3343,6 +3575,14 @@ type QueryClient interface { // // Since Revision 2 AllowedBridgeChains(ctx context.Context, in *QueryAllowedBridgeChainsRequest, opts ...grpc.CallOption) (*QueryAllowedBridgeChainsResponse, error) + // ProjectEnrollment queries information about a project's enrollment in a + // credit class. + // + // Since Revision 3 + ProjectEnrollment(ctx context.Context, in *QueryProjectEnrollmentRequest, opts ...grpc.CallOption) (*QueryProjectEnrollmentResponse, error) + // ProjectEnrollments queries all credit class enrollments associated with a + // project. + ProjectEnrollments(ctx context.Context, in *QueryProjectEnrollmentsRequest, opts ...grpc.CallOption) (*QueryProjectEnrollmentsResponse, error) } type queryClient struct { @@ -3588,6 +3828,24 @@ func (c *queryClient) AllowedBridgeChains(ctx context.Context, in *QueryAllowedB return out, nil } +func (c *queryClient) ProjectEnrollment(ctx context.Context, in *QueryProjectEnrollmentRequest, opts ...grpc.CallOption) (*QueryProjectEnrollmentResponse, error) { + out := new(QueryProjectEnrollmentResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/ProjectEnrollment", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ProjectEnrollments(ctx context.Context, in *QueryProjectEnrollmentsRequest, opts ...grpc.CallOption) (*QueryProjectEnrollmentsResponse, error) { + out := new(QueryProjectEnrollmentsResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/ProjectEnrollments", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // Classes queries for all credit classes with pagination. @@ -3666,6 +3924,14 @@ type QueryServer interface { // // Since Revision 2 AllowedBridgeChains(context.Context, *QueryAllowedBridgeChainsRequest) (*QueryAllowedBridgeChainsResponse, error) + // ProjectEnrollment queries information about a project's enrollment in a + // credit class. + // + // Since Revision 3 + ProjectEnrollment(context.Context, *QueryProjectEnrollmentRequest) (*QueryProjectEnrollmentResponse, error) + // ProjectEnrollments queries all credit class enrollments associated with a + // project. + ProjectEnrollments(context.Context, *QueryProjectEnrollmentsRequest) (*QueryProjectEnrollmentsResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -3750,6 +4016,12 @@ func (*UnimplementedQueryServer) ClassFee(ctx context.Context, req *QueryClassFe func (*UnimplementedQueryServer) AllowedBridgeChains(ctx context.Context, req *QueryAllowedBridgeChainsRequest) (*QueryAllowedBridgeChainsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AllowedBridgeChains not implemented") } +func (*UnimplementedQueryServer) ProjectEnrollment(ctx context.Context, req *QueryProjectEnrollmentRequest) (*QueryProjectEnrollmentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProjectEnrollment not implemented") +} +func (*UnimplementedQueryServer) ProjectEnrollments(ctx context.Context, req *QueryProjectEnrollmentsRequest) (*QueryProjectEnrollmentsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProjectEnrollments not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -4223,6 +4495,42 @@ func _Query_AllowedBridgeChains_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _Query_ProjectEnrollment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProjectEnrollmentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ProjectEnrollment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Query/ProjectEnrollment", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ProjectEnrollment(ctx, req.(*QueryProjectEnrollmentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ProjectEnrollments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProjectEnrollmentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ProjectEnrollments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Query/ProjectEnrollments", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ProjectEnrollments(ctx, req.(*QueryProjectEnrollmentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "regen.ecocredit.v1.Query", HandlerType: (*QueryServer)(nil), @@ -4331,6 +4639,14 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "AllowedBridgeChains", Handler: _Query_AllowedBridgeChains_Handler, }, + { + MethodName: "ProjectEnrollment", + Handler: _Query_ProjectEnrollment_Handler, + }, + { + MethodName: "ProjectEnrollments", + Handler: _Query_ProjectEnrollments_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "regen/ecocredit/v1/query.proto", @@ -6620,40 +6936,203 @@ func (m *QueryAllowedBridgeChainsResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *QueryProjectEnrollmentRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *QueryClassesRequest) Size() (n int) { - if m == nil { - return 0 - } + +func (m *QueryProjectEnrollmentRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProjectEnrollmentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 } - return n + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ProjectId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *QueryClassesResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryProjectEnrollmentResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *QueryProjectEnrollmentResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProjectEnrollmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Classes) > 0 { - for _, e := range m.Classes { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) + if m.ProjectClass != nil { + { + size, err := m.ProjectClass.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryProjectEnrollmentsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryProjectEnrollmentsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProjectEnrollmentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ProjectId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryProjectEnrollmentsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryProjectEnrollmentsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProjectEnrollmentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Enrollments) > 0 { + for iNdEx := len(m.Enrollments) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Enrollments[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryClassesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryClassesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Classes) > 0 { + for _, e := range m.Classes { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) } } if m.Pagination != nil { @@ -7559,6 +8038,72 @@ func (m *QueryAllowedBridgeChainsResponse) Size() (n int) { return n } +func (m *QueryProjectEnrollmentRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryProjectEnrollmentResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProjectClass != nil { + l = m.ProjectClass.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryProjectEnrollmentsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryProjectEnrollmentsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Enrollments) > 0 { + for _, e := range m.Enrollments { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -13665,6 +14210,444 @@ func (m *QueryAllowedBridgeChainsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryProjectEnrollmentRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryProjectEnrollmentRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProjectEnrollmentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryProjectEnrollmentResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryProjectEnrollmentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProjectEnrollmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProjectClass", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProjectClass == nil { + m.ProjectClass = &ProjectEnrollment{} + } + if err := m.ProjectClass.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryProjectEnrollmentsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryProjectEnrollmentsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProjectEnrollmentsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryProjectEnrollmentsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryProjectEnrollmentsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProjectEnrollmentsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Enrollments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Enrollments = append(m.Enrollments, &ProjectEnrollment{}) + if err := m.Enrollments[len(m.Enrollments)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/ecocredit/base/types/v1/query.pb.gw.go b/x/ecocredit/base/types/v1/query.pb.gw.go index 9c4ac8b1ce..a422f505f5 100644 --- a/x/ecocredit/base/types/v1/query.pb.gw.go +++ b/x/ecocredit/base/types/v1/query.pb.gw.go @@ -2547,6 +2547,154 @@ func local_request_Query_AllowedBridgeChains_0(ctx context.Context, marshaler ru } +func request_Query_ProjectEnrollment_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProjectEnrollmentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := client.ProjectEnrollment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_ProjectEnrollment_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProjectEnrollmentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := server.ProjectEnrollment(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_ProjectEnrollments_0 = &utilities.DoubleArray{Encoding: map[string]int{"project_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_ProjectEnrollments_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProjectEnrollmentsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ProjectEnrollments_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ProjectEnrollments(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_ProjectEnrollments_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProjectEnrollmentsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ProjectEnrollments_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ProjectEnrollments(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -3565,6 +3713,52 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_ProjectEnrollment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_ProjectEnrollment_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ProjectEnrollment_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ProjectEnrollments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_ProjectEnrollments_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ProjectEnrollments_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -4486,6 +4680,46 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_ProjectEnrollment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_ProjectEnrollment_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ProjectEnrollment_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ProjectEnrollments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_ProjectEnrollments_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ProjectEnrollments_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -4577,6 +4811,10 @@ var ( pattern_Query_ClassFee_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"regen", "ecocredit", "v1", "class-fee"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_AllowedBridgeChains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"regen", "ecocredit", "v1", "allowed-bridge-chains"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_ProjectEnrollment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"regen", "ecocredit", "v1", "project", "project_id", "enrollments", "class_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_ProjectEnrollments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"regen", "ecocredit", "v1", "project", "project_id", "enrollments"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -4667,4 +4905,8 @@ var ( forward_Query_ClassFee_0 = runtime.ForwardResponseMessage forward_Query_AllowedBridgeChains_0 = runtime.ForwardResponseMessage + + forward_Query_ProjectEnrollment_0 = runtime.ForwardResponseMessage + + forward_Query_ProjectEnrollments_0 = runtime.ForwardResponseMessage ) diff --git a/x/ecocredit/base/types/v1/state.pb.go b/x/ecocredit/base/types/v1/state.pb.go index b7bbca8f5f..7c6f1bd9c5 100644 --- a/x/ecocredit/base/types/v1/state.pb.go +++ b/x/ecocredit/base/types/v1/state.pb.go @@ -25,6 +25,57 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// Application represents the evaluation status that a credit class issuer +// assigns to a credit class application. +type ProjectEnrollmentStatus int32 + +const ( + // PROJECT_ENROLLMENT_STATUS_UNSPECIFIED indicates that a credit class application + // has been submitted but not evaluated. + ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_UNSPECIFIED ProjectEnrollmentStatus = 0 + // PROJECT_ENROLLMENT_STATUS_ACCEPTED indicates that the project has been + // accepted into the credit class. + ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_ACCEPTED ProjectEnrollmentStatus = 1 + // PROJECT_ENROLLMENT_STATUS_CHANGES_REQUESTED indicates that an application to + // a credit class has been reviewed and that changes to the application have + // been requested. It can also be used to indicate that a project within a credit + // class has had its status reassessed and that changes to the project are + // requested in order to continue in the credit class. + ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_CHANGES_REQUESTED ProjectEnrollmentStatus = 2 + // PROJECT_ENROLLMENT_STATUS_REJECTED indicates that the application has been + // rejected and that the project will not be accepted into the credit class. + ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_REJECTED ProjectEnrollmentStatus = 3 + // PROJECT_ENROLLMENT_STATUS_TERMINATED indicates that the project has been + // terminated from the credit class. This status is used when a project the + // was previously accepted into the credit class but has been removed or + // completed. + ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_TERMINATED ProjectEnrollmentStatus = 4 +) + +var ProjectEnrollmentStatus_name = map[int32]string{ + 0: "PROJECT_ENROLLMENT_STATUS_UNSPECIFIED", + 1: "PROJECT_ENROLLMENT_STATUS_ACCEPTED", + 2: "PROJECT_ENROLLMENT_STATUS_CHANGES_REQUESTED", + 3: "PROJECT_ENROLLMENT_STATUS_REJECTED", + 4: "PROJECT_ENROLLMENT_STATUS_TERMINATED", +} + +var ProjectEnrollmentStatus_value = map[string]int32{ + "PROJECT_ENROLLMENT_STATUS_UNSPECIFIED": 0, + "PROJECT_ENROLLMENT_STATUS_ACCEPTED": 1, + "PROJECT_ENROLLMENT_STATUS_CHANGES_REQUESTED": 2, + "PROJECT_ENROLLMENT_STATUS_REJECTED": 3, + "PROJECT_ENROLLMENT_STATUS_TERMINATED": 4, +} + +func (x ProjectEnrollmentStatus) String() string { + return proto.EnumName(ProjectEnrollmentStatus_name, int32(x)) +} + +func (ProjectEnrollmentStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6cfdca0a4aaabb36, []int{0} +} + // CreditType defines the measurement unit/precision of a certain credit type // (e.g. carbon, biodiversity...) type CreditType struct { @@ -357,8 +408,9 @@ type Batch struct { // for efficient lookups. This links a credit batch to a project. ProjectKey uint64 `protobuf:"varint,3,opt,name=project_key,json=projectKey,proto3" json:"project_key,omitempty"` // denom is the unique identifier of the credit batch formed from the - // project id, the batch sequence number, and the start and end date of the - // credit batch. + // credit class ID (or just project ID for old project IDs which included the credit class), + // project id, the batch sequence number, and the start and + // end date of the credit batch. Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"` // metadata is any arbitrary metadata attached to the credit batch. Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` @@ -373,6 +425,9 @@ type Batch struct { // open tells if it's possible to mint new credits in the future. // Once `open` is set to false, it can't be toggled any more. Open bool `protobuf:"varint,9,opt,name=open,proto3" json:"open,omitempty"` + // class_key is the table row identifier of the credit class used internally + // for efficient lookups. This links a batch to a credit class. + ClassKey uint64 `protobuf:"varint,10,opt,name=class_key,json=classKey,proto3" json:"class_key,omitempty"` } func (m *Batch) Reset() { *m = Batch{} } @@ -471,6 +526,13 @@ func (m *Batch) GetOpen() bool { return false } +func (m *Batch) GetClassKey() uint64 { + if m != nil { + return m.ClassKey + } + return 0 +} + // ClassSequence stores and increments the sequence number for credit classes // within a credit type. type ClassSequence struct { @@ -1162,7 +1224,144 @@ func (m *AllowedBridgeChain) GetChainName() string { return "" } +// ProjectEnrollment stores the data a project's enrollment in a credit class. +type ProjectEnrollment struct { + // project_key is the table row identifier of the project used internally for + // efficient lookups. + ProjectKey uint64 `protobuf:"varint,1,opt,name=project_key,json=projectKey,proto3" json:"project_key,omitempty"` + // class_key is the table row identifier of the credit class used internally + // for efficient lookups. + ClassKey uint64 `protobuf:"varint,3,opt,name=class_key,json=classKey,proto3" json:"class_key,omitempty"` + // status is the status of the enrollment. + Status ProjectEnrollmentStatus `protobuf:"varint,4,opt,name=status,proto3,enum=regen.ecocredit.v1.ProjectEnrollmentStatus" json:"status,omitempty"` + // application_metadata is any arbitrary metadata set by the project + // admin related to its application to the credit class. + ApplicationMetadata string `protobuf:"bytes,5,opt,name=application_metadata,json=applicationMetadata,proto3" json:"application_metadata,omitempty"` + // enrollment_metadata is any arbitrary metadata set by the credit class + // admin evaluating the project's application to the credit class. + EnrollmentMetadata string `protobuf:"bytes,6,opt,name=enrollment_metadata,json=enrollmentMetadata,proto3" json:"enrollment_metadata,omitempty"` +} + +func (m *ProjectEnrollment) Reset() { *m = ProjectEnrollment{} } +func (m *ProjectEnrollment) String() string { return proto.CompactTextString(m) } +func (*ProjectEnrollment) ProtoMessage() {} +func (*ProjectEnrollment) Descriptor() ([]byte, []int) { + return fileDescriptor_6cfdca0a4aaabb36, []int{16} +} +func (m *ProjectEnrollment) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProjectEnrollment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProjectEnrollment.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ProjectEnrollment) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectEnrollment.Merge(m, src) +} +func (m *ProjectEnrollment) XXX_Size() int { + return m.Size() +} +func (m *ProjectEnrollment) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectEnrollment.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectEnrollment proto.InternalMessageInfo + +func (m *ProjectEnrollment) GetProjectKey() uint64 { + if m != nil { + return m.ProjectKey + } + return 0 +} + +func (m *ProjectEnrollment) GetClassKey() uint64 { + if m != nil { + return m.ClassKey + } + return 0 +} + +func (m *ProjectEnrollment) GetStatus() ProjectEnrollmentStatus { + if m != nil { + return m.Status + } + return ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_UNSPECIFIED +} + +func (m *ProjectEnrollment) GetApplicationMetadata() string { + if m != nil { + return m.ApplicationMetadata + } + return "" +} + +func (m *ProjectEnrollment) GetEnrollmentMetadata() string { + if m != nil { + return m.EnrollmentMetadata + } + return "" +} + +// ProjectFee is the project creation fee. If not set, a project creation fee is +// not required. This table is controlled via governance. +// +// Since Revision 3 +type ProjectFee struct { + // fee is the project creation fee. If not set, a project creation fee is not + // required. + Fee *types1.Coin `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"` +} + +func (m *ProjectFee) Reset() { *m = ProjectFee{} } +func (m *ProjectFee) String() string { return proto.CompactTextString(m) } +func (*ProjectFee) ProtoMessage() {} +func (*ProjectFee) Descriptor() ([]byte, []int) { + return fileDescriptor_6cfdca0a4aaabb36, []int{17} +} +func (m *ProjectFee) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProjectFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProjectFee.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ProjectFee) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectFee.Merge(m, src) +} +func (m *ProjectFee) XXX_Size() int { + return m.Size() +} +func (m *ProjectFee) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectFee.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectFee proto.InternalMessageInfo + +func (m *ProjectFee) GetFee() *types1.Coin { + if m != nil { + return m.Fee + } + return nil +} + func init() { + proto.RegisterEnum("regen.ecocredit.v1.ProjectEnrollmentStatus", ProjectEnrollmentStatus_name, ProjectEnrollmentStatus_value) proto.RegisterType((*CreditType)(nil), "regen.ecocredit.v1.CreditType") proto.RegisterType((*Class)(nil), "regen.ecocredit.v1.Class") proto.RegisterType((*ClassIssuer)(nil), "regen.ecocredit.v1.ClassIssuer") @@ -1179,86 +1378,103 @@ func init() { proto.RegisterType((*AllowedClassCreator)(nil), "regen.ecocredit.v1.AllowedClassCreator") proto.RegisterType((*ClassFee)(nil), "regen.ecocredit.v1.ClassFee") proto.RegisterType((*AllowedBridgeChain)(nil), "regen.ecocredit.v1.AllowedBridgeChain") + proto.RegisterType((*ProjectEnrollment)(nil), "regen.ecocredit.v1.ProjectEnrollment") + proto.RegisterType((*ProjectFee)(nil), "regen.ecocredit.v1.ProjectFee") } func init() { proto.RegisterFile("regen/ecocredit/v1/state.proto", fileDescriptor_6cfdca0a4aaabb36) } var fileDescriptor_6cfdca0a4aaabb36 = []byte{ - // 1179 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x8e, 0xdc, 0xc4, - 0x13, 0x8f, 0xe7, 0x63, 0xc7, 0x53, 0xf3, 0xe5, 0xf4, 0x66, 0x37, 0xce, 0xfe, 0xf3, 0x9f, 0x04, - 0x03, 0x4a, 0x22, 0x16, 0x8f, 0x36, 0x80, 0x04, 0x46, 0x22, 0xda, 0xdd, 0x80, 0x14, 0x45, 0x02, - 0x34, 0xe4, 0x02, 0x97, 0xa1, 0xc7, 0xae, 0xcc, 0x3a, 0x19, 0xdb, 0x43, 0xbb, 0x67, 0xb3, 0x7b, - 0xe5, 0x01, 0x10, 0x27, 0xc4, 0x01, 0xf1, 0x02, 0xbc, 0x02, 0x0f, 0x00, 0xb7, 0x48, 0x5c, 0x38, - 0xa2, 0xe4, 0x0d, 0x10, 0x27, 0x4e, 0xa8, 0xcb, 0x6d, 0xcf, 0x78, 0x98, 0x6c, 0x56, 0xdc, 0x5c, - 0xd5, 0xf5, 0xf1, 0xab, 0x5f, 0x57, 0xb5, 0x0b, 0xfa, 0x02, 0x27, 0x18, 0x0f, 0xd0, 0x4f, 0x7c, - 0x81, 0x41, 0x28, 0x07, 0xc7, 0x7b, 0x83, 0x54, 0x72, 0x89, 0xee, 0x4c, 0x24, 0x32, 0x61, 0x8c, - 0xce, 0xdd, 0xe2, 0xdc, 0x3d, 0xde, 0xdb, 0xe9, 0xfb, 0x49, 0x1a, 0x25, 0xe9, 0x60, 0xcc, 0x53, - 0x1c, 0x1c, 0xef, 0x8d, 0x51, 0xf2, 0xbd, 0x81, 0x9f, 0x84, 0x71, 0xe6, 0xb3, 0x73, 0x59, 0x9f, - 0x27, 0x22, 0x52, 0xe1, 0x12, 0x11, 0xe9, 0x83, 0x6b, 0x93, 0x24, 0x99, 0x4c, 0x71, 0x40, 0xd2, - 0x78, 0xfe, 0x70, 0x20, 0xc3, 0x08, 0x53, 0xc9, 0xa3, 0x59, 0x66, 0xe0, 0xfc, 0x60, 0x00, 0x1c, - 0x52, 0x9e, 0x07, 0xa7, 0x33, 0x64, 0x0e, 0xb4, 0xf9, 0x78, 0x2c, 0xf0, 0x38, 0xe4, 0x32, 0x4c, - 0x62, 0xdb, 0xb8, 0x6e, 0xdc, 0x6c, 0x0e, 0x4b, 0x3a, 0xc6, 0xa0, 0x16, 0xf3, 0x08, 0xed, 0x0a, - 0x9d, 0xd1, 0xb7, 0xd2, 0xcd, 0xe3, 0x50, 0xda, 0xd5, 0x4c, 0xa7, 0xbe, 0xd9, 0x55, 0x68, 0xce, - 0x04, 0xfa, 0x61, 0xaa, 0x02, 0xd5, 0xae, 0x1b, 0x37, 0x3b, 0xc3, 0x85, 0xc2, 0x7b, 0xed, 0xcf, - 0x1f, 0x7f, 0xfb, 0xa6, 0xda, 0x87, 0x6e, 0x39, 0x23, 0x83, 0x2c, 0xba, 0x65, 0xd8, 0x86, 0x6d, - 0x38, 0xbf, 0x1a, 0x50, 0x3f, 0x9c, 0xf2, 0x34, 0x65, 0x16, 0x54, 0x1f, 0xe3, 0x29, 0x01, 0xaa, - 0x0d, 0xd5, 0x27, 0xeb, 0x42, 0x25, 0x0c, 0x34, 0x8a, 0x4a, 0x18, 0xb0, 0x4b, 0x50, 0xe7, 0x41, - 0x14, 0xc6, 0x04, 0xa2, 0x3d, 0xcc, 0x04, 0xb6, 0x03, 0x66, 0x84, 0x92, 0x07, 0x5c, 0x72, 0x02, - 0xd1, 0x1c, 0x16, 0x32, 0xdb, 0x05, 0x96, 0x71, 0x3c, 0x92, 0xa7, 0x33, 0x1c, 0x65, 0x38, 0xec, - 0x3a, 0x59, 0x59, 0x7e, 0xc1, 0xca, 0x3e, 0xe9, 0xbd, 0x0f, 0x08, 0xf1, 0xbb, 0xd0, 0x20, 0x24, - 0x96, 0xc1, 0x4c, 0x05, 0x40, 0x01, 0x65, 0x4d, 0x9d, 0xda, 0xaa, 0xb0, 0xed, 0x75, 0x31, 0xad, - 0xaa, 0x5d, 0x71, 0xbe, 0x84, 0x16, 0x95, 0x72, 0x2f, 0x4d, 0xe7, 0x28, 0xd8, 0xff, 0xa0, 0xe9, - 0x2b, 0x71, 0xb4, 0x28, 0xcb, 0x24, 0xc5, 0x7d, 0x3c, 0x65, 0xdb, 0xb0, 0x11, 0x92, 0x19, 0xd5, - 0xd7, 0x1e, 0x6a, 0xc9, 0xbb, 0x4a, 0x18, 0xb6, 0x81, 0x81, 0x55, 0x38, 0xef, 0x6a, 0xcb, 0xaa, - 0xf3, 0x53, 0x05, 0x1a, 0x9f, 0x8a, 0xe4, 0x11, 0xfa, 0xf2, 0x3f, 0xf3, 0x55, 0x82, 0x55, 0x5b, - 0x81, 0xe5, 0x40, 0xfb, 0xd1, 0x5c, 0x84, 0x69, 0x10, 0xfa, 0xd4, 0x1e, 0x19, 0x55, 0x25, 0x5d, - 0x89, 0xf0, 0x8d, 0x15, 0xc2, 0x5f, 0x81, 0xb6, 0xc0, 0x87, 0x28, 0x30, 0xf6, 0x71, 0x14, 0x06, - 0x76, 0x83, 0xce, 0x5b, 0x85, 0xee, 0x5e, 0xe0, 0x1d, 0x51, 0x85, 0xe3, 0x75, 0x2c, 0x33, 0x68, - 0x2f, 0x15, 0x1d, 0x58, 0x95, 0x65, 0xe6, 0xab, 0xcc, 0x2a, 0x07, 0xb7, 0x6a, 0x6c, 0x07, 0xb6, - 0x17, 0x0e, 0xa5, 0xb3, 0xba, 0x5d, 0x73, 0xbe, 0xaf, 0x42, 0xfd, 0x80, 0x4b, 0xff, 0x68, 0x0d, - 0x57, 0x2f, 0xe0, 0x9f, 0x5d, 0x83, 0xd6, 0x2c, 0x23, 0x98, 0xf8, 0xa9, 0x92, 0x07, 0x68, 0x95, - 0x62, 0xe8, 0x12, 0xd4, 0x03, 0x8c, 0x93, 0x48, 0xf7, 0x5a, 0x26, 0x94, 0x38, 0xa9, 0xaf, 0x70, - 0xf2, 0x1e, 0x40, 0x2a, 0xb9, 0x90, 0xa3, 0x80, 0x4b, 0x24, 0xc6, 0x5a, 0xb7, 0x77, 0xdc, 0x6c, - 0x6e, 0xdd, 0x7c, 0x6e, 0xdd, 0x07, 0xf9, 0xdc, 0x0e, 0x9b, 0x64, 0x7d, 0x97, 0x4b, 0x64, 0xef, - 0x80, 0x89, 0x71, 0x90, 0x39, 0x36, 0x5e, 0xea, 0xd8, 0xc0, 0x38, 0x20, 0xb7, 0x3b, 0xd0, 0x51, - 0xe5, 0x70, 0xc5, 0x05, 0xf9, 0x9a, 0x2f, 0xf5, 0x6d, 0xe7, 0x0e, 0x14, 0x80, 0x41, 0x2d, 0x99, - 0x61, 0x6c, 0x37, 0xaf, 0x1b, 0x37, 0xcd, 0x21, 0x7d, 0x7b, 0xf7, 0xe9, 0xde, 0x3e, 0x5c, 0xdc, - 0x5b, 0x4b, 0x33, 0x41, 0x57, 0xd7, 0x2b, 0xf1, 0x66, 0x55, 0x58, 0x77, 0xb9, 0x6a, 0xab, 0xca, - 0x20, 0x27, 0xdc, 0xaa, 0xd9, 0x75, 0xe7, 0x6b, 0x03, 0x3a, 0x34, 0x2b, 0x9f, 0xe1, 0x57, 0x73, - 0x75, 0x67, 0x2f, 0x18, 0x55, 0x63, 0xfd, 0xa8, 0xb2, 0x57, 0xa1, 0x13, 0xe3, 0x89, 0x1c, 0xa5, - 0xda, 0x9d, 0x6e, 0xb1, 0x36, 0x6c, 0x2b, 0x65, 0x1e, 0xd2, 0xeb, 0x13, 0x62, 0x1b, 0x2e, 0xad, - 0x0d, 0xbd, 0xe1, 0x3c, 0x82, 0x9e, 0x1e, 0xa6, 0x02, 0xc5, 0x99, 0x33, 0x7b, 0xae, 0xa4, 0x5b, - 0x94, 0xb4, 0x07, 0xad, 0xe5, 0x48, 0x0d, 0x27, 0x86, 0x0e, 0xb5, 0x62, 0x91, 0x69, 0xa5, 0xd1, - 0x8c, 0x7f, 0x35, 0xda, 0xb9, 0xb2, 0x5d, 0xa6, 0x6c, 0x17, 0xa1, 0x53, 0x8e, 0x66, 0x3a, 0x7f, - 0x19, 0xd0, 0xa6, 0x84, 0x07, 0x7c, 0xca, 0x75, 0x65, 0x63, 0x25, 0x2f, 0x57, 0x46, 0x0a, 0x95, - 0xcb, 0x86, 0x06, 0x0f, 0x02, 0x81, 0x69, 0xaa, 0xc7, 0x21, 0x17, 0xd9, 0x0d, 0xe8, 0x49, 0xc1, - 0x03, 0x3e, 0x9e, 0xe2, 0x88, 0x47, 0xc9, 0x3c, 0xce, 0x7f, 0x01, 0xdd, 0x5c, 0xbd, 0x4f, 0x5a, - 0xf6, 0x3a, 0x74, 0x05, 0xca, 0x50, 0x60, 0x90, 0xdb, 0x65, 0x03, 0xd2, 0xd1, 0x5a, 0x6d, 0x76, - 0x03, 0x7a, 0x98, 0xfa, 0x22, 0x79, 0xb2, 0xb0, 0xcb, 0xe6, 0xa5, 0x9b, 0xab, 0x33, 0x43, 0xef, - 0x6d, 0xaa, 0xcc, 0x85, 0x4d, 0xb8, 0xa8, 0xb1, 0xec, 0x16, 0xf8, 0xd9, 0x16, 0x5c, 0x2c, 0x84, - 0x5d, 0x7d, 0x6c, 0x19, 0x76, 0xd3, 0xf9, 0xd9, 0x80, 0x56, 0xc6, 0xf3, 0x7c, 0x36, 0x9b, 0x9e, - 0x9e, 0x5d, 0xf5, 0x9a, 0xda, 0x2a, 0xe7, 0xac, 0xad, 0xba, 0xae, 0xb6, 0x5b, 0x60, 0xf9, 0x8a, - 0xeb, 0xe9, 0x74, 0x95, 0x84, 0x5e, 0xa1, 0xd7, 0xd5, 0x2d, 0x75, 0xc9, 0x02, 0x1f, 0x38, 0x73, - 0xe8, 0x7c, 0x22, 0xc2, 0x49, 0x18, 0x3f, 0x38, 0xb9, 0x17, 0x07, 0x78, 0x72, 0x76, 0x3f, 0xae, - 0xbe, 0xf7, 0xdb, 0xb0, 0x91, 0x26, 0x73, 0xe1, 0xa3, 0x86, 0xa7, 0x25, 0xef, 0x1a, 0x25, 0xbb, - 0x02, 0x5b, 0xb0, 0xb9, 0xfc, 0xbc, 0xee, 0x6a, 0xe3, 0x96, 0xf3, 0x9d, 0xa1, 0xbb, 0xf3, 0x30, - 0x89, 0xa5, 0xe0, 0xbe, 0x3c, 0x9b, 0xb7, 0x12, 0xa8, 0xca, 0x0a, 0xa8, 0x1d, 0x30, 0x7d, 0x1d, - 0x45, 0xc3, 0x28, 0x64, 0x6f, 0x40, 0x40, 0x6e, 0x95, 0xaa, 0x66, 0x36, 0xb0, 0x05, 0xaa, 0xdc, - 0x94, 0xb6, 0x83, 0xb6, 0xf3, 0x3e, 0x6c, 0xd1, 0x2b, 0x71, 0x28, 0x90, 0xcb, 0x44, 0xec, 0x4f, - 0xa7, 0xc9, 0x93, 0x69, 0x98, 0x4a, 0xd5, 0xb0, 0x18, 0xab, 0x1b, 0x0a, 0x08, 0x9d, 0x39, 0xcc, - 0x45, 0xcf, 0xfc, 0x5b, 0xe5, 0xa8, 0x98, 0x1d, 0xe7, 0x2e, 0x6c, 0x92, 0x03, 0x06, 0xcb, 0x31, - 0x96, 0x7b, 0xdd, 0x28, 0xf5, 0xba, 0xb7, 0x49, 0xf0, 0x3a, 0xd0, 0x5c, 0x58, 0x74, 0x9d, 0x7d, - 0x30, 0xc9, 0xfd, 0x23, 0x44, 0xf6, 0x06, 0x54, 0x1f, 0x22, 0x92, 0x5b, 0xeb, 0xf6, 0x15, 0x37, - 0xdb, 0xc9, 0x5c, 0xb5, 0xb3, 0xb9, 0x7a, 0x67, 0x73, 0x0f, 0x93, 0x30, 0x1e, 0x2a, 0xab, 0x02, - 0x48, 0xcf, 0xb9, 0x0f, 0x4c, 0x03, 0x39, 0x10, 0x61, 0x30, 0xc1, 0xc3, 0x23, 0x1e, 0xc6, 0xec, - 0xff, 0x00, 0xbe, 0xfa, 0x18, 0xd1, 0xae, 0x95, 0x3d, 0x74, 0x4d, 0xd2, 0x7c, 0xcc, 0x23, 0xf4, - 0xb6, 0x09, 0x8c, 0x05, 0xed, 0x92, 0x99, 0x75, 0xf0, 0xf9, 0x2f, 0xcf, 0xfa, 0xc6, 0xd3, 0x67, - 0x7d, 0xe3, 0x8f, 0x67, 0x7d, 0xe3, 0xdb, 0xe7, 0xfd, 0x0b, 0x4f, 0x9f, 0xf7, 0x2f, 0xfc, 0xfe, - 0xbc, 0x7f, 0xe1, 0x8b, 0x3b, 0x93, 0x50, 0x1e, 0xcd, 0xc7, 0xae, 0x9f, 0x44, 0x03, 0x5a, 0x31, - 0xdf, 0x8c, 0x51, 0x3e, 0x49, 0xc4, 0x63, 0x2d, 0x4d, 0x31, 0x98, 0xa0, 0x18, 0x9c, 0x2c, 0x6d, - 0xa6, 0xb4, 0x6e, 0xaa, 0x47, 0x31, 0x55, 0x4b, 0xe7, 0x06, 0xfd, 0x17, 0xde, 0xfa, 0x27, 0x00, - 0x00, 0xff, 0xff, 0x04, 0xa3, 0xef, 0x4e, 0xc1, 0x0a, 0x00, 0x00, + // 1413 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcd, 0x72, 0xdb, 0xd4, + 0x17, 0x8f, 0xfc, 0x91, 0xd8, 0xc7, 0x1f, 0x51, 0x6e, 0xbe, 0xd4, 0xfc, 0xfb, 0x77, 0x8b, 0x68, + 0x69, 0xda, 0x06, 0x9b, 0x14, 0x98, 0x01, 0x33, 0x43, 0xc7, 0x71, 0x5c, 0x08, 0x6d, 0xd3, 0xa0, + 0xb8, 0x0b, 0xba, 0x11, 0xd7, 0xd2, 0x6d, 0xa2, 0x56, 0x96, 0x8c, 0x74, 0x9d, 0x26, 0x5b, 0x1e, + 0x80, 0x61, 0xc5, 0x8a, 0xe1, 0x05, 0xe0, 0x11, 0x58, 0xb2, 0x80, 0x5d, 0x67, 0xd8, 0xb0, 0x64, + 0xda, 0x07, 0x60, 0x86, 0x61, 0xc5, 0x8a, 0xb9, 0x47, 0x57, 0xb2, 0xe5, 0x3a, 0x69, 0xa7, 0x3b, + 0x9d, 0xef, 0xdf, 0xf9, 0xdd, 0x73, 0xa4, 0x2b, 0xa8, 0x05, 0xec, 0x80, 0x79, 0x0d, 0x66, 0xf9, + 0x56, 0xc0, 0x6c, 0x87, 0x37, 0x8e, 0x36, 0x1b, 0x21, 0xa7, 0x9c, 0xd5, 0x07, 0x81, 0xcf, 0x7d, + 0x42, 0xd0, 0x5e, 0x4f, 0xec, 0xf5, 0xa3, 0xcd, 0xb5, 0x9a, 0xe5, 0x87, 0x7d, 0x3f, 0x6c, 0xf4, + 0x68, 0xc8, 0x1a, 0x47, 0x9b, 0x3d, 0xc6, 0xe9, 0x66, 0xc3, 0xf2, 0x1d, 0x2f, 0x8a, 0x59, 0x5b, + 0x95, 0x76, 0x3f, 0xe8, 0x8b, 0x74, 0x7e, 0xd0, 0x97, 0x86, 0x0b, 0x07, 0xbe, 0x7f, 0xe0, 0xb2, + 0x06, 0x4a, 0xbd, 0xe1, 0xc3, 0x06, 0x77, 0xfa, 0x2c, 0xe4, 0xb4, 0x3f, 0x88, 0x1c, 0xf4, 0xef, + 0x15, 0x80, 0x36, 0xd6, 0xe9, 0x9e, 0x0c, 0x18, 0xd1, 0xa1, 0x4c, 0x7b, 0xbd, 0x80, 0x1d, 0x39, + 0x94, 0x3b, 0xbe, 0xa7, 0x29, 0x17, 0x95, 0xf5, 0xa2, 0x91, 0xd2, 0x11, 0x02, 0x39, 0x8f, 0xf6, + 0x99, 0x96, 0x41, 0x1b, 0x3e, 0x0b, 0xdd, 0xd0, 0x73, 0xb8, 0x96, 0x8d, 0x74, 0xe2, 0x99, 0x9c, + 0x87, 0xe2, 0x20, 0x60, 0x96, 0x13, 0x8a, 0x44, 0xb9, 0x8b, 0xca, 0x7a, 0xc5, 0x18, 0x29, 0x9a, + 0x97, 0xfe, 0xfe, 0xe1, 0xf7, 0x6f, 0xb2, 0x35, 0xa8, 0xa6, 0x2b, 0x12, 0x88, 0xb2, 0xab, 0x8a, + 0xa6, 0x68, 0x8a, 0xfe, 0x9b, 0x02, 0xf9, 0xb6, 0x4b, 0xc3, 0x90, 0xa8, 0x90, 0x7d, 0xcc, 0x4e, + 0x10, 0x50, 0xce, 0x10, 0x8f, 0xa4, 0x0a, 0x19, 0xc7, 0x96, 0x28, 0x32, 0x8e, 0x4d, 0x96, 0x20, + 0x4f, 0xed, 0xbe, 0xe3, 0x21, 0x88, 0xb2, 0x11, 0x09, 0x64, 0x0d, 0x0a, 0x7d, 0xc6, 0xa9, 0x4d, + 0x39, 0x45, 0x10, 0x45, 0x23, 0x91, 0xc9, 0x06, 0x90, 0x88, 0x63, 0x93, 0x9f, 0x0c, 0x98, 0x19, + 0xe1, 0xd0, 0xf2, 0xe8, 0xa5, 0x5a, 0x09, 0x2b, 0x2d, 0xd4, 0x37, 0x3f, 0x46, 0xc4, 0x1f, 0xc0, + 0x1c, 0x22, 0x51, 0x15, 0x52, 0x10, 0x00, 0x04, 0x50, 0x52, 0x94, 0xa5, 0xd5, 0x0c, 0x59, 0x99, + 0x96, 0x53, 0xcd, 0x6a, 0x19, 0xfd, 0x4b, 0x28, 0x61, 0x2b, 0x3b, 0x61, 0x38, 0x64, 0x01, 0xf9, + 0x1f, 0x14, 0x2d, 0x21, 0x9a, 0xa3, 0xb6, 0x0a, 0xa8, 0xb8, 0xcd, 0x4e, 0xc8, 0x0a, 0xcc, 0x3a, + 0xe8, 0x86, 0xfd, 0x95, 0x0d, 0x29, 0x35, 0xcf, 0x23, 0x86, 0x15, 0x20, 0xa0, 0x26, 0xc1, 0x1b, + 0xd2, 0x33, 0xab, 0xff, 0x98, 0x81, 0xb9, 0xbd, 0xc0, 0x7f, 0xc4, 0x2c, 0xfe, 0xda, 0x7c, 0xa5, + 0x60, 0xe5, 0x26, 0x60, 0xe9, 0x50, 0x7e, 0x34, 0x0c, 0x9c, 0xd0, 0x76, 0x2c, 0x1c, 0x8f, 0x88, + 0xaa, 0x94, 0x2e, 0x45, 0xf8, 0xec, 0x04, 0xe1, 0x6f, 0x40, 0x39, 0x60, 0x0f, 0x59, 0xc0, 0x3c, + 0x8b, 0x99, 0x8e, 0xad, 0xcd, 0xa1, 0xbd, 0x94, 0xe8, 0x76, 0xec, 0xe6, 0x21, 0x76, 0xd8, 0x9b, + 0xc6, 0x32, 0x81, 0xf2, 0x58, 0xd3, 0xb6, 0x9a, 0x19, 0x67, 0x3e, 0x4b, 0xd4, 0x74, 0x72, 0x35, + 0x47, 0xd6, 0x60, 0x65, 0x14, 0x90, 0xb2, 0xe5, 0xb5, 0x9c, 0xfe, 0x4b, 0x16, 0xf2, 0x5b, 0x94, + 0x5b, 0x87, 0x53, 0xb8, 0x3a, 0x85, 0x7f, 0x72, 0x01, 0x4a, 0x83, 0x88, 0x60, 0xe4, 0x27, 0x8b, + 0x11, 0x20, 0x55, 0x82, 0xa1, 0x25, 0xc8, 0xdb, 0xcc, 0xf3, 0xfb, 0x72, 0xd6, 0x22, 0x21, 0xc5, + 0x49, 0x7e, 0x82, 0x93, 0x0f, 0x01, 0x42, 0x4e, 0x03, 0x6e, 0xda, 0x94, 0x33, 0x64, 0xac, 0x74, + 0x63, 0xad, 0x1e, 0xed, 0x6d, 0x3d, 0xde, 0xdb, 0x7a, 0x37, 0xde, 0x5b, 0xa3, 0x88, 0xde, 0xdb, + 0x94, 0x33, 0xf2, 0x3e, 0x14, 0x98, 0x67, 0x47, 0x81, 0x73, 0x2f, 0x0d, 0x9c, 0x63, 0x9e, 0x8d, + 0x61, 0x37, 0xa1, 0x22, 0xda, 0xa1, 0x82, 0x0b, 0x8c, 0x2d, 0xbc, 0x34, 0xb6, 0x1c, 0x07, 0x60, + 0x02, 0x02, 0x39, 0x7f, 0xc0, 0x3c, 0xad, 0x78, 0x51, 0x59, 0x2f, 0x18, 0xf8, 0x9c, 0x9e, 0x1b, + 0x48, 0xcf, 0x4d, 0xf3, 0x01, 0x1e, 0x6a, 0x77, 0x74, 0xa8, 0x25, 0x49, 0x13, 0x9e, 0xeb, 0x7c, + 0x8a, 0x54, 0x35, 0x43, 0xaa, 0xe3, 0x94, 0xa8, 0x59, 0x02, 0xf1, 0x69, 0xa8, 0x39, 0x52, 0x19, + 0xab, 0xa3, 0xe6, 0xb5, 0xbc, 0xfe, 0xb5, 0x02, 0x15, 0xdc, 0xab, 0x7d, 0xf6, 0xd5, 0x50, 0x9c, + 0xef, 0x29, 0x6b, 0xad, 0x4c, 0x5f, 0x6b, 0xf2, 0x26, 0x54, 0x3c, 0x76, 0xcc, 0xcd, 0x50, 0x86, + 0xe3, 0x89, 0xe7, 0x8c, 0xb2, 0x50, 0xc6, 0x29, 0x9b, 0x35, 0x6c, 0x40, 0x83, 0xa5, 0xa9, 0xa9, + 0x67, 0xf5, 0x47, 0x30, 0x2f, 0x17, 0x2f, 0x41, 0x71, 0xe6, 0x7e, 0xbf, 0x52, 0xd1, 0x65, 0x2c, + 0x3a, 0x0f, 0xa5, 0xf1, 0x4c, 0x73, 0xba, 0x07, 0x15, 0x1c, 0xdb, 0xa4, 0xd2, 0xc4, 0x50, 0x2a, + 0x2f, 0x0c, 0xe5, 0x2b, 0x55, 0x5b, 0xc5, 0x6a, 0x0b, 0x50, 0x49, 0x67, 0x2b, 0xe8, 0xff, 0x28, + 0x50, 0xc6, 0x82, 0x5b, 0xd4, 0xa5, 0xb2, 0xb3, 0x9e, 0x90, 0xc7, 0x3b, 0x43, 0x85, 0xa8, 0xa5, + 0xc1, 0x1c, 0xb5, 0xed, 0x80, 0x85, 0xa1, 0x5c, 0x9d, 0x58, 0x24, 0x57, 0x60, 0x9e, 0x07, 0xd4, + 0xa6, 0x3d, 0x97, 0x99, 0xb4, 0xef, 0x0f, 0xbd, 0xf8, 0x73, 0x51, 0x8d, 0xd5, 0x2d, 0xd4, 0x92, + 0xcb, 0x50, 0x0d, 0x18, 0x77, 0x02, 0x66, 0xc7, 0x7e, 0xd1, 0x32, 0x55, 0xa4, 0x56, 0xba, 0x5d, + 0x81, 0x79, 0x16, 0x5a, 0x81, 0xff, 0x64, 0xe4, 0x17, 0xed, 0x56, 0x35, 0x56, 0x47, 0x8e, 0xcd, + 0xf7, 0xb0, 0xb3, 0x3a, 0x2c, 0xc2, 0x82, 0xc4, 0xb2, 0x91, 0xe0, 0x27, 0xcb, 0xb0, 0x90, 0x08, + 0x1b, 0xd2, 0xac, 0x2a, 0x5a, 0x51, 0xff, 0x59, 0x81, 0x52, 0xc4, 0xf3, 0x70, 0x30, 0x70, 0x4f, + 0xce, 0xee, 0x7a, 0x4a, 0x6f, 0x99, 0x57, 0xec, 0x2d, 0x3b, 0xad, 0xb7, 0xab, 0xa0, 0x5a, 0x82, + 0x6b, 0xd7, 0x9d, 0x24, 0x61, 0x3e, 0xd1, 0xcb, 0xee, 0xc6, 0xa6, 0x64, 0x84, 0x0f, 0xf4, 0x21, + 0x54, 0xee, 0x05, 0xce, 0x81, 0xe3, 0x75, 0x8f, 0x77, 0x3c, 0x9b, 0x1d, 0x9f, 0x3d, 0x8f, 0x93, + 0xdf, 0x86, 0x15, 0x98, 0x0d, 0xfd, 0x61, 0x60, 0x31, 0x09, 0x4f, 0x4a, 0xcd, 0x0b, 0x58, 0xec, + 0x1c, 0x2c, 0xc3, 0xe2, 0xf8, 0xab, 0x78, 0x43, 0x3a, 0x97, 0xf4, 0xef, 0x14, 0x39, 0x9d, 0x6d, + 0xdf, 0xe3, 0x01, 0xb5, 0xf8, 0xd9, 0xbc, 0xa5, 0x40, 0x65, 0x26, 0x40, 0xad, 0x41, 0xc1, 0x92, + 0x59, 0x24, 0x8c, 0x44, 0x6e, 0x36, 0x10, 0xc8, 0xd5, 0x54, 0xd7, 0x44, 0x03, 0x32, 0x42, 0x15, + 0xbb, 0xe2, 0x4d, 0xa2, 0xac, 0x7f, 0x04, 0xcb, 0xf8, 0x96, 0x68, 0x07, 0x8c, 0x72, 0x3f, 0x68, + 0xb9, 0xae, 0xff, 0xc4, 0x75, 0x42, 0x2e, 0x06, 0x96, 0x79, 0xe2, 0x84, 0x6c, 0x44, 0x57, 0x30, + 0x62, 0xb1, 0x59, 0xf8, 0x57, 0xd4, 0xc8, 0x14, 0x2a, 0xfa, 0x36, 0x2c, 0x62, 0x00, 0xb3, 0xc7, + 0x73, 0x8c, 0xcf, 0xba, 0x92, 0x9a, 0xf5, 0xe6, 0x22, 0xc2, 0xab, 0x40, 0x71, 0xe4, 0x51, 0xd5, + 0x5b, 0x50, 0xc0, 0xf0, 0x5b, 0x8c, 0x91, 0xeb, 0x90, 0x7d, 0xc8, 0x18, 0x86, 0x95, 0x6e, 0x9c, + 0xab, 0x47, 0xf7, 0xb7, 0xba, 0xb8, 0xdf, 0xd5, 0xe5, 0xfd, 0xae, 0xde, 0xf6, 0x1d, 0xcf, 0x10, + 0x5e, 0x09, 0x90, 0x79, 0xfd, 0x36, 0x10, 0x09, 0x64, 0x2b, 0x70, 0xec, 0x03, 0xd6, 0x3e, 0xa4, + 0x8e, 0x47, 0xfe, 0x0f, 0x60, 0x89, 0x07, 0x13, 0xef, 0x65, 0xd1, 0x8b, 0xae, 0x88, 0x9a, 0x5d, + 0xda, 0x67, 0xcd, 0x15, 0x04, 0xa3, 0x42, 0x39, 0xe5, 0xa6, 0xea, 0x3f, 0x65, 0x60, 0x41, 0xbe, + 0xb5, 0x3a, 0x5e, 0xe0, 0xbb, 0x6e, 0x9f, 0x79, 0xfc, 0xe5, 0x6f, 0x93, 0xd4, 0x99, 0x65, 0x27, + 0xce, 0xac, 0x0d, 0xb3, 0xe2, 0x32, 0x3b, 0x0c, 0x71, 0x5c, 0xab, 0x37, 0xae, 0xd7, 0x5f, 0xbc, + 0xce, 0xd6, 0x5f, 0x28, 0xba, 0x8f, 0x21, 0x86, 0x0c, 0x25, 0x9b, 0xb0, 0x44, 0x07, 0x03, 0xd7, + 0xb1, 0xf0, 0x4a, 0x68, 0x4e, 0x7c, 0x3a, 0x17, 0xc7, 0x6c, 0x77, 0xe3, 0xaf, 0x68, 0x03, 0x16, + 0x59, 0x92, 0xce, 0x9c, 0xb8, 0x80, 0x90, 0x91, 0x29, 0x0e, 0x68, 0xbe, 0x83, 0xa4, 0x5c, 0x83, + 0x55, 0x58, 0x1e, 0x6b, 0x77, 0x23, 0xe9, 0x2c, 0xfd, 0xa1, 0x51, 0xb4, 0x05, 0xbd, 0x0d, 0x20, + 0x81, 0xbf, 0xf6, 0x01, 0x92, 0x6b, 0x7f, 0x29, 0xb0, 0x7a, 0x4a, 0xfb, 0xe4, 0x2a, 0x5c, 0xde, + 0x33, 0xee, 0x7d, 0xd6, 0x69, 0x77, 0xcd, 0xce, 0xae, 0x71, 0xef, 0xce, 0x9d, 0xbb, 0x9d, 0xdd, + 0xae, 0xb9, 0xdf, 0x6d, 0x75, 0xef, 0xef, 0x9b, 0xf7, 0x77, 0xf7, 0xf7, 0x3a, 0xed, 0x9d, 0x5b, + 0x3b, 0x9d, 0x6d, 0x75, 0x86, 0xbc, 0x05, 0xfa, 0xe9, 0xae, 0xad, 0x76, 0xbb, 0xb3, 0xd7, 0xed, + 0x6c, 0xab, 0x0a, 0x69, 0xc0, 0xf5, 0xd3, 0xfd, 0xda, 0x9f, 0xb6, 0x76, 0x3f, 0xe9, 0xec, 0x9b, + 0x46, 0xe7, 0xf3, 0xfb, 0x9d, 0x7d, 0x11, 0x90, 0x39, 0x3b, 0xb1, 0xd1, 0x11, 0x86, 0xce, 0xb6, + 0x9a, 0x25, 0xeb, 0x70, 0xe9, 0x74, 0xbf, 0x6e, 0xc7, 0xb8, 0xbb, 0xb3, 0xdb, 0x12, 0x9e, 0xb9, + 0xad, 0x2f, 0x7e, 0x7d, 0x56, 0x53, 0x9e, 0x3e, 0xab, 0x29, 0x7f, 0x3e, 0xab, 0x29, 0xdf, 0x3e, + 0xaf, 0xcd, 0x3c, 0x7d, 0x5e, 0x9b, 0xf9, 0xe3, 0x79, 0x6d, 0xe6, 0xc1, 0xcd, 0x03, 0x87, 0x1f, + 0x0e, 0x7b, 0x75, 0xcb, 0xef, 0x37, 0x70, 0x4a, 0xde, 0xf6, 0x18, 0x7f, 0xe2, 0x07, 0x8f, 0xa5, + 0xe4, 0x32, 0xfb, 0x80, 0x05, 0x8d, 0xe3, 0xb1, 0x7f, 0x25, 0xfc, 0x01, 0x12, 0x9f, 0xde, 0x50, + 0xfc, 0x06, 0xcd, 0xe2, 0x4d, 0xe5, 0xdd, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x14, 0xb3, + 0xd1, 0x53, 0x0d, 0x00, 0x00, } func (m *CreditType) Marshal() (dAtA []byte, err error) { @@ -1489,6 +1705,11 @@ func (m *Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ClassKey != 0 { + i = encodeVarintState(dAtA, i, uint64(m.ClassKey)) + i-- + dAtA[i] = 0x50 + } if m.Open { i-- if m.Open { @@ -1985,6 +2206,93 @@ func (m *AllowedBridgeChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ProjectEnrollment) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProjectEnrollment) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProjectEnrollment) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EnrollmentMetadata) > 0 { + i -= len(m.EnrollmentMetadata) + copy(dAtA[i:], m.EnrollmentMetadata) + i = encodeVarintState(dAtA, i, uint64(len(m.EnrollmentMetadata))) + i-- + dAtA[i] = 0x32 + } + if len(m.ApplicationMetadata) > 0 { + i -= len(m.ApplicationMetadata) + copy(dAtA[i:], m.ApplicationMetadata) + i = encodeVarintState(dAtA, i, uint64(len(m.ApplicationMetadata))) + i-- + dAtA[i] = 0x2a + } + if m.Status != 0 { + i = encodeVarintState(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x20 + } + if m.ClassKey != 0 { + i = encodeVarintState(dAtA, i, uint64(m.ClassKey)) + i-- + dAtA[i] = 0x18 + } + if m.ProjectKey != 0 { + i = encodeVarintState(dAtA, i, uint64(m.ProjectKey)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProjectFee) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProjectFee) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProjectFee) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Fee != nil { + { + size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintState(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintState(dAtA []byte, offset int, v uint64) int { offset -= sovState(v) base := offset @@ -2138,6 +2446,9 @@ func (m *Batch) Size() (n int) { if m.Open { n += 2 } + if m.ClassKey != 0 { + n += 1 + sovState(uint64(m.ClassKey)) + } return n } @@ -2329,6 +2640,45 @@ func (m *AllowedBridgeChain) Size() (n int) { return n } +func (m *ProjectEnrollment) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProjectKey != 0 { + n += 1 + sovState(uint64(m.ProjectKey)) + } + if m.ClassKey != 0 { + n += 1 + sovState(uint64(m.ClassKey)) + } + if m.Status != 0 { + n += 1 + sovState(uint64(m.Status)) + } + l = len(m.ApplicationMetadata) + if l > 0 { + n += 1 + l + sovState(uint64(l)) + } + l = len(m.EnrollmentMetadata) + if l > 0 { + n += 1 + l + sovState(uint64(l)) + } + return n +} + +func (m *ProjectFee) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Fee != nil { + l = m.Fee.Size() + n += 1 + l + sovState(uint64(l)) + } + return n +} + func sovState(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -3345,6 +3695,25 @@ func (m *Batch) Unmarshal(dAtA []byte) error { } } m.Open = bool(v != 0) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassKey", wireType) + } + m.ClassKey = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowState + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ClassKey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipState(dAtA[iNdEx:]) @@ -4582,6 +4951,263 @@ func (m *AllowedBridgeChain) Unmarshal(dAtA []byte) error { } return nil } +func (m *ProjectEnrollment) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowState + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProjectEnrollment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProjectEnrollment: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProjectKey", wireType) + } + m.ProjectKey = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowState + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProjectKey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassKey", wireType) + } + m.ClassKey = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowState + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ClassKey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowState + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= ProjectEnrollmentStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApplicationMetadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowState + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthState + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthState + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApplicationMetadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EnrollmentMetadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowState + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthState + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthState + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EnrollmentMetadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipState(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthState + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProjectFee) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowState + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProjectFee: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProjectFee: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowState + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthState + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthState + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fee == nil { + m.Fee = &types1.Coin{} + } + if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipState(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthState + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipState(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/ecocredit/base/types/v1/tx.pb.go b/x/ecocredit/base/types/v1/tx.pb.go index e09ad1c151..c4101e53ce 100644 --- a/x/ecocredit/base/types/v1/tx.pb.go +++ b/x/ecocredit/base/types/v1/tx.pb.go @@ -292,6 +292,12 @@ type MsgCreateProject struct { // reference_id is any arbitrary string used to reference the project with a // maximum length of 32 characters. ReferenceId string `protobuf:"bytes,5,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + // fee is the project creation fee. An equal fee is required if the project + // creation fee parameter is set. The provided fee can be greater than the + // parameter, but only the amount in the parameter will be charged. + // + // Since Revision 3 + Fee *types.Coin `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"` } func (m *MsgCreateProject) Reset() { *m = MsgCreateProject{} } @@ -362,6 +368,13 @@ func (m *MsgCreateProject) GetReferenceId() string { return "" } +func (m *MsgCreateProject) GetFee() *types.Coin { + if m != nil { + return m.Fee + } + return nil +} + // MsgCreateProjectResponse is the Msg/CreateProject response type. type MsgCreateProjectResponse struct { // project_id is the unique identifier of the project. @@ -408,51 +421,45 @@ func (m *MsgCreateProjectResponse) GetProjectId() string { return "" } -// MsgCreateBatch is the Msg/CreateBatch request type. -type MsgCreateBatch struct { - // issuer is the address of the account issuing the credits and must be an - // approved issuer within the credit class of the project. - Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` - // project_id is the unique identifier of the project under which the credit - // batch will be created. - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - // issuance specifies the amount of tradable and retired credits that will be - // issued to each recipient and the jurisdiction in which the credits will be - // retired if credits are to be retired upon receipt. - Issuance []*BatchIssuance `protobuf:"bytes,3,rep,name=issuance,proto3" json:"issuance,omitempty"` +// MsgCreateUnregisteredProject is the Msg/CreateUnregisteredProject request type. +type MsgCreateUnregisteredProject struct { + // admin is the address of the account creating the project that will become + // the admin of the project upon creation. + Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` // metadata is any arbitrary string with a maximum length of 256 characters - // that includes or references metadata to attach to the credit batch. - Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` - // start_date is the beginning of the period during which this credit batch - // was quantified and verified. - StartDate *time.Time `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"` - // end_date is the end of the period during which this credit batch was - // quantified and verified. - EndDate *time.Time `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"` - // open determines whether or not the credits can be dynamically minted to the - // credit batch following the creation of the credit batch. This field should - // only be set to true when bridging credits from another chain or registry as - // a result of a bridge operation and is not intended for native issuance. - Open bool `protobuf:"varint,7,opt,name=open,proto3" json:"open,omitempty"` - // origin_tx is the transaction from another chain or registry that triggered - // the creation of the credit batch. This field can be ignored when natively - // issuing credits and should only be set when bridging assets from another - // chain or registry as a result of a bridge operation. - OriginTx *OriginTx `protobuf:"bytes,8,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"` + // that includes or references metadata to attach to the project. + Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // jurisdiction is the jurisdiction of the project. A jurisdiction has with + // the format: [-[ ]] + // The country-code must be 2 alphabetic characters, the sub-national-code + // can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + // alphanumeric characters. Only the country-code is required, while the + // sub-national-code and postal-code are optional and can be added for + // increased precision. + Jurisdiction string `protobuf:"bytes,3,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"` + // reference_id is any arbitrary string used to reference the project with a + // maximum length of 32 characters. + ReferenceId string `protobuf:"bytes,4,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + // fee is the project creation fee. An equal fee is required if the project + // creation fee parameter is set. The provided fee can be greater than the + // parameter, but only the amount in the parameter will be charged. + // + // Since Revision 3 + Fee *types.Coin `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"` } -func (m *MsgCreateBatch) Reset() { *m = MsgCreateBatch{} } -func (m *MsgCreateBatch) String() string { return proto.CompactTextString(m) } -func (*MsgCreateBatch) ProtoMessage() {} -func (*MsgCreateBatch) Descriptor() ([]byte, []int) { +func (m *MsgCreateUnregisteredProject) Reset() { *m = MsgCreateUnregisteredProject{} } +func (m *MsgCreateUnregisteredProject) String() string { return proto.CompactTextString(m) } +func (*MsgCreateUnregisteredProject) ProtoMessage() {} +func (*MsgCreateUnregisteredProject) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{6} } -func (m *MsgCreateBatch) XXX_Unmarshal(b []byte) error { +func (m *MsgCreateUnregisteredProject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCreateBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCreateUnregisteredProject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCreateBatch.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCreateUnregisteredProject.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -462,92 +469,71 @@ func (m *MsgCreateBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return b[:n], nil } } -func (m *MsgCreateBatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateBatch.Merge(m, src) +func (m *MsgCreateUnregisteredProject) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateUnregisteredProject.Merge(m, src) } -func (m *MsgCreateBatch) XXX_Size() int { +func (m *MsgCreateUnregisteredProject) XXX_Size() int { return m.Size() } -func (m *MsgCreateBatch) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateBatch.DiscardUnknown(m) +func (m *MsgCreateUnregisteredProject) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateUnregisteredProject.DiscardUnknown(m) } -var xxx_messageInfo_MsgCreateBatch proto.InternalMessageInfo - -func (m *MsgCreateBatch) GetIssuer() string { - if m != nil { - return m.Issuer - } - return "" -} +var xxx_messageInfo_MsgCreateUnregisteredProject proto.InternalMessageInfo -func (m *MsgCreateBatch) GetProjectId() string { +func (m *MsgCreateUnregisteredProject) GetAdmin() string { if m != nil { - return m.ProjectId + return m.Admin } return "" } -func (m *MsgCreateBatch) GetIssuance() []*BatchIssuance { - if m != nil { - return m.Issuance - } - return nil -} - -func (m *MsgCreateBatch) GetMetadata() string { +func (m *MsgCreateUnregisteredProject) GetMetadata() string { if m != nil { return m.Metadata } return "" } -func (m *MsgCreateBatch) GetStartDate() *time.Time { - if m != nil { - return m.StartDate - } - return nil -} - -func (m *MsgCreateBatch) GetEndDate() *time.Time { +func (m *MsgCreateUnregisteredProject) GetJurisdiction() string { if m != nil { - return m.EndDate + return m.Jurisdiction } - return nil + return "" } -func (m *MsgCreateBatch) GetOpen() bool { +func (m *MsgCreateUnregisteredProject) GetReferenceId() string { if m != nil { - return m.Open + return m.ReferenceId } - return false + return "" } -func (m *MsgCreateBatch) GetOriginTx() *OriginTx { +func (m *MsgCreateUnregisteredProject) GetFee() *types.Coin { if m != nil { - return m.OriginTx + return m.Fee } return nil } -// MsgCreateBatchResponse is the Msg/CreateBatch response type. -type MsgCreateBatchResponse struct { - // batch_denom is the unique identifier of the credit batch. - BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` +// MsgCreateUnregisteredProjectResponse is the Msg/CreateUnregisteredProject response type. +type MsgCreateUnregisteredProjectResponse struct { + // project_id is the unique identifier of the project. + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` } -func (m *MsgCreateBatchResponse) Reset() { *m = MsgCreateBatchResponse{} } -func (m *MsgCreateBatchResponse) String() string { return proto.CompactTextString(m) } -func (*MsgCreateBatchResponse) ProtoMessage() {} -func (*MsgCreateBatchResponse) Descriptor() ([]byte, []int) { +func (m *MsgCreateUnregisteredProjectResponse) Reset() { *m = MsgCreateUnregisteredProjectResponse{} } +func (m *MsgCreateUnregisteredProjectResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateUnregisteredProjectResponse) ProtoMessage() {} +func (*MsgCreateUnregisteredProjectResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{7} } -func (m *MsgCreateBatchResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgCreateUnregisteredProjectResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCreateBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCreateUnregisteredProjectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCreateBatchResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCreateUnregisteredProjectResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -557,53 +543,57 @@ func (m *MsgCreateBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *MsgCreateBatchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateBatchResponse.Merge(m, src) +func (m *MsgCreateUnregisteredProjectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateUnregisteredProjectResponse.Merge(m, src) } -func (m *MsgCreateBatchResponse) XXX_Size() int { +func (m *MsgCreateUnregisteredProjectResponse) XXX_Size() int { return m.Size() } -func (m *MsgCreateBatchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateBatchResponse.DiscardUnknown(m) +func (m *MsgCreateUnregisteredProjectResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateUnregisteredProjectResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgCreateBatchResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgCreateUnregisteredProjectResponse proto.InternalMessageInfo -func (m *MsgCreateBatchResponse) GetBatchDenom() string { +func (m *MsgCreateUnregisteredProjectResponse) GetProjectId() string { if m != nil { - return m.BatchDenom + return m.ProjectId } return "" } -// MsgMintBatchCredits is the Msg/MintBatchCredits request type. -type MsgMintBatchCredits struct { - // issuer is the address of the account minting the credits and must be the - // same issuer who created the credit batch. - Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` - // batch_denom is the unique identifier of the credit batch. - BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` - // issuance specifies the amount of tradable and retired credits that will be - // issued to each recipient and the jurisdiction in which the credits will be - // retired if credits are to be retired upon receipt. - Issuance []*BatchIssuance `protobuf:"bytes,3,rep,name=issuance,proto3" json:"issuance,omitempty"` - // origin_tx is the transaction from another chain or registry that triggered - // the minting of credits. - OriginTx *OriginTx `protobuf:"bytes,4,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"` +// MsgCreateOrUpdateApplication is the Msg/CreateOrUpdateApplication request type. +type MsgCreateOrUpdateApplication struct { + // project_admin is the address of the account that is the admin of the + // project which is applying to the credit class. + ProjectAdmin string `protobuf:"bytes,1,opt,name=project_admin,json=projectAdmin,proto3" json:"project_admin,omitempty"` + // project_id is the identifier of the project which is applying to + // the credit class. + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // class_id is the identifier of the credit class which the project is + // applying to. + ClassId string `protobuf:"bytes,3,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // metadata is any optional arbitrary string with a maximum length of 256 characters + // that includes or references any metadata relevant to the application. + // This could be used as a digital reference to the actual contents of the application. + Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + // withdraw is a boolean that indicates whether the application is being + // withdrawn rather than updated. + Withdraw bool `protobuf:"varint,5,opt,name=withdraw,proto3" json:"withdraw,omitempty"` } -func (m *MsgMintBatchCredits) Reset() { *m = MsgMintBatchCredits{} } -func (m *MsgMintBatchCredits) String() string { return proto.CompactTextString(m) } -func (*MsgMintBatchCredits) ProtoMessage() {} -func (*MsgMintBatchCredits) Descriptor() ([]byte, []int) { +func (m *MsgCreateOrUpdateApplication) Reset() { *m = MsgCreateOrUpdateApplication{} } +func (m *MsgCreateOrUpdateApplication) String() string { return proto.CompactTextString(m) } +func (*MsgCreateOrUpdateApplication) ProtoMessage() {} +func (*MsgCreateOrUpdateApplication) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{8} } -func (m *MsgMintBatchCredits) XXX_Unmarshal(b []byte) error { +func (m *MsgCreateOrUpdateApplication) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgMintBatchCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCreateOrUpdateApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgMintBatchCredits.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCreateOrUpdateApplication.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -613,62 +603,69 @@ func (m *MsgMintBatchCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *MsgMintBatchCredits) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMintBatchCredits.Merge(m, src) +func (m *MsgCreateOrUpdateApplication) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateOrUpdateApplication.Merge(m, src) } -func (m *MsgMintBatchCredits) XXX_Size() int { +func (m *MsgCreateOrUpdateApplication) XXX_Size() int { return m.Size() } -func (m *MsgMintBatchCredits) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMintBatchCredits.DiscardUnknown(m) +func (m *MsgCreateOrUpdateApplication) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateOrUpdateApplication.DiscardUnknown(m) } -var xxx_messageInfo_MsgMintBatchCredits proto.InternalMessageInfo +var xxx_messageInfo_MsgCreateOrUpdateApplication proto.InternalMessageInfo -func (m *MsgMintBatchCredits) GetIssuer() string { +func (m *MsgCreateOrUpdateApplication) GetProjectAdmin() string { if m != nil { - return m.Issuer + return m.ProjectAdmin } return "" } -func (m *MsgMintBatchCredits) GetBatchDenom() string { +func (m *MsgCreateOrUpdateApplication) GetProjectId() string { if m != nil { - return m.BatchDenom + return m.ProjectId } return "" } -func (m *MsgMintBatchCredits) GetIssuance() []*BatchIssuance { +func (m *MsgCreateOrUpdateApplication) GetClassId() string { if m != nil { - return m.Issuance + return m.ClassId } - return nil + return "" } -func (m *MsgMintBatchCredits) GetOriginTx() *OriginTx { +func (m *MsgCreateOrUpdateApplication) GetMetadata() string { if m != nil { - return m.OriginTx + return m.Metadata } - return nil + return "" } -// MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. -type MsgMintBatchCreditsResponse struct { +func (m *MsgCreateOrUpdateApplication) GetWithdraw() bool { + if m != nil { + return m.Withdraw + } + return false } -func (m *MsgMintBatchCreditsResponse) Reset() { *m = MsgMintBatchCreditsResponse{} } -func (m *MsgMintBatchCreditsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgMintBatchCreditsResponse) ProtoMessage() {} -func (*MsgMintBatchCreditsResponse) Descriptor() ([]byte, []int) { +// MsgCreateOrUpdateApplicationResponse is the Msg/CreateOrUpdateApplication response type. +type MsgCreateOrUpdateApplicationResponse struct { +} + +func (m *MsgCreateOrUpdateApplicationResponse) Reset() { *m = MsgCreateOrUpdateApplicationResponse{} } +func (m *MsgCreateOrUpdateApplicationResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateOrUpdateApplicationResponse) ProtoMessage() {} +func (*MsgCreateOrUpdateApplicationResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{9} } -func (m *MsgMintBatchCreditsResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgCreateOrUpdateApplicationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgMintBatchCreditsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCreateOrUpdateApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgMintBatchCreditsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCreateOrUpdateApplicationResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -678,39 +675,47 @@ func (m *MsgMintBatchCreditsResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgMintBatchCreditsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMintBatchCreditsResponse.Merge(m, src) +func (m *MsgCreateOrUpdateApplicationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateOrUpdateApplicationResponse.Merge(m, src) } -func (m *MsgMintBatchCreditsResponse) XXX_Size() int { +func (m *MsgCreateOrUpdateApplicationResponse) XXX_Size() int { return m.Size() } -func (m *MsgMintBatchCreditsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMintBatchCreditsResponse.DiscardUnknown(m) +func (m *MsgCreateOrUpdateApplicationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateOrUpdateApplicationResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgMintBatchCreditsResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgCreateOrUpdateApplicationResponse proto.InternalMessageInfo -// MsgSealBatch is the Msg/MintBatchCredits request type. -type MsgSealBatch struct { - // issuer is the address of the account that created the credit batch and the - // only account with permissions to seal the credit batch. +// MsgUpdateProjectEnrollment is the Msg/UpdateProjectEnrollment request type. +type MsgUpdateProjectEnrollment struct { + // issuer is the address of the account that is the issuer of the credit class + // which is updating the project enrollment status. Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` - // batch_denom is the unique identifier of the credit batch. - BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` + // project_id is the identifier of the project. + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // class_id is the identifier of the credit class. + ClassId string `protobuf:"bytes,3,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // new_status is the new status of the project enrollment. + NewStatus ProjectEnrollmentStatus `protobuf:"varint,4,opt,name=new_status,json=newStatus,proto3,enum=regen.ecocredit.v1.ProjectEnrollmentStatus" json:"new_status,omitempty"` + // metadata is any optiopnal arbitrary string with a maximum length of 256 characters + // that includes or references the reason for the approving, requesting changes + // to, or rejecting the application, or terminating the project. + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *MsgSealBatch) Reset() { *m = MsgSealBatch{} } -func (m *MsgSealBatch) String() string { return proto.CompactTextString(m) } -func (*MsgSealBatch) ProtoMessage() {} -func (*MsgSealBatch) Descriptor() ([]byte, []int) { +func (m *MsgUpdateProjectEnrollment) Reset() { *m = MsgUpdateProjectEnrollment{} } +func (m *MsgUpdateProjectEnrollment) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateProjectEnrollment) ProtoMessage() {} +func (*MsgUpdateProjectEnrollment) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{10} } -func (m *MsgSealBatch) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateProjectEnrollment) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSealBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateProjectEnrollment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSealBatch.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateProjectEnrollment.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -720,48 +725,69 @@ func (m *MsgSealBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *MsgSealBatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSealBatch.Merge(m, src) +func (m *MsgUpdateProjectEnrollment) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateProjectEnrollment.Merge(m, src) } -func (m *MsgSealBatch) XXX_Size() int { +func (m *MsgUpdateProjectEnrollment) XXX_Size() int { return m.Size() } -func (m *MsgSealBatch) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSealBatch.DiscardUnknown(m) +func (m *MsgUpdateProjectEnrollment) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateProjectEnrollment.DiscardUnknown(m) } -var xxx_messageInfo_MsgSealBatch proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateProjectEnrollment proto.InternalMessageInfo -func (m *MsgSealBatch) GetIssuer() string { +func (m *MsgUpdateProjectEnrollment) GetIssuer() string { if m != nil { return m.Issuer } return "" } -func (m *MsgSealBatch) GetBatchDenom() string { +func (m *MsgUpdateProjectEnrollment) GetProjectId() string { if m != nil { - return m.BatchDenom + return m.ProjectId } return "" } -// MsgSealBatchResponse is the Msg/SealBatch response type. -type MsgSealBatchResponse struct { +func (m *MsgUpdateProjectEnrollment) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" } -func (m *MsgSealBatchResponse) Reset() { *m = MsgSealBatchResponse{} } -func (m *MsgSealBatchResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSealBatchResponse) ProtoMessage() {} -func (*MsgSealBatchResponse) Descriptor() ([]byte, []int) { +func (m *MsgUpdateProjectEnrollment) GetNewStatus() ProjectEnrollmentStatus { + if m != nil { + return m.NewStatus + } + return ProjectEnrollmentStatus_PROJECT_ENROLLMENT_STATUS_UNSPECIFIED +} + +func (m *MsgUpdateProjectEnrollment) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + +// MsgEvaluateProjectEnrollmentResponse is the Msg/EvaluateProjectEnrollment response type. +type MsgUpdateProjectEnrollmentResponse struct { +} + +func (m *MsgUpdateProjectEnrollmentResponse) Reset() { *m = MsgUpdateProjectEnrollmentResponse{} } +func (m *MsgUpdateProjectEnrollmentResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateProjectEnrollmentResponse) ProtoMessage() {} +func (*MsgUpdateProjectEnrollmentResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{11} } -func (m *MsgSealBatchResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateProjectEnrollmentResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSealBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateProjectEnrollmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSealBatchResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateProjectEnrollmentResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -771,40 +797,68 @@ func (m *MsgSealBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *MsgSealBatchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSealBatchResponse.Merge(m, src) +func (m *MsgUpdateProjectEnrollmentResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateProjectEnrollmentResponse.Merge(m, src) } -func (m *MsgSealBatchResponse) XXX_Size() int { +func (m *MsgUpdateProjectEnrollmentResponse) XXX_Size() int { return m.Size() } -func (m *MsgSealBatchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSealBatchResponse.DiscardUnknown(m) +func (m *MsgUpdateProjectEnrollmentResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateProjectEnrollmentResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgSealBatchResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateProjectEnrollmentResponse proto.InternalMessageInfo -// MsgSend is the Msg/Send request type. -type MsgSend struct { - // sender is the address of the account sending credits. - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - // recipient is the address of the account receiving credits. - Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` - // credits are the credits being sent to the recipient. - Credits []*MsgSend_SendCredits `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` +// MsgCreateBatch is the Msg/CreateBatch request type. +type MsgCreateBatch struct { + // issuer is the address of the account issuing the credits and must be an + // approved issuer within a credit class of the project. + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + // project_id is the unique identifier of the project under which the credit + // batch will be created. + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // issuance specifies the amount of tradable and retired credits that will be + // issued to each recipient and the jurisdiction in which the credits will be + // retired if credits are to be retired upon receipt. + Issuance []*BatchIssuance `protobuf:"bytes,3,rep,name=issuance,proto3" json:"issuance,omitempty"` + // metadata is any arbitrary string with a maximum length of 256 characters + // that includes or references metadata to attach to the credit batch. + Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + // start_date is the beginning of the period during which this credit batch + // was quantified and verified. + StartDate *time.Time `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"` + // end_date is the end of the period during which this credit batch was + // quantified and verified. + EndDate *time.Time `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"` + // open determines whether or not the credits can be dynamically minted to the + // credit batch following the creation of the credit batch. This field should + // only be set to true when bridging credits from another chain or registry as + // a result of a bridge operation and is not intended for native issuance. + Open bool `protobuf:"varint,7,opt,name=open,proto3" json:"open,omitempty"` + // origin_tx is the transaction from another chain or registry that triggered + // the creation of the credit batch. This field can be ignored when natively + // issuing credits and should only be set when bridging assets from another + // chain or registry as a result of a bridge operation. + OriginTx *OriginTx `protobuf:"bytes,8,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"` + // class_id is the unique identifier of the credit class under which the + // credit batch will be created. + // + // Since Revision 3 + ClassId string `protobuf:"bytes,9,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` } -func (m *MsgSend) Reset() { *m = MsgSend{} } -func (m *MsgSend) String() string { return proto.CompactTextString(m) } -func (*MsgSend) ProtoMessage() {} -func (*MsgSend) Descriptor() ([]byte, []int) { +func (m *MsgCreateBatch) Reset() { *m = MsgCreateBatch{} } +func (m *MsgCreateBatch) String() string { return proto.CompactTextString(m) } +func (*MsgCreateBatch) ProtoMessage() {} +func (*MsgCreateBatch) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{12} } -func (m *MsgSend) XXX_Unmarshal(b []byte) error { +func (m *MsgCreateBatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCreateBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSend.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCreateBatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -814,153 +868,99 @@ func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *MsgSend) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSend.Merge(m, src) +func (m *MsgCreateBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateBatch.Merge(m, src) } -func (m *MsgSend) XXX_Size() int { +func (m *MsgCreateBatch) XXX_Size() int { return m.Size() } -func (m *MsgSend) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSend.DiscardUnknown(m) +func (m *MsgCreateBatch) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateBatch.DiscardUnknown(m) } -var xxx_messageInfo_MsgSend proto.InternalMessageInfo +var xxx_messageInfo_MsgCreateBatch proto.InternalMessageInfo -func (m *MsgSend) GetSender() string { +func (m *MsgCreateBatch) GetIssuer() string { if m != nil { - return m.Sender + return m.Issuer } return "" } -func (m *MsgSend) GetRecipient() string { +func (m *MsgCreateBatch) GetProjectId() string { if m != nil { - return m.Recipient + return m.ProjectId } return "" } -func (m *MsgSend) GetCredits() []*MsgSend_SendCredits { +func (m *MsgCreateBatch) GetIssuance() []*BatchIssuance { if m != nil { - return m.Credits + return m.Issuance } return nil } -// SendCredits specifies the amount of tradable and retired credits of a -// credit batch that will be sent to the recipient and the jurisdiction in -// which the credits will be retired upon receipt. -type MsgSend_SendCredits struct { - // batch_denom is the unique identifier of the credit batch. - BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` - // tradable_amount is the amount of credits in this transfer that can be - // traded by the recipient. The number of decimal places must be less than - // or equal to the credit type precision. - TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"` - // retired_amount is the amount of credits in this transfer that are retired - // upon receipt. The number of decimal places must be less than or equal to - // the credit type precision. - RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"` - // retirement_jurisdiction is the jurisdiction of the recipient and is only - // required if retired_amount is positive. A jurisdiction has the format: - // [-[ ]] - // The country-code and sub-national-code must conform to ISO 3166-2 and the - // postal-code can be up to 64 alphanumeric characters. Only the - // country-code is required, while the sub-national-code and postal-code are - // optional and can be added for increased precision. - RetirementJurisdiction string `protobuf:"bytes,4,opt,name=retirement_jurisdiction,json=retirementJurisdiction,proto3" json:"retirement_jurisdiction,omitempty"` - // retirement_reason is any arbitrary string that specifies the reason for - // retiring credits. This field is only required if retired_amount is - // positive. - // - // Since Revision 2 - RetirementReason string `protobuf:"bytes,5,opt,name=retirement_reason,json=retirementReason,proto3" json:"retirement_reason,omitempty"` -} - -func (m *MsgSend_SendCredits) Reset() { *m = MsgSend_SendCredits{} } -func (m *MsgSend_SendCredits) String() string { return proto.CompactTextString(m) } -func (*MsgSend_SendCredits) ProtoMessage() {} -func (*MsgSend_SendCredits) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{12, 0} -} -func (m *MsgSend_SendCredits) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSend_SendCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSend_SendCredits.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (m *MsgCreateBatch) GetMetadata() string { + if m != nil { + return m.Metadata } + return "" } -func (m *MsgSend_SendCredits) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSend_SendCredits.Merge(m, src) -} -func (m *MsgSend_SendCredits) XXX_Size() int { - return m.Size() -} -func (m *MsgSend_SendCredits) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSend_SendCredits.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSend_SendCredits proto.InternalMessageInfo -func (m *MsgSend_SendCredits) GetBatchDenom() string { +func (m *MsgCreateBatch) GetStartDate() *time.Time { if m != nil { - return m.BatchDenom + return m.StartDate } - return "" + return nil } -func (m *MsgSend_SendCredits) GetTradableAmount() string { +func (m *MsgCreateBatch) GetEndDate() *time.Time { if m != nil { - return m.TradableAmount + return m.EndDate } - return "" + return nil } -func (m *MsgSend_SendCredits) GetRetiredAmount() string { +func (m *MsgCreateBatch) GetOpen() bool { if m != nil { - return m.RetiredAmount + return m.Open } - return "" + return false } -func (m *MsgSend_SendCredits) GetRetirementJurisdiction() string { +func (m *MsgCreateBatch) GetOriginTx() *OriginTx { if m != nil { - return m.RetirementJurisdiction + return m.OriginTx } - return "" + return nil } -func (m *MsgSend_SendCredits) GetRetirementReason() string { +func (m *MsgCreateBatch) GetClassId() string { if m != nil { - return m.RetirementReason + return m.ClassId } return "" } -// MsgSendResponse is the Msg/Send response type. -type MsgSendResponse struct { +// MsgCreateBatchResponse is the Msg/CreateBatch response type. +type MsgCreateBatchResponse struct { + // batch_denom is the unique identifier of the credit batch. + BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` } -func (m *MsgSendResponse) Reset() { *m = MsgSendResponse{} } -func (m *MsgSendResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSendResponse) ProtoMessage() {} -func (*MsgSendResponse) Descriptor() ([]byte, []int) { +func (m *MsgCreateBatchResponse) Reset() { *m = MsgCreateBatchResponse{} } +func (m *MsgCreateBatchResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateBatchResponse) ProtoMessage() {} +func (*MsgCreateBatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{13} } -func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgCreateBatchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCreateBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSendResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCreateBatchResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -970,51 +970,53 @@ func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *MsgSendResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSendResponse.Merge(m, src) +func (m *MsgCreateBatchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateBatchResponse.Merge(m, src) } -func (m *MsgSendResponse) XXX_Size() int { +func (m *MsgCreateBatchResponse) XXX_Size() int { return m.Size() } -func (m *MsgSendResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSendResponse.DiscardUnknown(m) +func (m *MsgCreateBatchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateBatchResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgSendResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgCreateBatchResponse proto.InternalMessageInfo -// MsgRetire is the Msg/Retire request type. -type MsgRetire struct { - // owner is the address of the account that owns the credits being retired. - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - // credits specifies a credit batch and the number of credits being retired. - Credits []*Credits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` - // jurisdiction is the jurisdiction of the credit owner. A jurisdiction has - // the format: [-[ ]] - // The country-code must be 2 alphabetic characters, the sub-national-code - // can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - // alphanumeric characters. Only the country-code is required, while the - // sub-national-code and postal-code are optional and can be added for - // increased precision. - Jurisdiction string `protobuf:"bytes,3,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"` - // reason is any arbitrary string that specifies the reason for retiring - // credits. - // - // Since Revision 2 - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` +func (m *MsgCreateBatchResponse) GetBatchDenom() string { + if m != nil { + return m.BatchDenom + } + return "" } -func (m *MsgRetire) Reset() { *m = MsgRetire{} } -func (m *MsgRetire) String() string { return proto.CompactTextString(m) } -func (*MsgRetire) ProtoMessage() {} -func (*MsgRetire) Descriptor() ([]byte, []int) { +// MsgMintBatchCredits is the Msg/MintBatchCredits request type. +type MsgMintBatchCredits struct { + // issuer is the address of the account minting the credits and must be the + // same issuer who created the credit batch. + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + // batch_denom is the unique identifier of the credit batch. + BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` + // issuance specifies the amount of tradable and retired credits that will be + // issued to each recipient and the jurisdiction in which the credits will be + // retired if credits are to be retired upon receipt. + Issuance []*BatchIssuance `protobuf:"bytes,3,rep,name=issuance,proto3" json:"issuance,omitempty"` + // origin_tx is the transaction from another chain or registry that triggered + // the minting of credits. + OriginTx *OriginTx `protobuf:"bytes,4,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"` +} + +func (m *MsgMintBatchCredits) Reset() { *m = MsgMintBatchCredits{} } +func (m *MsgMintBatchCredits) String() string { return proto.CompactTextString(m) } +func (*MsgMintBatchCredits) ProtoMessage() {} +func (*MsgMintBatchCredits) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{14} } -func (m *MsgRetire) XXX_Unmarshal(b []byte) error { +func (m *MsgMintBatchCredits) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgRetire) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgMintBatchCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgRetire.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgMintBatchCredits.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1024,62 +1026,62 @@ func (m *MsgRetire) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *MsgRetire) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRetire.Merge(m, src) +func (m *MsgMintBatchCredits) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMintBatchCredits.Merge(m, src) } -func (m *MsgRetire) XXX_Size() int { +func (m *MsgMintBatchCredits) XXX_Size() int { return m.Size() } -func (m *MsgRetire) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRetire.DiscardUnknown(m) +func (m *MsgMintBatchCredits) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMintBatchCredits.DiscardUnknown(m) } -var xxx_messageInfo_MsgRetire proto.InternalMessageInfo +var xxx_messageInfo_MsgMintBatchCredits proto.InternalMessageInfo -func (m *MsgRetire) GetOwner() string { +func (m *MsgMintBatchCredits) GetIssuer() string { if m != nil { - return m.Owner + return m.Issuer } return "" } -func (m *MsgRetire) GetCredits() []*Credits { +func (m *MsgMintBatchCredits) GetBatchDenom() string { if m != nil { - return m.Credits + return m.BatchDenom } - return nil + return "" } -func (m *MsgRetire) GetJurisdiction() string { +func (m *MsgMintBatchCredits) GetIssuance() []*BatchIssuance { if m != nil { - return m.Jurisdiction + return m.Issuance } - return "" + return nil } -func (m *MsgRetire) GetReason() string { +func (m *MsgMintBatchCredits) GetOriginTx() *OriginTx { if m != nil { - return m.Reason + return m.OriginTx } - return "" + return nil } -// MsgRetire is the Msg/Retire response type. -type MsgRetireResponse struct { +// MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. +type MsgMintBatchCreditsResponse struct { } -func (m *MsgRetireResponse) Reset() { *m = MsgRetireResponse{} } -func (m *MsgRetireResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRetireResponse) ProtoMessage() {} -func (*MsgRetireResponse) Descriptor() ([]byte, []int) { +func (m *MsgMintBatchCreditsResponse) Reset() { *m = MsgMintBatchCreditsResponse{} } +func (m *MsgMintBatchCreditsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgMintBatchCreditsResponse) ProtoMessage() {} +func (*MsgMintBatchCreditsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{15} } -func (m *MsgRetireResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgMintBatchCreditsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgRetireResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgMintBatchCreditsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgRetireResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgMintBatchCreditsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1089,41 +1091,39 @@ func (m *MsgRetireResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *MsgRetireResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRetireResponse.Merge(m, src) +func (m *MsgMintBatchCreditsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMintBatchCreditsResponse.Merge(m, src) } -func (m *MsgRetireResponse) XXX_Size() int { +func (m *MsgMintBatchCreditsResponse) XXX_Size() int { return m.Size() } -func (m *MsgRetireResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRetireResponse.DiscardUnknown(m) +func (m *MsgMintBatchCreditsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMintBatchCreditsResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgRetireResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgMintBatchCreditsResponse proto.InternalMessageInfo -// MsgCancel is the Msg/Cancel request type. -type MsgCancel struct { - // owner is the address of the account that owns the credits being cancelled. - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - // credits specifies a credit batch and the number of credits being cancelled. - Credits []*Credits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` - // reason is any arbitrary string that specifies the reason for cancelling - // credits. - Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +// MsgSealBatch is the Msg/MintBatchCredits request type. +type MsgSealBatch struct { + // issuer is the address of the account that created the credit batch and the + // only account with permissions to seal the credit batch. + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + // batch_denom is the unique identifier of the credit batch. + BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` } -func (m *MsgCancel) Reset() { *m = MsgCancel{} } -func (m *MsgCancel) String() string { return proto.CompactTextString(m) } -func (*MsgCancel) ProtoMessage() {} -func (*MsgCancel) Descriptor() ([]byte, []int) { +func (m *MsgSealBatch) Reset() { *m = MsgSealBatch{} } +func (m *MsgSealBatch) String() string { return proto.CompactTextString(m) } +func (*MsgSealBatch) ProtoMessage() {} +func (*MsgSealBatch) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{16} } -func (m *MsgCancel) XXX_Unmarshal(b []byte) error { +func (m *MsgSealBatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSealBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCancel.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSealBatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1133,55 +1133,48 @@ func (m *MsgCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *MsgCancel) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCancel.Merge(m, src) +func (m *MsgSealBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSealBatch.Merge(m, src) } -func (m *MsgCancel) XXX_Size() int { +func (m *MsgSealBatch) XXX_Size() int { return m.Size() } -func (m *MsgCancel) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCancel.DiscardUnknown(m) +func (m *MsgSealBatch) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSealBatch.DiscardUnknown(m) } -var xxx_messageInfo_MsgCancel proto.InternalMessageInfo +var xxx_messageInfo_MsgSealBatch proto.InternalMessageInfo -func (m *MsgCancel) GetOwner() string { +func (m *MsgSealBatch) GetIssuer() string { if m != nil { - return m.Owner + return m.Issuer } return "" } -func (m *MsgCancel) GetCredits() []*Credits { - if m != nil { - return m.Credits - } - return nil -} - -func (m *MsgCancel) GetReason() string { +func (m *MsgSealBatch) GetBatchDenom() string { if m != nil { - return m.Reason + return m.BatchDenom } return "" } -// MsgCancelResponse is the Msg/Cancel response type. -type MsgCancelResponse struct { +// MsgSealBatchResponse is the Msg/SealBatch response type. +type MsgSealBatchResponse struct { } -func (m *MsgCancelResponse) Reset() { *m = MsgCancelResponse{} } -func (m *MsgCancelResponse) String() string { return proto.CompactTextString(m) } -func (*MsgCancelResponse) ProtoMessage() {} -func (*MsgCancelResponse) Descriptor() ([]byte, []int) { +func (m *MsgSealBatchResponse) Reset() { *m = MsgSealBatchResponse{} } +func (m *MsgSealBatchResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSealBatchResponse) ProtoMessage() {} +func (*MsgSealBatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{17} } -func (m *MsgCancelResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgSealBatchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSealBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCancelResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSealBatchResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1191,42 +1184,40 @@ func (m *MsgCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *MsgCancelResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCancelResponse.Merge(m, src) +func (m *MsgSealBatchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSealBatchResponse.Merge(m, src) } -func (m *MsgCancelResponse) XXX_Size() int { +func (m *MsgSealBatchResponse) XXX_Size() int { return m.Size() } -func (m *MsgCancelResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCancelResponse.DiscardUnknown(m) +func (m *MsgSealBatchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSealBatchResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgCancelResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgSealBatchResponse proto.InternalMessageInfo -// MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. -type MsgUpdateClassAdmin struct { - // admin is the address of the account that is currently the admin of the - // credit class. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // class_id is the unique identifier of the credit class. - ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // new_admin is the address of the account that will become the new admin of - // the credit class. - NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` +// MsgSend is the Msg/Send request type. +type MsgSend struct { + // sender is the address of the account sending credits. + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + // recipient is the address of the account receiving credits. + Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` + // credits are the credits being sent to the recipient. + Credits []*MsgSend_SendCredits `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` } -func (m *MsgUpdateClassAdmin) Reset() { *m = MsgUpdateClassAdmin{} } -func (m *MsgUpdateClassAdmin) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateClassAdmin) ProtoMessage() {} -func (*MsgUpdateClassAdmin) Descriptor() ([]byte, []int) { +func (m *MsgSend) Reset() { *m = MsgSend{} } +func (m *MsgSend) String() string { return proto.CompactTextString(m) } +func (*MsgSend) ProtoMessage() {} +func (*MsgSend) Descriptor() ([]byte, []int) { return fileDescriptor_2b8ae49f50a3ddbd, []int{18} } -func (m *MsgUpdateClassAdmin) XXX_Unmarshal(b []byte) error { +func (m *MsgSend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateClassAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateClassAdmin.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSend.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1236,55 +1227,81 @@ func (m *MsgUpdateClassAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *MsgUpdateClassAdmin) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateClassAdmin.Merge(m, src) +func (m *MsgSend) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSend.Merge(m, src) } -func (m *MsgUpdateClassAdmin) XXX_Size() int { +func (m *MsgSend) XXX_Size() int { return m.Size() } -func (m *MsgUpdateClassAdmin) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateClassAdmin.DiscardUnknown(m) +func (m *MsgSend) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSend.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateClassAdmin proto.InternalMessageInfo +var xxx_messageInfo_MsgSend proto.InternalMessageInfo -func (m *MsgUpdateClassAdmin) GetAdmin() string { +func (m *MsgSend) GetSender() string { if m != nil { - return m.Admin + return m.Sender } return "" } -func (m *MsgUpdateClassAdmin) GetClassId() string { +func (m *MsgSend) GetRecipient() string { if m != nil { - return m.ClassId + return m.Recipient } return "" } -func (m *MsgUpdateClassAdmin) GetNewAdmin() string { +func (m *MsgSend) GetCredits() []*MsgSend_SendCredits { if m != nil { - return m.NewAdmin + return m.Credits } - return "" + return nil } -// MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. -type MsgUpdateClassAdminResponse struct { +// SendCredits specifies the amount of tradable and retired credits of a +// credit batch that will be sent to the recipient and the jurisdiction in +// which the credits will be retired upon receipt. +type MsgSend_SendCredits struct { + // batch_denom is the unique identifier of the credit batch. + BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` + // tradable_amount is the amount of credits in this transfer that can be + // traded by the recipient. The number of decimal places must be less than + // or equal to the credit type precision. + TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"` + // retired_amount is the amount of credits in this transfer that are retired + // upon receipt. The number of decimal places must be less than or equal to + // the credit type precision. + RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"` + // retirement_jurisdiction is the jurisdiction of the recipient and is only + // required if retired_amount is positive. A jurisdiction has the format: + // [-[ ]] + // The country-code and sub-national-code must conform to ISO 3166-2 and the + // postal-code can be up to 64 alphanumeric characters. Only the + // country-code is required, while the sub-national-code and postal-code are + // optional and can be added for increased precision. + RetirementJurisdiction string `protobuf:"bytes,4,opt,name=retirement_jurisdiction,json=retirementJurisdiction,proto3" json:"retirement_jurisdiction,omitempty"` + // retirement_reason is any arbitrary string that specifies the reason for + // retiring credits. This field is only required if retired_amount is + // positive. + // + // Since Revision 2 + RetirementReason string `protobuf:"bytes,5,opt,name=retirement_reason,json=retirementReason,proto3" json:"retirement_reason,omitempty"` } -func (m *MsgUpdateClassAdminResponse) Reset() { *m = MsgUpdateClassAdminResponse{} } -func (m *MsgUpdateClassAdminResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateClassAdminResponse) ProtoMessage() {} -func (*MsgUpdateClassAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{19} +func (m *MsgSend_SendCredits) Reset() { *m = MsgSend_SendCredits{} } +func (m *MsgSend_SendCredits) String() string { return proto.CompactTextString(m) } +func (*MsgSend_SendCredits) ProtoMessage() {} +func (*MsgSend_SendCredits) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{18, 0} } -func (m *MsgUpdateClassAdminResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgSend_SendCredits) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateClassAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSend_SendCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateClassAdminResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSend_SendCredits.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1294,109 +1311,69 @@ func (m *MsgUpdateClassAdminResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgUpdateClassAdminResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateClassAdminResponse.Merge(m, src) +func (m *MsgSend_SendCredits) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSend_SendCredits.Merge(m, src) } -func (m *MsgUpdateClassAdminResponse) XXX_Size() int { +func (m *MsgSend_SendCredits) XXX_Size() int { return m.Size() } -func (m *MsgUpdateClassAdminResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateClassAdminResponse.DiscardUnknown(m) +func (m *MsgSend_SendCredits) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSend_SendCredits.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateClassAdminResponse proto.InternalMessageInfo - -// MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. -type MsgUpdateClassIssuers struct { - // admin is the address of the account that is the admin of the credit class. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // class_id is the unique identifier of the credit class. - ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // add_issuers are the addresses of the accounts that will be added to the - // list of approved credit class issuers. - AddIssuers []string `protobuf:"bytes,3,rep,name=add_issuers,json=addIssuers,proto3" json:"add_issuers,omitempty"` - // remove_issuers are the addresses of the accounts that will be removed from - // the list of approved credit class issuers. - RemoveIssuers []string `protobuf:"bytes,4,rep,name=remove_issuers,json=removeIssuers,proto3" json:"remove_issuers,omitempty"` -} +var xxx_messageInfo_MsgSend_SendCredits proto.InternalMessageInfo -func (m *MsgUpdateClassIssuers) Reset() { *m = MsgUpdateClassIssuers{} } -func (m *MsgUpdateClassIssuers) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateClassIssuers) ProtoMessage() {} -func (*MsgUpdateClassIssuers) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{20} -} -func (m *MsgUpdateClassIssuers) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateClassIssuers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateClassIssuers.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (m *MsgSend_SendCredits) GetBatchDenom() string { + if m != nil { + return m.BatchDenom } + return "" } -func (m *MsgUpdateClassIssuers) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateClassIssuers.Merge(m, src) -} -func (m *MsgUpdateClassIssuers) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateClassIssuers) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateClassIssuers.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateClassIssuers proto.InternalMessageInfo -func (m *MsgUpdateClassIssuers) GetAdmin() string { +func (m *MsgSend_SendCredits) GetTradableAmount() string { if m != nil { - return m.Admin + return m.TradableAmount } return "" } -func (m *MsgUpdateClassIssuers) GetClassId() string { +func (m *MsgSend_SendCredits) GetRetiredAmount() string { if m != nil { - return m.ClassId + return m.RetiredAmount } return "" } -func (m *MsgUpdateClassIssuers) GetAddIssuers() []string { +func (m *MsgSend_SendCredits) GetRetirementJurisdiction() string { if m != nil { - return m.AddIssuers + return m.RetirementJurisdiction } - return nil + return "" } -func (m *MsgUpdateClassIssuers) GetRemoveIssuers() []string { +func (m *MsgSend_SendCredits) GetRetirementReason() string { if m != nil { - return m.RemoveIssuers + return m.RetirementReason } - return nil + return "" } -// MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. -type MsgUpdateClassIssuersResponse struct { +// MsgSendResponse is the Msg/Send response type. +type MsgSendResponse struct { } -func (m *MsgUpdateClassIssuersResponse) Reset() { *m = MsgUpdateClassIssuersResponse{} } -func (m *MsgUpdateClassIssuersResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateClassIssuersResponse) ProtoMessage() {} -func (*MsgUpdateClassIssuersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{21} +func (m *MsgSendResponse) Reset() { *m = MsgSendResponse{} } +func (m *MsgSendResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSendResponse) ProtoMessage() {} +func (*MsgSendResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{19} } -func (m *MsgUpdateClassIssuersResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateClassIssuersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateClassIssuersResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSendResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1406,42 +1383,51 @@ func (m *MsgUpdateClassIssuersResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *MsgUpdateClassIssuersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateClassIssuersResponse.Merge(m, src) +func (m *MsgSendResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSendResponse.Merge(m, src) } -func (m *MsgUpdateClassIssuersResponse) XXX_Size() int { +func (m *MsgSendResponse) XXX_Size() int { return m.Size() } -func (m *MsgUpdateClassIssuersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateClassIssuersResponse.DiscardUnknown(m) +func (m *MsgSendResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSendResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateClassIssuersResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgSendResponse proto.InternalMessageInfo -// MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. -type MsgUpdateClassMetadata struct { - // admin is the address of the account that is the admin of the credit class. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // class_id is the unique identifier of the credit class. - ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // new_metadata is new metadata that will replace the existing metadata. It - // can be any arbitrary string with a maximum length of 256 characters that - // includes or references the metadata to attach to the credit class. - NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` +// MsgRetire is the Msg/Retire request type. +type MsgRetire struct { + // owner is the address of the account that owns the credits being retired. + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + // credits specifies a credit batch and the number of credits being retired. + Credits []*Credits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` + // jurisdiction is the jurisdiction of the credit owner. A jurisdiction has + // the format: [-[ ]] + // The country-code must be 2 alphabetic characters, the sub-national-code + // can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + // alphanumeric characters. Only the country-code is required, while the + // sub-national-code and postal-code are optional and can be added for + // increased precision. + Jurisdiction string `protobuf:"bytes,3,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"` + // reason is any arbitrary string that specifies the reason for retiring + // credits. + // + // Since Revision 2 + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` } -func (m *MsgUpdateClassMetadata) Reset() { *m = MsgUpdateClassMetadata{} } -func (m *MsgUpdateClassMetadata) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateClassMetadata) ProtoMessage() {} -func (*MsgUpdateClassMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{22} +func (m *MsgRetire) Reset() { *m = MsgRetire{} } +func (m *MsgRetire) String() string { return proto.CompactTextString(m) } +func (*MsgRetire) ProtoMessage() {} +func (*MsgRetire) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{20} } -func (m *MsgUpdateClassMetadata) XXX_Unmarshal(b []byte) error { +func (m *MsgRetire) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateClassMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRetire) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateClassMetadata.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRetire.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1451,55 +1437,62 @@ func (m *MsgUpdateClassMetadata) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *MsgUpdateClassMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateClassMetadata.Merge(m, src) +func (m *MsgRetire) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRetire.Merge(m, src) } -func (m *MsgUpdateClassMetadata) XXX_Size() int { +func (m *MsgRetire) XXX_Size() int { return m.Size() } -func (m *MsgUpdateClassMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateClassMetadata.DiscardUnknown(m) +func (m *MsgRetire) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRetire.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateClassMetadata proto.InternalMessageInfo +var xxx_messageInfo_MsgRetire proto.InternalMessageInfo -func (m *MsgUpdateClassMetadata) GetAdmin() string { +func (m *MsgRetire) GetOwner() string { if m != nil { - return m.Admin + return m.Owner } return "" } -func (m *MsgUpdateClassMetadata) GetClassId() string { +func (m *MsgRetire) GetCredits() []*Credits { if m != nil { - return m.ClassId + return m.Credits + } + return nil +} + +func (m *MsgRetire) GetJurisdiction() string { + if m != nil { + return m.Jurisdiction } return "" } -func (m *MsgUpdateClassMetadata) GetNewMetadata() string { +func (m *MsgRetire) GetReason() string { if m != nil { - return m.NewMetadata + return m.Reason } return "" } -// MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. -type MsgUpdateClassMetadataResponse struct { +// MsgRetire is the Msg/Retire response type. +type MsgRetireResponse struct { } -func (m *MsgUpdateClassMetadataResponse) Reset() { *m = MsgUpdateClassMetadataResponse{} } -func (m *MsgUpdateClassMetadataResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateClassMetadataResponse) ProtoMessage() {} -func (*MsgUpdateClassMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{23} +func (m *MsgRetireResponse) Reset() { *m = MsgRetireResponse{} } +func (m *MsgRetireResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRetireResponse) ProtoMessage() {} +func (*MsgRetireResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{21} } -func (m *MsgUpdateClassMetadataResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgRetireResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateClassMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRetireResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateClassMetadataResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRetireResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1509,42 +1502,41 @@ func (m *MsgUpdateClassMetadataResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *MsgUpdateClassMetadataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateClassMetadataResponse.Merge(m, src) +func (m *MsgRetireResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRetireResponse.Merge(m, src) } -func (m *MsgUpdateClassMetadataResponse) XXX_Size() int { +func (m *MsgRetireResponse) XXX_Size() int { return m.Size() } -func (m *MsgUpdateClassMetadataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateClassMetadataResponse.DiscardUnknown(m) +func (m *MsgRetireResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRetireResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateClassMetadataResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgRetireResponse proto.InternalMessageInfo -// MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. -type MsgUpdateProjectAdmin struct { - // admin is the address of the account that is the currently the admin of the - // project. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // project_id is the unique identifier of the project. - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - // new_admin is the address of the account that will become the new admin of - // the project. - NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` +// MsgCancel is the Msg/Cancel request type. +type MsgCancel struct { + // owner is the address of the account that owns the credits being cancelled. + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + // credits specifies a credit batch and the number of credits being cancelled. + Credits []*Credits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` + // reason is any arbitrary string that specifies the reason for cancelling + // credits. + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` } -func (m *MsgUpdateProjectAdmin) Reset() { *m = MsgUpdateProjectAdmin{} } -func (m *MsgUpdateProjectAdmin) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateProjectAdmin) ProtoMessage() {} -func (*MsgUpdateProjectAdmin) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{24} +func (m *MsgCancel) Reset() { *m = MsgCancel{} } +func (m *MsgCancel) String() string { return proto.CompactTextString(m) } +func (*MsgCancel) ProtoMessage() {} +func (*MsgCancel) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{22} } -func (m *MsgUpdateProjectAdmin) XXX_Unmarshal(b []byte) error { +func (m *MsgCancel) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateProjectAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateProjectAdmin.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCancel.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1554,55 +1546,55 @@ func (m *MsgUpdateProjectAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *MsgUpdateProjectAdmin) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateProjectAdmin.Merge(m, src) +func (m *MsgCancel) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCancel.Merge(m, src) } -func (m *MsgUpdateProjectAdmin) XXX_Size() int { +func (m *MsgCancel) XXX_Size() int { return m.Size() } -func (m *MsgUpdateProjectAdmin) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateProjectAdmin.DiscardUnknown(m) -} +func (m *MsgCancel) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCancel.DiscardUnknown(m) +} -var xxx_messageInfo_MsgUpdateProjectAdmin proto.InternalMessageInfo +var xxx_messageInfo_MsgCancel proto.InternalMessageInfo -func (m *MsgUpdateProjectAdmin) GetAdmin() string { +func (m *MsgCancel) GetOwner() string { if m != nil { - return m.Admin + return m.Owner } return "" } -func (m *MsgUpdateProjectAdmin) GetProjectId() string { +func (m *MsgCancel) GetCredits() []*Credits { if m != nil { - return m.ProjectId + return m.Credits } - return "" + return nil } -func (m *MsgUpdateProjectAdmin) GetNewAdmin() string { +func (m *MsgCancel) GetReason() string { if m != nil { - return m.NewAdmin + return m.Reason } return "" } -// MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. -type MsgUpdateProjectAdminResponse struct { +// MsgCancelResponse is the Msg/Cancel response type. +type MsgCancelResponse struct { } -func (m *MsgUpdateProjectAdminResponse) Reset() { *m = MsgUpdateProjectAdminResponse{} } -func (m *MsgUpdateProjectAdminResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateProjectAdminResponse) ProtoMessage() {} -func (*MsgUpdateProjectAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{25} +func (m *MsgCancelResponse) Reset() { *m = MsgCancelResponse{} } +func (m *MsgCancelResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCancelResponse) ProtoMessage() {} +func (*MsgCancelResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{23} } -func (m *MsgUpdateProjectAdminResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgCancelResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateProjectAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateProjectAdminResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCancelResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1612,42 +1604,42 @@ func (m *MsgUpdateProjectAdminResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *MsgUpdateProjectAdminResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateProjectAdminResponse.Merge(m, src) +func (m *MsgCancelResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCancelResponse.Merge(m, src) } -func (m *MsgUpdateProjectAdminResponse) XXX_Size() int { +func (m *MsgCancelResponse) XXX_Size() int { return m.Size() } -func (m *MsgUpdateProjectAdminResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateProjectAdminResponse.DiscardUnknown(m) +func (m *MsgCancelResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCancelResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateProjectAdminResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgCancelResponse proto.InternalMessageInfo -// MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. -type MsgUpdateProjectMetadata struct { - // admin is the address of the account that is the admin of the project. +// MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. +type MsgUpdateClassAdmin struct { + // admin is the address of the account that is currently the admin of the + // credit class. Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // project_id is the unique identifier of the project. - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - // new_metadata is new metadata that will replace the existing metadata. It - // can be any arbitrary string with a maximum length of 256 characters that - // includes or references the metadata to attach to the project. - NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` + // class_id is the unique identifier of the credit class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // new_admin is the address of the account that will become the new admin of + // the credit class. + NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` } -func (m *MsgUpdateProjectMetadata) Reset() { *m = MsgUpdateProjectMetadata{} } -func (m *MsgUpdateProjectMetadata) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateProjectMetadata) ProtoMessage() {} -func (*MsgUpdateProjectMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{26} +func (m *MsgUpdateClassAdmin) Reset() { *m = MsgUpdateClassAdmin{} } +func (m *MsgUpdateClassAdmin) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateClassAdmin) ProtoMessage() {} +func (*MsgUpdateClassAdmin) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{24} } -func (m *MsgUpdateProjectMetadata) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateClassAdmin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateProjectMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateClassAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateProjectMetadata.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateClassAdmin.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1657,56 +1649,55 @@ func (m *MsgUpdateProjectMetadata) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *MsgUpdateProjectMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateProjectMetadata.Merge(m, src) +func (m *MsgUpdateClassAdmin) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateClassAdmin.Merge(m, src) } -func (m *MsgUpdateProjectMetadata) XXX_Size() int { +func (m *MsgUpdateClassAdmin) XXX_Size() int { return m.Size() } -func (m *MsgUpdateProjectMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateProjectMetadata.DiscardUnknown(m) +func (m *MsgUpdateClassAdmin) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateClassAdmin.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateProjectMetadata proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateClassAdmin proto.InternalMessageInfo -func (m *MsgUpdateProjectMetadata) GetAdmin() string { +func (m *MsgUpdateClassAdmin) GetAdmin() string { if m != nil { return m.Admin } return "" } -func (m *MsgUpdateProjectMetadata) GetProjectId() string { +func (m *MsgUpdateClassAdmin) GetClassId() string { if m != nil { - return m.ProjectId + return m.ClassId } return "" } -func (m *MsgUpdateProjectMetadata) GetNewMetadata() string { +func (m *MsgUpdateClassAdmin) GetNewAdmin() string { if m != nil { - return m.NewMetadata + return m.NewAdmin } return "" } -// MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse -// response type. -type MsgUpdateProjectMetadataResponse struct { +// MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. +type MsgUpdateClassAdminResponse struct { } -func (m *MsgUpdateProjectMetadataResponse) Reset() { *m = MsgUpdateProjectMetadataResponse{} } -func (m *MsgUpdateProjectMetadataResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateProjectMetadataResponse) ProtoMessage() {} -func (*MsgUpdateProjectMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{27} +func (m *MsgUpdateClassAdminResponse) Reset() { *m = MsgUpdateClassAdminResponse{} } +func (m *MsgUpdateClassAdminResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateClassAdminResponse) ProtoMessage() {} +func (*MsgUpdateClassAdminResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{25} } -func (m *MsgUpdateProjectMetadataResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateClassAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateProjectMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateClassAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateProjectMetadataResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateClassAdminResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1716,42 +1707,44 @@ func (m *MsgUpdateProjectMetadataResponse) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *MsgUpdateProjectMetadataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateProjectMetadataResponse.Merge(m, src) +func (m *MsgUpdateClassAdminResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateClassAdminResponse.Merge(m, src) } -func (m *MsgUpdateProjectMetadataResponse) XXX_Size() int { +func (m *MsgUpdateClassAdminResponse) XXX_Size() int { return m.Size() } -func (m *MsgUpdateProjectMetadataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateProjectMetadataResponse.DiscardUnknown(m) +func (m *MsgUpdateClassAdminResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateClassAdminResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateProjectMetadataResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateClassAdminResponse proto.InternalMessageInfo -// MsgBridge is the Msg/Bridge request type. -type MsgBridge struct { - // owner is the address of the account that owns the credits being bridged. - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - // target is the name of the target chain or registry. - Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` - // recipient is the address of the account receiving the bridged credits. - Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` - // credits specifies a credit batch and the number of credits being bridged. - Credits []*Credits `protobuf:"bytes,4,rep,name=credits,proto3" json:"credits,omitempty"` +// MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. +type MsgUpdateClassIssuers struct { + // admin is the address of the account that is the admin of the credit class. + Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` + // class_id is the unique identifier of the credit class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // add_issuers are the addresses of the accounts that will be added to the + // list of approved credit class issuers. + AddIssuers []string `protobuf:"bytes,3,rep,name=add_issuers,json=addIssuers,proto3" json:"add_issuers,omitempty"` + // remove_issuers are the addresses of the accounts that will be removed from + // the list of approved credit class issuers. + RemoveIssuers []string `protobuf:"bytes,4,rep,name=remove_issuers,json=removeIssuers,proto3" json:"remove_issuers,omitempty"` } -func (m *MsgBridge) Reset() { *m = MsgBridge{} } -func (m *MsgBridge) String() string { return proto.CompactTextString(m) } -func (*MsgBridge) ProtoMessage() {} -func (*MsgBridge) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{28} +func (m *MsgUpdateClassIssuers) Reset() { *m = MsgUpdateClassIssuers{} } +func (m *MsgUpdateClassIssuers) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateClassIssuers) ProtoMessage() {} +func (*MsgUpdateClassIssuers) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{26} } -func (m *MsgBridge) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateClassIssuers) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBridge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateClassIssuers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBridge.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateClassIssuers.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1761,72 +1754,62 @@ func (m *MsgBridge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *MsgBridge) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBridge.Merge(m, src) +func (m *MsgUpdateClassIssuers) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateClassIssuers.Merge(m, src) } -func (m *MsgBridge) XXX_Size() int { +func (m *MsgUpdateClassIssuers) XXX_Size() int { return m.Size() } -func (m *MsgBridge) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBridge.DiscardUnknown(m) +func (m *MsgUpdateClassIssuers) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateClassIssuers.DiscardUnknown(m) } -var xxx_messageInfo_MsgBridge proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateClassIssuers proto.InternalMessageInfo -func (m *MsgBridge) GetOwner() string { +func (m *MsgUpdateClassIssuers) GetAdmin() string { if m != nil { - return m.Owner + return m.Admin } return "" } -func (m *MsgBridge) GetTarget() string { +func (m *MsgUpdateClassIssuers) GetClassId() string { if m != nil { - return m.Target + return m.ClassId } return "" } -func (m *MsgBridge) GetRecipient() string { +func (m *MsgUpdateClassIssuers) GetAddIssuers() []string { if m != nil { - return m.Recipient + return m.AddIssuers } - return "" + return nil } -func (m *MsgBridge) GetCredits() []*Credits { +func (m *MsgUpdateClassIssuers) GetRemoveIssuers() []string { if m != nil { - return m.Credits + return m.RemoveIssuers } return nil } -// MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. -// -// Since Revision 2 -type MsgUpdateBatchMetadata struct { - // issuer is the address of the account that is the issuer of the batch. - Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` - // batch_denom is the unique identifier of the batch. - BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` - // new_metadata is new metadata that will replace the existing metadata. It - // can be any arbitrary string with a maximum length of 256 characters that - // includes or references the metadata to attach to the batch. - NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` +// MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. +type MsgUpdateClassIssuersResponse struct { } -func (m *MsgUpdateBatchMetadata) Reset() { *m = MsgUpdateBatchMetadata{} } -func (m *MsgUpdateBatchMetadata) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateBatchMetadata) ProtoMessage() {} -func (*MsgUpdateBatchMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{29} +func (m *MsgUpdateClassIssuersResponse) Reset() { *m = MsgUpdateClassIssuersResponse{} } +func (m *MsgUpdateClassIssuersResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateClassIssuersResponse) ProtoMessage() {} +func (*MsgUpdateClassIssuersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{27} } -func (m *MsgUpdateBatchMetadata) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateClassIssuersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateBatchMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateClassIssuersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateBatchMetadata.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateClassIssuersResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1836,58 +1819,42 @@ func (m *MsgUpdateBatchMetadata) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *MsgUpdateBatchMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateBatchMetadata.Merge(m, src) +func (m *MsgUpdateClassIssuersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateClassIssuersResponse.Merge(m, src) } -func (m *MsgUpdateBatchMetadata) XXX_Size() int { +func (m *MsgUpdateClassIssuersResponse) XXX_Size() int { return m.Size() } -func (m *MsgUpdateBatchMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateBatchMetadata.DiscardUnknown(m) +func (m *MsgUpdateClassIssuersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateClassIssuersResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateBatchMetadata proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateClassIssuersResponse proto.InternalMessageInfo -func (m *MsgUpdateBatchMetadata) GetIssuer() string { - if m != nil { - return m.Issuer - } - return "" -} - -func (m *MsgUpdateBatchMetadata) GetBatchDenom() string { - if m != nil { - return m.BatchDenom - } - return "" -} - -func (m *MsgUpdateBatchMetadata) GetNewMetadata() string { - if m != nil { - return m.NewMetadata - } - return "" -} - -// MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse -// response type. -// -// Since Revision 2 -type MsgUpdateBatchMetadataResponse struct { +// MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. +type MsgUpdateClassMetadata struct { + // admin is the address of the account that is the admin of the credit class. + Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` + // class_id is the unique identifier of the credit class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // new_metadata is new metadata that will replace the existing metadata. It + // can be any arbitrary string with a maximum length of 256 characters that + // includes or references the metadata to attach to the credit class. + NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` } -func (m *MsgUpdateBatchMetadataResponse) Reset() { *m = MsgUpdateBatchMetadataResponse{} } -func (m *MsgUpdateBatchMetadataResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateBatchMetadataResponse) ProtoMessage() {} -func (*MsgUpdateBatchMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{30} +func (m *MsgUpdateClassMetadata) Reset() { *m = MsgUpdateClassMetadata{} } +func (m *MsgUpdateClassMetadata) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateClassMetadata) ProtoMessage() {} +func (*MsgUpdateClassMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{28} } -func (m *MsgUpdateBatchMetadataResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateClassMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateBatchMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateClassMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateBatchMetadataResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateClassMetadata.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1897,34 +1864,55 @@ func (m *MsgUpdateBatchMetadataResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *MsgUpdateBatchMetadataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateBatchMetadataResponse.Merge(m, src) +func (m *MsgUpdateClassMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateClassMetadata.Merge(m, src) } -func (m *MsgUpdateBatchMetadataResponse) XXX_Size() int { +func (m *MsgUpdateClassMetadata) XXX_Size() int { return m.Size() } -func (m *MsgUpdateBatchMetadataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateBatchMetadataResponse.DiscardUnknown(m) +func (m *MsgUpdateClassMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateClassMetadata.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateBatchMetadataResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateClassMetadata proto.InternalMessageInfo -// MsgBridgeResponse is the Msg/Bridge response type. -type MsgBridgeResponse struct { +func (m *MsgUpdateClassMetadata) GetAdmin() string { + if m != nil { + return m.Admin + } + return "" } -func (m *MsgBridgeResponse) Reset() { *m = MsgBridgeResponse{} } -func (m *MsgBridgeResponse) String() string { return proto.CompactTextString(m) } -func (*MsgBridgeResponse) ProtoMessage() {} -func (*MsgBridgeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{31} +func (m *MsgUpdateClassMetadata) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" } -func (m *MsgBridgeResponse) XXX_Unmarshal(b []byte) error { + +func (m *MsgUpdateClassMetadata) GetNewMetadata() string { + if m != nil { + return m.NewMetadata + } + return "" +} + +// MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. +type MsgUpdateClassMetadataResponse struct { +} + +func (m *MsgUpdateClassMetadataResponse) Reset() { *m = MsgUpdateClassMetadataResponse{} } +func (m *MsgUpdateClassMetadataResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateClassMetadataResponse) ProtoMessage() {} +func (*MsgUpdateClassMetadataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{29} +} +func (m *MsgUpdateClassMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBridgeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateClassMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBridgeResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateClassMetadataResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1934,46 +1922,42 @@ func (m *MsgBridgeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *MsgBridgeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBridgeResponse.Merge(m, src) +func (m *MsgUpdateClassMetadataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateClassMetadataResponse.Merge(m, src) } -func (m *MsgBridgeResponse) XXX_Size() int { +func (m *MsgUpdateClassMetadataResponse) XXX_Size() int { return m.Size() } -func (m *MsgBridgeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBridgeResponse.DiscardUnknown(m) +func (m *MsgUpdateClassMetadataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateClassMetadataResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgBridgeResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateClassMetadataResponse proto.InternalMessageInfo -// MsgBridgeReceive is the Msg/BridgeReceive request type. -type MsgBridgeReceive struct { - // issuer is the account address of the service bridging the credits. - Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` - // class_id is the unique identifier of the credit class within which the - // project and credit batch already exist or will be created. - ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // project defines the project information for the bridged credits. - Project *MsgBridgeReceive_Project `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` - // batch defines the credit batch information for the bridged credits. - Batch *MsgBridgeReceive_Batch `protobuf:"bytes,4,opt,name=batch,proto3" json:"batch,omitempty"` - // origin_tx is a reference to a transaction which caused the transfer from - // another chain or registry. - OriginTx *OriginTx `protobuf:"bytes,5,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"` +// MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. +type MsgUpdateProjectAdmin struct { + // admin is the address of the account that is the currently the admin of the + // project. + Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` + // project_id is the unique identifier of the project. + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // new_admin is the address of the account that will become the new admin of + // the project. + NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` } -func (m *MsgBridgeReceive) Reset() { *m = MsgBridgeReceive{} } -func (m *MsgBridgeReceive) String() string { return proto.CompactTextString(m) } -func (*MsgBridgeReceive) ProtoMessage() {} -func (*MsgBridgeReceive) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{32} +func (m *MsgUpdateProjectAdmin) Reset() { *m = MsgUpdateProjectAdmin{} } +func (m *MsgUpdateProjectAdmin) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateProjectAdmin) ProtoMessage() {} +func (*MsgUpdateProjectAdmin) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{30} } -func (m *MsgBridgeReceive) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateProjectAdmin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBridgeReceive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateProjectAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBridgeReceive.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateProjectAdmin.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1983,83 +1967,55 @@ func (m *MsgBridgeReceive) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *MsgBridgeReceive) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBridgeReceive.Merge(m, src) +func (m *MsgUpdateProjectAdmin) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateProjectAdmin.Merge(m, src) } -func (m *MsgBridgeReceive) XXX_Size() int { +func (m *MsgUpdateProjectAdmin) XXX_Size() int { return m.Size() } -func (m *MsgBridgeReceive) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBridgeReceive.DiscardUnknown(m) +func (m *MsgUpdateProjectAdmin) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateProjectAdmin.DiscardUnknown(m) } -var xxx_messageInfo_MsgBridgeReceive proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateProjectAdmin proto.InternalMessageInfo -func (m *MsgBridgeReceive) GetIssuer() string { +func (m *MsgUpdateProjectAdmin) GetAdmin() string { if m != nil { - return m.Issuer + return m.Admin } return "" } -func (m *MsgBridgeReceive) GetClassId() string { +func (m *MsgUpdateProjectAdmin) GetProjectId() string { if m != nil { - return m.ClassId + return m.ProjectId } return "" } -func (m *MsgBridgeReceive) GetProject() *MsgBridgeReceive_Project { - if m != nil { - return m.Project - } - return nil -} - -func (m *MsgBridgeReceive) GetBatch() *MsgBridgeReceive_Batch { - if m != nil { - return m.Batch - } - return nil -} - -func (m *MsgBridgeReceive) GetOriginTx() *OriginTx { +func (m *MsgUpdateProjectAdmin) GetNewAdmin() string { if m != nil { - return m.OriginTx + return m.NewAdmin } - return nil + return "" } -// Batch defines the credit batch information for the bridged credits. This -// information will be used to create a credit batch or to dynamically mint -// credits to an existing credit batch. -type MsgBridgeReceive_Batch struct { - // recipient is the recipient of the bridged credits. - Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` - // amount is the amount of credits being bridged. - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` - // start_date is the beginning of the period during which this credit batch - // was quantified and verified. - StartDate *time.Time `protobuf:"bytes,3,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"` - // end_date is the end of the period during which this credit batch was - // quantified and verified. - EndDate *time.Time `protobuf:"bytes,4,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"` - // metadata is the metadata for the credit batch. - Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` +// MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. +type MsgUpdateProjectAdminResponse struct { } -func (m *MsgBridgeReceive_Batch) Reset() { *m = MsgBridgeReceive_Batch{} } -func (m *MsgBridgeReceive_Batch) String() string { return proto.CompactTextString(m) } -func (*MsgBridgeReceive_Batch) ProtoMessage() {} -func (*MsgBridgeReceive_Batch) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{32, 0} +func (m *MsgUpdateProjectAdminResponse) Reset() { *m = MsgUpdateProjectAdminResponse{} } +func (m *MsgUpdateProjectAdminResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateProjectAdminResponse) ProtoMessage() {} +func (*MsgUpdateProjectAdminResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{31} } -func (m *MsgBridgeReceive_Batch) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateProjectAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBridgeReceive_Batch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateProjectAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBridgeReceive_Batch.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateProjectAdminResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2069,77 +2025,101 @@ func (m *MsgBridgeReceive_Batch) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *MsgBridgeReceive_Batch) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBridgeReceive_Batch.Merge(m, src) +func (m *MsgUpdateProjectAdminResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateProjectAdminResponse.Merge(m, src) } -func (m *MsgBridgeReceive_Batch) XXX_Size() int { +func (m *MsgUpdateProjectAdminResponse) XXX_Size() int { return m.Size() } -func (m *MsgBridgeReceive_Batch) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBridgeReceive_Batch.DiscardUnknown(m) +func (m *MsgUpdateProjectAdminResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateProjectAdminResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgBridgeReceive_Batch proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateProjectAdminResponse proto.InternalMessageInfo -func (m *MsgBridgeReceive_Batch) GetRecipient() string { - if m != nil { - return m.Recipient - } - return "" +// MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. +type MsgUpdateProjectMetadata struct { + // admin is the address of the account that is the admin of the project. + Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` + // project_id is the unique identifier of the project. + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // new_metadata is new metadata that will replace the existing metadata. It + // can be any arbitrary string with a maximum length of 256 characters that + // includes or references the metadata to attach to the project. + NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` } -func (m *MsgBridgeReceive_Batch) GetAmount() string { - if m != nil { - return m.Amount - } - return "" +func (m *MsgUpdateProjectMetadata) Reset() { *m = MsgUpdateProjectMetadata{} } +func (m *MsgUpdateProjectMetadata) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateProjectMetadata) ProtoMessage() {} +func (*MsgUpdateProjectMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{32} +} +func (m *MsgUpdateProjectMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateProjectMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateProjectMetadata.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateProjectMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateProjectMetadata.Merge(m, src) +} +func (m *MsgUpdateProjectMetadata) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateProjectMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateProjectMetadata.DiscardUnknown(m) } -func (m *MsgBridgeReceive_Batch) GetStartDate() *time.Time { +var xxx_messageInfo_MsgUpdateProjectMetadata proto.InternalMessageInfo + +func (m *MsgUpdateProjectMetadata) GetAdmin() string { if m != nil { - return m.StartDate + return m.Admin } - return nil + return "" } -func (m *MsgBridgeReceive_Batch) GetEndDate() *time.Time { +func (m *MsgUpdateProjectMetadata) GetProjectId() string { if m != nil { - return m.EndDate + return m.ProjectId } - return nil + return "" } -func (m *MsgBridgeReceive_Batch) GetMetadata() string { +func (m *MsgUpdateProjectMetadata) GetNewMetadata() string { if m != nil { - return m.Metadata + return m.NewMetadata } return "" } -// Project defines the project information for the bridged credits. This -// information will be used to find an existing project or to create a new -// project if a project with the same reference id does not already exist. -type MsgBridgeReceive_Project struct { - // reference_id is the reference id of the project. - ReferenceId string `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` - // jurisdiction is the project jurisdiction. - Jurisdiction string `protobuf:"bytes,2,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"` - // metadata is the metadata for the project. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` +// MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse +// response type. +type MsgUpdateProjectMetadataResponse struct { } -func (m *MsgBridgeReceive_Project) Reset() { *m = MsgBridgeReceive_Project{} } -func (m *MsgBridgeReceive_Project) String() string { return proto.CompactTextString(m) } -func (*MsgBridgeReceive_Project) ProtoMessage() {} -func (*MsgBridgeReceive_Project) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{32, 1} +func (m *MsgUpdateProjectMetadataResponse) Reset() { *m = MsgUpdateProjectMetadataResponse{} } +func (m *MsgUpdateProjectMetadataResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateProjectMetadataResponse) ProtoMessage() {} +func (*MsgUpdateProjectMetadataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{33} } -func (m *MsgBridgeReceive_Project) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateProjectMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBridgeReceive_Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateProjectMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBridgeReceive_Project.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateProjectMetadataResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2149,61 +2129,42 @@ func (m *MsgBridgeReceive_Project) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *MsgBridgeReceive_Project) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBridgeReceive_Project.Merge(m, src) +func (m *MsgUpdateProjectMetadataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateProjectMetadataResponse.Merge(m, src) } -func (m *MsgBridgeReceive_Project) XXX_Size() int { +func (m *MsgUpdateProjectMetadataResponse) XXX_Size() int { return m.Size() } -func (m *MsgBridgeReceive_Project) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBridgeReceive_Project.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgBridgeReceive_Project proto.InternalMessageInfo - -func (m *MsgBridgeReceive_Project) GetReferenceId() string { - if m != nil { - return m.ReferenceId - } - return "" -} - -func (m *MsgBridgeReceive_Project) GetJurisdiction() string { - if m != nil { - return m.Jurisdiction - } - return "" +func (m *MsgUpdateProjectMetadataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateProjectMetadataResponse.DiscardUnknown(m) } -func (m *MsgBridgeReceive_Project) GetMetadata() string { - if m != nil { - return m.Metadata - } - return "" -} +var xxx_messageInfo_MsgUpdateProjectMetadataResponse proto.InternalMessageInfo -// MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. -type MsgBridgeReceiveResponse struct { - // batch_denom is the unique identifier of the credit batch either created - // or within which the credits were dynamically minted. - BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` - // project_id is the unique identifier of the project that was either created - // or the existing project within which the credit batch exists. - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +// MsgBridge is the Msg/Bridge request type. +type MsgBridge struct { + // owner is the address of the account that owns the credits being bridged. + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + // target is the name of the target chain or registry. + Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` + // recipient is the address of the account receiving the bridged credits. + Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` + // credits specifies a credit batch and the number of credits being bridged. + Credits []*Credits `protobuf:"bytes,4,rep,name=credits,proto3" json:"credits,omitempty"` } -func (m *MsgBridgeReceiveResponse) Reset() { *m = MsgBridgeReceiveResponse{} } -func (m *MsgBridgeReceiveResponse) String() string { return proto.CompactTextString(m) } -func (*MsgBridgeReceiveResponse) ProtoMessage() {} -func (*MsgBridgeReceiveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{33} +func (m *MsgBridge) Reset() { *m = MsgBridge{} } +func (m *MsgBridge) String() string { return proto.CompactTextString(m) } +func (*MsgBridge) ProtoMessage() {} +func (*MsgBridge) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{34} } -func (m *MsgBridgeReceiveResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgBridge) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBridgeReceiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgBridge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBridgeReceiveResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgBridge.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2213,54 +2174,72 @@ func (m *MsgBridgeReceiveResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *MsgBridgeReceiveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBridgeReceiveResponse.Merge(m, src) +func (m *MsgBridge) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBridge.Merge(m, src) } -func (m *MsgBridgeReceiveResponse) XXX_Size() int { +func (m *MsgBridge) XXX_Size() int { return m.Size() } -func (m *MsgBridgeReceiveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBridgeReceiveResponse.DiscardUnknown(m) +func (m *MsgBridge) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBridge.DiscardUnknown(m) } -var xxx_messageInfo_MsgBridgeReceiveResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgBridge proto.InternalMessageInfo -func (m *MsgBridgeReceiveResponse) GetBatchDenom() string { +func (m *MsgBridge) GetOwner() string { if m != nil { - return m.BatchDenom + return m.Owner } return "" } -func (m *MsgBridgeReceiveResponse) GetProjectId() string { +func (m *MsgBridge) GetTarget() string { if m != nil { - return m.ProjectId + return m.Target } return "" } -// MsgAddClassCreator is the Msg/AddClassCreator request type. +func (m *MsgBridge) GetRecipient() string { + if m != nil { + return m.Recipient + } + return "" +} + +func (m *MsgBridge) GetCredits() []*Credits { + if m != nil { + return m.Credits + } + return nil +} + +// MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. // // Since Revision 2 -type MsgAddClassCreator struct { - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // creator is the address to add to the class creator list. - Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +type MsgUpdateBatchMetadata struct { + // issuer is the address of the account that is the issuer of the batch. + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + // batch_denom is the unique identifier of the batch. + BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` + // new_metadata is new metadata that will replace the existing metadata. It + // can be any arbitrary string with a maximum length of 256 characters that + // includes or references the metadata to attach to the batch. + NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` } -func (m *MsgAddClassCreator) Reset() { *m = MsgAddClassCreator{} } -func (m *MsgAddClassCreator) String() string { return proto.CompactTextString(m) } -func (*MsgAddClassCreator) ProtoMessage() {} -func (*MsgAddClassCreator) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{34} +func (m *MsgUpdateBatchMetadata) Reset() { *m = MsgUpdateBatchMetadata{} } +func (m *MsgUpdateBatchMetadata) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateBatchMetadata) ProtoMessage() {} +func (*MsgUpdateBatchMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{35} } -func (m *MsgAddClassCreator) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateBatchMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgAddClassCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateBatchMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgAddClassCreator.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateBatchMetadata.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2270,50 +2249,58 @@ func (m *MsgAddClassCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *MsgAddClassCreator) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddClassCreator.Merge(m, src) +func (m *MsgUpdateBatchMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateBatchMetadata.Merge(m, src) } -func (m *MsgAddClassCreator) XXX_Size() int { +func (m *MsgUpdateBatchMetadata) XXX_Size() int { return m.Size() } -func (m *MsgAddClassCreator) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddClassCreator.DiscardUnknown(m) +func (m *MsgUpdateBatchMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateBatchMetadata.DiscardUnknown(m) } -var xxx_messageInfo_MsgAddClassCreator proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateBatchMetadata proto.InternalMessageInfo -func (m *MsgAddClassCreator) GetAuthority() string { +func (m *MsgUpdateBatchMetadata) GetIssuer() string { if m != nil { - return m.Authority + return m.Issuer } return "" } -func (m *MsgAddClassCreator) GetCreator() string { +func (m *MsgUpdateBatchMetadata) GetBatchDenom() string { if m != nil { - return m.Creator + return m.BatchDenom } return "" } -// MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. +func (m *MsgUpdateBatchMetadata) GetNewMetadata() string { + if m != nil { + return m.NewMetadata + } + return "" +} + +// MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse +// response type. // // Since Revision 2 -type MsgAddClassCreatorResponse struct { +type MsgUpdateBatchMetadataResponse struct { } -func (m *MsgAddClassCreatorResponse) Reset() { *m = MsgAddClassCreatorResponse{} } -func (m *MsgAddClassCreatorResponse) String() string { return proto.CompactTextString(m) } -func (*MsgAddClassCreatorResponse) ProtoMessage() {} -func (*MsgAddClassCreatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{35} +func (m *MsgUpdateBatchMetadataResponse) Reset() { *m = MsgUpdateBatchMetadataResponse{} } +func (m *MsgUpdateBatchMetadataResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateBatchMetadataResponse) ProtoMessage() {} +func (*MsgUpdateBatchMetadataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{36} } -func (m *MsgAddClassCreatorResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateBatchMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgAddClassCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateBatchMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgAddClassCreatorResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateBatchMetadataResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2323,41 +2310,34 @@ func (m *MsgAddClassCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *MsgAddClassCreatorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddClassCreatorResponse.Merge(m, src) +func (m *MsgUpdateBatchMetadataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateBatchMetadataResponse.Merge(m, src) } -func (m *MsgAddClassCreatorResponse) XXX_Size() int { +func (m *MsgUpdateBatchMetadataResponse) XXX_Size() int { return m.Size() } -func (m *MsgAddClassCreatorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddClassCreatorResponse.DiscardUnknown(m) +func (m *MsgUpdateBatchMetadataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateBatchMetadataResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgAddClassCreatorResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateBatchMetadataResponse proto.InternalMessageInfo -// MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request -// type. -// -// Since Revision 2 -type MsgSetClassCreatorAllowlist struct { - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // enabled defines the boolean value to set the allowlist on or off. - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` +// MsgBridgeResponse is the Msg/Bridge response type. +type MsgBridgeResponse struct { } -func (m *MsgSetClassCreatorAllowlist) Reset() { *m = MsgSetClassCreatorAllowlist{} } -func (m *MsgSetClassCreatorAllowlist) String() string { return proto.CompactTextString(m) } -func (*MsgSetClassCreatorAllowlist) ProtoMessage() {} -func (*MsgSetClassCreatorAllowlist) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{36} +func (m *MsgBridgeResponse) Reset() { *m = MsgBridgeResponse{} } +func (m *MsgBridgeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBridgeResponse) ProtoMessage() {} +func (*MsgBridgeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{37} } -func (m *MsgSetClassCreatorAllowlist) XXX_Unmarshal(b []byte) error { +func (m *MsgBridgeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSetClassCreatorAllowlist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgBridgeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSetClassCreatorAllowlist.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgBridgeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2367,51 +2347,46 @@ func (m *MsgSetClassCreatorAllowlist) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgSetClassCreatorAllowlist) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSetClassCreatorAllowlist.Merge(m, src) +func (m *MsgBridgeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBridgeResponse.Merge(m, src) } -func (m *MsgSetClassCreatorAllowlist) XXX_Size() int { +func (m *MsgBridgeResponse) XXX_Size() int { return m.Size() } -func (m *MsgSetClassCreatorAllowlist) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSetClassCreatorAllowlist.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSetClassCreatorAllowlist proto.InternalMessageInfo - -func (m *MsgSetClassCreatorAllowlist) GetAuthority() string { - if m != nil { - return m.Authority - } - return "" +func (m *MsgBridgeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBridgeResponse.DiscardUnknown(m) } -func (m *MsgSetClassCreatorAllowlist) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false -} +var xxx_messageInfo_MsgBridgeResponse proto.InternalMessageInfo -// MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist -// response type. -// -// Since Revision 2 -type MsgSetClassCreatorAllowlistResponse struct { +// MsgBridgeReceive is the Msg/BridgeReceive request type. +type MsgBridgeReceive struct { + // issuer is the account address of the service bridging the credits. + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + // class_id is the unique identifier of the credit class within which the + // project and credit batch already exist or will be created. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // project defines the project information for the bridged credits. + Project *MsgBridgeReceive_Project `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` + // batch defines the credit batch information for the bridged credits. + Batch *MsgBridgeReceive_Batch `protobuf:"bytes,4,opt,name=batch,proto3" json:"batch,omitempty"` + // origin_tx is a reference to a transaction which caused the transfer from + // another chain or registry. + OriginTx *OriginTx `protobuf:"bytes,5,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"` } -func (m *MsgSetClassCreatorAllowlistResponse) Reset() { *m = MsgSetClassCreatorAllowlistResponse{} } -func (m *MsgSetClassCreatorAllowlistResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSetClassCreatorAllowlistResponse) ProtoMessage() {} -func (*MsgSetClassCreatorAllowlistResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{37} +func (m *MsgBridgeReceive) Reset() { *m = MsgBridgeReceive{} } +func (m *MsgBridgeReceive) String() string { return proto.CompactTextString(m) } +func (*MsgBridgeReceive) ProtoMessage() {} +func (*MsgBridgeReceive) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{38} } -func (m *MsgSetClassCreatorAllowlistResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgBridgeReceive) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSetClassCreatorAllowlistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgBridgeReceive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSetClassCreatorAllowlistResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgBridgeReceive.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2421,40 +2396,83 @@ func (m *MsgSetClassCreatorAllowlistResponse) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *MsgSetClassCreatorAllowlistResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSetClassCreatorAllowlistResponse.Merge(m, src) +func (m *MsgBridgeReceive) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBridgeReceive.Merge(m, src) } -func (m *MsgSetClassCreatorAllowlistResponse) XXX_Size() int { +func (m *MsgBridgeReceive) XXX_Size() int { return m.Size() } -func (m *MsgSetClassCreatorAllowlistResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSetClassCreatorAllowlistResponse.DiscardUnknown(m) +func (m *MsgBridgeReceive) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBridgeReceive.DiscardUnknown(m) } -var xxx_messageInfo_MsgSetClassCreatorAllowlistResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgBridgeReceive proto.InternalMessageInfo -// MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. -// -// Since Revision 2 -type MsgRemoveClassCreator struct { - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // creator is the address to remove from the class creator list. - Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +func (m *MsgBridgeReceive) GetIssuer() string { + if m != nil { + return m.Issuer + } + return "" } -func (m *MsgRemoveClassCreator) Reset() { *m = MsgRemoveClassCreator{} } -func (m *MsgRemoveClassCreator) String() string { return proto.CompactTextString(m) } -func (*MsgRemoveClassCreator) ProtoMessage() {} -func (*MsgRemoveClassCreator) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{38} +func (m *MsgBridgeReceive) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" } -func (m *MsgRemoveClassCreator) XXX_Unmarshal(b []byte) error { + +func (m *MsgBridgeReceive) GetProject() *MsgBridgeReceive_Project { + if m != nil { + return m.Project + } + return nil +} + +func (m *MsgBridgeReceive) GetBatch() *MsgBridgeReceive_Batch { + if m != nil { + return m.Batch + } + return nil +} + +func (m *MsgBridgeReceive) GetOriginTx() *OriginTx { + if m != nil { + return m.OriginTx + } + return nil +} + +// Batch defines the credit batch information for the bridged credits. This +// information will be used to create a credit batch or to dynamically mint +// credits to an existing credit batch. +type MsgBridgeReceive_Batch struct { + // recipient is the recipient of the bridged credits. + Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` + // amount is the amount of credits being bridged. + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + // start_date is the beginning of the period during which this credit batch + // was quantified and verified. + StartDate *time.Time `protobuf:"bytes,3,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"` + // end_date is the end of the period during which this credit batch was + // quantified and verified. + EndDate *time.Time `protobuf:"bytes,4,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"` + // metadata is the metadata for the credit batch. + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (m *MsgBridgeReceive_Batch) Reset() { *m = MsgBridgeReceive_Batch{} } +func (m *MsgBridgeReceive_Batch) String() string { return proto.CompactTextString(m) } +func (*MsgBridgeReceive_Batch) ProtoMessage() {} +func (*MsgBridgeReceive_Batch) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{38, 0} +} +func (m *MsgBridgeReceive_Batch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgRemoveClassCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgBridgeReceive_Batch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgRemoveClassCreator.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgBridgeReceive_Batch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2464,50 +2482,77 @@ func (m *MsgRemoveClassCreator) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *MsgRemoveClassCreator) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRemoveClassCreator.Merge(m, src) +func (m *MsgBridgeReceive_Batch) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBridgeReceive_Batch.Merge(m, src) } -func (m *MsgRemoveClassCreator) XXX_Size() int { +func (m *MsgBridgeReceive_Batch) XXX_Size() int { return m.Size() } -func (m *MsgRemoveClassCreator) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRemoveClassCreator.DiscardUnknown(m) +func (m *MsgBridgeReceive_Batch) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBridgeReceive_Batch.DiscardUnknown(m) } -var xxx_messageInfo_MsgRemoveClassCreator proto.InternalMessageInfo +var xxx_messageInfo_MsgBridgeReceive_Batch proto.InternalMessageInfo -func (m *MsgRemoveClassCreator) GetAuthority() string { +func (m *MsgBridgeReceive_Batch) GetRecipient() string { if m != nil { - return m.Authority + return m.Recipient } return "" } -func (m *MsgRemoveClassCreator) GetCreator() string { +func (m *MsgBridgeReceive_Batch) GetAmount() string { if m != nil { - return m.Creator + return m.Amount } return "" } -// MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. -// -// Since Revision 2 -type MsgRemoveClassCreatorResponse struct { +func (m *MsgBridgeReceive_Batch) GetStartDate() *time.Time { + if m != nil { + return m.StartDate + } + return nil } -func (m *MsgRemoveClassCreatorResponse) Reset() { *m = MsgRemoveClassCreatorResponse{} } -func (m *MsgRemoveClassCreatorResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRemoveClassCreatorResponse) ProtoMessage() {} -func (*MsgRemoveClassCreatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{39} +func (m *MsgBridgeReceive_Batch) GetEndDate() *time.Time { + if m != nil { + return m.EndDate + } + return nil } -func (m *MsgRemoveClassCreatorResponse) XXX_Unmarshal(b []byte) error { + +func (m *MsgBridgeReceive_Batch) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + +// Project defines the project information for the bridged credits. This +// information will be used to find an existing project or to create a new +// project if a project with the same reference id does not already exist. +type MsgBridgeReceive_Project struct { + // reference_id is the reference id of the project. + ReferenceId string `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + // jurisdiction is the project jurisdiction. + Jurisdiction string `protobuf:"bytes,2,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"` + // metadata is the metadata for the project. + Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (m *MsgBridgeReceive_Project) Reset() { *m = MsgBridgeReceive_Project{} } +func (m *MsgBridgeReceive_Project) String() string { return proto.CompactTextString(m) } +func (*MsgBridgeReceive_Project) ProtoMessage() {} +func (*MsgBridgeReceive_Project) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{38, 1} +} +func (m *MsgBridgeReceive_Project) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgRemoveClassCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgBridgeReceive_Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgRemoveClassCreatorResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgBridgeReceive_Project.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2517,94 +2562,61 @@ func (m *MsgRemoveClassCreatorResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *MsgRemoveClassCreatorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRemoveClassCreatorResponse.Merge(m, src) +func (m *MsgBridgeReceive_Project) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBridgeReceive_Project.Merge(m, src) } -func (m *MsgRemoveClassCreatorResponse) XXX_Size() int { +func (m *MsgBridgeReceive_Project) XXX_Size() int { return m.Size() } -func (m *MsgRemoveClassCreatorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRemoveClassCreatorResponse.DiscardUnknown(m) +func (m *MsgBridgeReceive_Project) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBridgeReceive_Project.DiscardUnknown(m) } -var xxx_messageInfo_MsgRemoveClassCreatorResponse proto.InternalMessageInfo - -// MsgUpdateClassFee is the Msg/UpdateClassFee request type. -// -// Since Revision 2 -type MsgUpdateClassFee struct { - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // fee is the credit class creation fee. If not set, the credit class creation - // fee will be removed and no fee will be required to create a credit class. - Fee *types.Coin `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` -} +var xxx_messageInfo_MsgBridgeReceive_Project proto.InternalMessageInfo -func (m *MsgUpdateClassFee) Reset() { *m = MsgUpdateClassFee{} } -func (m *MsgUpdateClassFee) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateClassFee) ProtoMessage() {} -func (*MsgUpdateClassFee) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{40} -} -func (m *MsgUpdateClassFee) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateClassFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateClassFee.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (m *MsgBridgeReceive_Project) GetReferenceId() string { + if m != nil { + return m.ReferenceId } + return "" } -func (m *MsgUpdateClassFee) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateClassFee.Merge(m, src) -} -func (m *MsgUpdateClassFee) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateClassFee) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateClassFee.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateClassFee proto.InternalMessageInfo -func (m *MsgUpdateClassFee) GetAuthority() string { +func (m *MsgBridgeReceive_Project) GetJurisdiction() string { if m != nil { - return m.Authority + return m.Jurisdiction } return "" } -func (m *MsgUpdateClassFee) GetFee() *types.Coin { +func (m *MsgBridgeReceive_Project) GetMetadata() string { if m != nil { - return m.Fee + return m.Metadata } - return nil + return "" } -// MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. -// -// Since Revision 2 -type MsgUpdateClassFeeResponse struct { +// MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. +type MsgBridgeReceiveResponse struct { + // batch_denom is the unique identifier of the credit batch either created + // or within which the credits were dynamically minted. + BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` + // project_id is the unique identifier of the project that was either created + // or the existing project within which the credit batch exists. + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` } -func (m *MsgUpdateClassFeeResponse) Reset() { *m = MsgUpdateClassFeeResponse{} } -func (m *MsgUpdateClassFeeResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateClassFeeResponse) ProtoMessage() {} -func (*MsgUpdateClassFeeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{41} +func (m *MsgBridgeReceiveResponse) Reset() { *m = MsgBridgeReceiveResponse{} } +func (m *MsgBridgeReceiveResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBridgeReceiveResponse) ProtoMessage() {} +func (*MsgBridgeReceiveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{39} } -func (m *MsgUpdateClassFeeResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgBridgeReceiveResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateClassFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgBridgeReceiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateClassFeeResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgBridgeReceiveResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2614,41 +2626,54 @@ func (m *MsgUpdateClassFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *MsgUpdateClassFeeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateClassFeeResponse.Merge(m, src) +func (m *MsgBridgeReceiveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBridgeReceiveResponse.Merge(m, src) } -func (m *MsgUpdateClassFeeResponse) XXX_Size() int { +func (m *MsgBridgeReceiveResponse) XXX_Size() int { return m.Size() } -func (m *MsgUpdateClassFeeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateClassFeeResponse.DiscardUnknown(m) +func (m *MsgBridgeReceiveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBridgeReceiveResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateClassFeeResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgBridgeReceiveResponse proto.InternalMessageInfo -// MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. +func (m *MsgBridgeReceiveResponse) GetBatchDenom() string { + if m != nil { + return m.BatchDenom + } + return "" +} + +func (m *MsgBridgeReceiveResponse) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +// MsgAddClassCreator is the Msg/AddClassCreator request type. // // Since Revision 2 -type MsgAddAllowedBridgeChain struct { +type MsgAddClassCreator struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // chain_name is the name of the chain to allow bridging of ecocredits to - // (i.e. polygon, ethereum, celo). - ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` + // creator is the address to add to the class creator list. + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` } -func (m *MsgAddAllowedBridgeChain) Reset() { *m = MsgAddAllowedBridgeChain{} } -func (m *MsgAddAllowedBridgeChain) String() string { return proto.CompactTextString(m) } -func (*MsgAddAllowedBridgeChain) ProtoMessage() {} -func (*MsgAddAllowedBridgeChain) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{42} +func (m *MsgAddClassCreator) Reset() { *m = MsgAddClassCreator{} } +func (m *MsgAddClassCreator) String() string { return proto.CompactTextString(m) } +func (*MsgAddClassCreator) ProtoMessage() {} +func (*MsgAddClassCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{40} } -func (m *MsgAddAllowedBridgeChain) XXX_Unmarshal(b []byte) error { +func (m *MsgAddClassCreator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgAddAllowedBridgeChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgAddClassCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgAddAllowedBridgeChain.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgAddClassCreator.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2658,51 +2683,50 @@ func (m *MsgAddAllowedBridgeChain) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *MsgAddAllowedBridgeChain) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddAllowedBridgeChain.Merge(m, src) +func (m *MsgAddClassCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddClassCreator.Merge(m, src) } -func (m *MsgAddAllowedBridgeChain) XXX_Size() int { +func (m *MsgAddClassCreator) XXX_Size() int { return m.Size() } -func (m *MsgAddAllowedBridgeChain) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddAllowedBridgeChain.DiscardUnknown(m) +func (m *MsgAddClassCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddClassCreator.DiscardUnknown(m) } -var xxx_messageInfo_MsgAddAllowedBridgeChain proto.InternalMessageInfo +var xxx_messageInfo_MsgAddClassCreator proto.InternalMessageInfo -func (m *MsgAddAllowedBridgeChain) GetAuthority() string { +func (m *MsgAddClassCreator) GetAuthority() string { if m != nil { return m.Authority } return "" } -func (m *MsgAddAllowedBridgeChain) GetChainName() string { +func (m *MsgAddClassCreator) GetCreator() string { if m != nil { - return m.ChainName + return m.Creator } return "" } -// MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response -// type. +// MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. // // Since Revision 2 -type MsgAddAllowedBridgeChainResponse struct { +type MsgAddClassCreatorResponse struct { } -func (m *MsgAddAllowedBridgeChainResponse) Reset() { *m = MsgAddAllowedBridgeChainResponse{} } -func (m *MsgAddAllowedBridgeChainResponse) String() string { return proto.CompactTextString(m) } -func (*MsgAddAllowedBridgeChainResponse) ProtoMessage() {} -func (*MsgAddAllowedBridgeChainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{43} +func (m *MsgAddClassCreatorResponse) Reset() { *m = MsgAddClassCreatorResponse{} } +func (m *MsgAddClassCreatorResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAddClassCreatorResponse) ProtoMessage() {} +func (*MsgAddClassCreatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{41} } -func (m *MsgAddAllowedBridgeChainResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgAddClassCreatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgAddAllowedBridgeChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgAddClassCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgAddAllowedBridgeChainResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgAddClassCreatorResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2712,41 +2736,41 @@ func (m *MsgAddAllowedBridgeChainResponse) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *MsgAddAllowedBridgeChainResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddAllowedBridgeChainResponse.Merge(m, src) +func (m *MsgAddClassCreatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddClassCreatorResponse.Merge(m, src) } -func (m *MsgAddAllowedBridgeChainResponse) XXX_Size() int { +func (m *MsgAddClassCreatorResponse) XXX_Size() int { return m.Size() } -func (m *MsgAddAllowedBridgeChainResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddAllowedBridgeChainResponse.DiscardUnknown(m) +func (m *MsgAddClassCreatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddClassCreatorResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgAddAllowedBridgeChainResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgAddClassCreatorResponse proto.InternalMessageInfo -// MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. +// MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request +// type. // // Since Revision 2 -type MsgRemoveAllowedBridgeChain struct { +type MsgSetClassCreatorAllowlist struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // chain_name is the name of the chain to remove from the list of allowed - // chains to bridge ecocredits to (i.e. polygon, ethereum, celo). - ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` + // enabled defines the boolean value to set the allowlist on or off. + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` } -func (m *MsgRemoveAllowedBridgeChain) Reset() { *m = MsgRemoveAllowedBridgeChain{} } -func (m *MsgRemoveAllowedBridgeChain) String() string { return proto.CompactTextString(m) } -func (*MsgRemoveAllowedBridgeChain) ProtoMessage() {} -func (*MsgRemoveAllowedBridgeChain) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{44} +func (m *MsgSetClassCreatorAllowlist) Reset() { *m = MsgSetClassCreatorAllowlist{} } +func (m *MsgSetClassCreatorAllowlist) String() string { return proto.CompactTextString(m) } +func (*MsgSetClassCreatorAllowlist) ProtoMessage() {} +func (*MsgSetClassCreatorAllowlist) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{42} } -func (m *MsgRemoveAllowedBridgeChain) XXX_Unmarshal(b []byte) error { +func (m *MsgSetClassCreatorAllowlist) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgRemoveAllowedBridgeChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSetClassCreatorAllowlist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgRemoveAllowedBridgeChain.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSetClassCreatorAllowlist.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2756,51 +2780,51 @@ func (m *MsgRemoveAllowedBridgeChain) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgRemoveAllowedBridgeChain) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRemoveAllowedBridgeChain.Merge(m, src) +func (m *MsgSetClassCreatorAllowlist) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetClassCreatorAllowlist.Merge(m, src) } -func (m *MsgRemoveAllowedBridgeChain) XXX_Size() int { +func (m *MsgSetClassCreatorAllowlist) XXX_Size() int { return m.Size() } -func (m *MsgRemoveAllowedBridgeChain) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRemoveAllowedBridgeChain.DiscardUnknown(m) +func (m *MsgSetClassCreatorAllowlist) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetClassCreatorAllowlist.DiscardUnknown(m) } -var xxx_messageInfo_MsgRemoveAllowedBridgeChain proto.InternalMessageInfo +var xxx_messageInfo_MsgSetClassCreatorAllowlist proto.InternalMessageInfo -func (m *MsgRemoveAllowedBridgeChain) GetAuthority() string { +func (m *MsgSetClassCreatorAllowlist) GetAuthority() string { if m != nil { return m.Authority } return "" } -func (m *MsgRemoveAllowedBridgeChain) GetChainName() string { +func (m *MsgSetClassCreatorAllowlist) GetEnabled() bool { if m != nil { - return m.ChainName + return m.Enabled } - return "" + return false } -// MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain +// MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist // response type. // // Since Revision 2 -type MsgRemoveAllowedBridgeChainResponse struct { +type MsgSetClassCreatorAllowlistResponse struct { } -func (m *MsgRemoveAllowedBridgeChainResponse) Reset() { *m = MsgRemoveAllowedBridgeChainResponse{} } -func (m *MsgRemoveAllowedBridgeChainResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRemoveAllowedBridgeChainResponse) ProtoMessage() {} -func (*MsgRemoveAllowedBridgeChainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{45} -} -func (m *MsgRemoveAllowedBridgeChainResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRemoveAllowedBridgeChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSetClassCreatorAllowlistResponse) Reset() { *m = MsgSetClassCreatorAllowlistResponse{} } +func (m *MsgSetClassCreatorAllowlistResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetClassCreatorAllowlistResponse) ProtoMessage() {} +func (*MsgSetClassCreatorAllowlistResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{43} +} +func (m *MsgSetClassCreatorAllowlistResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetClassCreatorAllowlistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgRemoveAllowedBridgeChainResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSetClassCreatorAllowlistResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2810,43 +2834,40 @@ func (m *MsgRemoveAllowedBridgeChainResponse) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *MsgRemoveAllowedBridgeChainResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRemoveAllowedBridgeChainResponse.Merge(m, src) +func (m *MsgSetClassCreatorAllowlistResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetClassCreatorAllowlistResponse.Merge(m, src) } -func (m *MsgRemoveAllowedBridgeChainResponse) XXX_Size() int { +func (m *MsgSetClassCreatorAllowlistResponse) XXX_Size() int { return m.Size() } -func (m *MsgRemoveAllowedBridgeChainResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRemoveAllowedBridgeChainResponse.DiscardUnknown(m) +func (m *MsgSetClassCreatorAllowlistResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetClassCreatorAllowlistResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgRemoveAllowedBridgeChainResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgSetClassCreatorAllowlistResponse proto.InternalMessageInfo -// MsgBurnRegen is the Msg/BurnRegen request type. +// MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. // -// Since Revision 3 -type MsgBurnRegen struct { - // burner is the address of the account burning REGEN tokens. - Burner string `protobuf:"bytes,1,opt,name=burner,proto3" json:"burner,omitempty"` - // amount is the integer amount of uregen tokens to burn. - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` - // reason is any arbitrary string that specifies the reason for burning - // REGEN tokens. It may be at most 256 characters long. - Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +// Since Revision 2 +type MsgRemoveClassCreator struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // creator is the address to remove from the class creator list. + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` } -func (m *MsgBurnRegen) Reset() { *m = MsgBurnRegen{} } -func (m *MsgBurnRegen) String() string { return proto.CompactTextString(m) } -func (*MsgBurnRegen) ProtoMessage() {} -func (*MsgBurnRegen) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{46} +func (m *MsgRemoveClassCreator) Reset() { *m = MsgRemoveClassCreator{} } +func (m *MsgRemoveClassCreator) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveClassCreator) ProtoMessage() {} +func (*MsgRemoveClassCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{44} } -func (m *MsgBurnRegen) XXX_Unmarshal(b []byte) error { +func (m *MsgRemoveClassCreator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBurnRegen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRemoveClassCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBurnRegen.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRemoveClassCreator.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2856,57 +2877,94 @@ func (m *MsgBurnRegen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *MsgBurnRegen) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBurnRegen.Merge(m, src) +func (m *MsgRemoveClassCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveClassCreator.Merge(m, src) } -func (m *MsgBurnRegen) XXX_Size() int { +func (m *MsgRemoveClassCreator) XXX_Size() int { return m.Size() } -func (m *MsgBurnRegen) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBurnRegen.DiscardUnknown(m) +func (m *MsgRemoveClassCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveClassCreator.DiscardUnknown(m) } -var xxx_messageInfo_MsgBurnRegen proto.InternalMessageInfo +var xxx_messageInfo_MsgRemoveClassCreator proto.InternalMessageInfo -func (m *MsgBurnRegen) GetBurner() string { +func (m *MsgRemoveClassCreator) GetAuthority() string { if m != nil { - return m.Burner + return m.Authority } return "" } -func (m *MsgBurnRegen) GetAmount() string { +func (m *MsgRemoveClassCreator) GetCreator() string { if m != nil { - return m.Amount + return m.Creator } return "" } -func (m *MsgBurnRegen) GetReason() string { - if m != nil { - return m.Reason +// MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. +// +// Since Revision 2 +type MsgRemoveClassCreatorResponse struct { +} + +func (m *MsgRemoveClassCreatorResponse) Reset() { *m = MsgRemoveClassCreatorResponse{} } +func (m *MsgRemoveClassCreatorResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveClassCreatorResponse) ProtoMessage() {} +func (*MsgRemoveClassCreatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{45} +} +func (m *MsgRemoveClassCreatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoveClassCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoveClassCreatorResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *MsgRemoveClassCreatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveClassCreatorResponse.Merge(m, src) +} +func (m *MsgRemoveClassCreatorResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoveClassCreatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveClassCreatorResponse.DiscardUnknown(m) } -// MsgBurnResponse is the Msg/Burn response type. +var xxx_messageInfo_MsgRemoveClassCreatorResponse proto.InternalMessageInfo + +// MsgUpdateClassFee is the Msg/UpdateClassFee request type. // -// Since Revision 3 -type MsgBurnRegenResponse struct { +// Since Revision 2 +type MsgUpdateClassFee struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // fee is the credit class creation fee. If not set, the credit class creation + // fee will be removed and no fee will be required to create a credit class. + Fee *types.Coin `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` } -func (m *MsgBurnRegenResponse) Reset() { *m = MsgBurnRegenResponse{} } -func (m *MsgBurnRegenResponse) String() string { return proto.CompactTextString(m) } -func (*MsgBurnRegenResponse) ProtoMessage() {} -func (*MsgBurnRegenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{47} +func (m *MsgUpdateClassFee) Reset() { *m = MsgUpdateClassFee{} } +func (m *MsgUpdateClassFee) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateClassFee) ProtoMessage() {} +func (*MsgUpdateClassFee) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{46} } -func (m *MsgBurnRegenResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateClassFee) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBurnRegenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateClassFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBurnRegenResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateClassFee.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2916,579 +2974,729 @@ func (m *MsgBurnRegenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *MsgBurnRegenResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBurnRegenResponse.Merge(m, src) +func (m *MsgUpdateClassFee) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateClassFee.Merge(m, src) } -func (m *MsgBurnRegenResponse) XXX_Size() int { +func (m *MsgUpdateClassFee) XXX_Size() int { return m.Size() } -func (m *MsgBurnRegenResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBurnRegenResponse.DiscardUnknown(m) +func (m *MsgUpdateClassFee) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateClassFee.DiscardUnknown(m) } -var xxx_messageInfo_MsgBurnRegenResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateClassFee proto.InternalMessageInfo -func init() { - proto.RegisterType((*MsgAddCreditType)(nil), "regen.ecocredit.v1.MsgAddCreditType") - proto.RegisterType((*MsgAddCreditTypeResponse)(nil), "regen.ecocredit.v1.MsgAddCreditTypeResponse") - proto.RegisterType((*MsgCreateClass)(nil), "regen.ecocredit.v1.MsgCreateClass") - proto.RegisterType((*MsgCreateClassResponse)(nil), "regen.ecocredit.v1.MsgCreateClassResponse") - proto.RegisterType((*MsgCreateProject)(nil), "regen.ecocredit.v1.MsgCreateProject") - proto.RegisterType((*MsgCreateProjectResponse)(nil), "regen.ecocredit.v1.MsgCreateProjectResponse") - proto.RegisterType((*MsgCreateBatch)(nil), "regen.ecocredit.v1.MsgCreateBatch") - proto.RegisterType((*MsgCreateBatchResponse)(nil), "regen.ecocredit.v1.MsgCreateBatchResponse") - proto.RegisterType((*MsgMintBatchCredits)(nil), "regen.ecocredit.v1.MsgMintBatchCredits") - proto.RegisterType((*MsgMintBatchCreditsResponse)(nil), "regen.ecocredit.v1.MsgMintBatchCreditsResponse") - proto.RegisterType((*MsgSealBatch)(nil), "regen.ecocredit.v1.MsgSealBatch") - proto.RegisterType((*MsgSealBatchResponse)(nil), "regen.ecocredit.v1.MsgSealBatchResponse") - proto.RegisterType((*MsgSend)(nil), "regen.ecocredit.v1.MsgSend") - proto.RegisterType((*MsgSend_SendCredits)(nil), "regen.ecocredit.v1.MsgSend.SendCredits") - proto.RegisterType((*MsgSendResponse)(nil), "regen.ecocredit.v1.MsgSendResponse") - proto.RegisterType((*MsgRetire)(nil), "regen.ecocredit.v1.MsgRetire") - proto.RegisterType((*MsgRetireResponse)(nil), "regen.ecocredit.v1.MsgRetireResponse") - proto.RegisterType((*MsgCancel)(nil), "regen.ecocredit.v1.MsgCancel") - proto.RegisterType((*MsgCancelResponse)(nil), "regen.ecocredit.v1.MsgCancelResponse") - proto.RegisterType((*MsgUpdateClassAdmin)(nil), "regen.ecocredit.v1.MsgUpdateClassAdmin") - proto.RegisterType((*MsgUpdateClassAdminResponse)(nil), "regen.ecocredit.v1.MsgUpdateClassAdminResponse") - proto.RegisterType((*MsgUpdateClassIssuers)(nil), "regen.ecocredit.v1.MsgUpdateClassIssuers") - proto.RegisterType((*MsgUpdateClassIssuersResponse)(nil), "regen.ecocredit.v1.MsgUpdateClassIssuersResponse") - proto.RegisterType((*MsgUpdateClassMetadata)(nil), "regen.ecocredit.v1.MsgUpdateClassMetadata") - proto.RegisterType((*MsgUpdateClassMetadataResponse)(nil), "regen.ecocredit.v1.MsgUpdateClassMetadataResponse") - proto.RegisterType((*MsgUpdateProjectAdmin)(nil), "regen.ecocredit.v1.MsgUpdateProjectAdmin") - proto.RegisterType((*MsgUpdateProjectAdminResponse)(nil), "regen.ecocredit.v1.MsgUpdateProjectAdminResponse") - proto.RegisterType((*MsgUpdateProjectMetadata)(nil), "regen.ecocredit.v1.MsgUpdateProjectMetadata") - proto.RegisterType((*MsgUpdateProjectMetadataResponse)(nil), "regen.ecocredit.v1.MsgUpdateProjectMetadataResponse") - proto.RegisterType((*MsgBridge)(nil), "regen.ecocredit.v1.MsgBridge") - proto.RegisterType((*MsgUpdateBatchMetadata)(nil), "regen.ecocredit.v1.MsgUpdateBatchMetadata") - proto.RegisterType((*MsgUpdateBatchMetadataResponse)(nil), "regen.ecocredit.v1.MsgUpdateBatchMetadataResponse") - proto.RegisterType((*MsgBridgeResponse)(nil), "regen.ecocredit.v1.MsgBridgeResponse") - proto.RegisterType((*MsgBridgeReceive)(nil), "regen.ecocredit.v1.MsgBridgeReceive") - proto.RegisterType((*MsgBridgeReceive_Batch)(nil), "regen.ecocredit.v1.MsgBridgeReceive.Batch") - proto.RegisterType((*MsgBridgeReceive_Project)(nil), "regen.ecocredit.v1.MsgBridgeReceive.Project") - proto.RegisterType((*MsgBridgeReceiveResponse)(nil), "regen.ecocredit.v1.MsgBridgeReceiveResponse") - proto.RegisterType((*MsgAddClassCreator)(nil), "regen.ecocredit.v1.MsgAddClassCreator") - proto.RegisterType((*MsgAddClassCreatorResponse)(nil), "regen.ecocredit.v1.MsgAddClassCreatorResponse") - proto.RegisterType((*MsgSetClassCreatorAllowlist)(nil), "regen.ecocredit.v1.MsgSetClassCreatorAllowlist") - proto.RegisterType((*MsgSetClassCreatorAllowlistResponse)(nil), "regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse") - proto.RegisterType((*MsgRemoveClassCreator)(nil), "regen.ecocredit.v1.MsgRemoveClassCreator") - proto.RegisterType((*MsgRemoveClassCreatorResponse)(nil), "regen.ecocredit.v1.MsgRemoveClassCreatorResponse") - proto.RegisterType((*MsgUpdateClassFee)(nil), "regen.ecocredit.v1.MsgUpdateClassFee") - proto.RegisterType((*MsgUpdateClassFeeResponse)(nil), "regen.ecocredit.v1.MsgUpdateClassFeeResponse") - proto.RegisterType((*MsgAddAllowedBridgeChain)(nil), "regen.ecocredit.v1.MsgAddAllowedBridgeChain") - proto.RegisterType((*MsgAddAllowedBridgeChainResponse)(nil), "regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse") - proto.RegisterType((*MsgRemoveAllowedBridgeChain)(nil), "regen.ecocredit.v1.MsgRemoveAllowedBridgeChain") - proto.RegisterType((*MsgRemoveAllowedBridgeChainResponse)(nil), "regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse") - proto.RegisterType((*MsgBurnRegen)(nil), "regen.ecocredit.v1.MsgBurnRegen") - proto.RegisterType((*MsgBurnRegenResponse)(nil), "regen.ecocredit.v1.MsgBurnRegenResponse") +func (m *MsgUpdateClassFee) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" } -func init() { proto.RegisterFile("regen/ecocredit/v1/tx.proto", fileDescriptor_2b8ae49f50a3ddbd) } - -var fileDescriptor_2b8ae49f50a3ddbd = []byte{ - // 1930 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x4f, 0x6f, 0x1b, 0x4d, - 0x19, 0xef, 0xda, 0x4e, 0x6c, 0x3f, 0x4e, 0xd3, 0x74, 0xd3, 0x37, 0xaf, 0xbb, 0x69, 0x1c, 0xd7, - 0xef, 0x1b, 0xde, 0x34, 0x4d, 0xd7, 0x4a, 0x0a, 0xaa, 0x5a, 0x84, 0x4a, 0x92, 0xaa, 0x22, 0x48, - 0x2e, 0xc8, 0x0d, 0x42, 0x54, 0x20, 0x6b, 0xbd, 0x3b, 0xd9, 0x6c, 0xb1, 0x77, 0xad, 0xdd, 0x71, - 0x92, 0x0a, 0x84, 0x54, 0xc4, 0x07, 0xe8, 0x19, 0x71, 0xe0, 0x23, 0x20, 0xbe, 0x02, 0x17, 0x8e, - 0xbd, 0x20, 0xb8, 0x15, 0xb5, 0x48, 0x7c, 0x03, 0x4e, 0x1c, 0xd0, 0xce, 0xcc, 0x8e, 0x77, 0xf6, - 0xbf, 0x5b, 0x7a, 0x89, 0x32, 0xcf, 0xfc, 0xe6, 0xf9, 0x3b, 0xf3, 0xfc, 0x59, 0xc3, 0xba, 0x8b, - 0x4c, 0x64, 0x77, 0x91, 0xee, 0xe8, 0x2e, 0x32, 0x2c, 0xdc, 0x3d, 0xdf, 0xeb, 0xe2, 0x4b, 0x75, - 0xe2, 0x3a, 0xd8, 0x91, 0x65, 0xb2, 0xa9, 0xf2, 0x4d, 0xf5, 0x7c, 0x4f, 0x69, 0xe9, 0x8e, 0x37, - 0x76, 0xbc, 0xee, 0x50, 0xf3, 0x50, 0xf7, 0x7c, 0x6f, 0x88, 0xb0, 0xb6, 0xd7, 0xd5, 0x1d, 0xcb, - 0xa6, 0x67, 0x94, 0x2f, 0xd9, 0xfe, 0xd8, 0x33, 0x7d, 0x5e, 0x63, 0xcf, 0x64, 0x1b, 0x37, 0x4c, - 0xc7, 0x74, 0xc8, 0xbf, 0x5d, 0xff, 0x3f, 0x46, 0xdd, 0x34, 0x1d, 0xc7, 0x1c, 0xa1, 0x2e, 0x59, - 0x0d, 0xa7, 0xa7, 0x5d, 0x6c, 0x8d, 0x91, 0x87, 0xb5, 0xf1, 0x84, 0x01, 0x5a, 0x09, 0x0a, 0x7a, - 0x58, 0xc3, 0x28, 0x63, 0x1f, 0xbf, 0x9a, 0x20, 0x8f, 0xee, 0x77, 0x5e, 0x4b, 0xb0, 0xd2, 0xf3, - 0xcc, 0x03, 0xc3, 0x38, 0x22, 0xfb, 0x27, 0xaf, 0x26, 0x48, 0xbe, 0x05, 0x75, 0x6d, 0x8a, 0xcf, - 0x1c, 0xd7, 0xc2, 0xaf, 0x9a, 0x52, 0x5b, 0xda, 0xae, 0xf7, 0x67, 0x04, 0xf9, 0x31, 0x34, 0x28, - 0xaf, 0x81, 0xcf, 0xa8, 0x59, 0x6a, 0x4b, 0xdb, 0x8d, 0xfd, 0x96, 0x1a, 0x77, 0x86, 0x3a, 0x63, - 0xd9, 0x07, 0x9d, 0xff, 0xff, 0x68, 0xf9, 0xb7, 0xff, 0xfe, 0xd3, 0xce, 0x8c, 0x61, 0x47, 0x81, - 0x66, 0x54, 0x85, 0x3e, 0xf2, 0x26, 0x8e, 0xed, 0xa1, 0xce, 0x5f, 0x24, 0x58, 0xee, 0x79, 0xe6, - 0x91, 0x8b, 0x34, 0x8c, 0x8e, 0x46, 0x9a, 0xe7, 0xc9, 0x37, 0x60, 0x41, 0x33, 0xc6, 0x96, 0xcd, - 0x34, 0xa3, 0x0b, 0xb9, 0x09, 0x55, 0xcb, 0xf3, 0xa6, 0xc8, 0xf5, 0x9a, 0xa5, 0x76, 0x79, 0xbb, - 0xde, 0x0f, 0x96, 0xb2, 0x02, 0xb5, 0x31, 0xc2, 0x9a, 0xa1, 0x61, 0xad, 0x59, 0x26, 0x47, 0xf8, - 0x5a, 0xde, 0x05, 0x39, 0x64, 0xcb, 0x40, 0x1b, 0x0e, 0x5d, 0x74, 0xde, 0xac, 0x10, 0xd4, 0xca, - 0x4c, 0xe5, 0x03, 0x42, 0x97, 0xef, 0x42, 0xf9, 0x14, 0xa1, 0xe6, 0x02, 0xb1, 0xf8, 0xa6, 0x4a, - 0x43, 0xa9, 0xfa, 0xa1, 0x56, 0x59, 0xa8, 0xd5, 0x23, 0xc7, 0xb2, 0xfb, 0x3e, 0xea, 0x11, 0xf8, - 0x56, 0x52, 0xe5, 0x3a, 0xf7, 0x61, 0x4d, 0x34, 0x22, 0xb0, 0x4f, 0xbe, 0x09, 0x35, 0xdd, 0x27, - 0x0c, 0x2c, 0x83, 0xd9, 0x53, 0x25, 0xeb, 0x63, 0xa3, 0xf3, 0x67, 0x1a, 0x1a, 0x7a, 0xea, 0xc7, - 0xae, 0xf3, 0x12, 0xe9, 0x38, 0xc5, 0xf8, 0x30, 0x97, 0x92, 0xc0, 0x25, 0xd3, 0xfa, 0x0e, 0x2c, - 0xbd, 0x9c, 0xba, 0x96, 0x67, 0x58, 0x3a, 0xb6, 0x1c, 0x9b, 0xd9, 0x2d, 0xd0, 0xe4, 0xdb, 0xb0, - 0xe4, 0xa2, 0x53, 0xe4, 0x22, 0x5b, 0x47, 0x3e, 0xfb, 0x05, 0x82, 0x69, 0x70, 0xda, 0xb1, 0x21, - 0x58, 0xfa, 0x90, 0xc4, 0x52, 0xd0, 0x99, 0xdb, 0xba, 0x01, 0x30, 0xa1, 0xa4, 0x99, 0xb5, 0x75, - 0x46, 0x39, 0x36, 0x3a, 0xff, 0x2d, 0x85, 0x42, 0x7d, 0xa8, 0x61, 0xfd, 0x4c, 0x5e, 0x83, 0x45, - 0x1a, 0x45, 0x86, 0x66, 0xab, 0x08, 0xa7, 0x52, 0x84, 0x93, 0xfc, 0x3d, 0xa8, 0xf9, 0x40, 0xcd, - 0xd6, 0x51, 0xb3, 0xdc, 0x2e, 0x6f, 0x37, 0xf6, 0x6f, 0x27, 0x5d, 0x4f, 0x22, 0xe3, 0x98, 0x01, - 0xfb, 0xfc, 0x88, 0xe0, 0xb2, 0x4a, 0xc4, 0x65, 0x8f, 0x01, 0x3c, 0xac, 0xb9, 0x78, 0x60, 0x68, - 0x38, 0xb8, 0x09, 0x8a, 0x4a, 0x5f, 0xa9, 0x1a, 0xbc, 0x52, 0xf5, 0x24, 0x78, 0xa5, 0x87, 0x95, - 0x37, 0xef, 0x36, 0xa5, 0x7e, 0x9d, 0x9c, 0x79, 0xa2, 0x61, 0x24, 0x7f, 0x17, 0x6a, 0xc8, 0x36, - 0xe8, 0xf1, 0xc5, 0x82, 0xc7, 0xab, 0xc8, 0x36, 0xc8, 0x61, 0x19, 0x2a, 0xce, 0x04, 0xd9, 0xcd, - 0x6a, 0x5b, 0xda, 0xae, 0xf5, 0xc9, 0xff, 0xf2, 0x43, 0xa8, 0x3b, 0xae, 0x65, 0x5a, 0xf6, 0x00, - 0x5f, 0x36, 0x6b, 0x84, 0xe3, 0xad, 0x24, 0x6b, 0x7f, 0x44, 0x40, 0x27, 0x97, 0xfd, 0x9a, 0xc3, - 0xfe, 0x7b, 0xd4, 0xf0, 0x03, 0xc7, 0x7c, 0xda, 0x79, 0x18, 0xba, 0xa3, 0xc4, 0x33, 0x3c, 0x6e, - 0x9b, 0xd0, 0x18, 0xfa, 0x84, 0x81, 0x81, 0x6c, 0x67, 0xcc, 0x42, 0x01, 0x84, 0xf4, 0xc4, 0xa7, - 0x74, 0xfe, 0x26, 0xc1, 0x6a, 0xcf, 0x33, 0x7b, 0x96, 0x8d, 0xc9, 0x49, 0xfa, 0x8e, 0xbd, 0xd4, - 0xf0, 0x45, 0x18, 0x96, 0xa2, 0x0c, 0x3f, 0x35, 0x80, 0x82, 0x4b, 0x2a, 0x1f, 0xef, 0x92, 0x0d, - 0x58, 0x4f, 0x30, 0x8b, 0xe7, 0xa6, 0x13, 0x58, 0xea, 0x79, 0xe6, 0x73, 0xa4, 0x8d, 0xb2, 0x6f, - 0x6b, 0x9e, 0xb9, 0xa2, 0xd0, 0x35, 0xb8, 0x11, 0xe6, 0xca, 0xa5, 0xfd, 0xa7, 0x04, 0x55, 0xb2, - 0x61, 0x1b, 0xbe, 0x24, 0x0f, 0xd9, 0xc6, 0x4c, 0x12, 0x5d, 0xf9, 0x89, 0xdb, 0x45, 0xba, 0x35, - 0xb1, 0x90, 0x8d, 0x83, 0x67, 0xc1, 0x09, 0xf2, 0x01, 0x54, 0xa9, 0xed, 0x1e, 0x73, 0xea, 0x37, - 0x49, 0x4e, 0x61, 0x32, 0x54, 0xff, 0x4f, 0x60, 0x71, 0x70, 0x4e, 0xf9, 0x97, 0x04, 0x8d, 0xd0, - 0x46, 0xee, 0xd5, 0x90, 0xbf, 0x81, 0x6b, 0xd8, 0xd5, 0x0c, 0x6d, 0x38, 0x42, 0x03, 0x6d, 0xec, - 0x4c, 0xb9, 0x5e, 0xcb, 0x01, 0xf9, 0x80, 0x50, 0xe5, 0x2d, 0x58, 0x76, 0x11, 0xb6, 0x5c, 0x64, - 0x04, 0x38, 0x9a, 0xad, 0xae, 0x32, 0x2a, 0x83, 0x3d, 0x80, 0x2f, 0x29, 0x61, 0x8c, 0x6c, 0x3c, - 0x48, 0xc8, 0x5e, 0x6b, 0xb3, 0xed, 0x1f, 0x86, 0xf3, 0xd8, 0x5d, 0xb8, 0x1e, 0x3a, 0xe8, 0x22, - 0xcd, 0x73, 0x6c, 0x96, 0xcc, 0x56, 0x66, 0x1b, 0x7d, 0x42, 0x67, 0x01, 0xa1, 0x4e, 0xed, 0x5c, - 0x87, 0x6b, 0xcc, 0x27, 0x3c, 0x16, 0x7f, 0x94, 0xa0, 0xde, 0xf3, 0xcc, 0x3e, 0x39, 0xe7, 0xe7, - 0x64, 0xe7, 0xc2, 0xe6, 0xc1, 0xa0, 0x0b, 0xf9, 0x3b, 0x33, 0x6f, 0x97, 0x88, 0xb7, 0xd7, 0xd3, - 0x4b, 0xe4, 0xcc, 0xc3, 0xb1, 0x9c, 0x5c, 0x4e, 0xc8, 0xc9, 0x6b, 0xb0, 0xc8, 0x0c, 0xa0, 0x36, - 0xb3, 0x15, 0x4b, 0xc4, 0x44, 0x7c, 0x67, 0x15, 0xae, 0x73, 0x0d, 0xb9, 0xde, 0xbf, 0x26, 0x6a, - 0x1f, 0xf9, 0x8f, 0x64, 0xf4, 0xff, 0x55, 0x7b, 0xa6, 0x52, 0x39, 0x47, 0x25, 0x2a, 0x9d, 0xab, - 0xe4, 0x90, 0xd4, 0xf1, 0x93, 0x89, 0x11, 0x94, 0xc6, 0x03, 0x52, 0xd1, 0xe6, 0xae, 0x73, 0xeb, - 0x50, 0xb7, 0xd1, 0xc5, 0x80, 0x1e, 0x62, 0x85, 0xce, 0x46, 0x17, 0x84, 0x9b, 0x50, 0xa1, 0xe8, - 0xa3, 0x8e, 0x0a, 0xe4, 0xfa, 0xfc, 0x41, 0x82, 0x2f, 0xc4, 0xfd, 0x63, 0xd6, 0x47, 0xcc, 0xad, - 0xd2, 0x26, 0x34, 0x34, 0xc3, 0x18, 0x04, 0x6d, 0x49, 0x99, 0xb4, 0x25, 0xa0, 0x19, 0x46, 0xc0, - 0x91, 0xdc, 0xf9, 0xb1, 0x73, 0x8e, 0x38, 0xa6, 0x42, 0x30, 0x57, 0x29, 0x95, 0xc1, 0x04, 0xed, - 0x37, 0x61, 0x23, 0x51, 0x3b, 0xae, 0xff, 0x25, 0x49, 0xe3, 0x21, 0x40, 0x2f, 0x28, 0x5d, 0x73, - 0xeb, 0x7f, 0x1b, 0x96, 0x7c, 0x97, 0x46, 0xda, 0x87, 0x86, 0x8d, 0x2e, 0x02, 0x9e, 0x82, 0x6a, - 0x6d, 0x68, 0x25, 0x4b, 0xe6, 0xba, 0x4d, 0x43, 0xae, 0x65, 0xcd, 0x41, 0x56, 0xb4, 0x73, 0xaa, - 0x7c, 0xe1, 0x88, 0x87, 0x7d, 0x16, 0x16, 0xcb, 0xf5, 0xfa, 0x0d, 0x69, 0x5a, 0x04, 0x40, 0x8e, - 0xd7, 0x72, 0x54, 0x9b, 0xd3, 0x73, 0x1d, 0x68, 0xa7, 0xc9, 0xe7, 0x3a, 0xfe, 0x9e, 0xa6, 0x9c, - 0x43, 0xd7, 0x32, 0xcc, 0xb4, 0x94, 0xb3, 0x06, 0x8b, 0x58, 0x73, 0x4d, 0x14, 0xe4, 0x58, 0xb6, - 0x12, 0xcb, 0x42, 0x39, 0x5a, 0x16, 0x42, 0x2f, 0xbe, 0x52, 0xfc, 0xc5, 0x0b, 0x2f, 0xfb, 0xb5, - 0x14, 0xba, 0x75, 0xa4, 0x6c, 0x71, 0xff, 0x7d, 0x74, 0x0f, 0x50, 0xc0, 0x87, 0x42, 0xdd, 0x0c, - 0x5f, 0x3f, 0x41, 0x05, 0xee, 0x42, 0x9a, 0x7f, 0xa8, 0x07, 0x39, 0xf1, 0x5d, 0x85, 0x74, 0xd9, - 0x01, 0x55, 0x47, 0xd6, 0x39, 0x4a, 0x55, 0x3a, 0xe3, 0xb1, 0x3c, 0x85, 0x2a, 0x8b, 0x3f, 0xd1, - 0xb4, 0xb1, 0xbf, 0x9b, 0x52, 0x5c, 0x05, 0x49, 0x6a, 0xd0, 0x23, 0x07, 0x87, 0xe5, 0xef, 0xc3, - 0x02, 0x71, 0x02, 0xeb, 0x5b, 0x76, 0x0a, 0x71, 0xa1, 0x9d, 0x02, 0x3d, 0x28, 0x76, 0x3f, 0x0b, - 0xf3, 0x74, 0x3f, 0xca, 0xdf, 0x25, 0x58, 0xa0, 0xbd, 0x8c, 0x70, 0x65, 0xa4, 0xe8, 0x95, 0x59, - 0x83, 0x45, 0xa1, 0x98, 0xb3, 0x55, 0xa4, 0x3b, 0x2e, 0x7f, 0x5a, 0x77, 0x5c, 0x99, 0xb7, 0x3b, - 0x0e, 0xf7, 0xed, 0x0b, 0x62, 0xdf, 0xae, 0x8c, 0xa0, 0x1a, 0x8c, 0x50, 0xd1, 0x89, 0x46, 0x8a, - 0x4d, 0x34, 0xb1, 0x22, 0x5c, 0x4a, 0x28, 0xc2, 0x19, 0x83, 0x95, 0x78, 0x31, 0x5f, 0x90, 0xec, - 0x22, 0x04, 0xac, 0x70, 0x6b, 0x9d, 0x93, 0x68, 0x3a, 0x3f, 0x07, 0x99, 0x8d, 0xce, 0xfe, 0x35, - 0x24, 0xcd, 0xbb, 0xe3, 0xe6, 0xcc, 0xef, 0x4d, 0xf2, 0xde, 0x7d, 0x20, 0xbf, 0xc3, 0x74, 0x19, - 0x1b, 0xcc, 0x6f, 0x81, 0x12, 0xe7, 0xce, 0x5f, 0x0e, 0x22, 0x85, 0xf4, 0x39, 0xc2, 0xe1, 0xdd, - 0x83, 0xd1, 0xc8, 0xb9, 0x18, 0x59, 0x1e, 0xce, 0x57, 0x02, 0xd9, 0x7e, 0xfb, 0x47, 0x8d, 0xaa, - 0xf5, 0x83, 0x65, 0x4c, 0x89, 0x2d, 0xf8, 0x2a, 0x43, 0x0c, 0xd7, 0x66, 0x40, 0x6a, 0x4b, 0x9f, - 0x14, 0xce, 0xcf, 0xe2, 0x0c, 0x5a, 0x45, 0xe2, 0x02, 0xb8, 0x06, 0x36, 0x49, 0x2f, 0xa1, 0xfa, - 0xf7, 0x14, 0xe5, 0x7d, 0x4a, 0x61, 0x1f, 0x14, 0x4a, 0x85, 0x3e, 0x28, 0x44, 0x15, 0x5a, 0x87, - 0x9b, 0x31, 0x79, 0x5c, 0x19, 0x33, 0xf8, 0xa6, 0x42, 0x3c, 0x85, 0x0c, 0x7a, 0xfd, 0x8e, 0xce, - 0x34, 0xcb, 0xce, 0xd1, 0x69, 0x03, 0x40, 0xf7, 0x61, 0x03, 0x5b, 0x1b, 0xa3, 0xe0, 0xc6, 0x11, - 0xca, 0x33, 0x6d, 0x1c, 0xd7, 0x82, 0xd6, 0xae, 0x44, 0x41, 0x5c, 0x99, 0x97, 0xe4, 0xa6, 0x50, - 0xd7, 0x7d, 0x6e, 0x7d, 0xe8, 0x75, 0x49, 0x93, 0xc5, 0x55, 0xd2, 0xc9, 0xec, 0x76, 0x38, 0x75, - 0xed, 0xbe, 0x9f, 0x19, 0xfd, 0x8c, 0x36, 0x9c, 0xba, 0xb3, 0x8a, 0xca, 0x56, 0xa9, 0x99, 0x2e, - 0xad, 0xdf, 0xa5, 0x2f, 0x9f, 0x1e, 0x66, 0xa3, 0x1c, 0x17, 0x12, 0x08, 0xdf, 0x7f, 0xb7, 0x0a, - 0xe5, 0x9e, 0x67, 0xca, 0xbf, 0x80, 0x46, 0xf8, 0xc3, 0x56, 0x27, 0x25, 0xd7, 0x87, 0x30, 0xca, - 0x4e, 0x3e, 0x86, 0x27, 0x17, 0x1d, 0xae, 0x8a, 0x1f, 0x8f, 0xbe, 0xce, 0x3c, 0xcc, 0x50, 0xca, - 0x6e, 0x11, 0x14, 0x17, 0xc2, 0x6d, 0xa0, 0x75, 0x23, 0xdb, 0x06, 0x82, 0xc9, 0xb1, 0x41, 0xfc, - 0xf6, 0x30, 0x82, 0x95, 0xd8, 0x67, 0x85, 0xb4, 0xb1, 0x35, 0x0a, 0x54, 0xba, 0x05, 0x81, 0x5c, - 0xda, 0x4f, 0xa1, 0x3e, 0x1b, 0xe7, 0xdb, 0xa9, 0xd3, 0x31, 0x43, 0x28, 0xdb, 0x79, 0x08, 0xce, - 0xf8, 0x07, 0x50, 0x21, 0x83, 0xfb, 0x7a, 0xc6, 0xc4, 0xad, 0x7c, 0x95, 0xb1, 0xc9, 0x39, 0x3d, - 0x83, 0x45, 0x36, 0x76, 0x6e, 0xa4, 0xc0, 0xe9, 0xb6, 0xb2, 0x95, 0xb9, 0x1d, 0xe6, 0xc7, 0xe6, - 0xc1, 0x34, 0x7e, 0x74, 0x3b, 0x95, 0x9f, 0x38, 0xcf, 0xf9, 0x01, 0x8b, 0x0d, 0x73, 0x69, 0x01, - 0x8b, 0x02, 0x53, 0x03, 0x96, 0x36, 0xad, 0xc9, 0x2e, 0xc8, 0x09, 0x93, 0xda, 0x9d, 0x7c, 0x36, - 0x0c, 0xaa, 0xec, 0x15, 0x86, 0x72, 0x99, 0x53, 0x58, 0x4d, 0x1a, 0xaf, 0x76, 0xf2, 0x39, 0x05, - 0x58, 0x65, 0xbf, 0x38, 0x36, 0x6e, 0xaa, 0x30, 0x39, 0x65, 0x9b, 0x1a, 0x86, 0xe6, 0x98, 0x9a, - 0x34, 0x18, 0xc9, 0xbf, 0x82, 0x2f, 0x92, 0xa7, 0xa2, 0xdd, 0x22, 0xbc, 0xb8, 0xb9, 0xdf, 0x9e, - 0x07, 0x1d, 0xf7, 0xb3, 0x38, 0x50, 0x64, 0xfb, 0x59, 0xc0, 0xe6, 0xf8, 0x39, 0x71, 0x4a, 0xf0, - 0x1f, 0x04, 0x1b, 0xb2, 0x36, 0x32, 0x7b, 0xef, 0xd4, 0x07, 0x21, 0x0e, 0x18, 0x7e, 0x16, 0x16, - 0x87, 0x8b, 0xaf, 0x8b, 0xb4, 0xf4, 0x4a, 0xa1, 0xf1, 0x21, 0x2c, 0x44, 0xfc, 0x09, 0x27, 0x4d, - 0x88, 0x80, 0x4a, 0x15, 0x92, 0xf8, 0x5b, 0x8c, 0xfc, 0x3b, 0x09, 0x9a, 0xa9, 0xed, 0x5e, 0x37, - 0x35, 0x79, 0x25, 0x1f, 0x50, 0x1e, 0xcc, 0x79, 0x80, 0xab, 0x61, 0xc1, 0xb5, 0x68, 0xc3, 0xfb, - 0xad, 0x0c, 0x3b, 0x42, 0x38, 0x45, 0x2d, 0x86, 0x0b, 0xbf, 0xb9, 0x84, 0x8e, 0xf2, 0x4e, 0x6a, - 0x66, 0x8d, 0x42, 0x53, 0xdf, 0x5c, 0x7a, 0x1b, 0x29, 0x9f, 0xc2, 0x72, 0xa4, 0x87, 0xdc, 0xca, - 0xcf, 0x16, 0x4f, 0x11, 0x52, 0xee, 0x15, 0x82, 0x85, 0xdf, 0x76, 0x72, 0x7b, 0x98, 0x71, 0x29, - 0xe2, 0xe8, 0xd4, 0xb7, 0x9d, 0xd9, 0x11, 0x92, 0xab, 0x94, 0xda, 0x0f, 0x76, 0x33, 0x9d, 0x96, - 0xa0, 0xc3, 0x83, 0x39, 0x0f, 0x84, 0xeb, 0xfd, 0xac, 0x05, 0x4c, 0xab, 0xf7, 0x1c, 0x91, 0x5a, - 0xef, 0x63, 0x1d, 0xde, 0xe1, 0xcf, 0xfe, 0xfa, 0xbe, 0x25, 0xbd, 0x7d, 0xdf, 0x92, 0xfe, 0xf9, - 0xbe, 0x25, 0xbd, 0xf9, 0xd0, 0xba, 0xf2, 0xf6, 0x43, 0xeb, 0xca, 0x3f, 0x3e, 0xb4, 0xae, 0xbc, - 0x78, 0x6c, 0x5a, 0xf8, 0x6c, 0x3a, 0x54, 0x75, 0x67, 0xdc, 0x25, 0xdc, 0xee, 0xd9, 0x08, 0x5f, - 0x38, 0xee, 0x2f, 0xd9, 0x6a, 0x84, 0x0c, 0x13, 0xb9, 0xdd, 0xcb, 0xd0, 0x4f, 0xb6, 0xe4, 0xb7, - 0x64, 0xf2, 0xa3, 0x6d, 0xf7, 0x7c, 0x6f, 0xb8, 0x48, 0x06, 0xe1, 0xfb, 0xff, 0x0b, 0x00, 0x00, - 0xff, 0xff, 0x04, 0x4e, 0xda, 0x55, 0x9b, 0x1e, 0x00, 0x00, +func (m *MsgUpdateClassFee) GetFee() *types.Coin { + if m != nil { + return m.Fee + } + return nil } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MsgClient is the client API for Msg service. +// MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. // -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MsgClient interface { - // CreateClass creates a new credit class under the given credit type with an - // approved list of issuers and optional metadata. If the class fee parameter - // is set, the fee field must be populated with equal value. A greater fee can - // be provided, however, the creator will only be charged the amount specified - // in the fee parameter. The creator of the credit class becomes the admin of - // the credit class upon creation. - CreateClass(ctx context.Context, in *MsgCreateClass, opts ...grpc.CallOption) (*MsgCreateClassResponse, error) - // CreateProject creates a new project under the given credit class with a - // jurisdiction, optional metadata, and an optional reference ID. The creator - // of the project must be an approved credit class issuer for the given credit - // class. The creator becomes the admin of the project upon creation. - CreateProject(ctx context.Context, in *MsgCreateProject, opts ...grpc.CallOption) (*MsgCreateProjectResponse, error) - // CreateBatch creates a new batch of credits under the given project with a - // start and end date representing the monitoring period, a list of credits to - // be issued with each issuance specifying a recipient, the amount of tradable - // and retired credits, and the retirement jurisdiction (if credits are to be - // retired upon receipt), and optional metadata. The credit batch creator must - // be listed as an approved issuer within the credit class of the project that - // the credits are being issued under. - // - // The default behavior is for a new credit batch to be "sealed" as opposed to - // being "open". When a credit batch is "open", new credits can be dynamically - // minted to the credit batch following the creation of the credit batch. This - // "open" option should only be set to true when bridging credits from another - // chain or registry as a result of a bridge operation and is not intended for - // native credit issuance. - CreateBatch(ctx context.Context, in *MsgCreateBatch, opts ...grpc.CallOption) (*MsgCreateBatchResponse, error) - // MintBatchCredits dynamically mints credits to an "open" credit batch. This - // feature is only meant to be used when bridging credits from another chain - // or registry and is not intended for native credit issuance. When bridging - // credits from the same vintage (or monitoring period) as an existing credit - // batch, the credits can be dynamically minted to the existing credit batch - // if the credit batch is "open". - MintBatchCredits(ctx context.Context, in *MsgMintBatchCredits, opts ...grpc.CallOption) (*MsgMintBatchCreditsResponse, error) - // MsgSealBatch seals an "open" credit batch. Once a credit batch is sealed - // (i.e. once "open" is set to false), credits can no longer be dynamically - // minted to the credit batch. A sealed credit batch cannot be unsealed and - // only the credit batch issuer can seal a credit batch. - SealBatch(ctx context.Context, in *MsgSealBatch, opts ...grpc.CallOption) (*MsgSealBatchResponse, error) - // Send sends a specified amount of tradable credits from the credit owner's - // account to another account. Sent credits can either remain tradable or be - // retired upon receipt. - Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) - // Retire retires a specified amount of tradable credits, removing the amount - // from the credit owner's tradable balance and adding it to their retired - // balance. Retiring credits is permanent and implies the credits are being - // consumed as a offset. - Retire(ctx context.Context, in *MsgRetire, opts ...grpc.CallOption) (*MsgRetireResponse, error) - // Cancel cancels a specified amount of tradable credits, removing the amount - // from the credit owner's tradable balance and removing the amount from the - // credit batch's tradable supply. Cancelling credits is permanent and implies - // the credits have been moved to another chain or registry. - Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.CallOption) (*MsgCancelResponse, error) - // UpdateClassAdmin updates the credit class admin. Only the admin of the - // credit class can update the credit class. - UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmin, opts ...grpc.CallOption) (*MsgUpdateClassAdminResponse, error) - // UpdateClassIssuers updates the credit class issuer list. Only the admin of - // the credit class can update the credit class. - UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIssuers, opts ...grpc.CallOption) (*MsgUpdateClassIssuersResponse, error) - // UpdateClassMetadata updates the credit class metadata. Only the admin of - // the credit class can update the credit class. - UpdateClassMetadata(ctx context.Context, in *MsgUpdateClassMetadata, opts ...grpc.CallOption) (*MsgUpdateClassMetadataResponse, error) - // UpdateProjectAdmin updates the project admin address. Only the admin of the - // project can update the project. - UpdateProjectAdmin(ctx context.Context, in *MsgUpdateProjectAdmin, opts ...grpc.CallOption) (*MsgUpdateProjectAdminResponse, error) - // UpdateProjectMetadata updates the project metadata. Only the admin of the - // project can update the project. - UpdateProjectMetadata(ctx context.Context, in *MsgUpdateProjectMetadata, opts ...grpc.CallOption) (*MsgUpdateProjectMetadataResponse, error) - // UpdateBatchMetadata updates the batch metadata. Only an "open" batch can be - // updated and only the issuer of the batch can update the batch. - // - // Since Revision 2 - UpdateBatchMetadata(ctx context.Context, in *MsgUpdateBatchMetadata, opts ...grpc.CallOption) (*MsgUpdateBatchMetadataResponse, error) - // Bridge processes credits being sent back to the source chain. When credits - // are sent back to the source chain, the credits are cancelled and an event - // is emitted to be handled by an external bridge service. - Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.CallOption) (*MsgBridgeResponse, error) - // BridgeReceive processes credits being sent from another chain. When the - // credits are sent from the same vintage as an existing credit batch within - // the scope of the provided credit class, the credits will be minted to the - // existing credit batch, otherwise the credits will be issued in a new credit - // batch. The new credit batch will be created under an existing project if a - // project with a matching reference id already exists within the scope of the - // credit class, otherwise a new project will be created. - BridgeReceive(ctx context.Context, in *MsgBridgeReceive, opts ...grpc.CallOption) (*MsgBridgeReceiveResponse, error) - // AddCreditType is a governance method that allows the addition of new - // credit types to the network. - // - // Since Revision 2 - AddCreditType(ctx context.Context, in *MsgAddCreditType, opts ...grpc.CallOption) (*MsgAddCreditTypeResponse, error) - // SetClassCreatorAllowlist is a governance method that updates the class - // creator allowlist enabled setting. When enabled, only addresses listed in - // the allowlist can create credit classes. When disabled, any address can - // create credit classes. - // - // Since Revision 2 - SetClassCreatorAllowlist(ctx context.Context, in *MsgSetClassCreatorAllowlist, opts ...grpc.CallOption) (*MsgSetClassCreatorAllowlistResponse, error) - // AddClassCreator is a governance method that allows the addition of a new - // address to the class creation allowlist. - // - // Since Revision 2 - AddClassCreator(ctx context.Context, in *MsgAddClassCreator, opts ...grpc.CallOption) (*MsgAddClassCreatorResponse, error) - // RemoveClassCreator is a governance method that removes an - // address from the class creation allowlist. - // - // Since Revision 2 - RemoveClassCreator(ctx context.Context, in *MsgRemoveClassCreator, opts ...grpc.CallOption) (*MsgRemoveClassCreatorResponse, error) - // UpdateClassFee is a governance method that allows for updating the credit - // class creation fee. If no fee is specified in the request, the credit - // class creation fee will be removed and no fee will be required to create - // a credit class. - // - // Since Revision 2 - UpdateClassFee(ctx context.Context, in *MsgUpdateClassFee, opts ...grpc.CallOption) (*MsgUpdateClassFeeResponse, error) - // AddAllowedBridgeChain is a governance method that allows for the - // addition of a chain to bridge ecocredits to. - // - // Since Revision 2 - AddAllowedBridgeChain(ctx context.Context, in *MsgAddAllowedBridgeChain, opts ...grpc.CallOption) (*MsgAddAllowedBridgeChainResponse, error) - // RemoveAllowedBridgeChain is a governance method that allows for the - // removal of a chain to bridge ecocredits to. - // - // Since Revision 2 - RemoveAllowedBridgeChain(ctx context.Context, in *MsgRemoveAllowedBridgeChain, opts ...grpc.CallOption) (*MsgRemoveAllowedBridgeChainResponse, error) - // BurnRegen burns REGEN tokens to account for platform fees when creating or transferring credits. - // - // Since Revision 3 - BurnRegen(ctx context.Context, in *MsgBurnRegen, opts ...grpc.CallOption) (*MsgBurnRegenResponse, error) +// Since Revision 2 +type MsgUpdateClassFeeResponse struct { } -type msgClient struct { - cc grpc1.ClientConn +func (m *MsgUpdateClassFeeResponse) Reset() { *m = MsgUpdateClassFeeResponse{} } +func (m *MsgUpdateClassFeeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateClassFeeResponse) ProtoMessage() {} +func (*MsgUpdateClassFeeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{47} } - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} +func (m *MsgUpdateClassFeeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (c *msgClient) CreateClass(ctx context.Context, in *MsgCreateClass, opts ...grpc.CallOption) (*MsgCreateClassResponse, error) { - out := new(MsgCreateClassResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateClass", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgUpdateClassFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateClassFeeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil } - -func (c *msgClient) CreateProject(ctx context.Context, in *MsgCreateProject, opts ...grpc.CallOption) (*MsgCreateProjectResponse, error) { - out := new(MsgCreateProjectResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgUpdateClassFeeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateClassFeeResponse.Merge(m, src) } - -func (c *msgClient) CreateBatch(ctx context.Context, in *MsgCreateBatch, opts ...grpc.CallOption) (*MsgCreateBatchResponse, error) { - out := new(MsgCreateBatchResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateBatch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgUpdateClassFeeResponse) XXX_Size() int { + return m.Size() } - -func (c *msgClient) MintBatchCredits(ctx context.Context, in *MsgMintBatchCredits, opts ...grpc.CallOption) (*MsgMintBatchCreditsResponse, error) { - out := new(MsgMintBatchCreditsResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/MintBatchCredits", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgUpdateClassFeeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateClassFeeResponse.DiscardUnknown(m) } -func (c *msgClient) SealBatch(ctx context.Context, in *MsgSealBatch, opts ...grpc.CallOption) (*MsgSealBatchResponse, error) { - out := new(MsgSealBatchResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/SealBatch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +var xxx_messageInfo_MsgUpdateClassFeeResponse proto.InternalMessageInfo -func (c *msgClient) Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) { - out := new(MsgSendResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Send", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// MsgUpdateProjectFee is the Msg/UpdateProjectFee request type. +type MsgUpdateProjectFee struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // fee is the project creation fee. If not set, the project creation fee will + // be removed and no fee will be required to create a project. + Fee *types.Coin `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` } -func (c *msgClient) Retire(ctx context.Context, in *MsgRetire, opts ...grpc.CallOption) (*MsgRetireResponse, error) { - out := new(MsgRetireResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Retire", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgUpdateProjectFee) Reset() { *m = MsgUpdateProjectFee{} } +func (m *MsgUpdateProjectFee) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateProjectFee) ProtoMessage() {} +func (*MsgUpdateProjectFee) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{48} } - -func (c *msgClient) Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.CallOption) (*MsgCancelResponse, error) { - out := new(MsgCancelResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Cancel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgUpdateProjectFee) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (c *msgClient) UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmin, opts ...grpc.CallOption) (*MsgUpdateClassAdminResponse, error) { - out := new(MsgUpdateClassAdminResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassAdmin", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgUpdateProjectFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateProjectFee.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil } - -func (c *msgClient) UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIssuers, opts ...grpc.CallOption) (*MsgUpdateClassIssuersResponse, error) { - out := new(MsgUpdateClassIssuersResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassIssuers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgUpdateProjectFee) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateProjectFee.Merge(m, src) +} +func (m *MsgUpdateProjectFee) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateProjectFee) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateProjectFee.DiscardUnknown(m) } -func (c *msgClient) UpdateClassMetadata(ctx context.Context, in *MsgUpdateClassMetadata, opts ...grpc.CallOption) (*MsgUpdateClassMetadataResponse, error) { - out := new(MsgUpdateClassMetadataResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassMetadata", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_MsgUpdateProjectFee proto.InternalMessageInfo + +func (m *MsgUpdateProjectFee) GetAuthority() string { + if m != nil { + return m.Authority } - return out, nil + return "" } -func (c *msgClient) UpdateProjectAdmin(ctx context.Context, in *MsgUpdateProjectAdmin, opts ...grpc.CallOption) (*MsgUpdateProjectAdminResponse, error) { - out := new(MsgUpdateProjectAdminResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateProjectAdmin", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgUpdateProjectFee) GetFee() *types.Coin { + if m != nil { + return m.Fee } - return out, nil + return nil } -func (c *msgClient) UpdateProjectMetadata(ctx context.Context, in *MsgUpdateProjectMetadata, opts ...grpc.CallOption) (*MsgUpdateProjectMetadataResponse, error) { - out := new(MsgUpdateProjectMetadataResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateProjectMetadata", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// MsgUpdateProjectFeeResponse is the Msg/UpdateProjectFee response type. +type MsgUpdateProjectFeeResponse struct { } -func (c *msgClient) UpdateBatchMetadata(ctx context.Context, in *MsgUpdateBatchMetadata, opts ...grpc.CallOption) (*MsgUpdateBatchMetadataResponse, error) { - out := new(MsgUpdateBatchMetadataResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateBatchMetadata", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgUpdateProjectFeeResponse) Reset() { *m = MsgUpdateProjectFeeResponse{} } +func (m *MsgUpdateProjectFeeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateProjectFeeResponse) ProtoMessage() {} +func (*MsgUpdateProjectFeeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{49} +} +func (m *MsgUpdateProjectFeeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateProjectFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateProjectFeeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *MsgUpdateProjectFeeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateProjectFeeResponse.Merge(m, src) +} +func (m *MsgUpdateProjectFeeResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateProjectFeeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateProjectFeeResponse.DiscardUnknown(m) } -func (c *msgClient) Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.CallOption) (*MsgBridgeResponse, error) { - out := new(MsgBridgeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Bridge", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +var xxx_messageInfo_MsgUpdateProjectFeeResponse proto.InternalMessageInfo + +// MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. +// +// Since Revision 2 +type MsgAddAllowedBridgeChain struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // chain_name is the name of the chain to allow bridging of ecocredits to + // (i.e. polygon, ethereum, celo). + ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` } -func (c *msgClient) BridgeReceive(ctx context.Context, in *MsgBridgeReceive, opts ...grpc.CallOption) (*MsgBridgeReceiveResponse, error) { - out := new(MsgBridgeReceiveResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/BridgeReceive", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgAddAllowedBridgeChain) Reset() { *m = MsgAddAllowedBridgeChain{} } +func (m *MsgAddAllowedBridgeChain) String() string { return proto.CompactTextString(m) } +func (*MsgAddAllowedBridgeChain) ProtoMessage() {} +func (*MsgAddAllowedBridgeChain) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{50} +} +func (m *MsgAddAllowedBridgeChain) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddAllowedBridgeChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddAllowedBridgeChain.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *MsgAddAllowedBridgeChain) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddAllowedBridgeChain.Merge(m, src) +} +func (m *MsgAddAllowedBridgeChain) XXX_Size() int { + return m.Size() +} +func (m *MsgAddAllowedBridgeChain) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddAllowedBridgeChain.DiscardUnknown(m) } -func (c *msgClient) AddCreditType(ctx context.Context, in *MsgAddCreditType, opts ...grpc.CallOption) (*MsgAddCreditTypeResponse, error) { - out := new(MsgAddCreditTypeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/AddCreditType", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_MsgAddAllowedBridgeChain proto.InternalMessageInfo + +func (m *MsgAddAllowedBridgeChain) GetAuthority() string { + if m != nil { + return m.Authority } - return out, nil + return "" } -func (c *msgClient) SetClassCreatorAllowlist(ctx context.Context, in *MsgSetClassCreatorAllowlist, opts ...grpc.CallOption) (*MsgSetClassCreatorAllowlistResponse, error) { - out := new(MsgSetClassCreatorAllowlistResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/SetClassCreatorAllowlist", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgAddAllowedBridgeChain) GetChainName() string { + if m != nil { + return m.ChainName } - return out, nil + return "" } -func (c *msgClient) AddClassCreator(ctx context.Context, in *MsgAddClassCreator, opts ...grpc.CallOption) (*MsgAddClassCreatorResponse, error) { - out := new(MsgAddClassCreatorResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/AddClassCreator", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response +// type. +// +// Since Revision 2 +type MsgAddAllowedBridgeChainResponse struct { } -func (c *msgClient) RemoveClassCreator(ctx context.Context, in *MsgRemoveClassCreator, opts ...grpc.CallOption) (*MsgRemoveClassCreatorResponse, error) { - out := new(MsgRemoveClassCreatorResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/RemoveClassCreator", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgAddAllowedBridgeChainResponse) Reset() { *m = MsgAddAllowedBridgeChainResponse{} } +func (m *MsgAddAllowedBridgeChainResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAddAllowedBridgeChainResponse) ProtoMessage() {} +func (*MsgAddAllowedBridgeChainResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{51} +} +func (m *MsgAddAllowedBridgeChainResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddAllowedBridgeChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddAllowedBridgeChainResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *MsgAddAllowedBridgeChainResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddAllowedBridgeChainResponse.Merge(m, src) +} +func (m *MsgAddAllowedBridgeChainResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAddAllowedBridgeChainResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddAllowedBridgeChainResponse.DiscardUnknown(m) } -func (c *msgClient) UpdateClassFee(ctx context.Context, in *MsgUpdateClassFee, opts ...grpc.CallOption) (*MsgUpdateClassFeeResponse, error) { - out := new(MsgUpdateClassFeeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassFee", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_MsgAddAllowedBridgeChainResponse proto.InternalMessageInfo + +// MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. +// +// Since Revision 2 +type MsgRemoveAllowedBridgeChain struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // chain_name is the name of the chain to remove from the list of allowed + // chains to bridge ecocredits to (i.e. polygon, ethereum, celo). + ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` +} + +func (m *MsgRemoveAllowedBridgeChain) Reset() { *m = MsgRemoveAllowedBridgeChain{} } +func (m *MsgRemoveAllowedBridgeChain) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveAllowedBridgeChain) ProtoMessage() {} +func (*MsgRemoveAllowedBridgeChain) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{52} +} +func (m *MsgRemoveAllowedBridgeChain) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoveAllowedBridgeChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoveAllowedBridgeChain.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *MsgRemoveAllowedBridgeChain) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveAllowedBridgeChain.Merge(m, src) +} +func (m *MsgRemoveAllowedBridgeChain) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoveAllowedBridgeChain) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveAllowedBridgeChain.DiscardUnknown(m) } -func (c *msgClient) AddAllowedBridgeChain(ctx context.Context, in *MsgAddAllowedBridgeChain, opts ...grpc.CallOption) (*MsgAddAllowedBridgeChainResponse, error) { - out := new(MsgAddAllowedBridgeChainResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/AddAllowedBridgeChain", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_MsgRemoveAllowedBridgeChain proto.InternalMessageInfo + +func (m *MsgRemoveAllowedBridgeChain) GetAuthority() string { + if m != nil { + return m.Authority } - return out, nil + return "" } -func (c *msgClient) RemoveAllowedBridgeChain(ctx context.Context, in *MsgRemoveAllowedBridgeChain, opts ...grpc.CallOption) (*MsgRemoveAllowedBridgeChainResponse, error) { - out := new(MsgRemoveAllowedBridgeChainResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/RemoveAllowedBridgeChain", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgRemoveAllowedBridgeChain) GetChainName() string { + if m != nil { + return m.ChainName } - return out, nil + return "" } -func (c *msgClient) BurnRegen(ctx context.Context, in *MsgBurnRegen, opts ...grpc.CallOption) (*MsgBurnRegenResponse, error) { - out := new(MsgBurnRegenResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/BurnRegen", in, out, opts...) - if err != nil { - return nil, err +// MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain +// response type. +// +// Since Revision 2 +type MsgRemoveAllowedBridgeChainResponse struct { +} + +func (m *MsgRemoveAllowedBridgeChainResponse) Reset() { *m = MsgRemoveAllowedBridgeChainResponse{} } +func (m *MsgRemoveAllowedBridgeChainResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveAllowedBridgeChainResponse) ProtoMessage() {} +func (*MsgRemoveAllowedBridgeChainResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{53} +} +func (m *MsgRemoveAllowedBridgeChainResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoveAllowedBridgeChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoveAllowedBridgeChainResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *MsgRemoveAllowedBridgeChainResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveAllowedBridgeChainResponse.Merge(m, src) +} +func (m *MsgRemoveAllowedBridgeChainResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoveAllowedBridgeChainResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveAllowedBridgeChainResponse.DiscardUnknown(m) } -// MsgServer is the server API for Msg service. -type MsgServer interface { - // CreateClass creates a new credit class under the given credit type with an - // approved list of issuers and optional metadata. If the class fee parameter - // is set, the fee field must be populated with equal value. A greater fee can - // be provided, however, the creator will only be charged the amount specified - // in the fee parameter. The creator of the credit class becomes the admin of - // the credit class upon creation. - CreateClass(context.Context, *MsgCreateClass) (*MsgCreateClassResponse, error) - // CreateProject creates a new project under the given credit class with a - // jurisdiction, optional metadata, and an optional reference ID. The creator - // of the project must be an approved credit class issuer for the given credit +var xxx_messageInfo_MsgRemoveAllowedBridgeChainResponse proto.InternalMessageInfo + +// MsgBurnRegen is the Msg/BurnRegen request type. +// +// Since Revision 3 +type MsgBurnRegen struct { + // burner is the address of the account burning REGEN tokens. + Burner string `protobuf:"bytes,1,opt,name=burner,proto3" json:"burner,omitempty"` + // amount is the integer amount of uregen tokens to burn. + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + // reason is any arbitrary string that specifies the reason for burning + // REGEN tokens. It may be at most 256 characters long. + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (m *MsgBurnRegen) Reset() { *m = MsgBurnRegen{} } +func (m *MsgBurnRegen) String() string { return proto.CompactTextString(m) } +func (*MsgBurnRegen) ProtoMessage() {} +func (*MsgBurnRegen) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{54} +} +func (m *MsgBurnRegen) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnRegen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnRegen.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnRegen) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnRegen.Merge(m, src) +} +func (m *MsgBurnRegen) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnRegen) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnRegen.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnRegen proto.InternalMessageInfo + +func (m *MsgBurnRegen) GetBurner() string { + if m != nil { + return m.Burner + } + return "" +} + +func (m *MsgBurnRegen) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +func (m *MsgBurnRegen) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +// MsgBurnResponse is the Msg/Burn response type. +// +// Since Revision 3 +type MsgBurnRegenResponse struct { +} + +func (m *MsgBurnRegenResponse) Reset() { *m = MsgBurnRegenResponse{} } +func (m *MsgBurnRegenResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBurnRegenResponse) ProtoMessage() {} +func (*MsgBurnRegenResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8ae49f50a3ddbd, []int{55} +} +func (m *MsgBurnRegenResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBurnRegenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBurnRegenResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBurnRegenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnRegenResponse.Merge(m, src) +} +func (m *MsgBurnRegenResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgBurnRegenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnRegenResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBurnRegenResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgAddCreditType)(nil), "regen.ecocredit.v1.MsgAddCreditType") + proto.RegisterType((*MsgAddCreditTypeResponse)(nil), "regen.ecocredit.v1.MsgAddCreditTypeResponse") + proto.RegisterType((*MsgCreateClass)(nil), "regen.ecocredit.v1.MsgCreateClass") + proto.RegisterType((*MsgCreateClassResponse)(nil), "regen.ecocredit.v1.MsgCreateClassResponse") + proto.RegisterType((*MsgCreateProject)(nil), "regen.ecocredit.v1.MsgCreateProject") + proto.RegisterType((*MsgCreateProjectResponse)(nil), "regen.ecocredit.v1.MsgCreateProjectResponse") + proto.RegisterType((*MsgCreateUnregisteredProject)(nil), "regen.ecocredit.v1.MsgCreateUnregisteredProject") + proto.RegisterType((*MsgCreateUnregisteredProjectResponse)(nil), "regen.ecocredit.v1.MsgCreateUnregisteredProjectResponse") + proto.RegisterType((*MsgCreateOrUpdateApplication)(nil), "regen.ecocredit.v1.MsgCreateOrUpdateApplication") + proto.RegisterType((*MsgCreateOrUpdateApplicationResponse)(nil), "regen.ecocredit.v1.MsgCreateOrUpdateApplicationResponse") + proto.RegisterType((*MsgUpdateProjectEnrollment)(nil), "regen.ecocredit.v1.MsgUpdateProjectEnrollment") + proto.RegisterType((*MsgUpdateProjectEnrollmentResponse)(nil), "regen.ecocredit.v1.MsgUpdateProjectEnrollmentResponse") + proto.RegisterType((*MsgCreateBatch)(nil), "regen.ecocredit.v1.MsgCreateBatch") + proto.RegisterType((*MsgCreateBatchResponse)(nil), "regen.ecocredit.v1.MsgCreateBatchResponse") + proto.RegisterType((*MsgMintBatchCredits)(nil), "regen.ecocredit.v1.MsgMintBatchCredits") + proto.RegisterType((*MsgMintBatchCreditsResponse)(nil), "regen.ecocredit.v1.MsgMintBatchCreditsResponse") + proto.RegisterType((*MsgSealBatch)(nil), "regen.ecocredit.v1.MsgSealBatch") + proto.RegisterType((*MsgSealBatchResponse)(nil), "regen.ecocredit.v1.MsgSealBatchResponse") + proto.RegisterType((*MsgSend)(nil), "regen.ecocredit.v1.MsgSend") + proto.RegisterType((*MsgSend_SendCredits)(nil), "regen.ecocredit.v1.MsgSend.SendCredits") + proto.RegisterType((*MsgSendResponse)(nil), "regen.ecocredit.v1.MsgSendResponse") + proto.RegisterType((*MsgRetire)(nil), "regen.ecocredit.v1.MsgRetire") + proto.RegisterType((*MsgRetireResponse)(nil), "regen.ecocredit.v1.MsgRetireResponse") + proto.RegisterType((*MsgCancel)(nil), "regen.ecocredit.v1.MsgCancel") + proto.RegisterType((*MsgCancelResponse)(nil), "regen.ecocredit.v1.MsgCancelResponse") + proto.RegisterType((*MsgUpdateClassAdmin)(nil), "regen.ecocredit.v1.MsgUpdateClassAdmin") + proto.RegisterType((*MsgUpdateClassAdminResponse)(nil), "regen.ecocredit.v1.MsgUpdateClassAdminResponse") + proto.RegisterType((*MsgUpdateClassIssuers)(nil), "regen.ecocredit.v1.MsgUpdateClassIssuers") + proto.RegisterType((*MsgUpdateClassIssuersResponse)(nil), "regen.ecocredit.v1.MsgUpdateClassIssuersResponse") + proto.RegisterType((*MsgUpdateClassMetadata)(nil), "regen.ecocredit.v1.MsgUpdateClassMetadata") + proto.RegisterType((*MsgUpdateClassMetadataResponse)(nil), "regen.ecocredit.v1.MsgUpdateClassMetadataResponse") + proto.RegisterType((*MsgUpdateProjectAdmin)(nil), "regen.ecocredit.v1.MsgUpdateProjectAdmin") + proto.RegisterType((*MsgUpdateProjectAdminResponse)(nil), "regen.ecocredit.v1.MsgUpdateProjectAdminResponse") + proto.RegisterType((*MsgUpdateProjectMetadata)(nil), "regen.ecocredit.v1.MsgUpdateProjectMetadata") + proto.RegisterType((*MsgUpdateProjectMetadataResponse)(nil), "regen.ecocredit.v1.MsgUpdateProjectMetadataResponse") + proto.RegisterType((*MsgBridge)(nil), "regen.ecocredit.v1.MsgBridge") + proto.RegisterType((*MsgUpdateBatchMetadata)(nil), "regen.ecocredit.v1.MsgUpdateBatchMetadata") + proto.RegisterType((*MsgUpdateBatchMetadataResponse)(nil), "regen.ecocredit.v1.MsgUpdateBatchMetadataResponse") + proto.RegisterType((*MsgBridgeResponse)(nil), "regen.ecocredit.v1.MsgBridgeResponse") + proto.RegisterType((*MsgBridgeReceive)(nil), "regen.ecocredit.v1.MsgBridgeReceive") + proto.RegisterType((*MsgBridgeReceive_Batch)(nil), "regen.ecocredit.v1.MsgBridgeReceive.Batch") + proto.RegisterType((*MsgBridgeReceive_Project)(nil), "regen.ecocredit.v1.MsgBridgeReceive.Project") + proto.RegisterType((*MsgBridgeReceiveResponse)(nil), "regen.ecocredit.v1.MsgBridgeReceiveResponse") + proto.RegisterType((*MsgAddClassCreator)(nil), "regen.ecocredit.v1.MsgAddClassCreator") + proto.RegisterType((*MsgAddClassCreatorResponse)(nil), "regen.ecocredit.v1.MsgAddClassCreatorResponse") + proto.RegisterType((*MsgSetClassCreatorAllowlist)(nil), "regen.ecocredit.v1.MsgSetClassCreatorAllowlist") + proto.RegisterType((*MsgSetClassCreatorAllowlistResponse)(nil), "regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse") + proto.RegisterType((*MsgRemoveClassCreator)(nil), "regen.ecocredit.v1.MsgRemoveClassCreator") + proto.RegisterType((*MsgRemoveClassCreatorResponse)(nil), "regen.ecocredit.v1.MsgRemoveClassCreatorResponse") + proto.RegisterType((*MsgUpdateClassFee)(nil), "regen.ecocredit.v1.MsgUpdateClassFee") + proto.RegisterType((*MsgUpdateClassFeeResponse)(nil), "regen.ecocredit.v1.MsgUpdateClassFeeResponse") + proto.RegisterType((*MsgUpdateProjectFee)(nil), "regen.ecocredit.v1.MsgUpdateProjectFee") + proto.RegisterType((*MsgUpdateProjectFeeResponse)(nil), "regen.ecocredit.v1.MsgUpdateProjectFeeResponse") + proto.RegisterType((*MsgAddAllowedBridgeChain)(nil), "regen.ecocredit.v1.MsgAddAllowedBridgeChain") + proto.RegisterType((*MsgAddAllowedBridgeChainResponse)(nil), "regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse") + proto.RegisterType((*MsgRemoveAllowedBridgeChain)(nil), "regen.ecocredit.v1.MsgRemoveAllowedBridgeChain") + proto.RegisterType((*MsgRemoveAllowedBridgeChainResponse)(nil), "regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse") + proto.RegisterType((*MsgBurnRegen)(nil), "regen.ecocredit.v1.MsgBurnRegen") + proto.RegisterType((*MsgBurnRegenResponse)(nil), "regen.ecocredit.v1.MsgBurnRegenResponse") +} + +func init() { proto.RegisterFile("regen/ecocredit/v1/tx.proto", fileDescriptor_2b8ae49f50a3ddbd) } + +var fileDescriptor_2b8ae49f50a3ddbd = []byte{ + // 2193 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5a, 0x4f, 0x6f, 0xdb, 0xc8, + 0x15, 0x5f, 0x4a, 0xb2, 0x2d, 0x3d, 0x39, 0x4e, 0xc2, 0x64, 0x1d, 0x85, 0x8e, 0x65, 0x47, 0x49, + 0x36, 0xce, 0x9f, 0x95, 0x6a, 0x6f, 0xdb, 0x34, 0x29, 0x8a, 0xd4, 0xf6, 0x6e, 0x50, 0x2f, 0xa0, + 0xdd, 0x85, 0x92, 0x45, 0xd1, 0x45, 0x0b, 0x81, 0x22, 0x27, 0x34, 0x53, 0x89, 0x14, 0xc8, 0x91, + 0xe5, 0xa0, 0x45, 0x81, 0x14, 0x05, 0x7a, 0xdd, 0x5b, 0x81, 0xa2, 0x87, 0x7e, 0x84, 0x7e, 0x87, + 0x5e, 0xda, 0x5b, 0x2e, 0x45, 0x7b, 0x4b, 0x91, 0xb4, 0xe8, 0x37, 0xe8, 0xb9, 0xe0, 0xcc, 0x70, + 0x34, 0x43, 0x71, 0x48, 0x6a, 0xd3, 0x5c, 0x0c, 0xce, 0xcc, 0x9b, 0xf7, 0x7e, 0xef, 0xcd, 0x9b, + 0xf7, 0x67, 0x2c, 0xd8, 0x08, 0x90, 0x83, 0xbc, 0x0e, 0xb2, 0x7c, 0x2b, 0x40, 0xb6, 0x8b, 0x3b, + 0x27, 0xbb, 0x1d, 0x7c, 0xda, 0x1e, 0x07, 0x3e, 0xf6, 0x75, 0x9d, 0x2c, 0xb6, 0xf9, 0x62, 0xfb, + 0x64, 0xd7, 0x68, 0x5a, 0x7e, 0x38, 0xf2, 0xc3, 0xce, 0xc0, 0x0c, 0x51, 0xe7, 0x64, 0x77, 0x80, + 0xb0, 0xb9, 0xdb, 0xb1, 0x7c, 0xd7, 0xa3, 0x7b, 0x8c, 0x4b, 0x6c, 0x7d, 0x14, 0x3a, 0x11, 0xaf, + 0x51, 0xe8, 0xb0, 0x85, 0x8b, 0x8e, 0xef, 0xf8, 0xe4, 0xb3, 0x13, 0x7d, 0xb1, 0xd9, 0x2d, 0xc7, + 0xf7, 0x9d, 0x21, 0xea, 0x90, 0xd1, 0x60, 0xf2, 0xb4, 0x83, 0xdd, 0x11, 0x0a, 0xb1, 0x39, 0x1a, + 0x33, 0x82, 0x66, 0x0a, 0xc0, 0x10, 0x9b, 0x18, 0x65, 0xac, 0xe3, 0xe7, 0x63, 0x14, 0xd2, 0xf5, + 0xd6, 0x0b, 0x0d, 0xce, 0x75, 0x43, 0x67, 0xdf, 0xb6, 0x0f, 0xc9, 0xfa, 0x93, 0xe7, 0x63, 0xa4, + 0x5f, 0x81, 0x9a, 0x39, 0xc1, 0xc7, 0x7e, 0xe0, 0xe2, 0xe7, 0x0d, 0x6d, 0x5b, 0xdb, 0xa9, 0xf5, + 0x66, 0x13, 0xfa, 0x43, 0xa8, 0x53, 0x5e, 0xfd, 0x88, 0x51, 0xa3, 0xb4, 0xad, 0xed, 0xd4, 0xf7, + 0x9a, 0xed, 0x79, 0x63, 0xb4, 0x67, 0x2c, 0x7b, 0x60, 0xf1, 0xef, 0x07, 0x6b, 0xbf, 0xfe, 0xcf, + 0x9f, 0x6e, 0xcf, 0x18, 0xb6, 0x0c, 0x68, 0x24, 0x21, 0xf4, 0x50, 0x38, 0xf6, 0xbd, 0x10, 0xb5, + 0xfe, 0xac, 0xc1, 0x5a, 0x37, 0x74, 0x0e, 0x03, 0x64, 0x62, 0x74, 0x38, 0x34, 0xc3, 0x50, 0xbf, + 0x08, 0x4b, 0xa6, 0x3d, 0x72, 0x3d, 0x86, 0x8c, 0x0e, 0xf4, 0x06, 0xac, 0xb8, 0x61, 0x38, 0x41, + 0x41, 0xd8, 0x28, 0x6d, 0x97, 0x77, 0x6a, 0xbd, 0x78, 0xa8, 0x1b, 0x50, 0x1d, 0x21, 0x6c, 0xda, + 0x26, 0x36, 0x1b, 0x65, 0xb2, 0x85, 0x8f, 0xf5, 0xbb, 0xa0, 0x0b, 0xba, 0xf4, 0xcd, 0xc1, 0x20, + 0x40, 0x27, 0x8d, 0x0a, 0xa1, 0x3a, 0x37, 0x83, 0xbc, 0x4f, 0xe6, 0xf5, 0x3b, 0x50, 0x7e, 0x8a, + 0x50, 0x63, 0x89, 0x68, 0x7c, 0xb9, 0x4d, 0x8f, 0xb2, 0x1d, 0x1d, 0x75, 0x9b, 0x1d, 0x75, 0xfb, + 0xd0, 0x77, 0xbd, 0x5e, 0x44, 0xf5, 0x00, 0x22, 0x2d, 0x29, 0xb8, 0xd6, 0x47, 0xb0, 0x2e, 0x2b, + 0x11, 0xeb, 0xa7, 0x5f, 0x86, 0xaa, 0x15, 0x4d, 0xf4, 0x5d, 0x9b, 0xe9, 0xb3, 0x42, 0xc6, 0x47, + 0x76, 0xeb, 0x15, 0x3d, 0x1a, 0xba, 0xeb, 0x8b, 0xc0, 0x7f, 0x86, 0x2c, 0xac, 0x50, 0x5e, 0xe4, + 0x52, 0x92, 0xb8, 0x64, 0x6a, 0xdf, 0x82, 0xd5, 0x67, 0x93, 0xc0, 0x0d, 0x6d, 0xd7, 0xc2, 0xae, + 0xef, 0x31, 0xbd, 0xa5, 0x39, 0xfd, 0x2a, 0xac, 0x06, 0xe8, 0x29, 0x0a, 0x90, 0x67, 0xa1, 0x88, + 0xfd, 0x12, 0xa1, 0xa9, 0xf3, 0xb9, 0x23, 0x3b, 0x36, 0xcb, 0xf2, 0xc2, 0x66, 0xb9, 0x4f, 0x0e, + 0x5e, 0x52, 0x90, 0x1b, 0x66, 0x13, 0x60, 0x4c, 0xa7, 0x66, 0xa6, 0xa9, 0xb1, 0x99, 0x23, 0xbb, + 0xf5, 0x52, 0x83, 0x2b, 0x7c, 0xef, 0x97, 0x5e, 0x80, 0x1c, 0x37, 0xc4, 0x28, 0x40, 0x76, 0xb6, + 0xa1, 0x44, 0x6b, 0x94, 0x72, 0xac, 0x51, 0x2e, 0x60, 0x8d, 0x8a, 0xd2, 0x1a, 0x8b, 0x3b, 0xc9, + 0x27, 0x70, 0x3d, 0x4b, 0xa3, 0xa2, 0x96, 0xf9, 0xab, 0x68, 0x99, 0xcf, 0x83, 0x2f, 0xc7, 0xb6, + 0x89, 0xd1, 0xfe, 0x78, 0x3c, 0x74, 0x2d, 0x93, 0xe8, 0x70, 0x0d, 0xce, 0xc4, 0xfb, 0x45, 0x0b, + 0xad, 0xb2, 0xc9, 0x7d, 0x62, 0x28, 0x59, 0x48, 0x29, 0x21, 0x44, 0x72, 0xb8, 0xb2, 0xda, 0xe1, + 0x2a, 0x09, 0x13, 0x1b, 0x50, 0x9d, 0xba, 0xf8, 0xd8, 0x0e, 0xcc, 0x29, 0x31, 0x50, 0xb5, 0xc7, + 0xc7, 0x0f, 0xf4, 0xc8, 0x14, 0x32, 0xb2, 0xd6, 0x07, 0x82, 0x49, 0x52, 0x54, 0xe1, 0x51, 0xe2, + 0x8d, 0x06, 0x46, 0x37, 0x74, 0x28, 0x01, 0xb3, 0xd7, 0x27, 0x5e, 0xe0, 0x0f, 0x87, 0x23, 0xe4, + 0x61, 0x7d, 0x1d, 0x96, 0x69, 0x30, 0x60, 0xaa, 0xb2, 0xd1, 0x5b, 0x28, 0xf9, 0x29, 0x80, 0x87, + 0xa6, 0xfd, 0x28, 0xd2, 0x4e, 0x42, 0xa2, 0xe6, 0xda, 0xde, 0x9d, 0xb4, 0x10, 0x38, 0x07, 0xe6, + 0x31, 0xd9, 0xd2, 0xab, 0x79, 0x68, 0x4a, 0x3f, 0x25, 0x83, 0x2d, 0xc9, 0x06, 0x7b, 0x50, 0x8f, + 0x8c, 0xc2, 0xe0, 0xb6, 0xae, 0x43, 0x4b, 0xad, 0x24, 0xb7, 0xc5, 0xef, 0xca, 0x42, 0xc4, 0x3c, + 0x30, 0xb1, 0x75, 0xfc, 0x4d, 0xf5, 0xff, 0x01, 0x54, 0x23, 0x42, 0xd3, 0xb3, 0x50, 0xa3, 0xbc, + 0x5d, 0xde, 0xa9, 0xef, 0x5d, 0x4d, 0x53, 0x91, 0xc8, 0x38, 0x62, 0x84, 0x3d, 0xbe, 0x25, 0xd3, + 0x11, 0x1e, 0x02, 0x84, 0xd8, 0x0c, 0x70, 0x3f, 0xd2, 0x85, 0xdd, 0x15, 0xa3, 0x4d, 0x93, 0x5d, + 0x3b, 0x4e, 0x76, 0xed, 0x27, 0x71, 0xb2, 0x3b, 0xa8, 0x7c, 0xfd, 0x6a, 0x4b, 0xeb, 0xd5, 0xc8, + 0x9e, 0x8f, 0x4d, 0x8c, 0xf4, 0xef, 0x43, 0x15, 0x79, 0x36, 0xdd, 0xbe, 0x5c, 0x70, 0xfb, 0x0a, + 0xf2, 0x6c, 0xb2, 0x59, 0x87, 0x8a, 0x3f, 0x46, 0x5e, 0x63, 0x85, 0xb8, 0x20, 0xf9, 0xd6, 0xef, + 0x43, 0xcd, 0x0f, 0x5c, 0xc7, 0xf5, 0xfa, 0xf8, 0xb4, 0x51, 0x25, 0x1c, 0xaf, 0xa4, 0x69, 0xfb, + 0x39, 0x21, 0x7a, 0x72, 0xda, 0xab, 0xfa, 0xec, 0x4b, 0xf2, 0x93, 0x9a, 0xe4, 0x27, 0xf2, 0xf9, + 0xdd, 0x17, 0xb2, 0x00, 0x31, 0x1a, 0xbf, 0xd2, 0x5b, 0x50, 0x1f, 0x44, 0x13, 0x7d, 0x1b, 0x79, + 0xfe, 0x88, 0x9d, 0x12, 0x90, 0xa9, 0x8f, 0xa3, 0x99, 0xd6, 0xdf, 0x34, 0xb8, 0xd0, 0x0d, 0x9d, + 0xae, 0xeb, 0x61, 0xb2, 0x93, 0x66, 0xca, 0x50, 0x79, 0xb2, 0x09, 0x86, 0xa5, 0x24, 0xc3, 0xb7, + 0x3d, 0x5b, 0xc9, 0x5a, 0x95, 0x45, 0xac, 0x25, 0x9b, 0x64, 0x13, 0x36, 0x52, 0xd4, 0xe2, 0xbe, + 0xfc, 0x04, 0x56, 0xbb, 0xa1, 0xf3, 0x18, 0x99, 0xc3, 0x6c, 0x47, 0xce, 0x53, 0x57, 0x16, 0xba, + 0x0e, 0x17, 0x45, 0xae, 0x5c, 0xda, 0x7f, 0x4b, 0xb0, 0x42, 0x16, 0x3c, 0x3b, 0x92, 0x14, 0x22, + 0xcf, 0x9e, 0x49, 0xa2, 0xa3, 0xa8, 0x34, 0x0a, 0x90, 0xe5, 0x8e, 0x5d, 0xe4, 0xe1, 0xf8, 0xc6, + 0xf0, 0x09, 0x7d, 0x1f, 0x56, 0xa8, 0xee, 0x21, 0x33, 0xea, 0xcd, 0x34, 0xa3, 0x30, 0x19, 0xed, + 0xe8, 0x4f, 0xac, 0x71, 0xbc, 0xcf, 0xf8, 0x97, 0x06, 0x75, 0x61, 0x21, 0xd7, 0x35, 0xf4, 0x9b, + 0x70, 0x16, 0x07, 0xa6, 0x6d, 0x0e, 0x86, 0xa8, 0x6f, 0x8e, 0xfc, 0x09, 0xc7, 0xb5, 0x16, 0x4f, + 0xef, 0x93, 0x59, 0xfd, 0x06, 0xac, 0x05, 0x08, 0xbb, 0x01, 0xb2, 0x63, 0x3a, 0x1a, 0xd4, 0xce, + 0xb0, 0x59, 0x46, 0x76, 0x0f, 0x2e, 0xd1, 0x89, 0x28, 0xaa, 0xf4, 0x53, 0xea, 0x83, 0xf5, 0xd9, + 0xf2, 0xa7, 0x62, 0x6e, 0xbc, 0x03, 0xe7, 0x85, 0x8d, 0x01, 0x32, 0x43, 0xdf, 0x63, 0x01, 0xed, + 0xdc, 0x6c, 0xa1, 0x47, 0xe6, 0xd9, 0x81, 0x50, 0xa3, 0xb6, 0xce, 0xc3, 0x59, 0x66, 0x13, 0x7e, + 0x16, 0x7f, 0xd4, 0xa0, 0xd6, 0x0d, 0x9d, 0x1e, 0xd9, 0x17, 0x25, 0x73, 0x7f, 0xea, 0xf1, 0xc3, + 0xa0, 0x03, 0xfd, 0x3b, 0x33, 0x6b, 0x97, 0x88, 0xb5, 0x37, 0xd4, 0x45, 0xe8, 0xcc, 0xc2, 0x85, + 0xf2, 0xfc, 0x3a, 0x2c, 0x33, 0x05, 0xa8, 0xce, 0x6c, 0xc4, 0xf2, 0x35, 0x11, 0xdf, 0xba, 0x00, + 0xe7, 0x39, 0x42, 0x8e, 0xfb, 0x97, 0x04, 0xf6, 0x61, 0x74, 0x49, 0x86, 0xff, 0x5f, 0xd8, 0x33, + 0x48, 0xe5, 0x1c, 0x48, 0x54, 0x3a, 0x87, 0xe4, 0x93, 0xd0, 0x41, 0xd3, 0x06, 0x29, 0x3e, 0x69, + 0x86, 0x5f, 0xb8, 0x92, 0xdc, 0x80, 0x28, 0x69, 0xb1, 0x9a, 0x81, 0x95, 0x92, 0x1e, 0x9a, 0x12, + 0x6e, 0x52, 0x21, 0x43, 0x2f, 0x75, 0x52, 0x20, 0xc7, 0xf3, 0x07, 0x0d, 0xde, 0x97, 0xd7, 0x8f, + 0x58, 0xa5, 0xbe, 0x30, 0xa4, 0x2d, 0xa8, 0x9b, 0xb6, 0xdd, 0x8f, 0x0b, 0xff, 0x32, 0x29, 0xfc, + 0xc1, 0xb4, 0xed, 0x98, 0x23, 0xf1, 0xf9, 0x91, 0x7f, 0x82, 0x38, 0x4d, 0x85, 0xd0, 0x9c, 0xa1, + 0xb3, 0x8c, 0x4c, 0x42, 0xbf, 0x05, 0x9b, 0xa9, 0xe8, 0x38, 0xfe, 0x53, 0x12, 0xc6, 0x05, 0x82, + 0x6e, 0x9c, 0xd5, 0x16, 0xc6, 0x7f, 0x15, 0x56, 0x23, 0x93, 0x26, 0x0a, 0xf4, 0xba, 0x87, 0xa6, + 0x31, 0x4f, 0x09, 0xda, 0x36, 0x34, 0xd3, 0x25, 0x73, 0x6c, 0x13, 0xc1, 0xb4, 0x5f, 0x88, 0xf5, + 0x5c, 0x3a, 0xb4, 0x9c, 0x02, 0xa0, 0xf0, 0x89, 0x8b, 0x36, 0x13, 0xc5, 0x72, 0x5c, 0xbf, 0x22, + 0x95, 0xbe, 0x44, 0x90, 0x63, 0xb5, 0x1c, 0x68, 0x0b, 0x5a, 0xae, 0x05, 0xdb, 0x2a, 0xf9, 0x1c, + 0xe3, 0xef, 0x69, 0xc8, 0x39, 0x08, 0x5c, 0xdb, 0x51, 0x85, 0x9c, 0x75, 0x58, 0xc6, 0x66, 0xe0, + 0xa0, 0x38, 0xc6, 0xb2, 0x91, 0x9c, 0x16, 0xca, 0xc9, 0xb4, 0x20, 0xdc, 0xf8, 0x4a, 0xf1, 0x1b, + 0x2f, 0xdd, 0xec, 0x17, 0x9a, 0xe0, 0x75, 0x24, 0x6d, 0x71, 0xfb, 0x7d, 0xe3, 0x1a, 0xa0, 0x80, + 0x0d, 0xa5, 0xbc, 0x29, 0xba, 0x9f, 0x04, 0x81, 0x9b, 0x90, 0xc6, 0x1f, 0x6a, 0x41, 0x3e, 0xf9, + 0xaa, 0x42, 0xfa, 0xd8, 0x78, 0xd6, 0x42, 0xee, 0x09, 0x52, 0x82, 0xce, 0xb8, 0x2c, 0x8f, 0x60, + 0x85, 0x9d, 0x3f, 0x41, 0x5a, 0xdf, 0xbb, 0xab, 0x48, 0xae, 0x92, 0xa4, 0xb8, 0x02, 0xef, 0xc5, + 0x9b, 0xf5, 0x1f, 0xc2, 0x12, 0x31, 0x02, 0xab, 0x5b, 0x6e, 0x17, 0xe2, 0x42, 0x2b, 0x05, 0xba, + 0x51, 0xae, 0x7e, 0x96, 0x16, 0xa9, 0x7e, 0x8c, 0xbf, 0x6b, 0xb0, 0x44, 0x6b, 0x19, 0xc9, 0x65, + 0xb4, 0xa4, 0xcb, 0xac, 0xc3, 0xb2, 0x94, 0xcc, 0xd9, 0x28, 0x51, 0x38, 0x97, 0xdf, 0xae, 0x70, + 0xae, 0x2c, 0x5a, 0x38, 0x67, 0xb4, 0x2a, 0xc6, 0x10, 0x56, 0xe2, 0xde, 0x3b, 0xd9, 0x25, 0x6b, + 0xf3, 0x5d, 0x72, 0x32, 0x09, 0x97, 0x52, 0x92, 0x70, 0xc6, 0xd3, 0x85, 0xec, 0x98, 0x5f, 0x91, + 0xe8, 0x22, 0x1d, 0x58, 0xe1, 0xd2, 0x3a, 0x27, 0xd0, 0xb4, 0x7e, 0x0a, 0x3a, 0x7b, 0x9c, 0x8a, + 0xdc, 0x90, 0x14, 0xef, 0x7e, 0x90, 0xf3, 0x42, 0xd6, 0x20, 0xf7, 0x3d, 0x22, 0xe4, 0x3e, 0x4c, + 0x87, 0x73, 0x4f, 0x5f, 0x57, 0x48, 0xdf, 0x9a, 0xe0, 0xce, 0x6f, 0x0e, 0x22, 0x89, 0xf4, 0x31, + 0xc2, 0xe2, 0xea, 0xfe, 0x70, 0xe8, 0x4f, 0x87, 0x6e, 0x88, 0xf3, 0x41, 0x20, 0x2f, 0x2a, 0xff, + 0xa8, 0x52, 0xd5, 0x5e, 0x3c, 0x9c, 0x03, 0x71, 0x03, 0xae, 0x65, 0x88, 0xe1, 0x68, 0xfa, 0x24, + 0xb7, 0xf4, 0x48, 0xe2, 0x7c, 0x27, 0xc6, 0xa0, 0x59, 0x64, 0x5e, 0x00, 0x47, 0xe0, 0x91, 0xf0, + 0x22, 0xe4, 0xbf, 0x47, 0x28, 0xef, 0xb1, 0x92, 0xbd, 0xc6, 0x94, 0x0a, 0xbd, 0xc6, 0x24, 0x01, + 0x6d, 0xc0, 0xe5, 0x39, 0x79, 0x1c, 0xcc, 0x58, 0x28, 0xab, 0x98, 0xe3, 0xbf, 0x63, 0x38, 0x62, + 0x5d, 0x35, 0x93, 0xc8, 0x01, 0x39, 0xf1, 0x33, 0x2a, 0x39, 0x3a, 0x64, 0xd3, 0xfb, 0x70, 0x78, + 0x6c, 0xba, 0x5e, 0x0e, 0xaa, 0x4d, 0x00, 0x2b, 0x22, 0xeb, 0x7b, 0xe6, 0x08, 0xc5, 0x57, 0x80, + 0xcc, 0x7c, 0x66, 0x8e, 0xe6, 0x71, 0xd0, 0x64, 0x9a, 0x2a, 0x88, 0x83, 0x79, 0x46, 0xb0, 0xd2, + 0xb3, 0x7c, 0xd7, 0x78, 0xa8, 0xff, 0xaa, 0x64, 0x71, 0x48, 0x16, 0x69, 0x26, 0x0f, 0x26, 0x81, + 0xd7, 0x8b, 0x42, 0x75, 0x14, 0x62, 0x07, 0x93, 0x60, 0x96, 0xe2, 0xd9, 0x48, 0x19, 0x7a, 0x55, + 0x05, 0x38, 0x0d, 0x45, 0x74, 0x33, 0xeb, 0x2d, 0xb9, 0x90, 0x58, 0xf8, 0xde, 0xbf, 0x2f, 0x41, + 0xb9, 0x1b, 0x3a, 0xfa, 0xcf, 0xa0, 0x2e, 0xbe, 0x65, 0xb7, 0x14, 0xc9, 0x47, 0xa0, 0x31, 0x6e, + 0xe7, 0xd3, 0xf0, 0x68, 0x67, 0xc1, 0x19, 0xf9, 0xbd, 0xf8, 0x7a, 0xe6, 0x66, 0x46, 0x65, 0xdc, + 0x2d, 0x42, 0xc5, 0x85, 0xfc, 0x56, 0x83, 0xcb, 0xea, 0x87, 0xd7, 0x6f, 0x65, 0xf2, 0x4a, 0xd9, + 0x61, 0x7c, 0x6f, 0xd1, 0x1d, 0x29, 0x48, 0xd2, 0x1e, 0x3a, 0xb3, 0x91, 0xa4, 0xec, 0xc8, 0x41, + 0x92, 0xf1, 0x02, 0xa9, 0xbf, 0xd0, 0xe0, 0x92, 0xea, 0xf9, 0xb1, 0xad, 0xe0, 0xaa, 0xa0, 0x37, + 0xbe, 0xbb, 0x18, 0x3d, 0xc7, 0xc0, 0x7d, 0x8b, 0x16, 0x18, 0xd9, 0xbe, 0x45, 0x68, 0x72, 0x7c, + 0x4b, 0x7e, 0xa4, 0x1a, 0xc2, 0xb9, 0xb9, 0xf7, 0x27, 0xd5, 0xfb, 0x46, 0x92, 0xd0, 0xe8, 0x14, + 0x24, 0xe4, 0xd2, 0x7e, 0x0c, 0xb5, 0xd9, 0xbb, 0xcf, 0xb6, 0xf2, 0x19, 0x85, 0x51, 0x18, 0x3b, + 0x79, 0x14, 0x9c, 0xf1, 0x8f, 0xa0, 0x42, 0x5e, 0x78, 0x36, 0x32, 0x9e, 0x66, 0x8c, 0x6b, 0x19, + 0x8b, 0x9c, 0xd3, 0x67, 0xb0, 0xcc, 0xde, 0x27, 0x36, 0x15, 0xe4, 0x74, 0xd9, 0xb8, 0x91, 0xb9, + 0x2c, 0xf2, 0x63, 0x0f, 0x07, 0x2a, 0x7e, 0x74, 0x59, 0xc9, 0x4f, 0x6e, 0xfc, 0xa3, 0x03, 0x9b, + 0xeb, 0xfa, 0x6f, 0x66, 0xfa, 0xd6, 0x8c, 0x50, 0x79, 0x60, 0xaa, 0xb6, 0x5e, 0x0f, 0x40, 0x4f, + 0x69, 0xe9, 0x6f, 0xe5, 0xb3, 0x61, 0xa4, 0xc6, 0x6e, 0x61, 0x52, 0x2e, 0x73, 0x02, 0x17, 0xd2, + 0xfa, 0xf0, 0xdb, 0xf9, 0x9c, 0x62, 0x5a, 0x63, 0xaf, 0x38, 0xed, 0xbc, 0xaa, 0x52, 0x8b, 0x7d, + 0xab, 0xc8, 0xb5, 0xa5, 0xc6, 0xdd, 0x2d, 0x4c, 0xca, 0x65, 0xfe, 0x02, 0xde, 0x4f, 0x6f, 0x9f, + 0xef, 0x16, 0xe1, 0xc5, 0xd5, 0xfd, 0xf6, 0x22, 0xd4, 0xf3, 0x76, 0x96, 0x3b, 0xcf, 0x6c, 0x3b, + 0x4b, 0xb4, 0x39, 0x76, 0x4e, 0x6d, 0x27, 0xa3, 0x0b, 0xc1, 0xba, 0xf1, 0xcd, 0xcc, 0x26, 0x4d, + 0x79, 0x21, 0xe4, 0x4e, 0x34, 0xca, 0x8e, 0x72, 0x17, 0x7a, 0xbd, 0x48, 0xef, 0x67, 0x14, 0xea, + 0x33, 0x45, 0x21, 0xf2, 0x7f, 0xd3, 0x55, 0x42, 0x24, 0x2a, 0xa5, 0x90, 0xd4, 0x7f, 0x8b, 0xeb, + 0xbf, 0xd1, 0xa0, 0xa1, 0xec, 0x0b, 0x3a, 0xca, 0xe0, 0x95, 0xbe, 0xc1, 0xb8, 0xb7, 0xe0, 0x06, + 0x0e, 0xc3, 0x85, 0xb3, 0xc9, 0xce, 0xe8, 0x83, 0x0c, 0x3d, 0x04, 0x3a, 0xa3, 0x5d, 0x8c, 0x4e, + 0xbc, 0x73, 0x29, 0xad, 0xc7, 0x2d, 0x65, 0x64, 0x4d, 0x92, 0x2a, 0xef, 0x9c, 0xba, 0xdf, 0xd0, + 0x9f, 0xc2, 0x5a, 0xa2, 0xd9, 0xb8, 0x91, 0x1f, 0x2d, 0x1e, 0x21, 0x64, 0x7c, 0x58, 0x88, 0x6c, + 0x3e, 0x50, 0x0b, 0x7d, 0xc4, 0xcd, 0x22, 0x17, 0x35, 0x92, 0xd5, 0x29, 0x48, 0x28, 0x46, 0x92, + 0xf4, 0x26, 0x21, 0xc3, 0x05, 0xe7, 0xa9, 0x95, 0x91, 0x24, 0xb3, 0x2f, 0x20, 0x8e, 0xab, 0xec, + 0x0a, 0x3a, 0x99, 0x47, 0x94, 0x82, 0xe1, 0xde, 0x82, 0x1b, 0xc4, 0xea, 0x62, 0xd6, 0x08, 0xa8, + 0xaa, 0x0b, 0x4e, 0xa1, 0xac, 0x2e, 0xe6, 0xea, 0xfc, 0x83, 0x9f, 0xfc, 0xe5, 0x75, 0x53, 0x7b, + 0xf9, 0xba, 0xa9, 0xfd, 0xf3, 0x75, 0x53, 0xfb, 0xfa, 0x4d, 0xf3, 0xbd, 0x97, 0x6f, 0x9a, 0xef, + 0xfd, 0xe3, 0x4d, 0xf3, 0xbd, 0xaf, 0x1e, 0x3a, 0x2e, 0x3e, 0x9e, 0x0c, 0xda, 0x96, 0x3f, 0xea, + 0x10, 0x6e, 0x1f, 0x7a, 0x08, 0x4f, 0xfd, 0xe0, 0xe7, 0x6c, 0x34, 0x44, 0xb6, 0x83, 0x82, 0xce, + 0xa9, 0xf0, 0x5b, 0x1d, 0xf2, 0x23, 0x22, 0xf2, 0x6b, 0x9d, 0xce, 0xc9, 0xee, 0x60, 0x99, 0xbc, + 0xcf, 0x7c, 0xf4, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb8, 0xd0, 0xd0, 0xc0, 0x94, 0x24, 0x00, + 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + // CreateClass creates a new credit class under the given credit type with an + // approved list of issuers and optional metadata. If the class fee parameter + // is set, the fee field must be populated with equal value. A greater fee can + // be provided, however, the creator will only be charged the amount specified + // in the fee parameter. The creator of the credit class becomes the admin of + // the credit class upon creation. + CreateClass(ctx context.Context, in *MsgCreateClass, opts ...grpc.CallOption) (*MsgCreateClassResponse, error) + // CreateProject creates a new project under the given credit class with a + // jurisdiction, optional metadata, and an optional reference ID. The creator + // of the project must be an approved credit class issuer for the given credit // class. The creator becomes the admin of the project upon creation. - CreateProject(context.Context, *MsgCreateProject) (*MsgCreateProjectResponse, error) + CreateProject(ctx context.Context, in *MsgCreateProject, opts ...grpc.CallOption) (*MsgCreateProjectResponse, error) + // CreateUnregisteredProject creates a new project without registering it + // under a credit class. This method is intended to be used by project proponents + // who are not yet ready to register their project under a credit class, but who + // want to create a project and receive a project ID. + CreateUnregisteredProject(ctx context.Context, in *MsgCreateUnregisteredProject, opts ...grpc.CallOption) (*MsgCreateUnregisteredProjectResponse, error) + // CreateOrUpdateApplicaton creates a new project credit class application, updates + // the metadata for an existing one when changes have been requested, or withdraws + // the application. When an application is withdrawn, its data will be deleted from + // state and the project may apply again to the same credit class in the future. + // + // Since Revision 3 + CreateOrUpdateApplication(ctx context.Context, in *MsgCreateOrUpdateApplication, opts ...grpc.CallOption) (*MsgCreateOrUpdateApplicationResponse, error) + // UpdateProjectEnrollment allows a credit class issuer to evaluate a project + // application - either approving, requesting changes to, or + // rejecting it, or to terminate an existing enrollment. + // Any issuer in the credit class may update the project credit + // class enrollment status using this method. If more sophisticated rules are + // required to coordinate between different issuers, the credit class admin + // should set up an on or off-chain governance process to coordinate this. + // Issuers may not admit projects into credit classes using this method + // without the project first creating an application. For an issuer to + // admit a project into a credit class without an + // application the CreateProject method should be used instead. + // + // If a project has not yet been accepted then the issuer may change the + // status to either changes requested, accepted or rejected. If the status + // is already accepted, the issuer may only change the status to terminated. + // Whenever a project is rejected or terminated, the project's enrollment + // the enrollment state will be deleted and the project may apply again + // to the same credit class in the future. + // + // Since Revision 3 + UpdateProjectEnrollment(ctx context.Context, in *MsgUpdateProjectEnrollment, opts ...grpc.CallOption) (*MsgUpdateProjectEnrollmentResponse, error) // CreateBatch creates a new batch of credits under the given project with a // start and end date representing the monitoring period, a list of credits to // be issued with each issuance specifying a recipient, the amount of tradable @@ -3503,57 +3711,57 @@ type MsgServer interface { // "open" option should only be set to true when bridging credits from another // chain or registry as a result of a bridge operation and is not intended for // native credit issuance. - CreateBatch(context.Context, *MsgCreateBatch) (*MsgCreateBatchResponse, error) + CreateBatch(ctx context.Context, in *MsgCreateBatch, opts ...grpc.CallOption) (*MsgCreateBatchResponse, error) // MintBatchCredits dynamically mints credits to an "open" credit batch. This // feature is only meant to be used when bridging credits from another chain // or registry and is not intended for native credit issuance. When bridging // credits from the same vintage (or monitoring period) as an existing credit // batch, the credits can be dynamically minted to the existing credit batch // if the credit batch is "open". - MintBatchCredits(context.Context, *MsgMintBatchCredits) (*MsgMintBatchCreditsResponse, error) + MintBatchCredits(ctx context.Context, in *MsgMintBatchCredits, opts ...grpc.CallOption) (*MsgMintBatchCreditsResponse, error) // MsgSealBatch seals an "open" credit batch. Once a credit batch is sealed // (i.e. once "open" is set to false), credits can no longer be dynamically // minted to the credit batch. A sealed credit batch cannot be unsealed and // only the credit batch issuer can seal a credit batch. - SealBatch(context.Context, *MsgSealBatch) (*MsgSealBatchResponse, error) + SealBatch(ctx context.Context, in *MsgSealBatch, opts ...grpc.CallOption) (*MsgSealBatchResponse, error) // Send sends a specified amount of tradable credits from the credit owner's // account to another account. Sent credits can either remain tradable or be // retired upon receipt. - Send(context.Context, *MsgSend) (*MsgSendResponse, error) + Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) // Retire retires a specified amount of tradable credits, removing the amount // from the credit owner's tradable balance and adding it to their retired // balance. Retiring credits is permanent and implies the credits are being // consumed as a offset. - Retire(context.Context, *MsgRetire) (*MsgRetireResponse, error) + Retire(ctx context.Context, in *MsgRetire, opts ...grpc.CallOption) (*MsgRetireResponse, error) // Cancel cancels a specified amount of tradable credits, removing the amount // from the credit owner's tradable balance and removing the amount from the // credit batch's tradable supply. Cancelling credits is permanent and implies // the credits have been moved to another chain or registry. - Cancel(context.Context, *MsgCancel) (*MsgCancelResponse, error) + Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.CallOption) (*MsgCancelResponse, error) // UpdateClassAdmin updates the credit class admin. Only the admin of the // credit class can update the credit class. - UpdateClassAdmin(context.Context, *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error) + UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmin, opts ...grpc.CallOption) (*MsgUpdateClassAdminResponse, error) // UpdateClassIssuers updates the credit class issuer list. Only the admin of // the credit class can update the credit class. - UpdateClassIssuers(context.Context, *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error) + UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIssuers, opts ...grpc.CallOption) (*MsgUpdateClassIssuersResponse, error) // UpdateClassMetadata updates the credit class metadata. Only the admin of // the credit class can update the credit class. - UpdateClassMetadata(context.Context, *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error) + UpdateClassMetadata(ctx context.Context, in *MsgUpdateClassMetadata, opts ...grpc.CallOption) (*MsgUpdateClassMetadataResponse, error) // UpdateProjectAdmin updates the project admin address. Only the admin of the // project can update the project. - UpdateProjectAdmin(context.Context, *MsgUpdateProjectAdmin) (*MsgUpdateProjectAdminResponse, error) + UpdateProjectAdmin(ctx context.Context, in *MsgUpdateProjectAdmin, opts ...grpc.CallOption) (*MsgUpdateProjectAdminResponse, error) // UpdateProjectMetadata updates the project metadata. Only the admin of the // project can update the project. - UpdateProjectMetadata(context.Context, *MsgUpdateProjectMetadata) (*MsgUpdateProjectMetadataResponse, error) + UpdateProjectMetadata(ctx context.Context, in *MsgUpdateProjectMetadata, opts ...grpc.CallOption) (*MsgUpdateProjectMetadataResponse, error) // UpdateBatchMetadata updates the batch metadata. Only an "open" batch can be // updated and only the issuer of the batch can update the batch. // // Since Revision 2 - UpdateBatchMetadata(context.Context, *MsgUpdateBatchMetadata) (*MsgUpdateBatchMetadataResponse, error) + UpdateBatchMetadata(ctx context.Context, in *MsgUpdateBatchMetadata, opts ...grpc.CallOption) (*MsgUpdateBatchMetadataResponse, error) // Bridge processes credits being sent back to the source chain. When credits // are sent back to the source chain, the credits are cancelled and an event // is emitted to be handled by an external bridge service. - Bridge(context.Context, *MsgBridge) (*MsgBridgeResponse, error) + Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.CallOption) (*MsgBridgeResponse, error) // BridgeReceive processes credits being sent from another chain. When the // credits are sent from the same vintage as an existing credit batch within // the scope of the provided credit class, the credits will be minted to the @@ -3561,1482 +3769,1210 @@ type MsgServer interface { // batch. The new credit batch will be created under an existing project if a // project with a matching reference id already exists within the scope of the // credit class, otherwise a new project will be created. - BridgeReceive(context.Context, *MsgBridgeReceive) (*MsgBridgeReceiveResponse, error) + BridgeReceive(ctx context.Context, in *MsgBridgeReceive, opts ...grpc.CallOption) (*MsgBridgeReceiveResponse, error) // AddCreditType is a governance method that allows the addition of new // credit types to the network. // // Since Revision 2 - AddCreditType(context.Context, *MsgAddCreditType) (*MsgAddCreditTypeResponse, error) + AddCreditType(ctx context.Context, in *MsgAddCreditType, opts ...grpc.CallOption) (*MsgAddCreditTypeResponse, error) // SetClassCreatorAllowlist is a governance method that updates the class // creator allowlist enabled setting. When enabled, only addresses listed in // the allowlist can create credit classes. When disabled, any address can // create credit classes. // // Since Revision 2 - SetClassCreatorAllowlist(context.Context, *MsgSetClassCreatorAllowlist) (*MsgSetClassCreatorAllowlistResponse, error) + SetClassCreatorAllowlist(ctx context.Context, in *MsgSetClassCreatorAllowlist, opts ...grpc.CallOption) (*MsgSetClassCreatorAllowlistResponse, error) // AddClassCreator is a governance method that allows the addition of a new // address to the class creation allowlist. // // Since Revision 2 - AddClassCreator(context.Context, *MsgAddClassCreator) (*MsgAddClassCreatorResponse, error) + AddClassCreator(ctx context.Context, in *MsgAddClassCreator, opts ...grpc.CallOption) (*MsgAddClassCreatorResponse, error) // RemoveClassCreator is a governance method that removes an // address from the class creation allowlist. // // Since Revision 2 - RemoveClassCreator(context.Context, *MsgRemoveClassCreator) (*MsgRemoveClassCreatorResponse, error) + RemoveClassCreator(ctx context.Context, in *MsgRemoveClassCreator, opts ...grpc.CallOption) (*MsgRemoveClassCreatorResponse, error) // UpdateClassFee is a governance method that allows for updating the credit // class creation fee. If no fee is specified in the request, the credit // class creation fee will be removed and no fee will be required to create // a credit class. // // Since Revision 2 - UpdateClassFee(context.Context, *MsgUpdateClassFee) (*MsgUpdateClassFeeResponse, error) + UpdateClassFee(ctx context.Context, in *MsgUpdateClassFee, opts ...grpc.CallOption) (*MsgUpdateClassFeeResponse, error) + // UpdateProjectFee is a governance method that allows for updating the + // project creation fee. If no fee is specified in the request, the project + // creation fee will be removed and no fee will be required to create a + // project. + // + // Since Revision 3 + UpdateProjectFee(ctx context.Context, in *MsgUpdateProjectFee, opts ...grpc.CallOption) (*MsgUpdateProjectFeeResponse, error) // AddAllowedBridgeChain is a governance method that allows for the // addition of a chain to bridge ecocredits to. // // Since Revision 2 - AddAllowedBridgeChain(context.Context, *MsgAddAllowedBridgeChain) (*MsgAddAllowedBridgeChainResponse, error) + AddAllowedBridgeChain(ctx context.Context, in *MsgAddAllowedBridgeChain, opts ...grpc.CallOption) (*MsgAddAllowedBridgeChainResponse, error) // RemoveAllowedBridgeChain is a governance method that allows for the // removal of a chain to bridge ecocredits to. // // Since Revision 2 - RemoveAllowedBridgeChain(context.Context, *MsgRemoveAllowedBridgeChain) (*MsgRemoveAllowedBridgeChainResponse, error) + RemoveAllowedBridgeChain(ctx context.Context, in *MsgRemoveAllowedBridgeChain, opts ...grpc.CallOption) (*MsgRemoveAllowedBridgeChainResponse, error) // BurnRegen burns REGEN tokens to account for platform fees when creating or transferring credits. // // Since Revision 3 - BurnRegen(context.Context, *MsgBurnRegen) (*MsgBurnRegenResponse, error) + BurnRegen(ctx context.Context, in *MsgBurnRegen, opts ...grpc.CallOption) (*MsgBurnRegenResponse, error) } -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { +type msgClient struct { + cc grpc1.ClientConn } -func (*UnimplementedMsgServer) CreateClass(ctx context.Context, req *MsgCreateClass) (*MsgCreateClassResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateClass not implemented") -} -func (*UnimplementedMsgServer) CreateProject(ctx context.Context, req *MsgCreateProject) (*MsgCreateProjectResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateProject not implemented") -} -func (*UnimplementedMsgServer) CreateBatch(ctx context.Context, req *MsgCreateBatch) (*MsgCreateBatchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateBatch not implemented") -} -func (*UnimplementedMsgServer) MintBatchCredits(ctx context.Context, req *MsgMintBatchCredits) (*MsgMintBatchCreditsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MintBatchCredits not implemented") -} -func (*UnimplementedMsgServer) SealBatch(ctx context.Context, req *MsgSealBatch) (*MsgSealBatchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SealBatch not implemented") -} -func (*UnimplementedMsgServer) Send(ctx context.Context, req *MsgSend) (*MsgSendResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Send not implemented") -} -func (*UnimplementedMsgServer) Retire(ctx context.Context, req *MsgRetire) (*MsgRetireResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Retire not implemented") -} -func (*UnimplementedMsgServer) Cancel(ctx context.Context, req *MsgCancel) (*MsgCancelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Cancel not implemented") -} -func (*UnimplementedMsgServer) UpdateClassAdmin(ctx context.Context, req *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateClassAdmin not implemented") -} -func (*UnimplementedMsgServer) UpdateClassIssuers(ctx context.Context, req *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateClassIssuers not implemented") -} -func (*UnimplementedMsgServer) UpdateClassMetadata(ctx context.Context, req *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateClassMetadata not implemented") -} -func (*UnimplementedMsgServer) UpdateProjectAdmin(ctx context.Context, req *MsgUpdateProjectAdmin) (*MsgUpdateProjectAdminResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectAdmin not implemented") -} -func (*UnimplementedMsgServer) UpdateProjectMetadata(ctx context.Context, req *MsgUpdateProjectMetadata) (*MsgUpdateProjectMetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectMetadata not implemented") -} -func (*UnimplementedMsgServer) UpdateBatchMetadata(ctx context.Context, req *MsgUpdateBatchMetadata) (*MsgUpdateBatchMetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateBatchMetadata not implemented") -} -func (*UnimplementedMsgServer) Bridge(ctx context.Context, req *MsgBridge) (*MsgBridgeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Bridge not implemented") -} -func (*UnimplementedMsgServer) BridgeReceive(ctx context.Context, req *MsgBridgeReceive) (*MsgBridgeReceiveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BridgeReceive not implemented") -} -func (*UnimplementedMsgServer) AddCreditType(ctx context.Context, req *MsgAddCreditType) (*MsgAddCreditTypeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddCreditType not implemented") -} -func (*UnimplementedMsgServer) SetClassCreatorAllowlist(ctx context.Context, req *MsgSetClassCreatorAllowlist) (*MsgSetClassCreatorAllowlistResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetClassCreatorAllowlist not implemented") -} -func (*UnimplementedMsgServer) AddClassCreator(ctx context.Context, req *MsgAddClassCreator) (*MsgAddClassCreatorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddClassCreator not implemented") -} -func (*UnimplementedMsgServer) RemoveClassCreator(ctx context.Context, req *MsgRemoveClassCreator) (*MsgRemoveClassCreatorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveClassCreator not implemented") -} -func (*UnimplementedMsgServer) UpdateClassFee(ctx context.Context, req *MsgUpdateClassFee) (*MsgUpdateClassFeeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateClassFee not implemented") -} -func (*UnimplementedMsgServer) AddAllowedBridgeChain(ctx context.Context, req *MsgAddAllowedBridgeChain) (*MsgAddAllowedBridgeChainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddAllowedBridgeChain not implemented") -} -func (*UnimplementedMsgServer) RemoveAllowedBridgeChain(ctx context.Context, req *MsgRemoveAllowedBridgeChain) (*MsgRemoveAllowedBridgeChainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveAllowedBridgeChain not implemented") -} -func (*UnimplementedMsgServer) BurnRegen(ctx context.Context, req *MsgBurnRegen) (*MsgBurnRegenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BurnRegen not implemented") -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} } -func _Msg_CreateClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateClass) - if err := dec(in); err != nil { +func (c *msgClient) CreateClass(ctx context.Context, in *MsgCreateClass, opts ...grpc.CallOption) (*MsgCreateClassResponse, error) { + out := new(MsgCreateClassResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateClass", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).CreateClass(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/CreateClass", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateClass(ctx, req.(*MsgCreateClass)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_CreateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateProject) - if err := dec(in); err != nil { +func (c *msgClient) CreateProject(ctx context.Context, in *MsgCreateProject, opts ...grpc.CallOption) (*MsgCreateProjectResponse, error) { + out := new(MsgCreateProjectResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateProject", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).CreateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/CreateProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateProject(ctx, req.(*MsgCreateProject)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_CreateBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateBatch) - if err := dec(in); err != nil { +func (c *msgClient) CreateUnregisteredProject(ctx context.Context, in *MsgCreateUnregisteredProject, opts ...grpc.CallOption) (*MsgCreateUnregisteredProjectResponse, error) { + out := new(MsgCreateUnregisteredProjectResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateUnregisteredProject", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).CreateBatch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/CreateBatch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateBatch(ctx, req.(*MsgCreateBatch)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_MintBatchCredits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgMintBatchCredits) - if err := dec(in); err != nil { +func (c *msgClient) CreateOrUpdateApplication(ctx context.Context, in *MsgCreateOrUpdateApplication, opts ...grpc.CallOption) (*MsgCreateOrUpdateApplicationResponse, error) { + out := new(MsgCreateOrUpdateApplicationResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateOrUpdateApplication", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).MintBatchCredits(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/MintBatchCredits", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).MintBatchCredits(ctx, req.(*MsgMintBatchCredits)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_SealBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSealBatch) - if err := dec(in); err != nil { +func (c *msgClient) UpdateProjectEnrollment(ctx context.Context, in *MsgUpdateProjectEnrollment, opts ...grpc.CallOption) (*MsgUpdateProjectEnrollmentResponse, error) { + out := new(MsgUpdateProjectEnrollmentResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateProjectEnrollment", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).SealBatch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/SealBatch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SealBatch(ctx, req.(*MsgSealBatch)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSend) - if err := dec(in); err != nil { +func (c *msgClient) CreateBatch(ctx context.Context, in *MsgCreateBatch, opts ...grpc.CallOption) (*MsgCreateBatchResponse, error) { + out := new(MsgCreateBatchResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateBatch", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).Send(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/Send", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Send(ctx, req.(*MsgSend)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_Retire_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRetire) - if err := dec(in); err != nil { +func (c *msgClient) MintBatchCredits(ctx context.Context, in *MsgMintBatchCredits, opts ...grpc.CallOption) (*MsgMintBatchCreditsResponse, error) { + out := new(MsgMintBatchCreditsResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/MintBatchCredits", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).Retire(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/Retire", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Retire(ctx, req.(*MsgRetire)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_Cancel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCancel) - if err := dec(in); err != nil { +func (c *msgClient) SealBatch(ctx context.Context, in *MsgSealBatch, opts ...grpc.CallOption) (*MsgSealBatchResponse, error) { + out := new(MsgSealBatchResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/SealBatch", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).Cancel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/Cancel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Cancel(ctx, req.(*MsgCancel)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_UpdateClassAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateClassAdmin) - if err := dec(in); err != nil { +func (c *msgClient) Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) { + out := new(MsgSendResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Send", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).UpdateClassAdmin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassAdmin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateClassAdmin(ctx, req.(*MsgUpdateClassAdmin)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_UpdateClassIssuers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateClassIssuers) - if err := dec(in); err != nil { +func (c *msgClient) Retire(ctx context.Context, in *MsgRetire, opts ...grpc.CallOption) (*MsgRetireResponse, error) { + out := new(MsgRetireResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Retire", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).UpdateClassIssuers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassIssuers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateClassIssuers(ctx, req.(*MsgUpdateClassIssuers)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_UpdateClassMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateClassMetadata) - if err := dec(in); err != nil { +func (c *msgClient) Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.CallOption) (*MsgCancelResponse, error) { + out := new(MsgCancelResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Cancel", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).UpdateClassMetadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassMetadata", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateClassMetadata(ctx, req.(*MsgUpdateClassMetadata)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_UpdateProjectAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateProjectAdmin) - if err := dec(in); err != nil { +func (c *msgClient) UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmin, opts ...grpc.CallOption) (*MsgUpdateClassAdminResponse, error) { + out := new(MsgUpdateClassAdminResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassAdmin", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).UpdateProjectAdmin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateProjectAdmin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateProjectAdmin(ctx, req.(*MsgUpdateProjectAdmin)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_UpdateProjectMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateProjectMetadata) - if err := dec(in); err != nil { +func (c *msgClient) UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIssuers, opts ...grpc.CallOption) (*MsgUpdateClassIssuersResponse, error) { + out := new(MsgUpdateClassIssuersResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassIssuers", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).UpdateProjectMetadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateProjectMetadata", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateProjectMetadata(ctx, req.(*MsgUpdateProjectMetadata)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_UpdateBatchMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateBatchMetadata) - if err := dec(in); err != nil { +func (c *msgClient) UpdateClassMetadata(ctx context.Context, in *MsgUpdateClassMetadata, opts ...grpc.CallOption) (*MsgUpdateClassMetadataResponse, error) { + out := new(MsgUpdateClassMetadataResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassMetadata", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).UpdateBatchMetadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateBatchMetadata", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateBatchMetadata(ctx, req.(*MsgUpdateBatchMetadata)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_Bridge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBridge) - if err := dec(in); err != nil { +func (c *msgClient) UpdateProjectAdmin(ctx context.Context, in *MsgUpdateProjectAdmin, opts ...grpc.CallOption) (*MsgUpdateProjectAdminResponse, error) { + out := new(MsgUpdateProjectAdminResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateProjectAdmin", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).Bridge(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/Bridge", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Bridge(ctx, req.(*MsgBridge)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_BridgeReceive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBridgeReceive) - if err := dec(in); err != nil { +func (c *msgClient) UpdateProjectMetadata(ctx context.Context, in *MsgUpdateProjectMetadata, opts ...grpc.CallOption) (*MsgUpdateProjectMetadataResponse, error) { + out := new(MsgUpdateProjectMetadataResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateProjectMetadata", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).BridgeReceive(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/BridgeReceive", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).BridgeReceive(ctx, req.(*MsgBridgeReceive)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_AddCreditType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAddCreditType) - if err := dec(in); err != nil { +func (c *msgClient) UpdateBatchMetadata(ctx context.Context, in *MsgUpdateBatchMetadata, opts ...grpc.CallOption) (*MsgUpdateBatchMetadataResponse, error) { + out := new(MsgUpdateBatchMetadataResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateBatchMetadata", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).AddCreditType(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/AddCreditType", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AddCreditType(ctx, req.(*MsgAddCreditType)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_SetClassCreatorAllowlist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetClassCreatorAllowlist) - if err := dec(in); err != nil { +func (c *msgClient) Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.CallOption) (*MsgBridgeResponse, error) { + out := new(MsgBridgeResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Bridge", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).SetClassCreatorAllowlist(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/SetClassCreatorAllowlist", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetClassCreatorAllowlist(ctx, req.(*MsgSetClassCreatorAllowlist)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_AddClassCreator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAddClassCreator) - if err := dec(in); err != nil { +func (c *msgClient) BridgeReceive(ctx context.Context, in *MsgBridgeReceive, opts ...grpc.CallOption) (*MsgBridgeReceiveResponse, error) { + out := new(MsgBridgeReceiveResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/BridgeReceive", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).AddClassCreator(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/AddClassCreator", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AddClassCreator(ctx, req.(*MsgAddClassCreator)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_RemoveClassCreator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRemoveClassCreator) - if err := dec(in); err != nil { +func (c *msgClient) AddCreditType(ctx context.Context, in *MsgAddCreditType, opts ...grpc.CallOption) (*MsgAddCreditTypeResponse, error) { + out := new(MsgAddCreditTypeResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/AddCreditType", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).RemoveClassCreator(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/RemoveClassCreator", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RemoveClassCreator(ctx, req.(*MsgRemoveClassCreator)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_UpdateClassFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateClassFee) - if err := dec(in); err != nil { +func (c *msgClient) SetClassCreatorAllowlist(ctx context.Context, in *MsgSetClassCreatorAllowlist, opts ...grpc.CallOption) (*MsgSetClassCreatorAllowlistResponse, error) { + out := new(MsgSetClassCreatorAllowlistResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/SetClassCreatorAllowlist", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).UpdateClassFee(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassFee", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateClassFee(ctx, req.(*MsgUpdateClassFee)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_AddAllowedBridgeChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAddAllowedBridgeChain) - if err := dec(in); err != nil { +func (c *msgClient) AddClassCreator(ctx context.Context, in *MsgAddClassCreator, opts ...grpc.CallOption) (*MsgAddClassCreatorResponse, error) { + out := new(MsgAddClassCreatorResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/AddClassCreator", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).AddAllowedBridgeChain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/AddAllowedBridgeChain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AddAllowedBridgeChain(ctx, req.(*MsgAddAllowedBridgeChain)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_RemoveAllowedBridgeChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRemoveAllowedBridgeChain) - if err := dec(in); err != nil { +func (c *msgClient) RemoveClassCreator(ctx context.Context, in *MsgRemoveClassCreator, opts ...grpc.CallOption) (*MsgRemoveClassCreatorResponse, error) { + out := new(MsgRemoveClassCreatorResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/RemoveClassCreator", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).RemoveAllowedBridgeChain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/RemoveAllowedBridgeChain", + return out, nil +} + +func (c *msgClient) UpdateClassFee(ctx context.Context, in *MsgUpdateClassFee, opts ...grpc.CallOption) (*MsgUpdateClassFeeResponse, error) { + out := new(MsgUpdateClassFeeResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassFee", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RemoveAllowedBridgeChain(ctx, req.(*MsgRemoveAllowedBridgeChain)) + return out, nil +} + +func (c *msgClient) UpdateProjectFee(ctx context.Context, in *MsgUpdateProjectFee, opts ...grpc.CallOption) (*MsgUpdateProjectFeeResponse, error) { + out := new(MsgUpdateProjectFeeResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateProjectFee", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _Msg_BurnRegen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBurnRegen) - if err := dec(in); err != nil { +func (c *msgClient) AddAllowedBridgeChain(ctx context.Context, in *MsgAddAllowedBridgeChain, opts ...grpc.CallOption) (*MsgAddAllowedBridgeChainResponse, error) { + out := new(MsgAddAllowedBridgeChainResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/AddAllowedBridgeChain", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).BurnRegen(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/BurnRegen", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).BurnRegen(ctx, req.(*MsgBurnRegen)) - } - return interceptor(ctx, in, info, handler) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "regen.ecocredit.v1.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateClass", - Handler: _Msg_CreateClass_Handler, - }, - { - MethodName: "CreateProject", - Handler: _Msg_CreateProject_Handler, - }, - { - MethodName: "CreateBatch", - Handler: _Msg_CreateBatch_Handler, - }, - { - MethodName: "MintBatchCredits", - Handler: _Msg_MintBatchCredits_Handler, - }, - { - MethodName: "SealBatch", - Handler: _Msg_SealBatch_Handler, - }, - { - MethodName: "Send", - Handler: _Msg_Send_Handler, - }, - { - MethodName: "Retire", - Handler: _Msg_Retire_Handler, - }, - { - MethodName: "Cancel", - Handler: _Msg_Cancel_Handler, - }, - { - MethodName: "UpdateClassAdmin", - Handler: _Msg_UpdateClassAdmin_Handler, - }, - { - MethodName: "UpdateClassIssuers", - Handler: _Msg_UpdateClassIssuers_Handler, - }, - { - MethodName: "UpdateClassMetadata", - Handler: _Msg_UpdateClassMetadata_Handler, - }, - { - MethodName: "UpdateProjectAdmin", - Handler: _Msg_UpdateProjectAdmin_Handler, - }, - { - MethodName: "UpdateProjectMetadata", - Handler: _Msg_UpdateProjectMetadata_Handler, - }, - { - MethodName: "UpdateBatchMetadata", - Handler: _Msg_UpdateBatchMetadata_Handler, - }, - { - MethodName: "Bridge", - Handler: _Msg_Bridge_Handler, - }, - { - MethodName: "BridgeReceive", - Handler: _Msg_BridgeReceive_Handler, - }, - { - MethodName: "AddCreditType", - Handler: _Msg_AddCreditType_Handler, - }, - { - MethodName: "SetClassCreatorAllowlist", - Handler: _Msg_SetClassCreatorAllowlist_Handler, - }, - { - MethodName: "AddClassCreator", - Handler: _Msg_AddClassCreator_Handler, - }, - { - MethodName: "RemoveClassCreator", - Handler: _Msg_RemoveClassCreator_Handler, - }, - { - MethodName: "UpdateClassFee", - Handler: _Msg_UpdateClassFee_Handler, - }, - { - MethodName: "AddAllowedBridgeChain", - Handler: _Msg_AddAllowedBridgeChain_Handler, - }, - { - MethodName: "RemoveAllowedBridgeChain", - Handler: _Msg_RemoveAllowedBridgeChain_Handler, - }, - { - MethodName: "BurnRegen", - Handler: _Msg_BurnRegen_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "regen/ecocredit/v1/tx.proto", -} - -func (m *MsgAddCreditType) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgAddCreditType) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAddCreditType) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CreditType != nil { - { - size, err := m.CreditType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgAddCreditTypeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgAddCreditTypeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAddCreditTypeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil + return out, nil } -func (m *MsgCreateClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) RemoveAllowedBridgeChain(ctx context.Context, in *MsgRemoveAllowedBridgeChain, opts ...grpc.CallOption) (*MsgRemoveAllowedBridgeChainResponse, error) { + out := new(MsgRemoveAllowedBridgeChainResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/RemoveAllowedBridgeChain", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *MsgCreateClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Fee != nil { - { - size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.CreditTypeAbbrev) > 0 { - i -= len(m.CreditTypeAbbrev) - copy(dAtA[i:], m.CreditTypeAbbrev) - i = encodeVarintTx(dAtA, i, uint64(len(m.CreditTypeAbbrev))) - i-- - dAtA[i] = 0x22 - } - if len(m.Metadata) > 0 { - i -= len(m.Metadata) - copy(dAtA[i:], m.Metadata) - i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(m.Issuers) > 0 { - for iNdEx := len(m.Issuers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Issuers[iNdEx]) - copy(dAtA[i:], m.Issuers[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.Issuers[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Admin) > 0 { - i -= len(m.Admin) - copy(dAtA[i:], m.Admin) - i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return out, nil } -func (m *MsgCreateClassResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) BurnRegen(ctx context.Context, in *MsgBurnRegen, opts ...grpc.CallOption) (*MsgBurnRegenResponse, error) { + out := new(MsgBurnRegenResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/BurnRegen", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *MsgCreateClassResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// MsgServer is the server API for Msg service. +type MsgServer interface { + // CreateClass creates a new credit class under the given credit type with an + // approved list of issuers and optional metadata. If the class fee parameter + // is set, the fee field must be populated with equal value. A greater fee can + // be provided, however, the creator will only be charged the amount specified + // in the fee parameter. The creator of the credit class becomes the admin of + // the credit class upon creation. + CreateClass(context.Context, *MsgCreateClass) (*MsgCreateClassResponse, error) + // CreateProject creates a new project under the given credit class with a + // jurisdiction, optional metadata, and an optional reference ID. The creator + // of the project must be an approved credit class issuer for the given credit + // class. The creator becomes the admin of the project upon creation. + CreateProject(context.Context, *MsgCreateProject) (*MsgCreateProjectResponse, error) + // CreateUnregisteredProject creates a new project without registering it + // under a credit class. This method is intended to be used by project proponents + // who are not yet ready to register their project under a credit class, but who + // want to create a project and receive a project ID. + CreateUnregisteredProject(context.Context, *MsgCreateUnregisteredProject) (*MsgCreateUnregisteredProjectResponse, error) + // CreateOrUpdateApplicaton creates a new project credit class application, updates + // the metadata for an existing one when changes have been requested, or withdraws + // the application. When an application is withdrawn, its data will be deleted from + // state and the project may apply again to the same credit class in the future. + // + // Since Revision 3 + CreateOrUpdateApplication(context.Context, *MsgCreateOrUpdateApplication) (*MsgCreateOrUpdateApplicationResponse, error) + // UpdateProjectEnrollment allows a credit class issuer to evaluate a project + // application - either approving, requesting changes to, or + // rejecting it, or to terminate an existing enrollment. + // Any issuer in the credit class may update the project credit + // class enrollment status using this method. If more sophisticated rules are + // required to coordinate between different issuers, the credit class admin + // should set up an on or off-chain governance process to coordinate this. + // Issuers may not admit projects into credit classes using this method + // without the project first creating an application. For an issuer to + // admit a project into a credit class without an + // application the CreateProject method should be used instead. + // + // If a project has not yet been accepted then the issuer may change the + // status to either changes requested, accepted or rejected. If the status + // is already accepted, the issuer may only change the status to terminated. + // Whenever a project is rejected or terminated, the project's enrollment + // the enrollment state will be deleted and the project may apply again + // to the same credit class in the future. + // + // Since Revision 3 + UpdateProjectEnrollment(context.Context, *MsgUpdateProjectEnrollment) (*MsgUpdateProjectEnrollmentResponse, error) + // CreateBatch creates a new batch of credits under the given project with a + // start and end date representing the monitoring period, a list of credits to + // be issued with each issuance specifying a recipient, the amount of tradable + // and retired credits, and the retirement jurisdiction (if credits are to be + // retired upon receipt), and optional metadata. The credit batch creator must + // be listed as an approved issuer within the credit class of the project that + // the credits are being issued under. + // + // The default behavior is for a new credit batch to be "sealed" as opposed to + // being "open". When a credit batch is "open", new credits can be dynamically + // minted to the credit batch following the creation of the credit batch. This + // "open" option should only be set to true when bridging credits from another + // chain or registry as a result of a bridge operation and is not intended for + // native credit issuance. + CreateBatch(context.Context, *MsgCreateBatch) (*MsgCreateBatchResponse, error) + // MintBatchCredits dynamically mints credits to an "open" credit batch. This + // feature is only meant to be used when bridging credits from another chain + // or registry and is not intended for native credit issuance. When bridging + // credits from the same vintage (or monitoring period) as an existing credit + // batch, the credits can be dynamically minted to the existing credit batch + // if the credit batch is "open". + MintBatchCredits(context.Context, *MsgMintBatchCredits) (*MsgMintBatchCreditsResponse, error) + // MsgSealBatch seals an "open" credit batch. Once a credit batch is sealed + // (i.e. once "open" is set to false), credits can no longer be dynamically + // minted to the credit batch. A sealed credit batch cannot be unsealed and + // only the credit batch issuer can seal a credit batch. + SealBatch(context.Context, *MsgSealBatch) (*MsgSealBatchResponse, error) + // Send sends a specified amount of tradable credits from the credit owner's + // account to another account. Sent credits can either remain tradable or be + // retired upon receipt. + Send(context.Context, *MsgSend) (*MsgSendResponse, error) + // Retire retires a specified amount of tradable credits, removing the amount + // from the credit owner's tradable balance and adding it to their retired + // balance. Retiring credits is permanent and implies the credits are being + // consumed as a offset. + Retire(context.Context, *MsgRetire) (*MsgRetireResponse, error) + // Cancel cancels a specified amount of tradable credits, removing the amount + // from the credit owner's tradable balance and removing the amount from the + // credit batch's tradable supply. Cancelling credits is permanent and implies + // the credits have been moved to another chain or registry. + Cancel(context.Context, *MsgCancel) (*MsgCancelResponse, error) + // UpdateClassAdmin updates the credit class admin. Only the admin of the + // credit class can update the credit class. + UpdateClassAdmin(context.Context, *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error) + // UpdateClassIssuers updates the credit class issuer list. Only the admin of + // the credit class can update the credit class. + UpdateClassIssuers(context.Context, *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error) + // UpdateClassMetadata updates the credit class metadata. Only the admin of + // the credit class can update the credit class. + UpdateClassMetadata(context.Context, *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error) + // UpdateProjectAdmin updates the project admin address. Only the admin of the + // project can update the project. + UpdateProjectAdmin(context.Context, *MsgUpdateProjectAdmin) (*MsgUpdateProjectAdminResponse, error) + // UpdateProjectMetadata updates the project metadata. Only the admin of the + // project can update the project. + UpdateProjectMetadata(context.Context, *MsgUpdateProjectMetadata) (*MsgUpdateProjectMetadataResponse, error) + // UpdateBatchMetadata updates the batch metadata. Only an "open" batch can be + // updated and only the issuer of the batch can update the batch. + // + // Since Revision 2 + UpdateBatchMetadata(context.Context, *MsgUpdateBatchMetadata) (*MsgUpdateBatchMetadataResponse, error) + // Bridge processes credits being sent back to the source chain. When credits + // are sent back to the source chain, the credits are cancelled and an event + // is emitted to be handled by an external bridge service. + Bridge(context.Context, *MsgBridge) (*MsgBridgeResponse, error) + // BridgeReceive processes credits being sent from another chain. When the + // credits are sent from the same vintage as an existing credit batch within + // the scope of the provided credit class, the credits will be minted to the + // existing credit batch, otherwise the credits will be issued in a new credit + // batch. The new credit batch will be created under an existing project if a + // project with a matching reference id already exists within the scope of the + // credit class, otherwise a new project will be created. + BridgeReceive(context.Context, *MsgBridgeReceive) (*MsgBridgeReceiveResponse, error) + // AddCreditType is a governance method that allows the addition of new + // credit types to the network. + // + // Since Revision 2 + AddCreditType(context.Context, *MsgAddCreditType) (*MsgAddCreditTypeResponse, error) + // SetClassCreatorAllowlist is a governance method that updates the class + // creator allowlist enabled setting. When enabled, only addresses listed in + // the allowlist can create credit classes. When disabled, any address can + // create credit classes. + // + // Since Revision 2 + SetClassCreatorAllowlist(context.Context, *MsgSetClassCreatorAllowlist) (*MsgSetClassCreatorAllowlistResponse, error) + // AddClassCreator is a governance method that allows the addition of a new + // address to the class creation allowlist. + // + // Since Revision 2 + AddClassCreator(context.Context, *MsgAddClassCreator) (*MsgAddClassCreatorResponse, error) + // RemoveClassCreator is a governance method that removes an + // address from the class creation allowlist. + // + // Since Revision 2 + RemoveClassCreator(context.Context, *MsgRemoveClassCreator) (*MsgRemoveClassCreatorResponse, error) + // UpdateClassFee is a governance method that allows for updating the credit + // class creation fee. If no fee is specified in the request, the credit + // class creation fee will be removed and no fee will be required to create + // a credit class. + // + // Since Revision 2 + UpdateClassFee(context.Context, *MsgUpdateClassFee) (*MsgUpdateClassFeeResponse, error) + // UpdateProjectFee is a governance method that allows for updating the + // project creation fee. If no fee is specified in the request, the project + // creation fee will be removed and no fee will be required to create a + // project. + // + // Since Revision 3 + UpdateProjectFee(context.Context, *MsgUpdateProjectFee) (*MsgUpdateProjectFeeResponse, error) + // AddAllowedBridgeChain is a governance method that allows for the + // addition of a chain to bridge ecocredits to. + // + // Since Revision 2 + AddAllowedBridgeChain(context.Context, *MsgAddAllowedBridgeChain) (*MsgAddAllowedBridgeChainResponse, error) + // RemoveAllowedBridgeChain is a governance method that allows for the + // removal of a chain to bridge ecocredits to. + // + // Since Revision 2 + RemoveAllowedBridgeChain(context.Context, *MsgRemoveAllowedBridgeChain) (*MsgRemoveAllowedBridgeChainResponse, error) + // BurnRegen burns REGEN tokens to account for platform fees when creating or transferring credits. + // + // Since Revision 3 + BurnRegen(context.Context, *MsgBurnRegen) (*MsgBurnRegenResponse, error) } -func (m *MsgCreateClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClassId) > 0 { - i -= len(m.ClassId) - copy(dAtA[i:], m.ClassId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { } -func (m *MsgCreateProject) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedMsgServer) CreateClass(ctx context.Context, req *MsgCreateClass) (*MsgCreateClassResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateClass not implemented") } - -func (m *MsgCreateProject) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedMsgServer) CreateProject(ctx context.Context, req *MsgCreateProject) (*MsgCreateProjectResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateProject not implemented") } - -func (m *MsgCreateProject) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ReferenceId) > 0 { - i -= len(m.ReferenceId) - copy(dAtA[i:], m.ReferenceId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ReferenceId))) - i-- - dAtA[i] = 0x2a - } - if len(m.Jurisdiction) > 0 { - i -= len(m.Jurisdiction) - copy(dAtA[i:], m.Jurisdiction) - i = encodeVarintTx(dAtA, i, uint64(len(m.Jurisdiction))) - i-- - dAtA[i] = 0x22 - } - if len(m.Metadata) > 0 { - i -= len(m.Metadata) - copy(dAtA[i:], m.Metadata) - i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(m.ClassId) > 0 { - i -= len(m.ClassId) - copy(dAtA[i:], m.ClassId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Admin) > 0 { - i -= len(m.Admin) - copy(dAtA[i:], m.Admin) - i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (*UnimplementedMsgServer) CreateUnregisteredProject(ctx context.Context, req *MsgCreateUnregisteredProject) (*MsgCreateUnregisteredProjectResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUnregisteredProject not implemented") } - -func (m *MsgCreateProjectResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedMsgServer) CreateOrUpdateApplication(ctx context.Context, req *MsgCreateOrUpdateApplication) (*MsgCreateOrUpdateApplicationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateOrUpdateApplication not implemented") } - -func (m *MsgCreateProjectResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedMsgServer) UpdateProjectEnrollment(ctx context.Context, req *MsgUpdateProjectEnrollment) (*MsgUpdateProjectEnrollmentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectEnrollment not implemented") } - -func (m *MsgCreateProjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ProjectId) > 0 { - i -= len(m.ProjectId) - copy(dAtA[i:], m.ProjectId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (*UnimplementedMsgServer) CreateBatch(ctx context.Context, req *MsgCreateBatch) (*MsgCreateBatchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateBatch not implemented") } - -func (m *MsgCreateBatch) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedMsgServer) MintBatchCredits(ctx context.Context, req *MsgMintBatchCredits) (*MsgMintBatchCreditsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MintBatchCredits not implemented") } - -func (m *MsgCreateBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedMsgServer) SealBatch(ctx context.Context, req *MsgSealBatch) (*MsgSealBatchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SealBatch not implemented") +} +func (*UnimplementedMsgServer) Send(ctx context.Context, req *MsgSend) (*MsgSendResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Send not implemented") +} +func (*UnimplementedMsgServer) Retire(ctx context.Context, req *MsgRetire) (*MsgRetireResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Retire not implemented") +} +func (*UnimplementedMsgServer) Cancel(ctx context.Context, req *MsgCancel) (*MsgCancelResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Cancel not implemented") +} +func (*UnimplementedMsgServer) UpdateClassAdmin(ctx context.Context, req *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateClassAdmin not implemented") +} +func (*UnimplementedMsgServer) UpdateClassIssuers(ctx context.Context, req *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateClassIssuers not implemented") +} +func (*UnimplementedMsgServer) UpdateClassMetadata(ctx context.Context, req *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateClassMetadata not implemented") +} +func (*UnimplementedMsgServer) UpdateProjectAdmin(ctx context.Context, req *MsgUpdateProjectAdmin) (*MsgUpdateProjectAdminResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectAdmin not implemented") +} +func (*UnimplementedMsgServer) UpdateProjectMetadata(ctx context.Context, req *MsgUpdateProjectMetadata) (*MsgUpdateProjectMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectMetadata not implemented") +} +func (*UnimplementedMsgServer) UpdateBatchMetadata(ctx context.Context, req *MsgUpdateBatchMetadata) (*MsgUpdateBatchMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateBatchMetadata not implemented") +} +func (*UnimplementedMsgServer) Bridge(ctx context.Context, req *MsgBridge) (*MsgBridgeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Bridge not implemented") +} +func (*UnimplementedMsgServer) BridgeReceive(ctx context.Context, req *MsgBridgeReceive) (*MsgBridgeReceiveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BridgeReceive not implemented") +} +func (*UnimplementedMsgServer) AddCreditType(ctx context.Context, req *MsgAddCreditType) (*MsgAddCreditTypeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddCreditType not implemented") +} +func (*UnimplementedMsgServer) SetClassCreatorAllowlist(ctx context.Context, req *MsgSetClassCreatorAllowlist) (*MsgSetClassCreatorAllowlistResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetClassCreatorAllowlist not implemented") +} +func (*UnimplementedMsgServer) AddClassCreator(ctx context.Context, req *MsgAddClassCreator) (*MsgAddClassCreatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddClassCreator not implemented") +} +func (*UnimplementedMsgServer) RemoveClassCreator(ctx context.Context, req *MsgRemoveClassCreator) (*MsgRemoveClassCreatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveClassCreator not implemented") +} +func (*UnimplementedMsgServer) UpdateClassFee(ctx context.Context, req *MsgUpdateClassFee) (*MsgUpdateClassFeeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateClassFee not implemented") +} +func (*UnimplementedMsgServer) UpdateProjectFee(ctx context.Context, req *MsgUpdateProjectFee) (*MsgUpdateProjectFeeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectFee not implemented") +} +func (*UnimplementedMsgServer) AddAllowedBridgeChain(ctx context.Context, req *MsgAddAllowedBridgeChain) (*MsgAddAllowedBridgeChainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddAllowedBridgeChain not implemented") +} +func (*UnimplementedMsgServer) RemoveAllowedBridgeChain(ctx context.Context, req *MsgRemoveAllowedBridgeChain) (*MsgRemoveAllowedBridgeChainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveAllowedBridgeChain not implemented") +} +func (*UnimplementedMsgServer) BurnRegen(ctx context.Context, req *MsgBurnRegen) (*MsgBurnRegenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BurnRegen not implemented") } -func (m *MsgCreateBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.OriginTx != nil { - { - size, err := m.OriginTx.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_CreateClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateClass) + if err := dec(in); err != nil { + return nil, err } - if m.Open { - i-- - if m.Open { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 + if interceptor == nil { + return srv.(MsgServer).CreateClass(ctx, in) } - if m.EndDate != nil { - n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.EndDate, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.EndDate):]) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintTx(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x32 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/CreateClass", } - if m.StartDate != nil { - n5, err5 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartDate, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartDate):]) - if err5 != nil { - return 0, err5 - } - i -= n5 - i = encodeVarintTx(dAtA, i, uint64(n5)) - i-- - dAtA[i] = 0x2a + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateClass(ctx, req.(*MsgCreateClass)) } - if len(m.Metadata) > 0 { - i -= len(m.Metadata) - copy(dAtA[i:], m.Metadata) - i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) - i-- - dAtA[i] = 0x22 + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateProject) + if err := dec(in); err != nil { + return nil, err } - if len(m.Issuance) > 0 { - for iNdEx := len(m.Issuance) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Issuance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + if interceptor == nil { + return srv.(MsgServer).CreateProject(ctx, in) } - if len(m.ProjectId) > 0 { - i -= len(m.ProjectId) - copy(dAtA[i:], m.ProjectId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/CreateProject", } - if len(m.Issuer) > 0 { - i -= len(m.Issuer) - copy(dAtA[i:], m.Issuer) - i = encodeVarintTx(dAtA, i, uint64(len(m.Issuer))) - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateProject(ctx, req.(*MsgCreateProject)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *MsgCreateBatchResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_CreateUnregisteredProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateUnregisteredProject) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(MsgServer).CreateUnregisteredProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/CreateUnregisteredProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateUnregisteredProject(ctx, req.(*MsgCreateUnregisteredProject)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgCreateBatchResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _Msg_CreateOrUpdateApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateOrUpdateApplication) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateOrUpdateApplication(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/CreateOrUpdateApplication", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateOrUpdateApplication(ctx, req.(*MsgCreateOrUpdateApplication)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgCreateBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BatchDenom) > 0 { - i -= len(m.BatchDenom) - copy(dAtA[i:], m.BatchDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) - i-- - dAtA[i] = 0xa +func _Msg_UpdateProjectEnrollment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateProjectEnrollment) + if err := dec(in); err != nil { + return nil, err } - return len(dAtA) - i, nil + if interceptor == nil { + return srv.(MsgServer).UpdateProjectEnrollment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/UpdateProjectEnrollment", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateProjectEnrollment(ctx, req.(*MsgUpdateProjectEnrollment)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgMintBatchCredits) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_CreateBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateBatch) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(MsgServer).CreateBatch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/CreateBatch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateBatch(ctx, req.(*MsgCreateBatch)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgMintBatchCredits) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _Msg_MintBatchCredits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgMintBatchCredits) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).MintBatchCredits(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/MintBatchCredits", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MintBatchCredits(ctx, req.(*MsgMintBatchCredits)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgMintBatchCredits) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.OriginTx != nil { - { - size, err := m.OriginTx.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 +func _Msg_SealBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSealBatch) + if err := dec(in); err != nil { + return nil, err } - if len(m.Issuance) > 0 { - for iNdEx := len(m.Issuance) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Issuance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + if interceptor == nil { + return srv.(MsgServer).SealBatch(ctx, in) } - if len(m.BatchDenom) > 0 { - i -= len(m.BatchDenom) - copy(dAtA[i:], m.BatchDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/SealBatch", } - if len(m.Issuer) > 0 { - i -= len(m.Issuer) - copy(dAtA[i:], m.Issuer) - i = encodeVarintTx(dAtA, i, uint64(len(m.Issuer))) - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SealBatch(ctx, req.(*MsgSealBatch)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *MsgMintBatchCreditsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSend) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *MsgMintBatchCreditsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgMintBatchCreditsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil + if interceptor == nil { + return srv.(MsgServer).Send(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/Send", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Send(ctx, req.(*MsgSend)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgSealBatch) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_Retire_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRetire) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *MsgSealBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSealBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BatchDenom) > 0 { - i -= len(m.BatchDenom) - copy(dAtA[i:], m.BatchDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) - i-- - dAtA[i] = 0x12 + if interceptor == nil { + return srv.(MsgServer).Retire(ctx, in) } - if len(m.Issuer) > 0 { - i -= len(m.Issuer) - copy(dAtA[i:], m.Issuer) - i = encodeVarintTx(dAtA, i, uint64(len(m.Issuer))) - i-- - dAtA[i] = 0xa + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/Retire", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Retire(ctx, req.(*MsgRetire)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgSealBatchResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_Cancel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCancel) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *MsgSealBatchResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSealBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil + if interceptor == nil { + return srv.(MsgServer).Cancel(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/Cancel", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Cancel(ctx, req.(*MsgCancel)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgSend) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_UpdateClassAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateClassAdmin) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(MsgServer).UpdateClassAdmin(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassAdmin", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateClassAdmin(ctx, req.(*MsgUpdateClassAdmin)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgSend) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _Msg_UpdateClassIssuers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateClassIssuers) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateClassIssuers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassIssuers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateClassIssuers(ctx, req.(*MsgUpdateClassIssuers)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Credits) > 0 { - for iNdEx := len(m.Credits) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Credits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } +func _Msg_UpdateClassMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateClassMetadata) + if err := dec(in); err != nil { + return nil, err } - if len(m.Recipient) > 0 { - i -= len(m.Recipient) - copy(dAtA[i:], m.Recipient) - i = encodeVarintTx(dAtA, i, uint64(len(m.Recipient))) - i-- - dAtA[i] = 0x12 + if interceptor == nil { + return srv.(MsgServer).UpdateClassMetadata(ctx, in) } - if len(m.Sender) > 0 { - i -= len(m.Sender) - copy(dAtA[i:], m.Sender) - i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) - i-- - dAtA[i] = 0xa + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassMetadata", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateClassMetadata(ctx, req.(*MsgUpdateClassMetadata)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgSend_SendCredits) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_UpdateProjectAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateProjectAdmin) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(MsgServer).UpdateProjectAdmin(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/UpdateProjectAdmin", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateProjectAdmin(ctx, req.(*MsgUpdateProjectAdmin)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgSend_SendCredits) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSend_SendCredits) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RetirementReason) > 0 { - i -= len(m.RetirementReason) - copy(dAtA[i:], m.RetirementReason) - i = encodeVarintTx(dAtA, i, uint64(len(m.RetirementReason))) - i-- - dAtA[i] = 0x2a - } - if len(m.RetirementJurisdiction) > 0 { - i -= len(m.RetirementJurisdiction) - copy(dAtA[i:], m.RetirementJurisdiction) - i = encodeVarintTx(dAtA, i, uint64(len(m.RetirementJurisdiction))) - i-- - dAtA[i] = 0x22 +func _Msg_UpdateProjectMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateProjectMetadata) + if err := dec(in); err != nil { + return nil, err } - if len(m.RetiredAmount) > 0 { - i -= len(m.RetiredAmount) - copy(dAtA[i:], m.RetiredAmount) - i = encodeVarintTx(dAtA, i, uint64(len(m.RetiredAmount))) - i-- - dAtA[i] = 0x1a + if interceptor == nil { + return srv.(MsgServer).UpdateProjectMetadata(ctx, in) } - if len(m.TradableAmount) > 0 { - i -= len(m.TradableAmount) - copy(dAtA[i:], m.TradableAmount) - i = encodeVarintTx(dAtA, i, uint64(len(m.TradableAmount))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/UpdateProjectMetadata", } - if len(m.BatchDenom) > 0 { - i -= len(m.BatchDenom) - copy(dAtA[i:], m.BatchDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateProjectMetadata(ctx, req.(*MsgUpdateProjectMetadata)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *MsgSendResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_UpdateBatchMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateBatchMetadata) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *MsgSendResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil + if interceptor == nil { + return srv.(MsgServer).UpdateBatchMetadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/UpdateBatchMetadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateBatchMetadata(ctx, req.(*MsgUpdateBatchMetadata)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgRetire) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_Bridge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBridge) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(MsgServer).Bridge(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/Bridge", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Bridge(ctx, req.(*MsgBridge)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgRetire) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _Msg_BridgeReceive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBridgeReceive) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BridgeReceive(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/BridgeReceive", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BridgeReceive(ctx, req.(*MsgBridgeReceive)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgRetire) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 +func _Msg_AddCreditType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddCreditType) + if err := dec(in); err != nil { + return nil, err } - if len(m.Jurisdiction) > 0 { - i -= len(m.Jurisdiction) - copy(dAtA[i:], m.Jurisdiction) - i = encodeVarintTx(dAtA, i, uint64(len(m.Jurisdiction))) - i-- - dAtA[i] = 0x1a + if interceptor == nil { + return srv.(MsgServer).AddCreditType(ctx, in) } - if len(m.Credits) > 0 { - for iNdEx := len(m.Credits) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Credits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/AddCreditType", } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddCreditType(ctx, req.(*MsgAddCreditType)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *MsgRetireResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_SetClassCreatorAllowlist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetClassCreatorAllowlist) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(MsgServer).SetClassCreatorAllowlist(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/SetClassCreatorAllowlist", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetClassCreatorAllowlist(ctx, req.(*MsgSetClassCreatorAllowlist)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgRetireResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _Msg_AddClassCreator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddClassCreator) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AddClassCreator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/AddClassCreator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddClassCreator(ctx, req.(*MsgAddClassCreator)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgRetireResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func _Msg_RemoveClassCreator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveClassCreator) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoveClassCreator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/RemoveClassCreator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoveClassCreator(ctx, req.(*MsgRemoveClassCreator)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgCancel) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_UpdateClassFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateClassFee) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(MsgServer).UpdateClassFee(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassFee", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateClassFee(ctx, req.(*MsgUpdateClassFee)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgCancel) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _Msg_UpdateProjectFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateProjectFee) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateProjectFee(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/UpdateProjectFee", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateProjectFee(ctx, req.(*MsgUpdateProjectFee)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgCancel) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x1a +func _Msg_AddAllowedBridgeChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddAllowedBridgeChain) + if err := dec(in); err != nil { + return nil, err } - if len(m.Credits) > 0 { - for iNdEx := len(m.Credits) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Credits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + if interceptor == nil { + return srv.(MsgServer).AddAllowedBridgeChain(ctx, in) } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0xa + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/AddAllowedBridgeChain", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddAllowedBridgeChain(ctx, req.(*MsgAddAllowedBridgeChain)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgCancelResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Msg_RemoveAllowedBridgeChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveAllowedBridgeChain) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(MsgServer).RemoveAllowedBridgeChain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/RemoveAllowedBridgeChain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoveAllowedBridgeChain(ctx, req.(*MsgRemoveAllowedBridgeChain)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgCancelResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _Msg_BurnRegen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBurnRegen) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BurnRegen(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Msg/BurnRegen", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BurnRegen(ctx, req.(*MsgBurnRegen)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgCancelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "regen.ecocredit.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateClass", + Handler: _Msg_CreateClass_Handler, + }, + { + MethodName: "CreateProject", + Handler: _Msg_CreateProject_Handler, + }, + { + MethodName: "CreateUnregisteredProject", + Handler: _Msg_CreateUnregisteredProject_Handler, + }, + { + MethodName: "CreateOrUpdateApplication", + Handler: _Msg_CreateOrUpdateApplication_Handler, + }, + { + MethodName: "UpdateProjectEnrollment", + Handler: _Msg_UpdateProjectEnrollment_Handler, + }, + { + MethodName: "CreateBatch", + Handler: _Msg_CreateBatch_Handler, + }, + { + MethodName: "MintBatchCredits", + Handler: _Msg_MintBatchCredits_Handler, + }, + { + MethodName: "SealBatch", + Handler: _Msg_SealBatch_Handler, + }, + { + MethodName: "Send", + Handler: _Msg_Send_Handler, + }, + { + MethodName: "Retire", + Handler: _Msg_Retire_Handler, + }, + { + MethodName: "Cancel", + Handler: _Msg_Cancel_Handler, + }, + { + MethodName: "UpdateClassAdmin", + Handler: _Msg_UpdateClassAdmin_Handler, + }, + { + MethodName: "UpdateClassIssuers", + Handler: _Msg_UpdateClassIssuers_Handler, + }, + { + MethodName: "UpdateClassMetadata", + Handler: _Msg_UpdateClassMetadata_Handler, + }, + { + MethodName: "UpdateProjectAdmin", + Handler: _Msg_UpdateProjectAdmin_Handler, + }, + { + MethodName: "UpdateProjectMetadata", + Handler: _Msg_UpdateProjectMetadata_Handler, + }, + { + MethodName: "UpdateBatchMetadata", + Handler: _Msg_UpdateBatchMetadata_Handler, + }, + { + MethodName: "Bridge", + Handler: _Msg_Bridge_Handler, + }, + { + MethodName: "BridgeReceive", + Handler: _Msg_BridgeReceive_Handler, + }, + { + MethodName: "AddCreditType", + Handler: _Msg_AddCreditType_Handler, + }, + { + MethodName: "SetClassCreatorAllowlist", + Handler: _Msg_SetClassCreatorAllowlist_Handler, + }, + { + MethodName: "AddClassCreator", + Handler: _Msg_AddClassCreator_Handler, + }, + { + MethodName: "RemoveClassCreator", + Handler: _Msg_RemoveClassCreator_Handler, + }, + { + MethodName: "UpdateClassFee", + Handler: _Msg_UpdateClassFee_Handler, + }, + { + MethodName: "UpdateProjectFee", + Handler: _Msg_UpdateProjectFee_Handler, + }, + { + MethodName: "AddAllowedBridgeChain", + Handler: _Msg_AddAllowedBridgeChain_Handler, + }, + { + MethodName: "RemoveAllowedBridgeChain", + Handler: _Msg_RemoveAllowedBridgeChain_Handler, + }, + { + MethodName: "BurnRegen", + Handler: _Msg_BurnRegen_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "regen/ecocredit/v1/tx.proto", } -func (m *MsgUpdateClassAdmin) Marshal() (dAtA []byte, err error) { +func (m *MsgAddCreditType) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5046,41 +4982,39 @@ func (m *MsgUpdateClassAdmin) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateClassAdmin) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgAddCreditType) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateClassAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgAddCreditType) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NewAdmin) > 0 { - i -= len(m.NewAdmin) - copy(dAtA[i:], m.NewAdmin) - i = encodeVarintTx(dAtA, i, uint64(len(m.NewAdmin))) - i-- - dAtA[i] = 0x1a - } - if len(m.ClassId) > 0 { - i -= len(m.ClassId) - copy(dAtA[i:], m.ClassId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) + if m.CreditType != nil { + { + size, err := m.CreditType.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x12 } - if len(m.Admin) > 0 { - i -= len(m.Admin) - copy(dAtA[i:], m.Admin) - i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgUpdateClassAdminResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgAddCreditTypeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5090,12 +5024,12 @@ func (m *MsgUpdateClassAdminResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateClassAdminResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgAddCreditTypeResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateClassAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgAddCreditTypeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5103,7 +5037,7 @@ func (m *MsgUpdateClassAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *MsgUpdateClassIssuers) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateClass) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5113,40 +5047,50 @@ func (m *MsgUpdateClassIssuers) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateClassIssuers) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateClass) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateClassIssuers) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.RemoveIssuers) > 0 { - for iNdEx := len(m.RemoveIssuers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RemoveIssuers[iNdEx]) - copy(dAtA[i:], m.RemoveIssuers[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.RemoveIssuers[iNdEx]))) - i-- - dAtA[i] = 0x22 + if m.Fee != nil { + { + size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x2a } - if len(m.AddIssuers) > 0 { - for iNdEx := len(m.AddIssuers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AddIssuers[iNdEx]) - copy(dAtA[i:], m.AddIssuers[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.AddIssuers[iNdEx]))) - i-- - dAtA[i] = 0x1a - } + if len(m.CreditTypeAbbrev) > 0 { + i -= len(m.CreditTypeAbbrev) + copy(dAtA[i:], m.CreditTypeAbbrev) + i = encodeVarintTx(dAtA, i, uint64(len(m.CreditTypeAbbrev))) + i-- + dAtA[i] = 0x22 } - if len(m.ClassId) > 0 { - i -= len(m.ClassId) - copy(dAtA[i:], m.ClassId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a + } + if len(m.Issuers) > 0 { + for iNdEx := len(m.Issuers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Issuers[iNdEx]) + copy(dAtA[i:], m.Issuers[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Issuers[iNdEx]))) + i-- + dAtA[i] = 0x12 + } } if len(m.Admin) > 0 { i -= len(m.Admin) @@ -5158,7 +5102,7 @@ func (m *MsgUpdateClassIssuers) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgUpdateClassIssuersResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateClassResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5168,20 +5112,27 @@ func (m *MsgUpdateClassIssuersResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateClassIssuersResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateClassResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateClassIssuersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *MsgUpdateClassMetadata) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateProject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5191,20 +5142,46 @@ func (m *MsgUpdateClassMetadata) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateClassMetadata) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateProject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateClassMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateProject) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NewMetadata) > 0 { - i -= len(m.NewMetadata) - copy(dAtA[i:], m.NewMetadata) - i = encodeVarintTx(dAtA, i, uint64(len(m.NewMetadata))) + if m.Fee != nil { + { + size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.ReferenceId) > 0 { + i -= len(m.ReferenceId) + copy(dAtA[i:], m.ReferenceId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReferenceId))) + i-- + dAtA[i] = 0x2a + } + if len(m.Jurisdiction) > 0 { + i -= len(m.Jurisdiction) + copy(dAtA[i:], m.Jurisdiction) + i = encodeVarintTx(dAtA, i, uint64(len(m.Jurisdiction))) + i-- + dAtA[i] = 0x22 + } + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) i-- dAtA[i] = 0x1a } @@ -5225,7 +5202,7 @@ func (m *MsgUpdateClassMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgUpdateClassMetadataResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateProjectResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5235,20 +5212,27 @@ func (m *MsgUpdateClassMetadataResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateClassMetadataResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateProjectResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateClassMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateProjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *MsgUpdateProjectAdmin) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateUnregisteredProject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5258,27 +5242,46 @@ func (m *MsgUpdateProjectAdmin) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateProjectAdmin) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateUnregisteredProject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateProjectAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateUnregisteredProject) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NewAdmin) > 0 { - i -= len(m.NewAdmin) - copy(dAtA[i:], m.NewAdmin) - i = encodeVarintTx(dAtA, i, uint64(len(m.NewAdmin))) + if m.Fee != nil { + { + size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.ReferenceId) > 0 { + i -= len(m.ReferenceId) + copy(dAtA[i:], m.ReferenceId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReferenceId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Jurisdiction) > 0 { + i -= len(m.Jurisdiction) + copy(dAtA[i:], m.Jurisdiction) + i = encodeVarintTx(dAtA, i, uint64(len(m.Jurisdiction))) i-- dAtA[i] = 0x1a } - if len(m.ProjectId) > 0 { - i -= len(m.ProjectId) - copy(dAtA[i:], m.ProjectId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) i-- dAtA[i] = 0x12 } @@ -5292,7 +5295,7 @@ func (m *MsgUpdateProjectAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgUpdateProjectAdminResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateUnregisteredProjectResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5302,20 +5305,27 @@ func (m *MsgUpdateProjectAdminResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateProjectAdminResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateUnregisteredProjectResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateProjectAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateUnregisteredProjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *MsgUpdateProjectMetadata) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateOrUpdateApplication) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5325,20 +5335,37 @@ func (m *MsgUpdateProjectMetadata) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateProjectMetadata) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateOrUpdateApplication) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateProjectMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateOrUpdateApplication) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NewMetadata) > 0 { - i -= len(m.NewMetadata) - copy(dAtA[i:], m.NewMetadata) - i = encodeVarintTx(dAtA, i, uint64(len(m.NewMetadata))) + if m.Withdraw { + i-- + if m.Withdraw { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x22 + } + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) i-- dAtA[i] = 0x1a } @@ -5349,17 +5376,17 @@ func (m *MsgUpdateProjectMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error i-- dAtA[i] = 0x12 } - if len(m.Admin) > 0 { - i -= len(m.Admin) - copy(dAtA[i:], m.Admin) - i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) + if len(m.ProjectAdmin) > 0 { + i -= len(m.ProjectAdmin) + copy(dAtA[i:], m.ProjectAdmin) + i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectAdmin))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgUpdateProjectMetadataResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateOrUpdateApplicationResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5369,12 +5396,12 @@ func (m *MsgUpdateProjectMetadataResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateProjectMetadataResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateOrUpdateApplicationResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateProjectMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateOrUpdateApplicationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5382,7 +5409,7 @@ func (m *MsgUpdateProjectMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *MsgBridge) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateProjectEnrollment) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5392,55 +5419,53 @@ func (m *MsgBridge) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBridge) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateProjectEnrollment) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBridge) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateProjectEnrollment) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Credits) > 0 { - for iNdEx := len(m.Credits) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Credits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x2a } - if len(m.Recipient) > 0 { - i -= len(m.Recipient) - copy(dAtA[i:], m.Recipient) - i = encodeVarintTx(dAtA, i, uint64(len(m.Recipient))) + if m.NewStatus != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.NewStatus)) + i-- + dAtA[i] = 0x20 + } + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) i-- dAtA[i] = 0x1a } - if len(m.Target) > 0 { - i -= len(m.Target) - copy(dAtA[i:], m.Target) - i = encodeVarintTx(dAtA, i, uint64(len(m.Target))) + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) i-- dAtA[i] = 0x12 } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + if len(m.Issuer) > 0 { + i -= len(m.Issuer) + copy(dAtA[i:], m.Issuer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Issuer))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgUpdateBatchMetadata) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateProjectEnrollmentResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5450,41 +5475,20 @@ func (m *MsgUpdateBatchMetadata) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateBatchMetadata) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateProjectEnrollmentResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateBatchMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateProjectEnrollmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NewMetadata) > 0 { - i -= len(m.NewMetadata) - copy(dAtA[i:], m.NewMetadata) - i = encodeVarintTx(dAtA, i, uint64(len(m.NewMetadata))) - i-- - dAtA[i] = 0x1a - } - if len(m.BatchDenom) > 0 { - i -= len(m.BatchDenom) - copy(dAtA[i:], m.BatchDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) - i-- - dAtA[i] = 0x12 - } - if len(m.Issuer) > 0 { - i -= len(m.Issuer) - copy(dAtA[i:], m.Issuer) - i = encodeVarintTx(dAtA, i, uint64(len(m.Issuer))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *MsgUpdateBatchMetadataResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5494,20 +5498,104 @@ func (m *MsgUpdateBatchMetadataResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateBatchMetadataResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateBatch) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateBatchMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x4a + } + if m.OriginTx != nil { + { + size, err := m.OriginTx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if m.Open { + i-- + if m.Open { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.EndDate != nil { + n6, err6 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.EndDate, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.EndDate):]) + if err6 != nil { + return 0, err6 + } + i -= n6 + i = encodeVarintTx(dAtA, i, uint64(n6)) + i-- + dAtA[i] = 0x32 + } + if m.StartDate != nil { + n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartDate, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartDate):]) + if err7 != nil { + return 0, err7 + } + i -= n7 + i = encodeVarintTx(dAtA, i, uint64(n7)) + i-- + dAtA[i] = 0x2a + } + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x22 + } + if len(m.Issuance) > 0 { + for iNdEx := len(m.Issuance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Issuance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Issuer) > 0 { + i -= len(m.Issuer) + copy(dAtA[i:], m.Issuer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Issuer))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *MsgBridgeResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateBatchResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5517,20 +5605,27 @@ func (m *MsgBridgeResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBridgeResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateBatchResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBridgeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.BatchDenom) > 0 { + i -= len(m.BatchDenom) + copy(dAtA[i:], m.BatchDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *MsgBridgeReceive) Marshal() (dAtA []byte, err error) { +func (m *MsgMintBatchCredits) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5540,12 +5635,12 @@ func (m *MsgBridgeReceive) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBridgeReceive) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgMintBatchCredits) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBridgeReceive) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgMintBatchCredits) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5560,36 +5655,26 @@ func (m *MsgBridgeReceive) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a - } - if m.Batch != nil { - { - size, err := m.Batch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 } - if m.Project != nil { - { - size, err := m.Project.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Issuance) > 0 { + for iNdEx := len(m.Issuance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Issuance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a } - if len(m.ClassId) > 0 { - i -= len(m.ClassId) - copy(dAtA[i:], m.ClassId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) + if len(m.BatchDenom) > 0 { + i -= len(m.BatchDenom) + copy(dAtA[i:], m.BatchDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) i-- dAtA[i] = 0x12 } @@ -5603,7 +5688,7 @@ func (m *MsgBridgeReceive) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgBridgeReceive_Batch) Marshal() (dAtA []byte, err error) { +func (m *MsgMintBatchCreditsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5613,61 +5698,20 @@ func (m *MsgBridgeReceive_Batch) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBridgeReceive_Batch) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgMintBatchCreditsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBridgeReceive_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgMintBatchCreditsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Metadata) > 0 { - i -= len(m.Metadata) - copy(dAtA[i:], m.Metadata) - i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) - i-- - dAtA[i] = 0x2a - } - if m.EndDate != nil { - n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.EndDate, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.EndDate):]) - if err10 != nil { - return 0, err10 - } - i -= n10 - i = encodeVarintTx(dAtA, i, uint64(n10)) - i-- - dAtA[i] = 0x22 - } - if m.StartDate != nil { - n11, err11 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartDate, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartDate):]) - if err11 != nil { - return 0, err11 - } - i -= n11 - i = encodeVarintTx(dAtA, i, uint64(n11)) - i-- - dAtA[i] = 0x1a - } - if len(m.Amount) > 0 { - i -= len(m.Amount) - copy(dAtA[i:], m.Amount) - i = encodeVarintTx(dAtA, i, uint64(len(m.Amount))) - i-- - dAtA[i] = 0x12 - } - if len(m.Recipient) > 0 { - i -= len(m.Recipient) - copy(dAtA[i:], m.Recipient) - i = encodeVarintTx(dAtA, i, uint64(len(m.Recipient))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *MsgBridgeReceive_Project) Marshal() (dAtA []byte, err error) { +func (m *MsgSealBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5677,41 +5721,34 @@ func (m *MsgBridgeReceive_Project) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBridgeReceive_Project) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSealBatch) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBridgeReceive_Project) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSealBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Metadata) > 0 { - i -= len(m.Metadata) - copy(dAtA[i:], m.Metadata) - i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(m.Jurisdiction) > 0 { - i -= len(m.Jurisdiction) - copy(dAtA[i:], m.Jurisdiction) - i = encodeVarintTx(dAtA, i, uint64(len(m.Jurisdiction))) + if len(m.BatchDenom) > 0 { + i -= len(m.BatchDenom) + copy(dAtA[i:], m.BatchDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) i-- dAtA[i] = 0x12 } - if len(m.ReferenceId) > 0 { - i -= len(m.ReferenceId) - copy(dAtA[i:], m.ReferenceId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ReferenceId))) + if len(m.Issuer) > 0 { + i -= len(m.Issuer) + copy(dAtA[i:], m.Issuer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Issuer))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgBridgeReceiveResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgSealBatchResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5721,34 +5758,20 @@ func (m *MsgBridgeReceiveResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBridgeReceiveResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSealBatchResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBridgeReceiveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSealBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ProjectId) > 0 { - i -= len(m.ProjectId) - copy(dAtA[i:], m.ProjectId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) - i-- - dAtA[i] = 0x12 - } - if len(m.BatchDenom) > 0 { - i -= len(m.BatchDenom) - copy(dAtA[i:], m.BatchDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *MsgAddClassCreator) Marshal() (dAtA []byte, err error) { +func (m *MsgSend) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5758,34 +5781,48 @@ func (m *MsgAddClassCreator) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgAddClassCreator) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSend) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAddClassCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0x12 - } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + if len(m.Credits) > 0 { + for iNdEx := len(m.Credits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Credits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Recipient) > 0 { + i -= len(m.Recipient) + copy(dAtA[i:], m.Recipient) + i = encodeVarintTx(dAtA, i, uint64(len(m.Recipient))) + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgAddClassCreatorResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgSend_SendCredits) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5795,60 +5832,55 @@ func (m *MsgAddClassCreatorResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgAddClassCreatorResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSend_SendCredits) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAddClassCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSend_SendCredits) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - return len(dAtA) - i, nil -} - -func (m *MsgSetClassCreatorAllowlist) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if len(m.RetirementReason) > 0 { + i -= len(m.RetirementReason) + copy(dAtA[i:], m.RetirementReason) + i = encodeVarintTx(dAtA, i, uint64(len(m.RetirementReason))) + i-- + dAtA[i] = 0x2a } - return dAtA[:n], nil -} - -func (m *MsgSetClassCreatorAllowlist) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSetClassCreatorAllowlist) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Enabled { + if len(m.RetirementJurisdiction) > 0 { + i -= len(m.RetirementJurisdiction) + copy(dAtA[i:], m.RetirementJurisdiction) + i = encodeVarintTx(dAtA, i, uint64(len(m.RetirementJurisdiction))) i-- - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + dAtA[i] = 0x22 + } + if len(m.RetiredAmount) > 0 { + i -= len(m.RetiredAmount) + copy(dAtA[i:], m.RetiredAmount) + i = encodeVarintTx(dAtA, i, uint64(len(m.RetiredAmount))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x1a } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + if len(m.TradableAmount) > 0 { + i -= len(m.TradableAmount) + copy(dAtA[i:], m.TradableAmount) + i = encodeVarintTx(dAtA, i, uint64(len(m.TradableAmount))) + i-- + dAtA[i] = 0x12 + } + if len(m.BatchDenom) > 0 { + i -= len(m.BatchDenom) + copy(dAtA[i:], m.BatchDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgSetClassCreatorAllowlistResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgSendResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5858,12 +5890,12 @@ func (m *MsgSetClassCreatorAllowlistResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *MsgSetClassCreatorAllowlistResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSendResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSetClassCreatorAllowlistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5871,7 +5903,7 @@ func (m *MsgSetClassCreatorAllowlistResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *MsgRemoveClassCreator) Marshal() (dAtA []byte, err error) { +func (m *MsgRetire) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5881,34 +5913,55 @@ func (m *MsgRemoveClassCreator) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgRemoveClassCreator) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRetire) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgRemoveClassCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRetire) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x22 } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + if len(m.Jurisdiction) > 0 { + i -= len(m.Jurisdiction) + copy(dAtA[i:], m.Jurisdiction) + i = encodeVarintTx(dAtA, i, uint64(len(m.Jurisdiction))) + i-- + dAtA[i] = 0x1a + } + if len(m.Credits) > 0 { + for iNdEx := len(m.Credits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Credits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgRemoveClassCreatorResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgRetireResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5918,12 +5971,12 @@ func (m *MsgRemoveClassCreatorResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgRemoveClassCreatorResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRetireResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgRemoveClassCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRetireResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5931,7 +5984,7 @@ func (m *MsgRemoveClassCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *MsgUpdateClassFee) Marshal() (dAtA []byte, err error) { +func (m *MsgCancel) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5941,39 +5994,48 @@ func (m *MsgUpdateClassFee) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateClassFee) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCancel) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateClassFee) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCancel) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Fee != nil { - { - size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x1a + } + if len(m.Credits) > 0 { + for iNdEx := len(m.Credits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Credits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgUpdateClassFeeResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCancelResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5983,12 +6045,12 @@ func (m *MsgUpdateClassFeeResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateClassFeeResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCancelResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateClassFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCancelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5996,7 +6058,7 @@ func (m *MsgUpdateClassFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *MsgAddAllowedBridgeChain) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateClassAdmin) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6006,34 +6068,41 @@ func (m *MsgAddAllowedBridgeChain) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgAddAllowedBridgeChain) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateClassAdmin) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAddAllowedBridgeChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateClassAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ChainName) > 0 { - i -= len(m.ChainName) - copy(dAtA[i:], m.ChainName) - i = encodeVarintTx(dAtA, i, uint64(len(m.ChainName))) + if len(m.NewAdmin) > 0 { + i -= len(m.NewAdmin) + copy(dAtA[i:], m.NewAdmin) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewAdmin))) + i-- + dAtA[i] = 0x1a + } + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) i-- dAtA[i] = 0x12 } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + if len(m.Admin) > 0 { + i -= len(m.Admin) + copy(dAtA[i:], m.Admin) + i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgAddAllowedBridgeChainResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateClassAdminResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6043,12 +6112,12 @@ func (m *MsgAddAllowedBridgeChainResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgAddAllowedBridgeChainResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateClassAdminResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAddAllowedBridgeChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateClassAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -6056,7 +6125,7 @@ func (m *MsgAddAllowedBridgeChainResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *MsgRemoveAllowedBridgeChain) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateClassIssuers) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6066,34 +6135,52 @@ func (m *MsgRemoveAllowedBridgeChain) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgRemoveAllowedBridgeChain) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateClassIssuers) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgRemoveAllowedBridgeChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateClassIssuers) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ChainName) > 0 { - i -= len(m.ChainName) - copy(dAtA[i:], m.ChainName) - i = encodeVarintTx(dAtA, i, uint64(len(m.ChainName))) - i-- - dAtA[i] = 0x12 + if len(m.RemoveIssuers) > 0 { + for iNdEx := len(m.RemoveIssuers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.RemoveIssuers[iNdEx]) + copy(dAtA[i:], m.RemoveIssuers[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.RemoveIssuers[iNdEx]))) + i-- + dAtA[i] = 0x22 + } } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + if len(m.AddIssuers) > 0 { + for iNdEx := len(m.AddIssuers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AddIssuers[iNdEx]) + copy(dAtA[i:], m.AddIssuers[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.AddIssuers[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Admin) > 0 { + i -= len(m.Admin) + copy(dAtA[i:], m.Admin) + i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgRemoveAllowedBridgeChainResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateClassIssuersResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6103,12 +6190,12 @@ func (m *MsgRemoveAllowedBridgeChainResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *MsgRemoveAllowedBridgeChainResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateClassIssuersResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgRemoveAllowedBridgeChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateClassIssuersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -6116,7 +6203,7 @@ func (m *MsgRemoveAllowedBridgeChainResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *MsgBurnRegen) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateClassMetadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6126,41 +6213,41 @@ func (m *MsgBurnRegen) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBurnRegen) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateClassMetadata) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBurnRegen) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateClassMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) + if len(m.NewMetadata) > 0 { + i -= len(m.NewMetadata) + copy(dAtA[i:], m.NewMetadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewMetadata))) i-- dAtA[i] = 0x1a } - if len(m.Amount) > 0 { - i -= len(m.Amount) - copy(dAtA[i:], m.Amount) - i = encodeVarintTx(dAtA, i, uint64(len(m.Amount))) + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) i-- dAtA[i] = 0x12 } - if len(m.Burner) > 0 { - i -= len(m.Burner) - copy(dAtA[i:], m.Burner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Burner))) + if len(m.Admin) > 0 { + i -= len(m.Admin) + copy(dAtA[i:], m.Admin) + i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgBurnRegenResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateClassMetadataResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6170,12 +6257,12 @@ func (m *MsgBurnRegenResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBurnRegenResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateClassMetadataResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBurnRegenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateClassMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -6183,816 +6270,1035 @@ func (m *MsgBurnRegenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintTx(dAtA []byte, offset int, v uint64) int { - offset -= sovTx(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *MsgUpdateProjectAdmin) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *MsgAddCreditType) Size() (n int) { - if m == nil { - return 0 - } + +func (m *MsgUpdateProjectAdmin) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateProjectAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.NewAdmin) > 0 { + i -= len(m.NewAdmin) + copy(dAtA[i:], m.NewAdmin) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewAdmin))) + i-- + dAtA[i] = 0x1a } - if m.CreditType != nil { - l = m.CreditType.Size() - n += 1 + l + sovTx(uint64(l)) + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) + i-- + dAtA[i] = 0x12 } - return n + if len(m.Admin) > 0 { + i -= len(m.Admin) + copy(dAtA[i:], m.Admin) + i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *MsgAddCreditTypeResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgUpdateProjectAdminResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *MsgUpdateProjectAdminResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateProjectAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + return len(dAtA) - i, nil } -func (m *MsgCreateClass) Size() (n int) { - if m == nil { - return 0 +func (m *MsgUpdateProjectMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *MsgUpdateProjectMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateProjectMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Admin) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Issuers) > 0 { - for _, s := range m.Issuers { - l = len(s) - n += 1 + l + sovTx(uint64(l)) - } - } - l = len(m.Metadata) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.NewMetadata) > 0 { + i -= len(m.NewMetadata) + copy(dAtA[i:], m.NewMetadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewMetadata))) + i-- + dAtA[i] = 0x1a } - l = len(m.CreditTypeAbbrev) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) + i-- + dAtA[i] = 0x12 } - if m.Fee != nil { - l = m.Fee.Size() - n += 1 + l + sovTx(uint64(l)) + if len(m.Admin) > 0 { + i -= len(m.Admin) + copy(dAtA[i:], m.Admin) + i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *MsgCreateClassResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgUpdateProjectMetadataResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *MsgUpdateProjectMetadataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateProjectMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ClassId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n + return len(dAtA) - i, nil } -func (m *MsgCreateProject) Size() (n int) { - if m == nil { - return 0 +func (m *MsgBridge) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *MsgBridge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBridge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Admin) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ClassId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Metadata) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Credits) > 0 { + for iNdEx := len(m.Credits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Credits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } - l = len(m.Jurisdiction) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Recipient) > 0 { + i -= len(m.Recipient) + copy(dAtA[i:], m.Recipient) + i = encodeVarintTx(dAtA, i, uint64(len(m.Recipient))) + i-- + dAtA[i] = 0x1a } - l = len(m.ReferenceId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Target) > 0 { + i -= len(m.Target) + copy(dAtA[i:], m.Target) + i = encodeVarintTx(dAtA, i, uint64(len(m.Target))) + i-- + dAtA[i] = 0x12 } - return n + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *MsgCreateProjectResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ProjectId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (m *MsgUpdateBatchMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *MsgCreateBatch) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgUpdateBatchMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateBatchMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Issuer) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ProjectId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Issuance) > 0 { - for _, e := range m.Issuance { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - l = len(m.Metadata) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.StartDate != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartDate) - n += 1 + l + sovTx(uint64(l)) - } - if m.EndDate != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.EndDate) - n += 1 + l + sovTx(uint64(l)) + if len(m.NewMetadata) > 0 { + i -= len(m.NewMetadata) + copy(dAtA[i:], m.NewMetadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewMetadata))) + i-- + dAtA[i] = 0x1a } - if m.Open { - n += 2 + if len(m.BatchDenom) > 0 { + i -= len(m.BatchDenom) + copy(dAtA[i:], m.BatchDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) + i-- + dAtA[i] = 0x12 } - if m.OriginTx != nil { - l = m.OriginTx.Size() - n += 1 + l + sovTx(uint64(l)) + if len(m.Issuer) > 0 { + i -= len(m.Issuer) + copy(dAtA[i:], m.Issuer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Issuer))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *MsgCreateBatchResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BatchDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (m *MsgUpdateBatchMetadataResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *MsgMintBatchCredits) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Issuer) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.BatchDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Issuance) > 0 { - for _, e := range m.Issuance { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - if m.OriginTx != nil { - l = m.OriginTx.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n +func (m *MsgUpdateBatchMetadataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgMintBatchCreditsResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgUpdateBatchMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + return len(dAtA) - i, nil } -func (m *MsgSealBatch) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Issuer) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.BatchDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (m *MsgBridgeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *MsgSealBatchResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +func (m *MsgBridgeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSend) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgBridgeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Sender) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Recipient) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Credits) > 0 { - for _, e := range m.Credits { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n + return len(dAtA) - i, nil } -func (m *MsgSend_SendCredits) Size() (n int) { - if m == nil { - return 0 +func (m *MsgBridgeReceive) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *MsgBridgeReceive) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBridgeReceive) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.BatchDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.TradableAmount) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.RetiredAmount) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if m.OriginTx != nil { + { + size, err := m.OriginTx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } - l = len(m.RetirementJurisdiction) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if m.Batch != nil { + { + size, err := m.Batch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - l = len(m.RetirementReason) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if m.Project != nil { + { + size, err := m.Project.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - return n + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Issuer) > 0 { + i -= len(m.Issuer) + copy(dAtA[i:], m.Issuer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Issuer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *MsgSendResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgBridgeReceive_Batch) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *MsgRetire) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgBridgeReceive_Batch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBridgeReceive_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x2a } - if len(m.Credits) > 0 { - for _, e := range m.Credits { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) + if m.EndDate != nil { + n12, err12 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.EndDate, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.EndDate):]) + if err12 != nil { + return 0, err12 } + i -= n12 + i = encodeVarintTx(dAtA, i, uint64(n12)) + i-- + dAtA[i] = 0x22 } - l = len(m.Jurisdiction) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if m.StartDate != nil { + n13, err13 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartDate, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartDate):]) + if err13 != nil { + return 0, err13 + } + i -= n13 + i = encodeVarintTx(dAtA, i, uint64(n13)) + i-- + dAtA[i] = 0x1a } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintTx(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x12 } - return n + if len(m.Recipient) > 0 { + i -= len(m.Recipient) + copy(dAtA[i:], m.Recipient) + i = encodeVarintTx(dAtA, i, uint64(len(m.Recipient))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *MsgRetireResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgBridgeReceive_Project) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *MsgCancel) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgBridgeReceive_Project) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBridgeReceive_Project) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x1a } - if len(m.Credits) > 0 { - for _, e := range m.Credits { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } + if len(m.Jurisdiction) > 0 { + i -= len(m.Jurisdiction) + copy(dAtA[i:], m.Jurisdiction) + i = encodeVarintTx(dAtA, i, uint64(len(m.Jurisdiction))) + i-- + dAtA[i] = 0x12 } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.ReferenceId) > 0 { + i -= len(m.ReferenceId) + copy(dAtA[i:], m.ReferenceId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReferenceId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *MsgCancelResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgBridgeReceiveResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *MsgUpdateClassAdmin) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgBridgeReceiveResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBridgeReceiveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Admin) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ClassId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.ProjectId) > 0 { + i -= len(m.ProjectId) + copy(dAtA[i:], m.ProjectId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ProjectId))) + i-- + dAtA[i] = 0x12 } - l = len(m.NewAdmin) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.BatchDenom) > 0 { + i -= len(m.BatchDenom) + copy(dAtA[i:], m.BatchDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *MsgUpdateClassAdminResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgAddClassCreator) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *MsgUpdateClassIssuers) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgAddClassCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddClassCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Admin) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ClassId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.AddIssuers) > 0 { - for _, s := range m.AddIssuers { - l = len(s) - n += 1 + l + sovTx(uint64(l)) - } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 } - if len(m.RemoveIssuers) > 0 { - for _, s := range m.RemoveIssuers { - l = len(s) - n += 1 + l + sovTx(uint64(l)) - } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *MsgUpdateClassIssuersResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgAddClassCreatorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *MsgUpdateClassMetadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Admin) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ClassId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.NewMetadata) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n +func (m *MsgAddClassCreatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateClassMetadataResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgAddClassCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + return len(dAtA) - i, nil } -func (m *MsgUpdateProjectAdmin) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Admin) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ProjectId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.NewAdmin) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (m *MsgSetClassCreatorAllowlist) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *MsgUpdateProjectAdminResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +func (m *MsgSetClassCreatorAllowlist) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateProjectMetadata) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgSetClassCreatorAllowlist) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Admin) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ProjectId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if m.Enabled { + i-- + if m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 } - l = len(m.NewMetadata) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *MsgUpdateProjectMetadataResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgSetClassCreatorAllowlistResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *MsgBridge) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgSetClassCreatorAllowlistResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetClassCreatorAllowlistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Target) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Recipient) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Credits) > 0 { - for _, e := range m.Credits { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n + return len(dAtA) - i, nil } -func (m *MsgUpdateBatchMetadata) Size() (n int) { - if m == nil { - return 0 +func (m *MsgRemoveClassCreator) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *MsgRemoveClassCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoveClassCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Issuer) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.BatchDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 } - l = len(m.NewMetadata) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *MsgUpdateBatchMetadataResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgRemoveClassCreatorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *MsgBridgeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +func (m *MsgRemoveClassCreatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBridgeReceive) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgRemoveClassCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Issuer) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ClassId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Project != nil { - l = m.Project.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.Batch != nil { - l = m.Batch.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.OriginTx != nil { - l = m.OriginTx.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n + return len(dAtA) - i, nil } -func (m *MsgBridgeReceive_Batch) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Recipient) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Amount) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.StartDate != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartDate) - n += 1 + l + sovTx(uint64(l)) - } - if m.EndDate != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.EndDate) - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Metadata) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (m *MsgUpdateClassFee) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *MsgBridgeReceive_Project) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ReferenceId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Jurisdiction) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Metadata) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n +func (m *MsgUpdateClassFee) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBridgeReceiveResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgUpdateClassFee) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.BatchDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if m.Fee != nil { + { + size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - l = len(m.ProjectId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *MsgAddClassCreator) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (m *MsgUpdateClassFeeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *MsgAddClassCreatorResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +func (m *MsgUpdateClassFeeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSetClassCreatorAllowlist) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgUpdateClassFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Enabled { - n += 2 - } - return n + return len(dAtA) - i, nil } -func (m *MsgSetClassCreatorAllowlistResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgUpdateProjectFee) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *MsgRemoveClassCreator) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgUpdateProjectFee) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateProjectFee) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if m.Fee != nil { + { + size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *MsgRemoveClassCreatorResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgUpdateProjectFeeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *MsgUpdateClassFee) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Fee != nil { - l = m.Fee.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n +func (m *MsgUpdateProjectFeeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateClassFeeResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgUpdateProjectFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + return len(dAtA) - i, nil } -func (m *MsgAddAllowedBridgeChain) Size() (n int) { - if m == nil { - return 0 +func (m *MsgAddAllowedBridgeChain) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l + return dAtA[:n], nil +} + +func (m *MsgAddAllowedBridgeChain) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddAllowedBridgeChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChainName) > 0 { + i -= len(m.ChainName) + copy(dAtA[i:], m.ChainName) + i = encodeVarintTx(dAtA, i, uint64(len(m.ChainName))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAddAllowedBridgeChainResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAddAllowedBridgeChainResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddAllowedBridgeChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRemoveAllowedBridgeChain) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemoveAllowedBridgeChain) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoveAllowedBridgeChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChainName) > 0 { + i -= len(m.ChainName) + copy(dAtA[i:], m.ChainName) + i = encodeVarintTx(dAtA, i, uint64(len(m.ChainName))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRemoveAllowedBridgeChainResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemoveAllowedBridgeChainResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoveAllowedBridgeChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgBurnRegen) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnRegen) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnRegen) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x1a + } + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintTx(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x12 + } + if len(m.Burner) > 0 { + i -= len(m.Burner) + copy(dAtA[i:], m.Burner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Burner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBurnRegenResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnRegenResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnRegenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgAddCreditType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l l = len(m.Authority) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.ChainName) - if l > 0 { + if m.CreditType != nil { + l = m.CreditType.Size() n += 1 + l + sovTx(uint64(l)) } return n } -func (m *MsgAddAllowedBridgeChainResponse) Size() (n int) { +func (m *MsgAddCreditTypeResponse) Size() (n int) { if m == nil { return 0 } @@ -7001,69 +7307,1792 @@ func (m *MsgAddAllowedBridgeChainResponse) Size() (n int) { return n } -func (m *MsgRemoveAllowedBridgeChain) Size() (n int) { +func (m *MsgCreateClass) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Authority) + l = len(m.Admin) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.ChainName) + if len(m.Issuers) > 0 { + for _, s := range m.Issuers { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.CreditTypeAbbrev) if l > 0 { n += 1 + l + sovTx(uint64(l)) } + if m.Fee != nil { + l = m.Fee.Size() + n += 1 + l + sovTx(uint64(l)) + } return n } -func (m *MsgRemoveAllowedBridgeChainResponse) Size() (n int) { +func (m *MsgCreateClassResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } -func (m *MsgBurnRegen) Size() (n int) { +func (m *MsgCreateProject) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Burner) + l = len(m.Admin) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Amount) + l = len(m.ClassId) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Reason) + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Jurisdiction) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ReferenceId) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - return n -} + if m.Fee != nil { + l = m.Fee.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateProjectResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateUnregisteredProject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Admin) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Jurisdiction) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ReferenceId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Fee != nil { + l = m.Fee.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateUnregisteredProjectResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateOrUpdateApplication) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ProjectAdmin) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Withdraw { + n += 2 + } + return n +} + +func (m *MsgCreateOrUpdateApplicationResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateProjectEnrollment) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Issuer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.NewStatus != 0 { + n += 1 + sovTx(uint64(m.NewStatus)) + } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateProjectEnrollmentResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCreateBatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Issuer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Issuance) > 0 { + for _, e := range m.Issuance { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.StartDate != nil { + l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartDate) + n += 1 + l + sovTx(uint64(l)) + } + if m.EndDate != nil { + l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.EndDate) + n += 1 + l + sovTx(uint64(l)) + } + if m.Open { + n += 2 + } + if m.OriginTx != nil { + l = m.OriginTx.Size() + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateBatchResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BatchDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgMintBatchCredits) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Issuer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.BatchDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Issuance) > 0 { + for _, e := range m.Issuance { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.OriginTx != nil { + l = m.OriginTx.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgMintBatchCreditsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSealBatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Issuer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.BatchDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSealBatchResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Recipient) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Credits) > 0 { + for _, e := range m.Credits { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSend_SendCredits) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BatchDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TradableAmount) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.RetiredAmount) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.RetirementJurisdiction) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.RetirementReason) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSendResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRetire) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Credits) > 0 { + for _, e := range m.Credits { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + l = len(m.Jurisdiction) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRetireResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCancel) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Credits) > 0 { + for _, e := range m.Credits { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCancelResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateClassAdmin) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Admin) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewAdmin) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateClassAdminResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateClassIssuers) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Admin) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.AddIssuers) > 0 { + for _, s := range m.AddIssuers { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.RemoveIssuers) > 0 { + for _, s := range m.RemoveIssuers { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgUpdateClassIssuersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateClassMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Admin) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewMetadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateClassMetadataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateProjectAdmin) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Admin) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewAdmin) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateProjectAdminResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateProjectMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Admin) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewMetadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateProjectMetadataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgBridge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Target) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Recipient) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Credits) > 0 { + for _, e := range m.Credits { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgUpdateBatchMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Issuer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.BatchDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewMetadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateBatchMetadataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgBridgeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgBridgeReceive) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Issuer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Project != nil { + l = m.Project.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.Batch != nil { + l = m.Batch.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.OriginTx != nil { + l = m.OriginTx.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgBridgeReceive_Batch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Recipient) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.StartDate != nil { + l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartDate) + n += 1 + l + sovTx(uint64(l)) + } + if m.EndDate != nil { + l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.EndDate) + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgBridgeReceive_Project) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ReferenceId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Jurisdiction) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgBridgeReceiveResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BatchDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ProjectId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAddClassCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAddClassCreatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetClassCreatorAllowlist) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Enabled { + n += 2 + } + return n +} + +func (m *MsgSetClassCreatorAllowlistResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRemoveClassCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRemoveClassCreatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateClassFee) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Fee != nil { + l = m.Fee.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateClassFeeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateProjectFee) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Fee != nil { + l = m.Fee.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateProjectFeeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAddAllowedBridgeChain) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ChainName) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAddAllowedBridgeChainResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRemoveAllowedBridgeChain) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ChainName) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRemoveAllowedBridgeChainResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgBurnRegen) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Burner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgBurnRegenResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgAddCreditType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAddCreditType: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddCreditType: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreditType", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreditType == nil { + m.CreditType = &CreditType{} + } + if err := m.CreditType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAddCreditTypeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAddCreditTypeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddCreditTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Admin = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Issuers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Issuers = append(m.Issuers, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreditTypeAbbrev", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreditTypeAbbrev = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fee == nil { + m.Fee = &types.Coin{} + } + if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateClassResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateClassResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateClassResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateProject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateProject: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Admin = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Jurisdiction", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Jurisdiction = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReferenceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReferenceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fee == nil { + m.Fee = &types.Coin{} + } + if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateProjectResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateProjectResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateProjectResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } -func (m *MsgBurnRegenResponse) Size() (n int) { - if m == nil { - return 0 + if iNdEx > l { + return io.ErrUnexpectedEOF } - var l int - _ = l - return n -} - -func sovTx(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTx(x uint64) (n int) { - return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return nil } -func (m *MsgAddCreditType) Unmarshal(dAtA []byte) error { +func (m *MsgCreateUnregisteredProject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7086,15 +9115,15 @@ func (m *MsgAddCreditType) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAddCreditType: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateUnregisteredProject: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAddCreditType: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateUnregisteredProject: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7122,11 +9151,107 @@ func (m *MsgAddCreditType) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Authority = string(dAtA[iNdEx:postIndex]) + m.Admin = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreditType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Jurisdiction", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Jurisdiction = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReferenceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReferenceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7153,10 +9278,10 @@ func (m *MsgAddCreditType) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CreditType == nil { - m.CreditType = &CreditType{} + if m.Fee == nil { + m.Fee = &types.Coin{} } - if err := m.CreditType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7181,7 +9306,7 @@ func (m *MsgAddCreditType) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAddCreditTypeResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCreateUnregisteredProjectResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7204,12 +9329,44 @@ func (m *MsgAddCreditTypeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAddCreditTypeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateUnregisteredProjectResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAddCreditTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateUnregisteredProjectResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -7231,7 +9388,7 @@ func (m *MsgAddCreditTypeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateClass) Unmarshal(dAtA []byte) error { +func (m *MsgCreateOrUpdateApplication) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7254,15 +9411,15 @@ func (m *MsgCreateClass) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateClass: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateOrUpdateApplication: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateClass: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateOrUpdateApplication: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProjectAdmin", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7290,11 +9447,11 @@ func (m *MsgCreateClass) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Admin = string(dAtA[iNdEx:postIndex]) + m.ProjectAdmin = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Issuers", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7322,11 +9479,11 @@ func (m *MsgCreateClass) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Issuers = append(m.Issuers, string(dAtA[iNdEx:postIndex])) + m.ProjectId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7354,11 +9511,11 @@ func (m *MsgCreateClass) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Metadata = string(dAtA[iNdEx:postIndex]) + m.ClassId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreditTypeAbbrev", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7386,13 +9543,13 @@ func (m *MsgCreateClass) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CreditTypeAbbrev = string(dAtA[iNdEx:postIndex]) + m.Metadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Withdraw", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -7402,28 +9559,12 @@ func (m *MsgCreateClass) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Fee == nil { - m.Fee = &types.Coin{} - } - if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.Withdraw = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -7445,7 +9586,7 @@ func (m *MsgCreateClass) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateClassResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCreateOrUpdateApplicationResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7468,44 +9609,12 @@ func (m *MsgCreateClassResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateClassResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateOrUpdateApplicationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateClassResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateOrUpdateApplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -7527,7 +9636,7 @@ func (m *MsgCreateClassResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { +func (m *MsgUpdateProjectEnrollment) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7550,15 +9659,15 @@ func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateProject: wiretype end group for non-group") + return fmt.Errorf("proto: MsgUpdateProjectEnrollment: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateProject: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgUpdateProjectEnrollment: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Issuer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7586,11 +9695,11 @@ func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Admin = string(dAtA[iNdEx:postIndex]) + m.Issuer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7618,11 +9727,11 @@ func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClassId = string(dAtA[iNdEx:postIndex]) + m.ProjectId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7650,13 +9759,13 @@ func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Metadata = string(dAtA[iNdEx:postIndex]) + m.ClassId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Jurisdiction", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewStatus", wireType) } - var stringLen uint64 + m.NewStatus = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -7666,27 +9775,14 @@ func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.NewStatus |= ProjectEnrollmentStatus(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Jurisdiction = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReferenceId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7714,7 +9810,7 @@ func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ReferenceId = string(dAtA[iNdEx:postIndex]) + m.Metadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7737,7 +9833,7 @@ func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateProjectResponse) Unmarshal(dAtA []byte) error { +func (m *MsgUpdateProjectEnrollmentResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7760,44 +9856,12 @@ func (m *MsgCreateProjectResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateProjectResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgUpdateProjectEnrollmentResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateProjectResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgUpdateProjectEnrollmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProjectId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -8106,6 +10170,38 @@ func (m *MsgCreateBatch) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -12229,6 +14325,174 @@ func (m *MsgUpdateClassFeeResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgUpdateProjectFee) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateProjectFee: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateProjectFee: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fee == nil { + m.Fee = &types.Coin{} + } + if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateProjectFeeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateProjectFeeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateProjectFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *MsgAddAllowedBridgeChain) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/ecocredit/marketplace/types/v1/tx.pb.go b/x/ecocredit/marketplace/types/v1/tx.pb.go index b8e3824edf..365f971e5a 100644 --- a/x/ecocredit/marketplace/types/v1/tx.pb.go +++ b/x/ecocredit/marketplace/types/v1/tx.pb.go @@ -1035,75 +1035,75 @@ func init() { } var fileDescriptor_68c9b4e4b7fcb584 = []byte{ - // 1076 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x6f, 0xdc, 0x44, - 0x14, 0xaf, 0x77, 0x37, 0x9b, 0xe4, 0x6d, 0x92, 0xb6, 0x6e, 0x48, 0xb7, 0xa6, 0xd9, 0x84, 0x05, + // 1078 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcf, 0x6f, 0xdc, 0x44, + 0x14, 0xae, 0x77, 0x37, 0x9b, 0xe4, 0x6d, 0x92, 0xb6, 0x6e, 0x48, 0xb7, 0xa6, 0xd9, 0x84, 0x05, 0xa9, 0xa1, 0x10, 0x5b, 0x49, 0x0b, 0x95, 0x82, 0x22, 0x91, 0xb4, 0x4d, 0xd5, 0xa2, 0x15, 0xc5, 0x29, 0x17, 0x24, 0xe4, 0xce, 0xda, 0x2f, 0x8e, 0x89, 0xed, 0x59, 0x3c, 0xe3, 0x64, 0x73, 0x2c, - 0x42, 0x42, 0xe2, 0xd4, 0x33, 0x47, 0x3e, 0x01, 0x07, 0x3e, 0x04, 0x82, 0x4b, 0xc5, 0x89, 0x1b, - 0x28, 0x91, 0xe0, 0xc6, 0x99, 0x23, 0xf2, 0x78, 0xd6, 0xd9, 0x78, 0xb3, 0x8d, 0xb3, 0x37, 0xbf, - 0xff, 0x6f, 0x7e, 0xbf, 0x79, 0x6f, 0x0c, 0xb7, 0x22, 0x74, 0x31, 0x34, 0xd0, 0xa6, 0x76, 0x84, - 0x8e, 0xc7, 0x8d, 0x80, 0x44, 0x7b, 0xc8, 0x3b, 0x3e, 0xb1, 0xd1, 0xd8, 0x5f, 0x31, 0x78, 0x57, - 0xef, 0x44, 0x94, 0x53, 0xb5, 0x21, 0x1c, 0xf5, 0xcc, 0x51, 0xef, 0x73, 0xd4, 0xf7, 0x57, 0xb4, - 0x1b, 0x36, 0x65, 0x01, 0x65, 0x96, 0xf0, 0x36, 0x52, 0x21, 0x0d, 0xd5, 0x1a, 0xa9, 0x64, 0xb4, - 0x09, 0x4b, 0x72, 0xb6, 0x91, 0x93, 0x15, 0xc3, 0xa6, 0x5e, 0x28, 0xed, 0xd7, 0xa5, 0x3d, 0x60, - 0x6e, 0x52, 0x32, 0x60, 0xae, 0x34, 0xcc, 0xba, 0xd4, 0xa5, 0x69, 0xc2, 0xe4, 0x4b, 0x6a, 0x17, - 0x5c, 0x4a, 0x5d, 0x1f, 0x0d, 0x21, 0xb5, 0xe3, 0x1d, 0x83, 0x7b, 0x01, 0x32, 0x4e, 0x82, 0x8e, - 0x74, 0xb8, 0x7d, 0xce, 0x99, 0x18, 0x27, 0x1c, 0x53, 0xdf, 0xe6, 0xdf, 0x25, 0x18, 0x6f, 0x31, - 0x77, 0x1b, 0x7d, 0x5f, 0x9d, 0x83, 0x2a, 0x43, 0xdf, 0xc7, 0xa8, 0xae, 0x2c, 0x2a, 0x4b, 0x93, - 0xa6, 0x94, 0xd4, 0x87, 0x50, 0xa5, 0x91, 0x83, 0x11, 0xab, 0x97, 0x16, 0xcb, 0x4b, 0xb5, 0xd5, - 0x65, 0xfd, 0xf5, 0x58, 0xe8, 0x32, 0xa1, 0xfe, 0x69, 0x12, 0x65, 0xca, 0x60, 0xed, 0x5f, 0x05, - 0xc6, 0x84, 0x46, 0x5d, 0x80, 0x5a, 0x9b, 0x70, 0x7b, 0xd7, 0x72, 0x30, 0xa4, 0x81, 0xac, 0x06, - 0x42, 0xf5, 0x20, 0xd1, 0xa8, 0x1a, 0x4c, 0x7c, 0x1d, 0x93, 0x90, 0x7b, 0xfc, 0xb0, 0x5e, 0x12, - 0xd6, 0x4c, 0x56, 0x3f, 0x84, 0x49, 0xc2, 0xf6, 0xac, 0x4e, 0xe4, 0xd9, 0x58, 0x2f, 0x2f, 0x2a, - 0x4b, 0xb5, 0xd5, 0x1b, 0xba, 0xc4, 0x3b, 0x41, 0x58, 0x97, 0x08, 0xeb, 0xf7, 0xa9, 0x17, 0x9a, - 0x13, 0x84, 0xed, 0x3d, 0x4d, 0x5c, 0x55, 0x1d, 0xae, 0x39, 0x1e, 0x23, 0x6d, 0x1f, 0x2d, 0x12, - 0x73, 0x6a, 0x45, 0xc8, 0xbd, 0x08, 0xeb, 0x95, 0x45, 0x65, 0x69, 0xc2, 0xbc, 0x2a, 0x4d, 0x1b, - 0x31, 0xa7, 0xa6, 0x30, 0xa8, 0x1f, 0x03, 0x60, 0xb7, 0xe3, 0x45, 0x84, 0x7b, 0x34, 0xac, 0x8f, - 0x89, 0x42, 0x9a, 0x9e, 0x62, 0xaf, 0xf7, 0xb0, 0xd7, 0x9f, 0xf5, 0xb0, 0xdf, 0xac, 0xbc, 0xfc, - 0x73, 0x41, 0x31, 0xfb, 0x62, 0xd6, 0x6a, 0xdf, 0xfc, 0xf3, 0xd3, 0x6d, 0x09, 0x62, 0xf3, 0x1e, - 0x5c, 0x96, 0xb0, 0x98, 0xc8, 0x3a, 0x34, 0x64, 0xa8, 0xbe, 0x03, 0x33, 0x89, 0xd1, 0x12, 0xf8, - 0x58, 0x9e, 0xc3, 0xea, 0xca, 0x62, 0x79, 0xa9, 0x62, 0x4e, 0x25, 0x5a, 0x81, 0xd4, 0x63, 0x87, - 0x35, 0x7f, 0x28, 0xc3, 0xb5, 0x16, 0x73, 0x3f, 0xef, 0x38, 0x84, 0xe3, 0x76, 0xcf, 0xc2, 0x86, - 0xb2, 0xf5, 0x0c, 0xc6, 0x63, 0xe1, 0xdb, 0xa3, 0x6b, 0xad, 0x00, 0x5d, 0xf9, 0xec, 0x7a, 0xaa, - 0x30, 0x7b, 0xa9, 0xb4, 0xef, 0x4a, 0x50, 0x4d, 0x75, 0x6a, 0x13, 0xa6, 0x4f, 0xb5, 0x2d, 0xea, - 0x57, 0xcc, 0x5a, 0x5f, 0xd7, 0xea, 0x5b, 0x30, 0x15, 0xe2, 0x81, 0x95, 0x23, 0xb1, 0x16, 0xe2, - 0xc1, 0x67, 0x3d, 0x1e, 0xd7, 0x61, 0x3a, 0x71, 0xb9, 0x00, 0x97, 0x49, 0xf8, 0xc6, 0xa8, 0x74, - 0x3e, 0x82, 0x99, 0xa4, 0xdc, 0x08, 0x94, 0x26, 0x6d, 0x3e, 0x1c, 0xc2, 0xea, 0x3c, 0xbc, 0x79, - 0x06, 0x7a, 0x3d, 0x86, 0x9b, 0x5f, 0x82, 0xda, 0x62, 0xee, 0x7d, 0x12, 0xda, 0xe8, 0x67, 0xe6, - 0xa1, 0xcc, 0x0d, 0x00, 0x5b, 0x1a, 0x00, 0xf6, 0x74, 0xf5, 0x9b, 0xa0, 0x0d, 0xa6, 0xcf, 0x8a, - 0xff, 0x5a, 0x86, 0xa9, 0x16, 0x73, 0x37, 0xe3, 0xc3, 0x07, 0x5e, 0x84, 0x36, 0x57, 0x67, 0x61, - 0xac, 0x1d, 0x1f, 0x66, 0x65, 0x53, 0x41, 0x7d, 0x92, 0x9b, 0xee, 0xd5, 0x02, 0xd7, 0x25, 0xcb, - 0x99, 0x1b, 0xf1, 0xdf, 0x4a, 0xbd, 0x11, 0x2f, 0x70, 0x96, 0x53, 0x53, 0x5e, 0x1e, 0x9c, 0xf2, - 0xb6, 0xe7, 0xc8, 0x9b, 0x51, 0x39, 0x77, 0xca, 0xdb, 0x9e, 0xf3, 0xda, 0x6b, 0x31, 0x36, 0xec, - 0x5a, 0xdc, 0x83, 0xeb, 0xa9, 0x4b, 0x80, 0x21, 0xb7, 0xbe, 0x8a, 0x23, 0x8f, 0x39, 0x9e, 0x2d, - 0xee, 0x47, 0x55, 0xb4, 0x34, 0x77, 0x62, 0x7e, 0xd2, 0x67, 0x55, 0xdf, 0x83, 0xab, 0x7d, 0x81, - 0x11, 0x12, 0x46, 0xc3, 0xfa, 0xb8, 0x08, 0xb9, 0x72, 0x62, 0x30, 0x85, 0x5e, 0xbd, 0x0b, 0x33, - 0x01, 0xe9, 0x5a, 0x3b, 0x88, 0x16, 0x09, 0x68, 0x1c, 0xf2, 0xfa, 0x44, 0xe2, 0xb9, 0x39, 0xf3, - 0xfb, 0xcf, 0xcb, 0x20, 0x4f, 0xf5, 0x38, 0xe4, 0xe6, 0x54, 0x40, 0xba, 0x5b, 0x88, 0x1b, 0xc2, - 0x67, 0x0d, 0x12, 0xae, 0x53, 0x96, 0x9a, 0x73, 0x30, 0xdb, 0x8f, 0x7b, 0x46, 0xf2, 0x8f, 0x8a, - 0xb8, 0x62, 0x1b, 0x8e, 0xb3, 0xe1, 0xfb, 0xf4, 0x00, 0x9d, 0x74, 0x81, 0xde, 0x84, 0x49, 0x12, - 0xf3, 0x5d, 0x1a, 0x25, 0xd8, 0xa6, 0x74, 0x9f, 0x28, 0xd4, 0x79, 0x80, 0x36, 0x09, 0xf7, 0xe4, - 0xfa, 0x4d, 0x67, 0x73, 0x32, 0xd1, 0xa4, 0xc1, 0x6f, 0xc3, 0xb4, 0xe3, 0xb1, 0x8e, 0x4f, 0x0e, - 0xa5, 0x47, 0x4a, 0xce, 0x94, 0x54, 0x66, 0x2b, 0x1a, 0xbb, 0x1d, 0x1a, 0x62, 0xc8, 0x05, 0x3f, - 0xd3, 0x66, 0x26, 0xaf, 0xcd, 0x24, 0x8d, 0x9f, 0xd4, 0x93, 0xf7, 0x34, 0xd7, 0x63, 0x76, 0x84, - 0x4f, 0xe0, 0x8d, 0x16, 0x73, 0x4d, 0x0c, 0xe8, 0x3e, 0x5e, 0xe0, 0x10, 0xb3, 0x30, 0xd6, 0xdf, - 0x7f, 0x2a, 0x34, 0x17, 0x60, 0xfe, 0xcc, 0x64, 0x59, 0xb5, 0x17, 0x29, 0x60, 0x8f, 0xe8, 0xfe, - 0x36, 0xf2, 0x2d, 0xc4, 0xa7, 0x24, 0x22, 0x01, 0x3b, 0xa7, 0xd6, 0x3a, 0x54, 0x76, 0x50, 0x2c, - 0xd4, 0xe4, 0x22, 0xbe, 0x7b, 0xde, 0x84, 0x64, 0x69, 0x4d, 0x11, 0x36, 0x04, 0x8f, 0x5c, 0x0b, - 0xbd, 0x0e, 0x57, 0xff, 0xab, 0x42, 0xb9, 0xc5, 0x5c, 0xf5, 0x39, 0x54, 0xc4, 0xb3, 0x7c, 0xab, - 0xe0, 0x73, 0xab, 0x19, 0x05, 0x1d, 0xb3, 0x07, 0xe8, 0x5b, 0x05, 0xae, 0x0c, 0xbc, 0x2b, 0x77, - 0x46, 0x78, 0x2e, 0xb4, 0x8f, 0x46, 0x08, 0xca, 0xda, 0x78, 0xa1, 0xc0, 0xe5, 0xfc, 0x8e, 0x2c, - 0xb2, 0x85, 0x72, 0x31, 0xda, 0xda, 0xc5, 0x63, 0xb2, 0x1e, 0x28, 0x4c, 0x9e, 0x2c, 0xca, 0xf7, - 0x2f, 0xb2, 0x02, 0xb5, 0xbb, 0x17, 0xf1, 0x3e, 0x75, 0xe8, 0xfc, 0xd4, 0x16, 0x39, 0x74, 0x2e, - 0xa6, 0xd0, 0xa1, 0x87, 0x4c, 0x9e, 0xfa, 0xbd, 0x02, 0xea, 0x19, 0x73, 0xf7, 0x41, 0x81, 0x94, - 0x83, 0x61, 0xda, 0xfa, 0x48, 0x61, 0xa7, 0x00, 0xc9, 0x4f, 0x65, 0x11, 0x40, 0x72, 0x31, 0x85, - 0x00, 0x19, 0x32, 0x7a, 0x9b, 0xcf, 0x7f, 0x39, 0x6a, 0x28, 0xaf, 0x8e, 0x1a, 0xca, 0x5f, 0x47, - 0x0d, 0xe5, 0xe5, 0x71, 0xe3, 0xd2, 0xab, 0xe3, 0xc6, 0xa5, 0x3f, 0x8e, 0x1b, 0x97, 0xbe, 0xd8, - 0x72, 0x3d, 0xbe, 0x1b, 0xb7, 0x75, 0x9b, 0x06, 0x86, 0xc8, 0xbf, 0x1c, 0x22, 0x3f, 0xa0, 0xd1, - 0x9e, 0x94, 0x7c, 0x74, 0x5c, 0x8c, 0x8c, 0xee, 0x90, 0xbf, 0x6e, 0x7e, 0xd8, 0x41, 0x96, 0xfc, - 0xfb, 0x57, 0xc5, 0x6f, 0xc6, 0x9d, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x79, 0x80, 0xf5, 0x16, - 0x78, 0x0c, 0x00, 0x00, + 0x42, 0x42, 0xe2, 0xd4, 0x33, 0x47, 0xfe, 0x02, 0x0e, 0xfc, 0x11, 0x08, 0x2e, 0x15, 0x27, 0x6e, + 0xa0, 0x44, 0x82, 0x1b, 0x67, 0x8e, 0xc8, 0xe3, 0x59, 0x67, 0xe3, 0xcd, 0x36, 0xce, 0xde, 0xf2, + 0x7e, 0x7c, 0xef, 0xbd, 0xf9, 0xbe, 0x79, 0xe3, 0x0d, 0xdc, 0x8a, 0xd0, 0xc5, 0xd0, 0x40, 0x9b, + 0xda, 0x11, 0x3a, 0x1e, 0x37, 0x02, 0x12, 0xed, 0x21, 0xef, 0xf8, 0xc4, 0x46, 0x63, 0x7f, 0xc5, + 0xe0, 0x5d, 0xbd, 0x13, 0x51, 0x4e, 0xd5, 0x86, 0x48, 0xd4, 0xb3, 0x44, 0xbd, 0x2f, 0x51, 0xdf, + 0x5f, 0xd1, 0x1a, 0x36, 0x65, 0x01, 0x65, 0x46, 0x9b, 0xb0, 0x04, 0xd8, 0x46, 0x4e, 0x56, 0x0c, + 0x9b, 0x7a, 0x61, 0x8a, 0xd7, 0xae, 0xcb, 0x78, 0xc0, 0xdc, 0xa4, 0x6e, 0xc0, 0x5c, 0x19, 0xb8, + 0x91, 0x06, 0x2c, 0x61, 0x19, 0xa9, 0x21, 0x43, 0xb3, 0x2e, 0x75, 0x69, 0xea, 0x4f, 0xfe, 0x92, + 0xde, 0x05, 0x97, 0x52, 0xd7, 0x47, 0x43, 0x58, 0xed, 0x78, 0xc7, 0xe0, 0x5e, 0x80, 0x8c, 0x93, + 0xa0, 0x23, 0x13, 0x6e, 0x9f, 0x73, 0x26, 0xc6, 0x09, 0xc7, 0x34, 0xb7, 0xf9, 0x77, 0x09, 0xc6, + 0x5b, 0xcc, 0xdd, 0x46, 0xdf, 0x57, 0xe7, 0xa0, 0xca, 0xd0, 0xf7, 0x31, 0xaa, 0x2b, 0x8b, 0xca, + 0xd2, 0xa4, 0x29, 0x2d, 0xf5, 0x21, 0x54, 0x69, 0xe4, 0x60, 0xc4, 0xea, 0xa5, 0xc5, 0xf2, 0x52, + 0x6d, 0x75, 0x59, 0x7f, 0x3d, 0x17, 0xba, 0x2c, 0xa8, 0x7f, 0x9a, 0xa0, 0x4c, 0x09, 0xd6, 0xfe, + 0x55, 0x60, 0x4c, 0x78, 0xd4, 0x05, 0xa8, 0xb5, 0x09, 0xb7, 0x77, 0x2d, 0x07, 0x43, 0x1a, 0xc8, + 0x6e, 0x20, 0x5c, 0x0f, 0x12, 0x8f, 0xaa, 0xc1, 0xc4, 0xd7, 0x31, 0x09, 0xb9, 0xc7, 0x0f, 0xeb, + 0x25, 0x11, 0xcd, 0x6c, 0xf5, 0x43, 0x98, 0x24, 0x6c, 0xcf, 0xea, 0x44, 0x9e, 0x8d, 0xf5, 0xf2, + 0xa2, 0xb2, 0x54, 0x5b, 0xbd, 0xa1, 0x4b, 0xda, 0x12, 0xf2, 0x75, 0x49, 0xbe, 0x7e, 0x9f, 0x7a, + 0xa1, 0x39, 0x41, 0xd8, 0xde, 0xd3, 0x24, 0x55, 0xd5, 0xe1, 0x9a, 0xe3, 0x31, 0xd2, 0xf6, 0xd1, + 0x22, 0x31, 0xa7, 0x56, 0x84, 0xdc, 0x8b, 0xb0, 0x5e, 0x59, 0x54, 0x96, 0x26, 0xcc, 0xab, 0x32, + 0xb4, 0x11, 0x73, 0x6a, 0x8a, 0x80, 0xfa, 0x31, 0x00, 0x76, 0x3b, 0x5e, 0x44, 0xb8, 0x47, 0xc3, + 0xfa, 0x98, 0x68, 0xa4, 0xe9, 0x29, 0xf7, 0x7a, 0x8f, 0x7b, 0xfd, 0x59, 0x8f, 0xfb, 0xcd, 0xca, + 0xcb, 0x3f, 0x17, 0x14, 0xb3, 0x0f, 0xb3, 0x56, 0xfb, 0xe6, 0x9f, 0x9f, 0x6e, 0x4b, 0x12, 0x9b, + 0xf7, 0xe0, 0xb2, 0xa4, 0xc5, 0x44, 0xd6, 0xa1, 0x21, 0x43, 0xf5, 0x1d, 0x98, 0x49, 0x82, 0x96, + 0xe0, 0xc7, 0xf2, 0x1c, 0x56, 0x57, 0x16, 0xcb, 0x4b, 0x15, 0x73, 0x2a, 0xf1, 0x0a, 0xa6, 0x1e, + 0x3b, 0xac, 0xf9, 0x43, 0x19, 0xae, 0xb5, 0x98, 0xfb, 0x79, 0xc7, 0x21, 0x1c, 0xb7, 0x7b, 0x11, + 0x36, 0x54, 0xad, 0x67, 0x30, 0x1e, 0x8b, 0xdc, 0x9e, 0x5c, 0x6b, 0x05, 0xe4, 0xca, 0x57, 0xd7, + 0x53, 0x87, 0xd9, 0x2b, 0xa5, 0x7d, 0x57, 0x82, 0x6a, 0xea, 0x53, 0x9b, 0x30, 0x7d, 0x6a, 0x6c, + 0xd1, 0xbf, 0x62, 0xd6, 0xfa, 0xa6, 0x56, 0xdf, 0x82, 0xa9, 0x10, 0x0f, 0xac, 0x9c, 0x88, 0xb5, + 0x10, 0x0f, 0x3e, 0xeb, 0xe9, 0xb8, 0x0e, 0xd3, 0x49, 0xca, 0x05, 0xb4, 0x4c, 0xe0, 0x1b, 0xa3, + 0xca, 0xf9, 0x08, 0x66, 0x92, 0x76, 0x23, 0x48, 0x9a, 0x8c, 0xf9, 0x70, 0x88, 0xaa, 0xf3, 0xf0, + 0xe6, 0x19, 0xec, 0xf5, 0x14, 0x6e, 0x7e, 0x09, 0x6a, 0x8b, 0xb9, 0xf7, 0x49, 0x68, 0xa3, 0x9f, + 0x85, 0x87, 0x2a, 0x37, 0x40, 0x6c, 0x69, 0x80, 0xd8, 0xd3, 0xdd, 0x6f, 0x82, 0x36, 0x58, 0x3e, + 0x6b, 0xfe, 0x6b, 0x19, 0xa6, 0x5a, 0xcc, 0xdd, 0x8c, 0x0f, 0x1f, 0x78, 0x11, 0xda, 0x5c, 0x9d, + 0x85, 0xb1, 0x76, 0x7c, 0x98, 0xb5, 0x4d, 0x0d, 0xf5, 0x49, 0x6e, 0xbb, 0x57, 0x0b, 0x5c, 0x97, + 0xac, 0x66, 0x6e, 0xc5, 0x7f, 0x2b, 0xf5, 0x56, 0xbc, 0xc0, 0x59, 0x4e, 0x6d, 0x79, 0x79, 0x70, + 0xcb, 0xdb, 0x9e, 0x23, 0x6f, 0x46, 0xe5, 0xdc, 0x2d, 0x6f, 0x7b, 0xce, 0x6b, 0xaf, 0xc5, 0xd8, + 0xb0, 0x6b, 0x71, 0x0f, 0xae, 0xa7, 0x29, 0x01, 0x86, 0xdc, 0xfa, 0x2a, 0x8e, 0x3c, 0xe6, 0x78, + 0xb6, 0xb8, 0x1f, 0x55, 0x31, 0xd2, 0xdc, 0x49, 0xf8, 0x49, 0x5f, 0x54, 0x7d, 0x0f, 0xae, 0xf6, + 0x01, 0x23, 0x24, 0x8c, 0x86, 0xf5, 0x71, 0x01, 0xb9, 0x72, 0x12, 0x30, 0x85, 0x5f, 0xbd, 0x0b, + 0x33, 0x01, 0xe9, 0x5a, 0x3b, 0x88, 0x16, 0x09, 0x68, 0x1c, 0xf2, 0xfa, 0x44, 0x92, 0xb9, 0x39, + 0xf3, 0xfb, 0xcf, 0xcb, 0x20, 0x4f, 0xf5, 0x38, 0xe4, 0xe6, 0x54, 0x40, 0xba, 0x5b, 0x88, 0x1b, + 0x22, 0x67, 0x0d, 0x12, 0xad, 0x53, 0x95, 0x9a, 0x73, 0x30, 0xdb, 0xcf, 0x7b, 0x26, 0xf2, 0x8f, + 0x8a, 0xb8, 0x62, 0x1b, 0x8e, 0xb3, 0xe1, 0xfb, 0xf4, 0x00, 0x9d, 0xf4, 0x01, 0xbd, 0x09, 0x93, + 0x24, 0xe6, 0xbb, 0x34, 0x4a, 0xb8, 0x4d, 0xe5, 0x3e, 0x71, 0xa8, 0xf3, 0x00, 0x6d, 0x12, 0xee, + 0xc9, 0xe7, 0x37, 0xdd, 0xcd, 0xc9, 0xc4, 0x93, 0x82, 0xdf, 0x86, 0x69, 0xc7, 0x63, 0x1d, 0x9f, + 0x1c, 0xca, 0x8c, 0x54, 0x9c, 0x29, 0xe9, 0xcc, 0x9e, 0x68, 0xec, 0x76, 0x68, 0x88, 0x21, 0x17, + 0xfa, 0x4c, 0x9b, 0x99, 0xbd, 0x36, 0x93, 0x0c, 0x7e, 0xd2, 0x4f, 0xde, 0xd3, 0xdc, 0x8c, 0xd9, + 0x11, 0x3e, 0x81, 0x37, 0x5a, 0xcc, 0x35, 0x31, 0xa0, 0xfb, 0x78, 0x81, 0x43, 0xcc, 0xc2, 0x58, + 0xff, 0xfc, 0xa9, 0xd1, 0x5c, 0x80, 0xf9, 0x33, 0x8b, 0x65, 0xdd, 0x5e, 0xa4, 0x84, 0x3d, 0xa2, + 0xfb, 0xdb, 0xc8, 0xb7, 0x10, 0x9f, 0x92, 0x88, 0x04, 0xec, 0x9c, 0x5e, 0xeb, 0x50, 0xd9, 0x41, + 0xf1, 0xa0, 0x26, 0x17, 0xf1, 0xdd, 0xf3, 0x36, 0x24, 0x2b, 0x6b, 0x0a, 0xd8, 0x10, 0x3e, 0x72, + 0x23, 0xf4, 0x26, 0x5c, 0xfd, 0xaf, 0x0a, 0xe5, 0x16, 0x73, 0xd5, 0xe7, 0x50, 0x11, 0x9f, 0xe5, + 0x5b, 0x05, 0x3f, 0xb7, 0x9a, 0x51, 0x30, 0x31, 0xfb, 0x00, 0x7d, 0xab, 0xc0, 0x95, 0x81, 0xef, + 0xca, 0x9d, 0x11, 0x3e, 0x17, 0xda, 0x47, 0x23, 0x80, 0xb2, 0x31, 0x5e, 0x28, 0x70, 0x39, 0xff, + 0x46, 0x16, 0x79, 0x85, 0x72, 0x18, 0x6d, 0xed, 0xe2, 0x98, 0x6c, 0x06, 0x0a, 0x93, 0x27, 0x0f, + 0xe5, 0xfb, 0x17, 0x79, 0x02, 0xb5, 0xbb, 0x17, 0xc9, 0x3e, 0x75, 0xe8, 0xfc, 0xd6, 0x16, 0x39, + 0x74, 0x0e, 0x53, 0xe8, 0xd0, 0x43, 0x36, 0x4f, 0xfd, 0x5e, 0x01, 0xf5, 0x8c, 0xbd, 0xfb, 0xa0, + 0x40, 0xc9, 0x41, 0x98, 0xb6, 0x3e, 0x12, 0xec, 0x14, 0x21, 0xf9, 0xad, 0x2c, 0x42, 0x48, 0x0e, + 0x53, 0x88, 0x90, 0x21, 0xab, 0xb7, 0xf9, 0xfc, 0x97, 0xa3, 0x86, 0xf2, 0xea, 0xa8, 0xa1, 0xfc, + 0x75, 0xd4, 0x50, 0x5e, 0x1e, 0x37, 0x2e, 0xbd, 0x3a, 0x6e, 0x5c, 0xfa, 0xe3, 0xb8, 0x71, 0xe9, + 0x8b, 0x2d, 0xd7, 0xe3, 0xbb, 0x71, 0x5b, 0xb7, 0x69, 0x60, 0x88, 0xfa, 0xcb, 0x21, 0xf2, 0x03, + 0x1a, 0xed, 0x49, 0xcb, 0x47, 0xc7, 0xc5, 0xc8, 0xe8, 0x0e, 0xf9, 0xd5, 0xcd, 0x0f, 0x3b, 0xc8, + 0x92, 0x7f, 0x0b, 0xaa, 0xe2, 0x67, 0xc6, 0x9d, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x07, 0xda, + 0x17, 0x15, 0x78, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used.