diff --git a/api/regen/ecocredit/v1/tx.pulsar.go b/api/regen/ecocredit/v1/tx.pulsar.go index 2713b0230b..db484c19fc 100644 --- a/api/regen/ecocredit/v1/tx.pulsar.go +++ b/api/regen/ecocredit/v1/tx.pulsar.go @@ -1188,7 +1188,7 @@ func (x *fastReflection_MsgCreateClassResponse) ProtoMethods() *protoiface.Metho var ( md_MsgCreateProject protoreflect.MessageDescriptor - fd_MsgCreateProject_issuer protoreflect.FieldDescriptor + fd_MsgCreateProject_admin protoreflect.FieldDescriptor fd_MsgCreateProject_class_id protoreflect.FieldDescriptor fd_MsgCreateProject_metadata protoreflect.FieldDescriptor fd_MsgCreateProject_jurisdiction protoreflect.FieldDescriptor @@ -1198,7 +1198,7 @@ var ( func init() { file_regen_ecocredit_v1_tx_proto_init() md_MsgCreateProject = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCreateProject") - fd_MsgCreateProject_issuer = md_MsgCreateProject.Fields().ByName("issuer") + fd_MsgCreateProject_admin = md_MsgCreateProject.Fields().ByName("admin") fd_MsgCreateProject_class_id = md_MsgCreateProject.Fields().ByName("class_id") fd_MsgCreateProject_metadata = md_MsgCreateProject.Fields().ByName("metadata") fd_MsgCreateProject_jurisdiction = md_MsgCreateProject.Fields().ByName("jurisdiction") @@ -1270,9 +1270,9 @@ func (x *fastReflection_MsgCreateProject) Interface() protoreflect.ProtoMessage // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_MsgCreateProject) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Issuer != "" { - value := protoreflect.ValueOfString(x.Issuer) - if !f(fd_MsgCreateProject_issuer, value) { + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgCreateProject_admin, value) { return } } @@ -1315,8 +1315,8 @@ func (x *fastReflection_MsgCreateProject) Range(f func(protoreflect.FieldDescrip // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgCreateProject) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateProject.issuer": - return x.Issuer != "" + case "regen.ecocredit.v1.MsgCreateProject.admin": + return x.Admin != "" case "regen.ecocredit.v1.MsgCreateProject.class_id": return x.ClassId != "" case "regen.ecocredit.v1.MsgCreateProject.metadata": @@ -1341,8 +1341,8 @@ func (x *fastReflection_MsgCreateProject) Has(fd protoreflect.FieldDescriptor) b // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCreateProject) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateProject.issuer": - x.Issuer = "" + case "regen.ecocredit.v1.MsgCreateProject.admin": + x.Admin = "" case "regen.ecocredit.v1.MsgCreateProject.class_id": x.ClassId = "" case "regen.ecocredit.v1.MsgCreateProject.metadata": @@ -1367,8 +1367,8 @@ func (x *fastReflection_MsgCreateProject) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgCreateProject) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgCreateProject.issuer": - value := x.Issuer + case "regen.ecocredit.v1.MsgCreateProject.admin": + value := x.Admin return protoreflect.ValueOfString(value) case "regen.ecocredit.v1.MsgCreateProject.class_id": value := x.ClassId @@ -1402,8 +1402,8 @@ func (x *fastReflection_MsgCreateProject) Get(descriptor protoreflect.FieldDescr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCreateProject) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateProject.issuer": - x.Issuer = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateProject.admin": + x.Admin = value.Interface().(string) case "regen.ecocredit.v1.MsgCreateProject.class_id": x.ClassId = value.Interface().(string) case "regen.ecocredit.v1.MsgCreateProject.metadata": @@ -1432,8 +1432,8 @@ 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.issuer": - panic(fmt.Errorf("field issuer of message regen.ecocredit.v1.MsgCreateProject is not mutable")) + 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": panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgCreateProject is not mutable")) case "regen.ecocredit.v1.MsgCreateProject.metadata": @@ -1455,7 +1455,7 @@ func (x *fastReflection_MsgCreateProject) Mutable(fd protoreflect.FieldDescripto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgCreateProject) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateProject.issuer": + case "regen.ecocredit.v1.MsgCreateProject.admin": return protoreflect.ValueOfString("") case "regen.ecocredit.v1.MsgCreateProject.class_id": return protoreflect.ValueOfString("") @@ -1534,7 +1534,7 @@ func (x *fastReflection_MsgCreateProject) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Issuer) + l = len(x.Admin) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -1611,10 +1611,10 @@ func (x *fastReflection_MsgCreateProject) ProtoMethods() *protoiface.Methods { 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 } @@ -1669,7 +1669,7 @@ func (x *fastReflection_MsgCreateProject) ProtoMethods() *protoiface.Methods { 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 { @@ -1697,7 +1697,7 @@ func (x *fastReflection_MsgCreateProject) 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 { @@ -3324,31 +3324,25 @@ func (x *fastReflection_MsgCreateBatch) ProtoMethods() *protoiface.Methods { } var ( - md_BatchIssuance protoreflect.MessageDescriptor - fd_BatchIssuance_recipient protoreflect.FieldDescriptor - fd_BatchIssuance_tradable_amount protoreflect.FieldDescriptor - fd_BatchIssuance_retired_amount protoreflect.FieldDescriptor - fd_BatchIssuance_retirement_jurisdiction protoreflect.FieldDescriptor + md_MsgCreateBatchResponse protoreflect.MessageDescriptor + fd_MsgCreateBatchResponse_batch_denom protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_BatchIssuance = File_regen_ecocredit_v1_tx_proto.Messages().ByName("BatchIssuance") - fd_BatchIssuance_recipient = md_BatchIssuance.Fields().ByName("recipient") - fd_BatchIssuance_tradable_amount = md_BatchIssuance.Fields().ByName("tradable_amount") - fd_BatchIssuance_retired_amount = md_BatchIssuance.Fields().ByName("retired_amount") - fd_BatchIssuance_retirement_jurisdiction = md_BatchIssuance.Fields().ByName("retirement_jurisdiction") + 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_BatchIssuance)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateBatchResponse)(nil) -type fastReflection_BatchIssuance BatchIssuance +type fastReflection_MsgCreateBatchResponse MsgCreateBatchResponse -func (x *BatchIssuance) ProtoReflect() protoreflect.Message { - return (*fastReflection_BatchIssuance)(x) +func (x *MsgCreateBatchResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateBatchResponse)(x) } -func (x *BatchIssuance) slowProtoReflect() protoreflect.Message { +func (x *MsgCreateBatchResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3360,43 +3354,43 @@ func (x *BatchIssuance) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_BatchIssuance_messageType fastReflection_BatchIssuance_messageType -var _ protoreflect.MessageType = fastReflection_BatchIssuance_messageType{} +var _fastReflection_MsgCreateBatchResponse_messageType fastReflection_MsgCreateBatchResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateBatchResponse_messageType{} -type fastReflection_BatchIssuance_messageType struct{} +type fastReflection_MsgCreateBatchResponse_messageType struct{} -func (x fastReflection_BatchIssuance_messageType) Zero() protoreflect.Message { - return (*fastReflection_BatchIssuance)(nil) +func (x fastReflection_MsgCreateBatchResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateBatchResponse)(nil) } -func (x fastReflection_BatchIssuance_messageType) New() protoreflect.Message { - return new(fastReflection_BatchIssuance) +func (x fastReflection_MsgCreateBatchResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateBatchResponse) } -func (x fastReflection_BatchIssuance_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_BatchIssuance +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_BatchIssuance) Descriptor() protoreflect.MessageDescriptor { - return md_BatchIssuance +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_BatchIssuance) Type() protoreflect.MessageType { - return _fastReflection_BatchIssuance_messageType +func (x *fastReflection_MsgCreateBatchResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateBatchResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_BatchIssuance) New() protoreflect.Message { - return new(fastReflection_BatchIssuance) +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_BatchIssuance) Interface() protoreflect.ProtoMessage { - return (*BatchIssuance)(x) +func (x *fastReflection_MsgCreateBatchResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateBatchResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3404,28 +3398,10 @@ func (x *fastReflection_BatchIssuance) 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_BatchIssuance) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Recipient != "" { - value := protoreflect.ValueOfString(x.Recipient) - if !f(fd_BatchIssuance_recipient, value) { - return - } - } - if x.TradableAmount != "" { - value := protoreflect.ValueOfString(x.TradableAmount) - if !f(fd_BatchIssuance_tradable_amount, value) { - return - } - } - if x.RetiredAmount != "" { - value := protoreflect.ValueOfString(x.RetiredAmount) - if !f(fd_BatchIssuance_retired_amount, value) { - return - } - } - if x.RetirementJurisdiction != "" { - value := protoreflect.ValueOfString(x.RetirementJurisdiction) - if !f(fd_BatchIssuance_retirement_jurisdiction, value) { +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) { return } } @@ -3442,21 +3418,15 @@ func (x *fastReflection_BatchIssuance) 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_BatchIssuance) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCreateBatchResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.BatchIssuance.recipient": - return x.Recipient != "" - case "regen.ecocredit.v1.BatchIssuance.tradable_amount": - return x.TradableAmount != "" - case "regen.ecocredit.v1.BatchIssuance.retired_amount": - return x.RetiredAmount != "" - case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": - return x.RetirementJurisdiction != "" + case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": + return x.BatchDenom != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.BatchIssuance")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) } } @@ -3466,21 +3436,15 @@ func (x *fastReflection_BatchIssuance) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BatchIssuance) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateBatchResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.BatchIssuance.recipient": - x.Recipient = "" - case "regen.ecocredit.v1.BatchIssuance.tradable_amount": - x.TradableAmount = "" - case "regen.ecocredit.v1.BatchIssuance.retired_amount": - x.RetiredAmount = "" - case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": - x.RetirementJurisdiction = "" + case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": + x.BatchDenom = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.BatchIssuance")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) } } @@ -3490,25 +3454,16 @@ func (x *fastReflection_BatchIssuance) 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_BatchIssuance) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateBatchResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.BatchIssuance.recipient": - value := x.Recipient - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.BatchIssuance.tradable_amount": - value := x.TradableAmount - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.BatchIssuance.retired_amount": - value := x.RetiredAmount - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": - value := x.RetirementJurisdiction + case "regen.ecocredit.v1.MsgCreateBatchResponse.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.BatchIssuance")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", descriptor.FullName())) } } @@ -3522,21 +3477,15 @@ func (x *fastReflection_BatchIssuance) Get(descriptor protoreflect.FieldDescript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BatchIssuance) 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.BatchIssuance.recipient": - x.Recipient = value.Interface().(string) - case "regen.ecocredit.v1.BatchIssuance.tradable_amount": - x.TradableAmount = value.Interface().(string) - case "regen.ecocredit.v1.BatchIssuance.retired_amount": - x.RetiredAmount = value.Interface().(string) - case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": - x.RetirementJurisdiction = value.Interface().(string) + case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": + x.BatchDenom = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.BatchIssuance")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) } } @@ -3550,52 +3499,40 @@ func (x *fastReflection_BatchIssuance) Set(fd protoreflect.FieldDescriptor, valu // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BatchIssuance) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateBatchResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.BatchIssuance.recipient": - panic(fmt.Errorf("field recipient of message regen.ecocredit.v1.BatchIssuance is not mutable")) - case "regen.ecocredit.v1.BatchIssuance.tradable_amount": - panic(fmt.Errorf("field tradable_amount of message regen.ecocredit.v1.BatchIssuance is not mutable")) - case "regen.ecocredit.v1.BatchIssuance.retired_amount": - panic(fmt.Errorf("field retired_amount of message regen.ecocredit.v1.BatchIssuance is not mutable")) - case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": - panic(fmt.Errorf("field retirement_jurisdiction of message regen.ecocredit.v1.BatchIssuance 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.BatchIssuance")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance 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_BatchIssuance) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateBatchResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.BatchIssuance.recipient": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.BatchIssuance.tradable_amount": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.BatchIssuance.retired_amount": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": + 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.BatchIssuance")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCreateBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance 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_BatchIssuance) 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.BatchIssuance", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCreateBatchResponse", d.FullName())) } panic("unreachable") } @@ -3603,7 +3540,7 @@ func (x *fastReflection_BatchIssuance) 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_BatchIssuance) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateBatchResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3614,7 +3551,7 @@ func (x *fastReflection_BatchIssuance) 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_BatchIssuance) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateBatchResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3626,7 +3563,7 @@ func (x *fastReflection_BatchIssuance) 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_BatchIssuance) IsValid() bool { +func (x *fastReflection_MsgCreateBatchResponse) IsValid() bool { return x != nil } @@ -3636,9 +3573,9 @@ func (x *fastReflection_BatchIssuance) 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_BatchIssuance) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*BatchIssuance) + x := input.Message.Interface().(*MsgCreateBatchResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3650,19 +3587,7 @@ func (x *fastReflection_BatchIssuance) 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.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) + l = len(x.BatchDenom) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -3676,7 +3601,7 @@ func (x *fastReflection_BatchIssuance) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*BatchIssuance) + x := input.Message.Interface().(*MsgCreateBatchResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3695,31 +3620,10 @@ func (x *fastReflection_BatchIssuance) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - 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.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 } @@ -3734,7 +3638,7 @@ func (x *fastReflection_BatchIssuance) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*BatchIssuance) + x := input.Message.Interface().(*MsgCreateBatchResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3766,47 +3670,15 @@ func (x *fastReflection_BatchIssuance) 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: BatchIssuance: 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: BatchIssuance: 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: 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 TradableAmount", 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 { @@ -3834,86 +3706,22 @@ func (x *fastReflection_BatchIssuance) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TradableAmount = string(dAtA[iNdEx:postIndex]) + 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 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 + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - postIndex := iNdEx + intStringLen - 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.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 - 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 } @@ -3935,26 +3743,85 @@ func (x *fastReflection_BatchIssuance) ProtoMethods() *protoiface.Methods { } } +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_MsgCreateBatchResponse protoreflect.MessageDescriptor - fd_MsgCreateBatchResponse_batch_denom protoreflect.FieldDescriptor + 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 + fd_MsgMintBatchCredits_note 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_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") + fd_MsgMintBatchCredits_note = md_MsgMintBatchCredits.Fields().ByName("note") } -var _ protoreflect.Message = (*fastReflection_MsgCreateBatchResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgMintBatchCredits)(nil) -type fastReflection_MsgCreateBatchResponse MsgCreateBatchResponse +type fastReflection_MsgMintBatchCredits MsgMintBatchCredits -func (x *MsgCreateBatchResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateBatchResponse)(x) +func (x *MsgMintBatchCredits) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgMintBatchCredits)(x) } -func (x *MsgCreateBatchResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgMintBatchCredits) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3966,43 +3833,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_MsgMintBatchCredits_messageType fastReflection_MsgMintBatchCredits_messageType +var _ protoreflect.MessageType = fastReflection_MsgMintBatchCredits_messageType{} -type fastReflection_MsgCreateBatchResponse_messageType struct{} +type fastReflection_MsgMintBatchCredits_messageType struct{} -func (x fastReflection_MsgCreateBatchResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateBatchResponse)(nil) +func (x fastReflection_MsgMintBatchCredits_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgMintBatchCredits)(nil) } -func (x fastReflection_MsgCreateBatchResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateBatchResponse) +func (x fastReflection_MsgMintBatchCredits_messageType) New() protoreflect.Message { + return new(fastReflection_MsgMintBatchCredits) } -func (x fastReflection_MsgCreateBatchResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateBatchResponse +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_MsgCreateBatchResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateBatchResponse +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_MsgCreateBatchResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateBatchResponse_messageType +func (x *fastReflection_MsgMintBatchCredits) Type() protoreflect.MessageType { + return _fastReflection_MsgMintBatchCredits_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateBatchResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateBatchResponse) +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_MsgCreateBatchResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateBatchResponse)(x) +func (x *fastReflection_MsgMintBatchCredits) Interface() protoreflect.ProtoMessage { + return (*MsgMintBatchCredits)(x) } // Range iterates over every populated field in an undefined order, @@ -4010,10 +3877,34 @@ 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) { +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_MsgCreateBatchResponse_batch_denom, value) { + 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 + } + } + if x.Note != "" { + value := protoreflect.ValueOfString(x.Note) + if !f(fd_MsgMintBatchCredits_note, value) { return } } @@ -4030,15 +3921,23 @@ 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_MsgMintBatchCredits) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": + 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.MsgMintBatchCredits.note": + return x.Note != "" 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.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) } } @@ -4048,15 +3947,23 @@ 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_MsgMintBatchCredits) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": + 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.MsgMintBatchCredits.note": + x.Note = "" 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.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) } } @@ -4066,16 +3973,31 @@ 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_MsgMintBatchCredits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": + 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()) + case "regen.ecocredit.v1.MsgMintBatchCredits.note": + value := x.Note + 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.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", descriptor.FullName())) } } @@ -4089,15 +4011,25 @@ 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_MsgMintBatchCredits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": + 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.MsgMintBatchCredits.note": + x.Note = 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.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits does not contain field %s", fd.FullName())) } } @@ -4111,40 +4043,65 @@ 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_MsgMintBatchCredits) 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.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.MsgMintBatchCredits.note": + panic(fmt.Errorf("field note 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.MsgCreateBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse 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_MsgCreateBatchResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintBatchCredits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCreateBatchResponse.batch_denom": + 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()) + case "regen.ecocredit.v1.MsgMintBatchCredits.note": 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.MsgMintBatchCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCreateBatchResponse 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_MsgCreateBatchResponse) 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.MsgCreateBatchResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgMintBatchCredits", d.FullName())) } panic("unreachable") } @@ -4152,7 +4109,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_MsgMintBatchCredits) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4163,7 +4120,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_MsgMintBatchCredits) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4175,7 +4132,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_MsgMintBatchCredits) IsValid() bool { return x != nil } @@ -4185,9 +4142,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_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateBatchResponse) + x := input.Message.Interface().(*MsgMintBatchCredits) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4199,10 +4156,28 @@ func (x *fastReflection_MsgCreateBatchResponse) 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)) } + 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)) + } + l = len(x.Note) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -4213,7 +4188,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().(*MsgMintBatchCredits) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4232,11 +4207,55 @@ func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Note) > 0 { + i -= len(x.Note) + copy(dAtA[i:], x.Note) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Note))) + i-- + dAtA[i] = 0x2a + } + 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 { @@ -4250,7 +4269,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().(*MsgMintBatchCredits) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4282,13 +4301,45 @@ 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: MsgMintBatchCredits: 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: 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) } @@ -4320,1226 +4371,79 @@ func (x *fastReflection_MsgCreateBatchResponse) ProtoMethods() *protoiface.Metho } x.BatchDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { + 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 } - if (skippy < 0) || (iNdEx+skippy) < 0 { + 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 } - 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.OriginTx == nil { + x.OriginTx = &OriginTx{} } - 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 = (*_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 - fd_MsgMintBatchCredits_note 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") - fd_MsgMintBatchCredits_note = md_MsgMintBatchCredits.Fields().ByName("note") -} - -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[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgMintBatchCredits_messageType fastReflection_MsgMintBatchCredits_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintBatchCredits_messageType{} - -type fastReflection_MsgMintBatchCredits_messageType struct{} - -func (x fastReflection_MsgMintBatchCredits_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintBatchCredits)(nil) -} -func (x fastReflection_MsgMintBatchCredits_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintBatchCredits) -} -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_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_MsgMintBatchCredits) Type() protoreflect.MessageType { - return _fastReflection_MsgMintBatchCredits_messageType -} - -// New returns a newly allocated and mutable empty message. -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_MsgMintBatchCredits) Interface() protoreflect.ProtoMessage { - return (*MsgMintBatchCredits)(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_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 - } - } - if x.Note != "" { - value := protoreflect.ValueOfString(x.Note) - if !f(fd_MsgMintBatchCredits_note, 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_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 - case "regen.ecocredit.v1.MsgMintBatchCredits.note": - return x.Note != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits 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_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 - case "regen.ecocredit.v1.MsgMintBatchCredits.note": - x.Note = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits 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_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()) - case "regen.ecocredit.v1.MsgMintBatchCredits.note": - value := x.Note - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits 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_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) - case "regen.ecocredit.v1.MsgMintBatchCredits.note": - x.Note = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgMintBatchCredits 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_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")) - case "regen.ecocredit.v1.MsgMintBatchCredits.note": - panic(fmt.Errorf("field note 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.MsgMintBatchCredits")) - } - 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_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()) - case "regen.ecocredit.v1.MsgMintBatchCredits.note": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgMintBatchCredits")) - } - 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_MsgMintBatchCredits) 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("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_MsgMintBatchCredits) 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_MsgMintBatchCredits) 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_MsgMintBatchCredits) 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_MsgMintBatchCredits) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintBatchCredits) - 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)) - } - 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)) - } - l = len(x.Note) - 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().(*MsgMintBatchCredits) - 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.Note) > 0 { - i -= len(x.Note) - copy(dAtA[i:], x.Note) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Note))) - i-- - dAtA[i] = 0x2a - } - 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 { - 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().(*MsgMintBatchCredits) - 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: MsgMintBatchCredits: 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) - } - 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 - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Note", 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.Note = 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_MsgSealBatch protoreflect.MessageDescriptor - fd_MsgSealBatch_issuer protoreflect.FieldDescriptor - fd_MsgSealBatch_batch_denom 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") -} - -var _ protoreflect.Message = (*fastReflection_MsgSealBatch)(nil) - -type fastReflection_MsgSealBatch MsgSealBatch - -func (x *MsgSealBatch) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSealBatch)(x) -} - -func (x *MsgSealBatch) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgSealBatch_messageType fastReflection_MsgSealBatch_messageType -var _ protoreflect.MessageType = fastReflection_MsgSealBatch_messageType{} - -type fastReflection_MsgSealBatch_messageType struct{} - -func (x fastReflection_MsgSealBatch_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSealBatch)(nil) -} -func (x fastReflection_MsgSealBatch_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSealBatch) -} -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_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_MsgSealBatch) Type() protoreflect.MessageType { - return _fastReflection_MsgSealBatch_messageType -} - -// New returns a newly allocated and mutable empty message. -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_MsgSealBatch) Interface() protoreflect.ProtoMessage { - return (*MsgSealBatch)(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_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. -// -// 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_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.MsgSealBatch")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch 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_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.MsgSealBatch")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch 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_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.MsgSealBatch")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch 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_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.MsgSealBatch")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch 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_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.MsgSealBatch")) - } - 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_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.MsgSealBatch")) - } - 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_MsgSealBatch) 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("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_MsgSealBatch) 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_MsgSealBatch) 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_MsgSealBatch) 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_MsgSealBatch) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSealBatch) - 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)) - } - 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().(*MsgSealBatch) - 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.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().(*MsgSealBatch) - 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: MsgSealBatch: 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) - } - 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 + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OriginTx); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.Issuer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 5: 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 Note", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5567,7 +4471,7 @@ 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.Note = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5622,7 +4526,7 @@ func (x *MsgMintBatchCreditsResponse) ProtoReflect() protoreflect.Message { } func (x *MsgMintBatchCreditsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[9] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5961,24 +4865,28 @@ func (x *fastReflection_MsgMintBatchCreditsResponse) ProtoMethods() *protoiface. } var ( - md_MsgSealBatchResponse 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_MsgSealBatchResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSealBatchResponse") + 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_MsgSealBatchResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSealBatch)(nil) -type fastReflection_MsgSealBatchResponse MsgSealBatchResponse +type fastReflection_MsgSealBatch MsgSealBatch -func (x *MsgSealBatchResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSealBatchResponse)(x) +func (x *MsgSealBatch) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSealBatch)(x) } -func (x *MsgSealBatchResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[10] +func (x *MsgSealBatch) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5989,43 +4897,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_MsgSealBatch_messageType fastReflection_MsgSealBatch_messageType +var _ protoreflect.MessageType = fastReflection_MsgSealBatch_messageType{} -type fastReflection_MsgSealBatchResponse_messageType struct{} +type fastReflection_MsgSealBatch_messageType struct{} -func (x fastReflection_MsgSealBatchResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSealBatchResponse)(nil) +func (x fastReflection_MsgSealBatch_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSealBatch)(nil) } -func (x fastReflection_MsgSealBatchResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSealBatchResponse) +func (x fastReflection_MsgSealBatch_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSealBatch) } -func (x fastReflection_MsgSealBatchResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSealBatchResponse +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_MsgSealBatchResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSealBatchResponse +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_MsgSealBatchResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSealBatchResponse_messageType +func (x *fastReflection_MsgSealBatch) Type() protoreflect.MessageType { + return _fastReflection_MsgSealBatch_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSealBatchResponse) New() protoreflect.Message { - return new(fastReflection_MsgSealBatchResponse) +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_MsgSealBatchResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSealBatchResponse)(x) +func (x *fastReflection_MsgSealBatch) Interface() protoreflect.ProtoMessage { + return (*MsgSealBatch)(x) } // Range iterates over every populated field in an undefined order, @@ -6033,7 +4941,19 @@ 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_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. @@ -6047,13 +4967,17 @@ 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_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.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) } } @@ -6063,13 +4987,17 @@ 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_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.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) } } @@ -6079,13 +5007,19 @@ 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_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.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", descriptor.FullName())) } } @@ -6099,13 +5033,17 @@ 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_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.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatch does not contain field %s", fd.FullName())) } } @@ -6119,36 +5057,44 @@ 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_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.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse 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_MsgSealBatchResponse) 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.MsgSealBatchResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatch")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse 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_MsgSealBatchResponse) 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.MsgSealBatchResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSealBatch", d.FullName())) } panic("unreachable") } @@ -6156,7 +5102,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_MsgSealBatch) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6167,7 +5113,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_MsgSealBatch) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6179,7 +5125,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_MsgSealBatch) IsValid() bool { return x != nil } @@ -6189,9 +5135,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_MsgSealBatch) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSealBatchResponse) + x := input.Message.Interface().(*MsgSealBatch) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6203,6 +5149,14 @@ func (x *fastReflection_MsgSealBatchResponse) 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) } @@ -6213,7 +5167,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().(*MsgSealBatch) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6232,6 +5186,20 @@ func (x *fastReflection_MsgSealBatchResponse) 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 { @@ -6243,7 +5211,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().(*MsgSealBatch) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6262,25 +5230,89 @@ func (x *fastReflection_MsgSealBatchResponse) 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: MsgSealBatch: 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) + } + 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 } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + 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) } - } - 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") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSealBatchResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + 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:]) @@ -6316,82 +5348,25 @@ func (x *fastReflection_MsgSealBatchResponse) 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_MsgSend protoreflect.MessageDescriptor - fd_MsgSend_sender protoreflect.FieldDescriptor - fd_MsgSend_recipient protoreflect.FieldDescriptor - fd_MsgSend_credits protoreflect.FieldDescriptor + md_MsgSealBatchResponse protoreflect.MessageDescriptor ) 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_MsgSealBatchResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSealBatchResponse") } -var _ protoreflect.Message = (*fastReflection_MsgSend)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSealBatchResponse)(nil) -type fastReflection_MsgSend MsgSend +type fastReflection_MsgSealBatchResponse MsgSealBatchResponse -func (x *MsgSend) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSend)(x) +func (x *MsgSealBatchResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSealBatchResponse)(x) } -func (x *MsgSend) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[11] +func (x *MsgSealBatchResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6402,43 +5377,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_MsgSealBatchResponse_messageType fastReflection_MsgSealBatchResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSealBatchResponse_messageType{} -type fastReflection_MsgSend_messageType struct{} +type fastReflection_MsgSealBatchResponse_messageType struct{} -func (x fastReflection_MsgSend_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSend)(nil) +func (x fastReflection_MsgSealBatchResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSealBatchResponse)(nil) } -func (x fastReflection_MsgSend_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSend) +func (x fastReflection_MsgSealBatchResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSealBatchResponse) } -func (x fastReflection_MsgSend_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSend +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_MsgSend) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSend +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_MsgSend) Type() protoreflect.MessageType { - return _fastReflection_MsgSend_messageType +func (x *fastReflection_MsgSealBatchResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSealBatchResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSend) New() protoreflect.Message { - return new(fastReflection_MsgSend) +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_MsgSend) Interface() protoreflect.ProtoMessage { - return (*MsgSend)(x) +func (x *fastReflection_MsgSealBatchResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSealBatchResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -6446,25 +5421,7 @@ 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) { - 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 - } - } +func (x *fastReflection_MsgSealBatchResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -6478,19 +5435,13 @@ func (x *fastReflection_MsgSend) Range(f func(protoreflect.FieldDescriptor, prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSend) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSealBatchResponse) 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.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) } } @@ -6500,19 +5451,13 @@ 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_MsgSealBatchResponse) 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.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) } } @@ -6522,25 +5467,13 @@ 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_MsgSealBatchResponse) 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.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", descriptor.FullName())) } } @@ -6554,21 +5487,13 @@ 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_MsgSealBatchResponse) 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.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSealBatchResponse does not contain field %s", fd.FullName())) } } @@ -6577,58 +5502,41 @@ func (x *fastReflection_MsgSend) Set(fd protoreflect.FieldDescriptor, value prot // 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_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")) +// 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_MsgSealBatchResponse) 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.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend 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_MsgSend) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSealBatchResponse) 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.MsgSend")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSealBatchResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend 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_MsgSend) 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.MsgSend", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSealBatchResponse", d.FullName())) } panic("unreachable") } @@ -6636,7 +5544,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_MsgSealBatchResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6647,7 +5555,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_MsgSealBatchResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6659,7 +5567,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_MsgSealBatchResponse) IsValid() bool { return x != nil } @@ -6669,9 +5577,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_MsgSealBatchResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSend) + x := input.Message.Interface().(*MsgSealBatchResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6683,20 +5591,6 @@ func (x *fastReflection_MsgSend) 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) } @@ -6707,7 +5601,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().(*MsgSealBatchResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6726,36 +5620,6 @@ 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 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 { @@ -6767,7 +5631,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().(*MsgSealBatchResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6799,110 +5663,12 @@ 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: MsgSealBatchResponse: 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: 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 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:]) @@ -6938,33 +5704,82 @@ func (x *fastReflection_MsgSend) 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_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 + 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_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") + 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_MsgSend_SendCredits)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSend)(nil) -type fastReflection_MsgSend_SendCredits MsgSend_SendCredits +type fastReflection_MsgSend MsgSend -func (x *MsgSend_SendCredits) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSend_SendCredits)(x) +func (x *MsgSend) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSend)(x) } -func (x *MsgSend_SendCredits) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[29] +func (x *MsgSend) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6975,43 +5790,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_MsgSend_messageType fastReflection_MsgSend_messageType +var _ protoreflect.MessageType = fastReflection_MsgSend_messageType{} -type fastReflection_MsgSend_SendCredits_messageType struct{} +type fastReflection_MsgSend_messageType struct{} -func (x fastReflection_MsgSend_SendCredits_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSend_SendCredits)(nil) +func (x fastReflection_MsgSend_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSend)(nil) } -func (x fastReflection_MsgSend_SendCredits_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSend_SendCredits) +func (x fastReflection_MsgSend_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSend) } -func (x fastReflection_MsgSend_SendCredits_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSend_SendCredits +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_MsgSend_SendCredits) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSend_SendCredits +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_MsgSend_SendCredits) Type() protoreflect.MessageType { - return _fastReflection_MsgSend_SendCredits_messageType +func (x *fastReflection_MsgSend) Type() protoreflect.MessageType { + return _fastReflection_MsgSend_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_MsgSend) New() protoreflect.Message { + return new(fastReflection_MsgSend) } // 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_MsgSend) Interface() protoreflect.ProtoMessage { + return (*MsgSend)(x) } // Range iterates over every populated field in an undefined order, @@ -7019,28 +5834,22 @@ 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) { - 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) { +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.RetiredAmount != "" { - value := protoreflect.ValueOfString(x.RetiredAmount) - if !f(fd_MsgSend_SendCredits_retired_amount, value) { + if x.Recipient != "" { + value := protoreflect.ValueOfString(x.Recipient) + if !f(fd_MsgSend_recipient, value) { return } } - if x.RetirementJurisdiction != "" { - value := protoreflect.ValueOfString(x.RetirementJurisdiction) - if !f(fd_MsgSend_SendCredits_retirement_jurisdiction, value) { + if len(x.Credits) != 0 { + value := protoreflect.ValueOfList(&_MsgSend_3_list{list: &x.Credits}) + if !f(fd_MsgSend_credits, value) { return } } @@ -7057,21 +5866,19 @@ 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_MsgSend) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - 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.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.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) } } @@ -7081,21 +5888,19 @@ 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_MsgSend) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - 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.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.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) } } @@ -7105,25 +5910,25 @@ 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_MsgSend) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgSend.SendCredits.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 + case "regen.ecocredit.v1.MsgSend.sender": + value := x.Sender return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": - value := x.RetirementJurisdiction + 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.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", descriptor.FullName())) } } @@ -7137,21 +5942,21 @@ 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_MsgSend) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - 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.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.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend does not contain field %s", fd.FullName())) } } @@ -7165,52 +5970,53 @@ 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_MsgSend) 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.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.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits 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_MsgSend_SendCredits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSend) 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": + case "regen.ecocredit.v1.MsgSend.sender": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgSend.SendCredits.retirement_jurisdiction": + 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.MsgSend.SendCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgSend")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits 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_MsgSend_SendCredits) 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.MsgSend.SendCredits", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSend", d.FullName())) } panic("unreachable") } @@ -7218,7 +6024,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_MsgSend) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7229,7 +6035,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_MsgSend) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7241,7 +6047,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_MsgSend) IsValid() bool { return x != nil } @@ -7251,9 +6057,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_MsgSend) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSend_SendCredits) + x := input.Message.Interface().(*MsgSend) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7265,21 +6071,19 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods var n int var l int _ = l - l = len(x.BatchDenom) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TradableAmount) + l = len(x.Sender) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.RetiredAmount) + l = len(x.Recipient) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.RetirementJurisdiction) - 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) @@ -7291,7 +6095,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().(*MsgSend) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7310,31 +6114,33 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - 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.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.TradableAmount) > 0 { - i -= len(x.TradableAmount) - copy(dAtA[i:], x.TradableAmount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TradableAmount))) + 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.BatchDenom) > 0 { - i -= len(x.BatchDenom) - copy(dAtA[i:], x.BatchDenom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) + 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 } @@ -7349,7 +6155,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().(*MsgSend) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7381,15 +6187,15 @@ 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: MsgSend: 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: 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 BatchDenom", wireType) + 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 { @@ -7417,11 +6223,11 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BatchDenom = string(dAtA[iNdEx:postIndex]) + 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 TradableAmount", wireType) + 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 { @@ -7449,13 +6255,13 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TradableAmount = string(dAtA[iNdEx:postIndex]) + 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 RetiredAmount", 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 @@ -7465,55 +6271,25 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.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.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 } - x.RetirementJurisdiction = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7551,24 +6327,32 @@ func (x *fastReflection_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods } var ( - md_MsgSendResponse protoreflect.MessageDescriptor + 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 ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgSendResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSendResponse") + 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") } -var _ protoreflect.Message = (*fastReflection_MsgSendResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSend_SendCredits)(nil) -type fastReflection_MsgSendResponse MsgSendResponse +type fastReflection_MsgSend_SendCredits MsgSend_SendCredits -func (x *MsgSendResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSendResponse)(x) +func (x *MsgSend_SendCredits) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSend_SendCredits)(x) } -func (x *MsgSendResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[12] +func (x *MsgSend_SendCredits) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7579,43 +6363,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_MsgSend_SendCredits_messageType fastReflection_MsgSend_SendCredits_messageType +var _ protoreflect.MessageType = fastReflection_MsgSend_SendCredits_messageType{} -type fastReflection_MsgSendResponse_messageType struct{} +type fastReflection_MsgSend_SendCredits_messageType struct{} -func (x fastReflection_MsgSendResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSendResponse)(nil) +func (x fastReflection_MsgSend_SendCredits_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSend_SendCredits)(nil) } -func (x fastReflection_MsgSendResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSendResponse) +func (x fastReflection_MsgSend_SendCredits_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSend_SendCredits) } -func (x fastReflection_MsgSendResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendResponse +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_MsgSendResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendResponse +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_MsgSendResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSendResponse_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_MsgSendResponse) New() protoreflect.Message { - return new(fastReflection_MsgSendResponse) +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_MsgSendResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSendResponse)(x) +func (x *fastReflection_MsgSend_SendCredits) Interface() protoreflect.ProtoMessage { + return (*MsgSend_SendCredits)(x) } // Range iterates over every populated field in an undefined order, @@ -7623,7 +6407,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_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.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 + } + } } // Has reports whether a field is populated. @@ -7637,13 +6445,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_MsgSend_SendCredits) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + 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 != "" 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.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) } } @@ -7653,13 +6469,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_MsgSend_SendCredits) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + 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 = "" 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.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) } } @@ -7669,13 +6493,25 @@ 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_MsgSend_SendCredits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgSend.SendCredits.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) 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.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", descriptor.FullName())) } } @@ -7689,13 +6525,21 @@ 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_MsgSend_SendCredits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + 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) 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.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSend.SendCredits does not contain field %s", fd.FullName())) } } @@ -7709,36 +6553,52 @@ 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_MsgSend_SendCredits) 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")) 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.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse 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_MsgSendResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSend_SendCredits) 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("") 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.MsgSend.SendCredits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse 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_MsgSendResponse) 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.MsgSendResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSend.SendCredits", d.FullName())) } panic("unreachable") } @@ -7746,7 +6606,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_MsgSend_SendCredits) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7757,7 +6617,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_MsgSend_SendCredits) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7769,7 +6629,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_MsgSend_SendCredits) IsValid() bool { return x != nil } @@ -7779,9 +6639,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_MsgSend_SendCredits) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSendResponse) + x := input.Message.Interface().(*MsgSend_SendCredits) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7793,6 +6653,22 @@ func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.BatchDenom) + 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)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -7803,7 +6679,7 @@ func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSendResponse) + x := input.Message.Interface().(*MsgSend_SendCredits) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7822,6 +6698,34 @@ func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + 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) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -7833,7 +6737,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().(*MsgSend_SendCredits) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7865,12 +6769,140 @@ 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: MsgSend_SendCredits: 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: 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 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 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 default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -7882,106 +6914,49 @@ func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { } 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 = (*_MsgRetire_2_list)(nil) - -type _MsgRetire_2_list struct { - list *[]*MsgRetire_RetireCredits -} - -func (x *_MsgRetire_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgRetire_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgRetire_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MsgRetire_RetireCredits) - (*x.list)[i] = concreteValue -} - -func (x *_MsgRetire_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MsgRetire_RetireCredits) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgRetire_2_list) AppendMutable() protoreflect.Value { - v := new(MsgRetire_RetireCredits) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -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(MsgRetire_RetireCredits) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } -func (x *_MsgRetire_2_list) IsValid() bool { - return x.list != nil + 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_MsgRetire protoreflect.MessageDescriptor - fd_MsgRetire_owner protoreflect.FieldDescriptor - fd_MsgRetire_credits protoreflect.FieldDescriptor - fd_MsgRetire_jurisdiction protoreflect.FieldDescriptor + md_MsgSendResponse protoreflect.MessageDescriptor ) 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") + md_MsgSendResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgSendResponse") } -var _ protoreflect.Message = (*fastReflection_MsgRetire)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSendResponse)(nil) -type fastReflection_MsgRetire MsgRetire +type fastReflection_MsgSendResponse MsgSendResponse -func (x *MsgRetire) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRetire)(x) +func (x *MsgSendResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSendResponse)(x) } -func (x *MsgRetire) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[13] +func (x *MsgSendResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7992,43 +6967,43 @@ func (x *MsgRetire) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgRetire_messageType fastReflection_MsgRetire_messageType -var _ protoreflect.MessageType = fastReflection_MsgRetire_messageType{} +var _fastReflection_MsgSendResponse_messageType fastReflection_MsgSendResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSendResponse_messageType{} -type fastReflection_MsgRetire_messageType struct{} +type fastReflection_MsgSendResponse_messageType struct{} -func (x fastReflection_MsgRetire_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRetire)(nil) +func (x fastReflection_MsgSendResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSendResponse)(nil) } -func (x fastReflection_MsgRetire_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRetire) +func (x fastReflection_MsgSendResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSendResponse) } -func (x fastReflection_MsgRetire_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRetire +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_MsgRetire) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRetire +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_MsgRetire) Type() protoreflect.MessageType { - return _fastReflection_MsgRetire_messageType +func (x *fastReflection_MsgSendResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSendResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRetire) New() protoreflect.Message { - return new(fastReflection_MsgRetire) +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_MsgRetire) Interface() protoreflect.ProtoMessage { - return (*MsgRetire)(x) +func (x *fastReflection_MsgSendResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSendResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -8036,25 +7011,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 - } - } +func (x *fastReflection_MsgSendResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -8068,19 +7025,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_MsgSendResponse) 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 != "" 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.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) } } @@ -8090,19 +7041,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_MsgSendResponse) 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 = "" 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.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) } } @@ -8112,25 +7057,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_MsgSendResponse) 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) 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.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", descriptor.FullName())) } } @@ -8144,21 +7077,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_MsgSendResponse) 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) 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.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgSendResponse does not contain field %s", fd.FullName())) } } @@ -8172,53 +7097,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_MsgSendResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRetire.credits": - if x.Credits == nil { - x.Credits = []*MsgRetire_RetireCredits{} - } - 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")) 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.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire 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_MsgRetire) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSendResponse) 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 := []*MsgRetire_RetireCredits{} - return protoreflect.ValueOfList(&_MsgRetire_2_list{list: &list}) - case "regen.ecocredit.v1.MsgRetire.jurisdiction": - 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.MsgSendResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire 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_MsgRetire) 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.MsgRetire", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgSendResponse", d.FullName())) } panic("unreachable") } @@ -8226,7 +7134,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_MsgSendResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8237,7 +7145,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_MsgSendResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8249,7 +7157,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_MsgSendResponse) IsValid() bool { return x != nil } @@ -8259,9 +7167,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_MsgSendResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRetire) + x := input.Message.Interface().(*MsgSendResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8273,20 +7181,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)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -8297,54 +7191,24 @@ func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRetire) + x := input.Message.Interface().(*MsgSendResponse) 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.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 + 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...) @@ -8357,7 +7221,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().(*MsgSendResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8389,110 +7253,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: MsgSendResponse: 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: MsgSendResponse: 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, &MsgRetire_RetireCredits{}) - 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 default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -8528,29 +7294,82 @@ func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_MsgRetire_2_list)(nil) + +type _MsgRetire_2_list struct { + list *[]*Credits +} + +func (x *_MsgRetire_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgRetire_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgRetire_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Credits) + (*x.list)[i] = concreteValue +} + +func (x *_MsgRetire_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Credits) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgRetire_2_list) AppendMutable() protoreflect.Value { + v := new(Credits) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +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_RetireCredits protoreflect.MessageDescriptor - fd_MsgRetire_RetireCredits_batch_denom protoreflect.FieldDescriptor - fd_MsgRetire_RetireCredits_amount protoreflect.FieldDescriptor + md_MsgRetire protoreflect.MessageDescriptor + fd_MsgRetire_owner protoreflect.FieldDescriptor + fd_MsgRetire_credits protoreflect.FieldDescriptor + fd_MsgRetire_jurisdiction protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgRetire_RetireCredits = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgRetire").Messages().ByName("RetireCredits") - fd_MsgRetire_RetireCredits_batch_denom = md_MsgRetire_RetireCredits.Fields().ByName("batch_denom") - fd_MsgRetire_RetireCredits_amount = md_MsgRetire_RetireCredits.Fields().ByName("amount") + 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") } -var _ protoreflect.Message = (*fastReflection_MsgRetire_RetireCredits)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRetire)(nil) -type fastReflection_MsgRetire_RetireCredits MsgRetire_RetireCredits +type fastReflection_MsgRetire MsgRetire -func (x *MsgRetire_RetireCredits) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRetire_RetireCredits)(x) +func (x *MsgRetire) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRetire)(x) } -func (x *MsgRetire_RetireCredits) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[30] +func (x *MsgRetire) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8561,43 +7380,43 @@ func (x *MsgRetire_RetireCredits) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgRetire_RetireCredits_messageType fastReflection_MsgRetire_RetireCredits_messageType -var _ protoreflect.MessageType = fastReflection_MsgRetire_RetireCredits_messageType{} +var _fastReflection_MsgRetire_messageType fastReflection_MsgRetire_messageType +var _ protoreflect.MessageType = fastReflection_MsgRetire_messageType{} -type fastReflection_MsgRetire_RetireCredits_messageType struct{} +type fastReflection_MsgRetire_messageType struct{} -func (x fastReflection_MsgRetire_RetireCredits_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRetire_RetireCredits)(nil) +func (x fastReflection_MsgRetire_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRetire)(nil) } -func (x fastReflection_MsgRetire_RetireCredits_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRetire_RetireCredits) +func (x fastReflection_MsgRetire_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRetire) } -func (x fastReflection_MsgRetire_RetireCredits_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRetire_RetireCredits +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_MsgRetire_RetireCredits) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRetire_RetireCredits +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_MsgRetire_RetireCredits) Type() protoreflect.MessageType { - return _fastReflection_MsgRetire_RetireCredits_messageType +func (x *fastReflection_MsgRetire) Type() protoreflect.MessageType { + return _fastReflection_MsgRetire_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRetire_RetireCredits) New() protoreflect.Message { - return new(fastReflection_MsgRetire_RetireCredits) +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_MsgRetire_RetireCredits) Interface() protoreflect.ProtoMessage { - return (*MsgRetire_RetireCredits)(x) +func (x *fastReflection_MsgRetire) Interface() protoreflect.ProtoMessage { + return (*MsgRetire)(x) } // Range iterates over every populated field in an undefined order, @@ -8605,16 +7424,22 @@ func (x *fastReflection_MsgRetire_RetireCredits) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgRetire_RetireCredits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.BatchDenom != "" { - value := protoreflect.ValueOfString(x.BatchDenom) - if !f(fd_MsgRetire_RetireCredits_batch_denom, 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 len(x.Credits) != 0 { + value := protoreflect.ValueOfList(&_MsgRetire_2_list{list: &x.Credits}) + if !f(fd_MsgRetire_credits, value) { return } } - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_MsgRetire_RetireCredits_amount, value) { + if x.Jurisdiction != "" { + value := protoreflect.ValueOfString(x.Jurisdiction) + if !f(fd_MsgRetire_jurisdiction, value) { return } } @@ -8631,17 +7456,19 @@ func (x *fastReflection_MsgRetire_RetireCredits) Range(f func(protoreflect.Field // 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_RetireCredits) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRetire) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRetire.RetireCredits.batch_denom": - return x.BatchDenom != "" - case "regen.ecocredit.v1.MsgRetire.RetireCredits.amount": - return x.Amount != "" + 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 != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire.RetireCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire.RetireCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) } } @@ -8651,17 +7478,19 @@ func (x *fastReflection_MsgRetire_RetireCredits) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetire_RetireCredits) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRetire) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRetire.RetireCredits.batch_denom": - x.BatchDenom = "" - case "regen.ecocredit.v1.MsgRetire.RetireCredits.amount": - x.Amount = "" + 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 = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire.RetireCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire.RetireCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) } } @@ -8671,19 +7500,25 @@ func (x *fastReflection_MsgRetire_RetireCredits) Clear(fd protoreflect.FieldDesc // 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_RetireCredits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRetire) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgRetire.RetireCredits.batch_denom": - value := x.BatchDenom + case "regen.ecocredit.v1.MsgRetire.owner": + value := x.Owner return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgRetire.RetireCredits.amount": - value := x.Amount + 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) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire.RetireCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire.RetireCredits does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", descriptor.FullName())) } } @@ -8697,17 +7532,21 @@ func (x *fastReflection_MsgRetire_RetireCredits) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetire_RetireCredits) 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.MsgRetire.RetireCredits.batch_denom": - x.BatchDenom = value.Interface().(string) - case "regen.ecocredit.v1.MsgRetire.RetireCredits.amount": - x.Amount = value.Interface().(string) + 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) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire.RetireCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire.RetireCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire does not contain field %s", fd.FullName())) } } @@ -8721,44 +7560,53 @@ func (x *fastReflection_MsgRetire_RetireCredits) Set(fd protoreflect.FieldDescri // 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_RetireCredits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRetire) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRetire.RetireCredits.batch_denom": - panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgRetire.RetireCredits is not mutable")) - case "regen.ecocredit.v1.MsgRetire.RetireCredits.amount": - panic(fmt.Errorf("field amount of message regen.ecocredit.v1.MsgRetire.RetireCredits is not mutable")) + 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")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire.RetireCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire.RetireCredits 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_MsgRetire_RetireCredits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRetire) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgRetire.RetireCredits.batch_denom": + case "regen.ecocredit.v1.MsgRetire.owner": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgRetire.RetireCredits.amount": + 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("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire.RetireCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgRetire")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgRetire.RetireCredits 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_MsgRetire_RetireCredits) 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.MsgRetire.RetireCredits", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgRetire", d.FullName())) } panic("unreachable") } @@ -8766,7 +7614,7 @@ func (x *fastReflection_MsgRetire_RetireCredits) WhichOneof(d protoreflect.Oneof // 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_RetireCredits) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRetire) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8777,7 +7625,7 @@ func (x *fastReflection_MsgRetire_RetireCredits) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRetire_RetireCredits) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRetire) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8789,7 +7637,7 @@ func (x *fastReflection_MsgRetire_RetireCredits) 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_MsgRetire_RetireCredits) IsValid() bool { +func (x *fastReflection_MsgRetire) IsValid() bool { return x != nil } @@ -8799,9 +7647,9 @@ func (x *fastReflection_MsgRetire_RetireCredits) 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_RetireCredits) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRetire) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRetire_RetireCredits) + x := input.Message.Interface().(*MsgRetire) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8813,11 +7661,17 @@ func (x *fastReflection_MsgRetire_RetireCredits) ProtoMethods() *protoiface.Meth var n int var l int _ = l - l = len(x.BatchDenom) + l = len(x.Owner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Amount) + 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)) } @@ -8831,7 +7685,7 @@ func (x *fastReflection_MsgRetire_RetireCredits) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRetire_RetireCredits) + x := input.Message.Interface().(*MsgRetire) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8850,17 +7704,33 @@ func (x *fastReflection_MsgRetire_RetireCredits) ProtoMethods() *protoiface.Meth i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - 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.Jurisdiction) > 0 { + i -= len(x.Jurisdiction) + copy(dAtA[i:], x.Jurisdiction) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jurisdiction))) i-- - dAtA[i] = 0x12 + 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.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 } @@ -8875,7 +7745,7 @@ func (x *fastReflection_MsgRetire_RetireCredits) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgRetire_RetireCredits) + x := input.Message.Interface().(*MsgRetire) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8907,15 +7777,15 @@ func (x *fastReflection_MsgRetire_RetireCredits) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRetire_RetireCredits: 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: MsgRetire_RetireCredits: 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 BatchDenom", 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 { @@ -8943,11 +7813,45 @@ func (x *fastReflection_MsgRetire_RetireCredits) ProtoMethods() *protoiface.Meth if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BatchDenom = 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 Amount", wireType) + 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 { @@ -8975,7 +7879,7 @@ func (x *fastReflection_MsgRetire_RetireCredits) ProtoMethods() *protoiface.Meth if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = string(dAtA[iNdEx:postIndex]) + x.Jurisdiction = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -9030,7 +7934,7 @@ func (x *MsgRetireResponse) ProtoReflect() protoreflect.Message { } func (x *MsgRetireResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[14] + 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 { @@ -9443,7 +8347,7 @@ func (x *MsgCancel) ProtoReflect() protoreflect.Message { } func (x *MsgCancel) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[15] + 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 { @@ -10008,7 +8912,7 @@ func (x *MsgCancelResponse) ProtoReflect() protoreflect.Message { } func (x *MsgCancelResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[16] + 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 { @@ -10370,7 +9274,7 @@ func (x *MsgUpdateClassAdmin) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateClassAdmin) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[17] + 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 { @@ -10912,7 +9816,7 @@ func (x *MsgUpdateClassAdminResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateClassAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[18] + 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 { @@ -11368,7 +10272,7 @@ func (x *MsgUpdateClassIssuers) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateClassIssuers) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[19] + 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 { @@ -12000,7 +10904,7 @@ func (x *MsgUpdateClassIssuersResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateClassIssuersResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[20] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12339,10 +11243,10 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoifac } var ( - md_MsgUpdateClassMetadata protoreflect.MessageDescriptor - fd_MsgUpdateClassMetadata_admin protoreflect.FieldDescriptor - fd_MsgUpdateClassMetadata_class_id protoreflect.FieldDescriptor - fd_MsgUpdateClassMetadata_metadata 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() { @@ -12350,7 +11254,7 @@ func 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_metadata = md_MsgUpdateClassMetadata.Fields().ByName("metadata") + fd_MsgUpdateClassMetadata_new_metadata = md_MsgUpdateClassMetadata.Fields().ByName("new_metadata") } var _ protoreflect.Message = (*fastReflection_MsgUpdateClassMetadata)(nil) @@ -12362,7 +11266,7 @@ func (x *MsgUpdateClassMetadata) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateClassMetadata) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[21] + 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 { @@ -12430,9 +11334,9 @@ func (x *fastReflection_MsgUpdateClassMetadata) Range(f func(protoreflect.FieldD return } } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgUpdateClassMetadata_metadata, value) { + if x.NewMetadata != "" { + value := protoreflect.ValueOfString(x.NewMetadata) + if !f(fd_MsgUpdateClassMetadata_new_metadata, value) { return } } @@ -12455,8 +11359,8 @@ func (x *fastReflection_MsgUpdateClassMetadata) Has(fd protoreflect.FieldDescrip return x.Admin != "" case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": return x.ClassId != "" - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": - return x.Metadata != "" + 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.MsgUpdateClassMetadata")) @@ -12477,8 +11381,8 @@ func (x *fastReflection_MsgUpdateClassMetadata) Clear(fd protoreflect.FieldDescr x.Admin = "" case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": x.ClassId = "" - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": - x.Metadata = "" + 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.MsgUpdateClassMetadata")) @@ -12501,8 +11405,8 @@ func (x *fastReflection_MsgUpdateClassMetadata) Get(descriptor protoreflect.Fiel case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": value := x.ClassId return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": - value := x.Metadata + case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": + value := x.NewMetadata return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { @@ -12528,8 +11432,8 @@ func (x *fastReflection_MsgUpdateClassMetadata) Set(fd protoreflect.FieldDescrip x.Admin = value.Interface().(string) case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": x.ClassId = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": - x.Metadata = 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.MsgUpdateClassMetadata")) @@ -12554,8 +11458,8 @@ func (x *fastReflection_MsgUpdateClassMetadata) Mutable(fd protoreflect.FieldDes 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.metadata": - panic(fmt.Errorf("field metadata 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.MsgUpdateClassMetadata")) @@ -12573,7 +11477,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) NewField(fd protoreflect.FieldDe return protoreflect.ValueOfString("") case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": + case "regen.ecocredit.v1.MsgUpdateClassMetadata.new_metadata": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -12652,7 +11556,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Metadata) + l = len(x.NewMetadata) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -12685,10 +11589,10 @@ func (x *fastReflection_MsgUpdateClassMetadata) 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))) + 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 } @@ -12821,7 +11725,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho 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 NewMetadata", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12849,7 +11753,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Metadata = string(dAtA[iNdEx:postIndex]) + x.NewMetadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -12904,7 +11808,7 @@ func (x *MsgUpdateClassMetadataResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateClassMetadataResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[22] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13245,16 +12149,16 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa var ( md_MsgUpdateProjectAdmin protoreflect.MessageDescriptor fd_MsgUpdateProjectAdmin_admin protoreflect.FieldDescriptor - fd_MsgUpdateProjectAdmin_new_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_new_admin = md_MsgUpdateProjectAdmin.Fields().ByName("new_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) @@ -13266,7 +12170,7 @@ func (x *MsgUpdateProjectAdmin) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateProjectAdmin) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[23] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13328,18 +12232,18 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Range(f func(protoreflect.FieldDe return } } - if x.NewAdmin != "" { - value := protoreflect.ValueOfString(x.NewAdmin) - if !f(fd_MsgUpdateProjectAdmin_new_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. @@ -13357,10 +12261,10 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Has(fd protoreflect.FieldDescript switch fd.FullName() { case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - return x.NewAdmin != "" 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")) @@ -13379,10 +12283,10 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Clear(fd protoreflect.FieldDescri switch fd.FullName() { case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - x.NewAdmin = "" 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")) @@ -13402,12 +12306,12 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Get(descriptor protoreflect.Field case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": value := x.Admin return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - value := x.NewAdmin - 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")) @@ -13430,10 +12334,10 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Set(fd protoreflect.FieldDescript switch fd.FullName() { case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - x.NewAdmin = 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")) @@ -13456,10 +12360,10 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Mutable(fd protoreflect.FieldDesc 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.new_admin": - panic(fmt.Errorf("field new_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")) @@ -13475,10 +12379,10 @@ func (x *fastReflection_MsgUpdateProjectAdmin) NewField(fd protoreflect.FieldDes switch fd.FullName() { case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_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")) @@ -13552,11 +12456,11 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NewAdmin) + l = len(x.ProjectId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ProjectId) + l = len(x.NewAdmin) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -13589,18 +12493,18 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method 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] = 0x1a - } 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 { @@ -13693,7 +12597,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 NewAdmin", 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 { @@ -13721,11 +12625,11 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NewAdmin = 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 ProjectId", wireType) + 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 { @@ -13753,7 +12657,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.NewAdmin = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -13808,7 +12712,7 @@ func (x *MsgUpdateProjectAdminResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateProjectAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[24] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14149,16 +13053,16 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac var ( md_MsgUpdateProjectMetadata protoreflect.MessageDescriptor fd_MsgUpdateProjectMetadata_admin protoreflect.FieldDescriptor - fd_MsgUpdateProjectMetadata_new_metadata 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_new_metadata = md_MsgUpdateProjectMetadata.Fields().ByName("new_metadata") 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) @@ -14170,7 +13074,7 @@ func (x *MsgUpdateProjectMetadata) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateProjectMetadata) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[25] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14232,18 +13136,18 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Range(f func(protoreflect.Fiel return } } - if x.NewMetadata != "" { - value := protoreflect.ValueOfString(x.NewMetadata) - if !f(fd_MsgUpdateProjectMetadata_new_metadata, 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. @@ -14261,10 +13165,10 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Has(fd protoreflect.FieldDescr switch fd.FullName() { case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - return x.NewMetadata != "" 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")) @@ -14282,11 +13186,11 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Has(fd protoreflect.FieldDescr func (x *fastReflection_MsgUpdateProjectMetadata) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": - x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - x.NewMetadata = "" + 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")) @@ -14306,12 +13210,12 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Get(descriptor protoreflect.Fi case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": value := x.Admin return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - value := x.NewMetadata - 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")) @@ -14334,10 +13238,10 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Set(fd protoreflect.FieldDescr switch fd.FullName() { case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - x.NewMetadata = 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")) @@ -14360,10 +13264,10 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Mutable(fd protoreflect.FieldD 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.new_metadata": - panic(fmt.Errorf("field new_metadata 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")) @@ -14379,10 +13283,10 @@ func (x *fastReflection_MsgUpdateProjectMetadata) NewField(fd protoreflect.Field switch fd.FullName() { case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - 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")) @@ -14456,11 +13360,11 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NewMetadata) + l = len(x.ProjectId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ProjectId) + l = len(x.NewMetadata) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -14493,18 +13397,18 @@ func (x *fastReflection_MsgUpdateProjectMetadata) 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] = 0x1a - } 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 { @@ -14597,7 +13501,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 NewMetadata", 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 { @@ -14625,11 +13529,11 @@ 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.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 ProjectId", 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 { @@ -14657,7 +13561,7 @@ 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.NewMetadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -14712,7 +13616,7 @@ func (x *MsgUpdateProjectMetadataResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateProjectMetadataResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[26] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15103,20 +14007,20 @@ func (x *_MsgBridge_5_list) IsValid() bool { var ( md_MsgBridge protoreflect.MessageDescriptor + fd_MsgBridge_owner protoreflect.FieldDescriptor fd_MsgBridge_target protoreflect.FieldDescriptor fd_MsgBridge_recipient protoreflect.FieldDescriptor fd_MsgBridge_contract protoreflect.FieldDescriptor - fd_MsgBridge_owner 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_contract = md_MsgBridge.Fields().ByName("contract") - fd_MsgBridge_owner = md_MsgBridge.Fields().ByName("owner") fd_MsgBridge_credits = md_MsgBridge.Fields().ByName("credits") } @@ -15129,7 +14033,7 @@ func (x *MsgBridge) ProtoReflect() protoreflect.Message { } func (x *MsgBridge) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[27] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15185,6 +14089,12 @@ func (x *fastReflection_MsgBridge) Interface() protoreflect.ProtoMessage { // 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) { @@ -15203,12 +14113,6 @@ func (x *fastReflection_MsgBridge) Range(f func(protoreflect.FieldDescriptor, pr return } } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_MsgBridge_owner, value) { - return - } - } if len(x.Credits) != 0 { value := protoreflect.ValueOfList(&_MsgBridge_5_list{list: &x.Credits}) if !f(fd_MsgBridge_credits, value) { @@ -15230,14 +14134,14 @@ func (x *fastReflection_MsgBridge) Range(f func(protoreflect.FieldDescriptor, pr // 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.contract": return x.Contract != "" - case "regen.ecocredit.v1.MsgBridge.owner": - return x.Owner != "" case "regen.ecocredit.v1.MsgBridge.credits": return len(x.Credits) != 0 default: @@ -15256,14 +14160,14 @@ func (x *fastReflection_MsgBridge) Has(fd protoreflect.FieldDescriptor) bool { // 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.contract": x.Contract = "" - case "regen.ecocredit.v1.MsgBridge.owner": - x.Owner = "" case "regen.ecocredit.v1.MsgBridge.credits": x.Credits = nil default: @@ -15282,6 +14186,9 @@ func (x *fastReflection_MsgBridge) Clear(fd protoreflect.FieldDescriptor) { // 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) @@ -15291,9 +14198,6 @@ func (x *fastReflection_MsgBridge) Get(descriptor protoreflect.FieldDescriptor) case "regen.ecocredit.v1.MsgBridge.contract": value := x.Contract return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridge.owner": - value := x.Owner - return protoreflect.ValueOfString(value) case "regen.ecocredit.v1.MsgBridge.credits": if len(x.Credits) == 0 { return protoreflect.ValueOfList(&_MsgBridge_5_list{}) @@ -15320,14 +14224,14 @@ func (x *fastReflection_MsgBridge) Get(descriptor protoreflect.FieldDescriptor) // 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.contract": x.Contract = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridge.owner": - x.Owner = value.Interface().(string) case "regen.ecocredit.v1.MsgBridge.credits": lv := value.List() clv := lv.(*_MsgBridge_5_list) @@ -15358,14 +14262,14 @@ func (x *fastReflection_MsgBridge) Mutable(fd protoreflect.FieldDescriptor) prot } value := &_MsgBridge_5_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.MsgBridge.contract": panic(fmt.Errorf("field contract of message regen.ecocredit.v1.MsgBridge is not mutable")) - case "regen.ecocredit.v1.MsgBridge.owner": - panic(fmt.Errorf("field owner 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")) @@ -15379,14 +14283,14 @@ func (x *fastReflection_MsgBridge) Mutable(fd protoreflect.FieldDescriptor) prot // 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.contract": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridge.owner": - return protoreflect.ValueOfString("") case "regen.ecocredit.v1.MsgBridge.credits": list := []*Credits{} return protoreflect.ValueOfList(&_MsgBridge_5_list{list: &list}) @@ -15459,19 +14363,19 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Target) + l = len(x.Owner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Recipient) + l = len(x.Target) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Contract) + l = len(x.Recipient) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Owner) + l = len(x.Contract) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -15526,32 +14430,32 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x2a } } - 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] = 0x22 - } if len(x.Contract) > 0 { i -= len(x.Contract) copy(dAtA[i:], x.Contract) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Contract))) i-- - dAtA[i] = 0x1a + 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] = 0x12 + 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 { @@ -15605,7 +14509,7 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { switch fieldNum { case 1: 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 Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15633,11 +14537,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.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 Recipient", wireType) + 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 { @@ -15665,11 +14569,11 @@ 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.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 Contract", wireType) + 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 { @@ -15697,11 +14601,11 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Contract = string(dAtA[iNdEx:postIndex]) + 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 Owner", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15729,7 +14633,7 @@ 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.Contract = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -15818,7 +14722,7 @@ func (x *MsgBridgeResponse) ProtoReflect() protoreflect.Message { } func (x *MsgBridgeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[28] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16175,17 +15079,25 @@ type MsgCreateClass struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // admin is the address of the account that created the credit class. + // 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 account addresses of the approved issuers. + // 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 metadata to attached to the credit class. + // 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 a credit type (e.g. "C", "BIO"). + // 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 specifies the fee to pay for the creation of the credit class. - // acceptable fees for creating a credit class can be found in the governance - // parameters for the ecocredit module. + // fee is the credit class creation fee. The specified fee must be one of the + // fees listed in Params.credit_class_fee. The specified amount can be greater + // than or equal to the listed amount but the credit class creator will only + // be charged the listed amount (i.e. the minimum amount). Fee *v1beta1.Coin `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"` } @@ -16287,23 +15199,28 @@ type MsgCreateProject struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // issuer is the address of an approved issuer for the credit class through - // which batches will be issued. It is not required, however, that this same - // issuer issue all batches for a project. - 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 + // 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 metadata attached to the project. + // 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 backing the credits - // in this batch. It is a string of the form - // [-[ ]], with the first two - // fields conforming to ISO 3166-2, and postal-code being up to 64 - // alphanumeric characters. country-code is required, while sub-national-code - // and postal-code are optional and can be added for increased precision. + // 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. + // 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"` } @@ -16327,9 +15244,9 @@ func (*MsgCreateProject) Descriptor() ([]byte, []int) { return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{2} } -func (x *MsgCreateProject) GetIssuer() string { +func (x *MsgCreateProject) GetAdmin() string { if x != nil { - return x.Issuer + return x.Admin } return "" } @@ -16368,7 +15285,7 @@ type MsgCreateProjectResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // project_id is the unique identifier of the newly created project. + // 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"` } @@ -16405,14 +15322,18 @@ type MsgCreateBatch struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // issuer is the address of the batch issuer. + // 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 within which the credit + // 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 are the credits issued in the batch. + // 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 metadata attached to the credit batch. + // 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. @@ -16420,15 +15341,19 @@ type MsgCreateBatch struct { // end_date is the end of the period during which this credit batch was // quantified and verified. EndDate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` - // If open is true we will enable future minting. - // Otherwise we will seal the batch and disable the future minting. + // 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"` - // A reference to a transaction or an event referencing the transaction - // which caused the transfer from other chain or registry. - // If not set (null), it means that the batch originate in Regen Ledger - // (doesn't come from external registry). + // 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"` - // reference note for accounting, will be passed to an event + // note is a reference note for accounting that should only be set when + // bridging assets from another chain or registry as a result of a bridge + // operation and will be stored in state as a field of BatchOriginTx. Note string `protobuf:"bytes,9,opt,name=note,proto3" json:"note,omitempty"` } @@ -16515,92 +15440,20 @@ func (x *MsgCreateBatch) GetNote() string { return "" } -// BatchIssuance represents the issuance of some credits in a batch to a -// single recipient. -type BatchIssuance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // recipient is the account of the recipient. - Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` - // tradable_amount is the number of credits in this issuance that can be - // traded by this recipient. Decimal values are acceptable. - TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"` - // retired_amount is the number of credits in this issuance that are - // effectively retired by the issuer on receipt. Decimal values are - // acceptable. - RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"` - // retirement_jurisdiction is the jurisdiction of the beneficiary or buyer of - // the retired credits. This must be provided if retired_amount is positive. - // It is a string of the form [-[ - // ]], with the first two fields conforming to ISO 3166-2, and - // postal-code being up to 64 alphanumeric characters. - RetirementJurisdiction string `protobuf:"bytes,4,opt,name=retirement_jurisdiction,json=retirementJurisdiction,proto3" json:"retirement_jurisdiction,omitempty"` -} - -func (x *BatchIssuance) Reset() { - *x = BatchIssuance{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BatchIssuance) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BatchIssuance) ProtoMessage() {} - -// Deprecated: Use BatchIssuance.ProtoReflect.Descriptor instead. -func (*BatchIssuance) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{5} -} - -func (x *BatchIssuance) GetRecipient() string { - if x != nil { - return x.Recipient - } - return "" -} - -func (x *BatchIssuance) GetTradableAmount() string { - if x != nil { - return x.TradableAmount - } - return "" -} - -func (x *BatchIssuance) GetRetiredAmount() string { - if x != nil { - return x.RetiredAmount - } - return "" -} - -func (x *BatchIssuance) GetRetirementJurisdiction() string { - if x != nil { - return x.RetirementJurisdiction - } - return "" -} - // MsgCreateBatchResponse is the Msg/CreateBatch response type. type MsgCreateBatchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // batch_denom is the unique identifier of the newly created batch. + // 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 (x *MsgCreateBatchResponse) Reset() { *x = MsgCreateBatchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[6] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16614,7 +15467,7 @@ func (*MsgCreateBatchResponse) ProtoMessage() {} // Deprecated: Use MsgCreateBatchResponse.ProtoReflect.Descriptor instead. func (*MsgCreateBatchResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{6} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{5} } func (x *MsgCreateBatchResponse) GetBatchDenom() string { @@ -16624,30 +15477,34 @@ func (x *MsgCreateBatchResponse) GetBatchDenom() string { return "" } -// MsgMintBatchCredits is a request type for MintBatchCredits Msg RPC. +// MsgMintBatchCredits is the Msg/MintBatchCredits request type. type MsgMintBatchCredits struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Issuer must equal to the batch.issuer address. - // Signer of the msg. + // 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 are the credits issued in the batch. + // 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"` - // A reference to a transaction or an event referencing the transaction - // which caused the transfer from other chain or registry. + // 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"` - // reference note for accounting, will be passed to an event + // note is a reference note for accounting that should only be set when + // bridging assets from another chain or registry as a result of a bridge + // operation and will be stored in state as a field of BatchOriginTx. Note string `protobuf:"bytes,5,opt,name=note,proto3" json:"note,omitempty"` } func (x *MsgMintBatchCredits) Reset() { *x = MsgMintBatchCredits{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[7] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16661,7 +15518,7 @@ func (*MsgMintBatchCredits) ProtoMessage() {} // Deprecated: Use MsgMintBatchCredits.ProtoReflect.Descriptor instead. func (*MsgMintBatchCredits) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{7} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{6} } func (x *MsgMintBatchCredits) GetIssuer() string { @@ -16699,78 +15556,78 @@ func (x *MsgMintBatchCredits) GetNote() string { return "" } -// MsgSealBatch request type for MsgSealBatch RPC. -type MsgSealBatch struct { +// MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. +type MsgMintBatchCreditsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // Issuer must equal to the batch.issuer address. - // Signer of the msg. - 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 (x *MsgSealBatch) Reset() { - *x = MsgSealBatch{} +func (x *MsgMintBatchCreditsResponse) Reset() { + *x = MsgMintBatchCreditsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[8] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgSealBatch) String() string { +func (x *MsgMintBatchCreditsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgSealBatch) ProtoMessage() {} - -// Deprecated: Use MsgSealBatch.ProtoReflect.Descriptor instead. -func (*MsgSealBatch) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{8} -} - -func (x *MsgSealBatch) GetIssuer() string { - if x != nil { - return x.Issuer - } - return "" -} +func (*MsgMintBatchCreditsResponse) ProtoMessage() {} -func (x *MsgSealBatch) GetBatchDenom() string { - if x != nil { - return x.BatchDenom - } - return "" +// Deprecated: Use MsgMintBatchCreditsResponse.ProtoReflect.Descriptor instead. +func (*MsgMintBatchCreditsResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{7} } -// MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. -type MsgMintBatchCreditsResponse struct { +// MsgSealBatch is the Msg/MintBatchCredits request type. +type MsgSealBatch struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // 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 (x *MsgMintBatchCreditsResponse) Reset() { - *x = MsgMintBatchCreditsResponse{} +func (x *MsgSealBatch) Reset() { + *x = MsgSealBatch{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[9] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgMintBatchCreditsResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *MsgSealBatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSealBatch) ProtoMessage() {} + +// Deprecated: Use MsgSealBatch.ProtoReflect.Descriptor instead. +func (*MsgSealBatch) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{8} +} + +func (x *MsgSealBatch) GetIssuer() string { + if x != nil { + return x.Issuer + } + return "" } -func (*MsgMintBatchCreditsResponse) ProtoMessage() {} - -// Deprecated: Use MsgMintBatchCreditsResponse.ProtoReflect.Descriptor instead. -func (*MsgMintBatchCreditsResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{9} +func (x *MsgSealBatch) GetBatchDenom() string { + if x != nil { + return x.BatchDenom + } + return "" } // MsgSealBatchResponse is the Msg/SealBatch response type. @@ -16783,7 +15640,7 @@ type MsgSealBatchResponse struct { func (x *MsgSealBatchResponse) Reset() { *x = MsgSealBatchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[10] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16797,7 +15654,7 @@ func (*MsgSealBatchResponse) ProtoMessage() {} // Deprecated: Use MsgSealBatchResponse.ProtoReflect.Descriptor instead. func (*MsgSealBatchResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{10} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{9} } // MsgSend is the Msg/Send request type. @@ -16808,16 +15665,16 @@ type MsgSend struct { // sender is the address of the account sending credits. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - // sender is the address of the account receiving credits. + // 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. + // credits are the credits being sent to the recipient. Credits []*MsgSend_SendCredits `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` } func (x *MsgSend) Reset() { *x = MsgSend{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[11] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16831,7 +15688,7 @@ func (*MsgSend) ProtoMessage() {} // Deprecated: Use MsgSend.ProtoReflect.Descriptor instead. func (*MsgSend) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{11} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{10} } func (x *MsgSend) GetSender() string { @@ -16865,7 +15722,7 @@ type MsgSendResponse struct { func (x *MsgSendResponse) Reset() { *x = MsgSendResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[12] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16879,7 +15736,7 @@ func (*MsgSendResponse) ProtoMessage() {} // Deprecated: Use MsgSendResponse.ProtoReflect.Descriptor instead. func (*MsgSendResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{12} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{11} } // MsgRetire is the Msg/Retire request type. @@ -16890,20 +15747,22 @@ 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 are the credits being retired. - Credits []*MsgRetire_RetireCredits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` - // jurisdiction is the jurisdiction of the beneficiary or buyer of the retired - // credits. It is a string of the form - // [-[ ]], with the first two - // fields conforming to ISO 3166-2, and postal-code being up to 64 - // alphanumeric characters. + // 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"` } func (x *MsgRetire) Reset() { *x = MsgRetire{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[13] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16917,7 +15776,7 @@ func (*MsgRetire) ProtoMessage() {} // Deprecated: Use MsgRetire.ProtoReflect.Descriptor instead. func (*MsgRetire) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{13} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{12} } func (x *MsgRetire) GetOwner() string { @@ -16927,7 +15786,7 @@ func (x *MsgRetire) GetOwner() string { return "" } -func (x *MsgRetire) GetCredits() []*MsgRetire_RetireCredits { +func (x *MsgRetire) GetCredits() []*Credits { if x != nil { return x.Credits } @@ -16951,7 +15810,7 @@ type MsgRetireResponse struct { func (x *MsgRetireResponse) Reset() { *x = MsgRetireResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[14] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16965,7 +15824,7 @@ func (*MsgRetireResponse) ProtoMessage() {} // Deprecated: Use MsgRetireResponse.ProtoReflect.Descriptor instead. func (*MsgRetireResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{14} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{13} } // MsgCancel is the Msg/Cancel request type. @@ -16976,7 +15835,7 @@ 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 are the credits being cancelled. + // 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. @@ -16986,7 +15845,7 @@ type MsgCancel struct { func (x *MsgCancel) Reset() { *x = MsgCancel{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[15] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17000,7 +15859,7 @@ func (*MsgCancel) ProtoMessage() {} // Deprecated: Use MsgCancel.ProtoReflect.Descriptor instead. func (*MsgCancel) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{15} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{14} } func (x *MsgCancel) GetOwner() string { @@ -17034,7 +15893,7 @@ type MsgCancelResponse struct { func (x *MsgCancelResponse) Reset() { *x = MsgCancelResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[16] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17048,7 +15907,7 @@ func (*MsgCancelResponse) ProtoMessage() {} // Deprecated: Use MsgCancelResponse.ProtoReflect.Descriptor instead. func (*MsgCancelResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{16} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{15} } // MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. @@ -17057,18 +15916,20 @@ type MsgUpdateClassAdmin struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // admin is the address of the account that is the admin of the credit class. + // 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 new admin of the credit class. + // 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 (x *MsgUpdateClassAdmin) Reset() { *x = MsgUpdateClassAdmin{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[17] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17082,7 +15943,7 @@ func (*MsgUpdateClassAdmin) ProtoMessage() {} // Deprecated: Use MsgUpdateClassAdmin.ProtoReflect.Descriptor instead. func (*MsgUpdateClassAdmin) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{17} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{16} } func (x *MsgUpdateClassAdmin) GetAdmin() string { @@ -17116,7 +15977,7 @@ type MsgUpdateClassAdminResponse struct { func (x *MsgUpdateClassAdminResponse) Reset() { *x = MsgUpdateClassAdminResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[18] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17130,7 +15991,7 @@ func (*MsgUpdateClassAdminResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateClassAdminResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateClassAdminResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{18} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{17} } // MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. @@ -17143,16 +16004,18 @@ type MsgUpdateClassIssuers struct { 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 issuers to add to the class issuers list. + // 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 issuers to remove from the class issuers list. + // 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 (x *MsgUpdateClassIssuers) Reset() { *x = MsgUpdateClassIssuers{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[19] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17166,7 +16029,7 @@ func (*MsgUpdateClassIssuers) ProtoMessage() {} // Deprecated: Use MsgUpdateClassIssuers.ProtoReflect.Descriptor instead. func (*MsgUpdateClassIssuers) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{19} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{18} } func (x *MsgUpdateClassIssuers) GetAdmin() string { @@ -17207,7 +16070,7 @@ type MsgUpdateClassIssuersResponse struct { func (x *MsgUpdateClassIssuersResponse) Reset() { *x = MsgUpdateClassIssuersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[20] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17221,7 +16084,7 @@ func (*MsgUpdateClassIssuersResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateClassIssuersResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateClassIssuersResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{20} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{19} } // MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. @@ -17234,15 +16097,16 @@ type MsgUpdateClassMetadata struct { 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"` - // metadata is the updated arbitrary metadata to be attached to the credit - // class. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,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 (x *MsgUpdateClassMetadata) Reset() { *x = MsgUpdateClassMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[21] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17256,7 +16120,7 @@ func (*MsgUpdateClassMetadata) ProtoMessage() {} // Deprecated: Use MsgUpdateClassMetadata.ProtoReflect.Descriptor instead. func (*MsgUpdateClassMetadata) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{21} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{20} } func (x *MsgUpdateClassMetadata) GetAdmin() string { @@ -17273,9 +16137,9 @@ func (x *MsgUpdateClassMetadata) GetClassId() string { return "" } -func (x *MsgUpdateClassMetadata) GetMetadata() string { +func (x *MsgUpdateClassMetadata) GetNewMetadata() string { if x != nil { - return x.Metadata + return x.NewMetadata } return "" } @@ -17290,7 +16154,7 @@ type MsgUpdateClassMetadataResponse struct { func (x *MsgUpdateClassMetadataResponse) Reset() { *x = MsgUpdateClassMetadataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[22] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17304,7 +16168,7 @@ func (*MsgUpdateClassMetadataResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateClassMetadataResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateClassMetadataResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{22} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{21} } // MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. @@ -17313,18 +16177,20 @@ type MsgUpdateProjectAdmin struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // admin is the project's current admin address. + // 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"` - // new_admin is the address of the new admin of the project. - NewAdmin string `protobuf:"bytes,2,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` - // project_id is the unique identifier of the project (e.g. VERRA1). - ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,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 (x *MsgUpdateProjectAdmin) Reset() { *x = MsgUpdateProjectAdmin{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[23] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17338,7 +16204,7 @@ func (*MsgUpdateProjectAdmin) ProtoMessage() {} // Deprecated: Use MsgUpdateProjectAdmin.ProtoReflect.Descriptor instead. func (*MsgUpdateProjectAdmin) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{23} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{22} } func (x *MsgUpdateProjectAdmin) GetAdmin() string { @@ -17348,16 +16214,16 @@ func (x *MsgUpdateProjectAdmin) GetAdmin() string { return "" } -func (x *MsgUpdateProjectAdmin) GetNewAdmin() string { +func (x *MsgUpdateProjectAdmin) GetProjectId() string { if x != nil { - return x.NewAdmin + return x.ProjectId } return "" } -func (x *MsgUpdateProjectAdmin) GetProjectId() string { +func (x *MsgUpdateProjectAdmin) GetNewAdmin() string { if x != nil { - return x.ProjectId + return x.NewAdmin } return "" } @@ -17372,7 +16238,7 @@ type MsgUpdateProjectAdminResponse struct { func (x *MsgUpdateProjectAdminResponse) Reset() { *x = MsgUpdateProjectAdminResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[24] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17386,7 +16252,7 @@ func (*MsgUpdateProjectAdminResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateProjectAdminResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateProjectAdminResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{24} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{23} } // MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. @@ -17395,18 +16261,20 @@ type MsgUpdateProjectMetadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // admin is project admin address. + // 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"` - // new_metadata is the metadata to update the project with. - NewMetadata string `protobuf:"bytes,2,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` - // project_id is the unique identifier of the project (e.g. VERRA1). - ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,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 (x *MsgUpdateProjectMetadata) Reset() { *x = MsgUpdateProjectMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[25] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17420,7 +16288,7 @@ func (*MsgUpdateProjectMetadata) ProtoMessage() {} // Deprecated: Use MsgUpdateProjectMetadata.ProtoReflect.Descriptor instead. func (*MsgUpdateProjectMetadata) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{25} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{24} } func (x *MsgUpdateProjectMetadata) GetAdmin() string { @@ -17430,16 +16298,16 @@ func (x *MsgUpdateProjectMetadata) GetAdmin() string { return "" } -func (x *MsgUpdateProjectMetadata) GetNewMetadata() string { +func (x *MsgUpdateProjectMetadata) GetProjectId() string { if x != nil { - return x.NewMetadata + return x.ProjectId } return "" } -func (x *MsgUpdateProjectMetadata) GetProjectId() string { +func (x *MsgUpdateProjectMetadata) GetNewMetadata() string { if x != nil { - return x.ProjectId + return x.NewMetadata } return "" } @@ -17455,7 +16323,7 @@ type MsgUpdateProjectMetadataResponse struct { func (x *MsgUpdateProjectMetadataResponse) Reset() { *x = MsgUpdateProjectMetadataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[26] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17469,7 +16337,7 @@ func (*MsgUpdateProjectMetadataResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateProjectMetadataResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateProjectMetadataResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{26} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{25} } // MsgBridge is the Msg/Bridge request type. @@ -17478,22 +16346,22 @@ type MsgBridge struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // target is the target chain. - Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` - // recipient is the recipient address. - Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` - // contract is the contract address. - Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` // owner is the address of the account that owns the credits being bridged. - Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` - // credits are the credits being cancelled. + 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"` + // recipient is the address of the contract handling the bridged credits. + Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` + // credits specifies a credit batch and the number of credits being bridged. Credits []*Credits `protobuf:"bytes,5,rep,name=credits,proto3" json:"credits,omitempty"` } func (x *MsgBridge) Reset() { *x = MsgBridge{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[27] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17507,7 +16375,14 @@ func (*MsgBridge) ProtoMessage() {} // Deprecated: Use MsgBridge.ProtoReflect.Descriptor instead. func (*MsgBridge) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{27} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{26} +} + +func (x *MsgBridge) GetOwner() string { + if x != nil { + return x.Owner + } + return "" } func (x *MsgBridge) GetTarget() string { @@ -17531,13 +16406,6 @@ func (x *MsgBridge) GetContract() string { return "" } -func (x *MsgBridge) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - func (x *MsgBridge) GetCredits() []*Credits { if x != nil { return x.Credits @@ -17555,7 +16423,7 @@ type MsgBridgeResponse struct { func (x *MsgBridgeResponse) Reset() { *x = MsgBridgeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[28] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17569,12 +16437,12 @@ func (*MsgBridgeResponse) ProtoMessage() {} // Deprecated: Use MsgBridgeResponse.ProtoReflect.Descriptor instead. func (*MsgBridgeResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{28} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{27} } -// SendCredits specifies a batch and the number of credits being transferred. -// This is split into tradable credits, which will remain tradable on receipt, -// and retired credits, which will be retired on receipt. +// 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 { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -17582,26 +16450,28 @@ 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 number of credits in this transfer that can be - // traded by the recipient. Decimal values are acceptable within the - // precision returned by Query/Precision. + // 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 number of credits in this transfer that are - // effectively retired by the issuer on receipt. Decimal values are - // acceptable within the precision returned by Query/Precision. + // 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 beneficiary or buyer - // of the retired credits. This must be provided if retired_amount is - // positive. It is a string of the form [-[ - // ]], with the first two fields conforming to ISO 3166-2, and - // postal-code being up to 64 alphanumeric characters. + // 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"` } func (x *MsgSend_SendCredits) Reset() { *x = MsgSend_SendCredits{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[29] + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17615,7 +16485,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{11, 0} + return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{10, 0} } func (x *MsgSend_SendCredits) GetBatchDenom() string { @@ -17646,54 +16516,6 @@ func (x *MsgSend_SendCredits) GetRetirementJurisdiction() string { return "" } -// RetireCredits specifies a batch and the number of credits being retired. -type MsgRetire_RetireCredits struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // 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"` - // amount is the number of credits being retired. - // Decimal values are acceptable within the precision returned by - // Query/Precision. - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *MsgRetire_RetireCredits) Reset() { - *x = MsgRetire_RetireCredits{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgRetire_RetireCredits) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgRetire_RetireCredits) ProtoMessage() {} - -// Deprecated: Use MsgRetire_RetireCredits.ProtoReflect.Descriptor instead. -func (*MsgRetire_RetireCredits) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{13, 0} -} - -func (x *MsgRetire_RetireCredits) GetBatchDenom() string { - if x != nil { - return x.BatchDenom - } - return "" -} - -func (x *MsgRetire_RetireCredits) GetAmount() string { - if x != nil { - return x.Amount - } - return "" -} - var File_regen_ecocredit_v1_tx_proto protoreflect.FileDescriptor var file_regen_ecocredit_v1_tx_proto_rawDesc = []byte{ @@ -17722,287 +16544,270 @@ var file_regen_ecocredit_v1_tx_proto_rawDesc = []byte{ 0x65, 0x65, 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, 0xa8, 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 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, 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, - 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, 0x12, 0x22, 0x0a, 0x0c, 0x6a, - 0x75, 0x72, 0x69, 0x73, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 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, 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, 0x83, 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, - 0x12, 0x0a, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x6f, 0x74, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x73, 0x73, - 0x75, 0x61, 0x6e, 0x63, 0x65, 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, 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, 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, 0xdc, 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, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x22, 0x47, 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, 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, 0x16, - 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xbc, 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, 0xb7, 0x01, 0x0a, 0x0b, - 0x53, 0x65, 0x6e, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x22, 0xa6, 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, 0x5f, 0x69, 0x64, 0x18, 0x02, + 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, 0x03, 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, 0x04, 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, + 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, 0x83, 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, 0x12, 0x0a, + 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x6f, 0x74, + 0x65, 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, 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, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd6, 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, 0x45, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 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, 0x2e, 0x52, 0x65, 0x74, - 0x69, 0x72, 0x65, 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, 0x1a, 0x48, 0x0a, 0x0d, 0x52, 0x65, 0x74, 0x69, 0x72, - 0x65, 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, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x70, 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, + 0x52, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0xdc, 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, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x6f, 0x74, 0x65, 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, 0x47, 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, 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, 0xbc, 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, 0xb7, 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, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, 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, 0x22, 0x13, 0x0a, 0x11, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x70, 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, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 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, 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, 0x90, 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, 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, + 0x6c, 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, 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, + 0x69, 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, 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, 0x72, 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, 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, 0xaa, 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, 0x1a, 0x0a, + 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x73, 0x18, 0x05, 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, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, - 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 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, 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, 0x90, 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, 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, 0x65, 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, 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, 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, 0x69, - 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, 0x1b, 0x0a, - 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6e, 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 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, 0x72, 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, 0x21, 0x0a, 0x0c, - 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 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, 0xaa, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x63, - 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 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, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x73, 0x18, 0x05, 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, 0x22, - 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf3, 0x0a, 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, + 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf3, 0x0a, 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, 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, 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, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 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, 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, + 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, 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, 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, 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, 0x72, 0x65, + 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, 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, + 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, 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, + 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, 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, 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, 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, 0x65, 0x63, + 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, 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, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, + 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, 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, + 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, 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, 0x4e, 0x0a, 0x06, 0x42, 0x72, - 0x69, 0x64, 0x67, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 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, 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, 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, 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, 0x42, 0x72, 0x69, 0x64, - 0x67, 0x65, 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, + 0x64, 0x67, 0x65, 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 ( @@ -18017,84 +16822,83 @@ 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, 31) +var file_regen_ecocredit_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 29) var file_regen_ecocredit_v1_tx_proto_goTypes = []interface{}{ (*MsgCreateClass)(nil), // 0: regen.ecocredit.v1.MsgCreateClass (*MsgCreateClassResponse)(nil), // 1: regen.ecocredit.v1.MsgCreateClassResponse (*MsgCreateProject)(nil), // 2: regen.ecocredit.v1.MsgCreateProject (*MsgCreateProjectResponse)(nil), // 3: regen.ecocredit.v1.MsgCreateProjectResponse (*MsgCreateBatch)(nil), // 4: regen.ecocredit.v1.MsgCreateBatch - (*BatchIssuance)(nil), // 5: regen.ecocredit.v1.BatchIssuance - (*MsgCreateBatchResponse)(nil), // 6: regen.ecocredit.v1.MsgCreateBatchResponse - (*MsgMintBatchCredits)(nil), // 7: regen.ecocredit.v1.MsgMintBatchCredits + (*MsgCreateBatchResponse)(nil), // 5: regen.ecocredit.v1.MsgCreateBatchResponse + (*MsgMintBatchCredits)(nil), // 6: regen.ecocredit.v1.MsgMintBatchCredits + (*MsgMintBatchCreditsResponse)(nil), // 7: regen.ecocredit.v1.MsgMintBatchCreditsResponse (*MsgSealBatch)(nil), // 8: regen.ecocredit.v1.MsgSealBatch - (*MsgMintBatchCreditsResponse)(nil), // 9: regen.ecocredit.v1.MsgMintBatchCreditsResponse - (*MsgSealBatchResponse)(nil), // 10: regen.ecocredit.v1.MsgSealBatchResponse - (*MsgSend)(nil), // 11: regen.ecocredit.v1.MsgSend - (*MsgSendResponse)(nil), // 12: regen.ecocredit.v1.MsgSendResponse - (*MsgRetire)(nil), // 13: regen.ecocredit.v1.MsgRetire - (*MsgRetireResponse)(nil), // 14: regen.ecocredit.v1.MsgRetireResponse - (*MsgCancel)(nil), // 15: regen.ecocredit.v1.MsgCancel - (*MsgCancelResponse)(nil), // 16: regen.ecocredit.v1.MsgCancelResponse - (*MsgUpdateClassAdmin)(nil), // 17: regen.ecocredit.v1.MsgUpdateClassAdmin - (*MsgUpdateClassAdminResponse)(nil), // 18: regen.ecocredit.v1.MsgUpdateClassAdminResponse - (*MsgUpdateClassIssuers)(nil), // 19: regen.ecocredit.v1.MsgUpdateClassIssuers - (*MsgUpdateClassIssuersResponse)(nil), // 20: regen.ecocredit.v1.MsgUpdateClassIssuersResponse - (*MsgUpdateClassMetadata)(nil), // 21: regen.ecocredit.v1.MsgUpdateClassMetadata - (*MsgUpdateClassMetadataResponse)(nil), // 22: regen.ecocredit.v1.MsgUpdateClassMetadataResponse - (*MsgUpdateProjectAdmin)(nil), // 23: regen.ecocredit.v1.MsgUpdateProjectAdmin - (*MsgUpdateProjectAdminResponse)(nil), // 24: regen.ecocredit.v1.MsgUpdateProjectAdminResponse - (*MsgUpdateProjectMetadata)(nil), // 25: regen.ecocredit.v1.MsgUpdateProjectMetadata - (*MsgUpdateProjectMetadataResponse)(nil), // 26: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse - (*MsgBridge)(nil), // 27: regen.ecocredit.v1.MsgBridge - (*MsgBridgeResponse)(nil), // 28: regen.ecocredit.v1.MsgBridgeResponse - (*MsgSend_SendCredits)(nil), // 29: regen.ecocredit.v1.MsgSend.SendCredits - (*MsgRetire_RetireCredits)(nil), // 30: regen.ecocredit.v1.MsgRetire.RetireCredits - (*v1beta1.Coin)(nil), // 31: cosmos.base.v1beta1.Coin - (*timestamppb.Timestamp)(nil), // 32: google.protobuf.Timestamp - (*OriginTx)(nil), // 33: regen.ecocredit.v1.OriginTx - (*Credits)(nil), // 34: regen.ecocredit.v1.Credits + (*MsgSealBatchResponse)(nil), // 9: regen.ecocredit.v1.MsgSealBatchResponse + (*MsgSend)(nil), // 10: regen.ecocredit.v1.MsgSend + (*MsgSendResponse)(nil), // 11: regen.ecocredit.v1.MsgSendResponse + (*MsgRetire)(nil), // 12: regen.ecocredit.v1.MsgRetire + (*MsgRetireResponse)(nil), // 13: regen.ecocredit.v1.MsgRetireResponse + (*MsgCancel)(nil), // 14: regen.ecocredit.v1.MsgCancel + (*MsgCancelResponse)(nil), // 15: regen.ecocredit.v1.MsgCancelResponse + (*MsgUpdateClassAdmin)(nil), // 16: regen.ecocredit.v1.MsgUpdateClassAdmin + (*MsgUpdateClassAdminResponse)(nil), // 17: regen.ecocredit.v1.MsgUpdateClassAdminResponse + (*MsgUpdateClassIssuers)(nil), // 18: regen.ecocredit.v1.MsgUpdateClassIssuers + (*MsgUpdateClassIssuersResponse)(nil), // 19: regen.ecocredit.v1.MsgUpdateClassIssuersResponse + (*MsgUpdateClassMetadata)(nil), // 20: regen.ecocredit.v1.MsgUpdateClassMetadata + (*MsgUpdateClassMetadataResponse)(nil), // 21: regen.ecocredit.v1.MsgUpdateClassMetadataResponse + (*MsgUpdateProjectAdmin)(nil), // 22: regen.ecocredit.v1.MsgUpdateProjectAdmin + (*MsgUpdateProjectAdminResponse)(nil), // 23: regen.ecocredit.v1.MsgUpdateProjectAdminResponse + (*MsgUpdateProjectMetadata)(nil), // 24: regen.ecocredit.v1.MsgUpdateProjectMetadata + (*MsgUpdateProjectMetadataResponse)(nil), // 25: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse + (*MsgBridge)(nil), // 26: regen.ecocredit.v1.MsgBridge + (*MsgBridgeResponse)(nil), // 27: regen.ecocredit.v1.MsgBridgeResponse + (*MsgSend_SendCredits)(nil), // 28: regen.ecocredit.v1.MsgSend.SendCredits + (*v1beta1.Coin)(nil), // 29: cosmos.base.v1beta1.Coin + (*BatchIssuance)(nil), // 30: regen.ecocredit.v1.BatchIssuance + (*timestamppb.Timestamp)(nil), // 31: google.protobuf.Timestamp + (*OriginTx)(nil), // 32: regen.ecocredit.v1.OriginTx + (*Credits)(nil), // 33: regen.ecocredit.v1.Credits } var file_regen_ecocredit_v1_tx_proto_depIdxs = []int32{ - 31, // 0: regen.ecocredit.v1.MsgCreateClass.fee:type_name -> cosmos.base.v1beta1.Coin - 5, // 1: regen.ecocredit.v1.MsgCreateBatch.issuance:type_name -> regen.ecocredit.v1.BatchIssuance - 32, // 2: regen.ecocredit.v1.MsgCreateBatch.start_date:type_name -> google.protobuf.Timestamp - 32, // 3: regen.ecocredit.v1.MsgCreateBatch.end_date:type_name -> google.protobuf.Timestamp - 33, // 4: regen.ecocredit.v1.MsgCreateBatch.origin_tx:type_name -> regen.ecocredit.v1.OriginTx - 5, // 5: regen.ecocredit.v1.MsgMintBatchCredits.issuance:type_name -> regen.ecocredit.v1.BatchIssuance - 33, // 6: regen.ecocredit.v1.MsgMintBatchCredits.origin_tx:type_name -> regen.ecocredit.v1.OriginTx - 29, // 7: regen.ecocredit.v1.MsgSend.credits:type_name -> regen.ecocredit.v1.MsgSend.SendCredits - 30, // 8: regen.ecocredit.v1.MsgRetire.credits:type_name -> regen.ecocredit.v1.MsgRetire.RetireCredits - 34, // 9: regen.ecocredit.v1.MsgCancel.credits:type_name -> regen.ecocredit.v1.Credits - 34, // 10: regen.ecocredit.v1.MsgBridge.credits:type_name -> regen.ecocredit.v1.Credits + 29, // 0: regen.ecocredit.v1.MsgCreateClass.fee:type_name -> cosmos.base.v1beta1.Coin + 30, // 1: regen.ecocredit.v1.MsgCreateBatch.issuance:type_name -> regen.ecocredit.v1.BatchIssuance + 31, // 2: regen.ecocredit.v1.MsgCreateBatch.start_date:type_name -> google.protobuf.Timestamp + 31, // 3: regen.ecocredit.v1.MsgCreateBatch.end_date:type_name -> google.protobuf.Timestamp + 32, // 4: regen.ecocredit.v1.MsgCreateBatch.origin_tx:type_name -> regen.ecocredit.v1.OriginTx + 30, // 5: regen.ecocredit.v1.MsgMintBatchCredits.issuance:type_name -> regen.ecocredit.v1.BatchIssuance + 32, // 6: regen.ecocredit.v1.MsgMintBatchCredits.origin_tx:type_name -> regen.ecocredit.v1.OriginTx + 28, // 7: regen.ecocredit.v1.MsgSend.credits:type_name -> regen.ecocredit.v1.MsgSend.SendCredits + 33, // 8: regen.ecocredit.v1.MsgRetire.credits:type_name -> regen.ecocredit.v1.Credits + 33, // 9: regen.ecocredit.v1.MsgCancel.credits:type_name -> regen.ecocredit.v1.Credits + 33, // 10: regen.ecocredit.v1.MsgBridge.credits:type_name -> regen.ecocredit.v1.Credits 0, // 11: regen.ecocredit.v1.Msg.CreateClass:input_type -> regen.ecocredit.v1.MsgCreateClass 2, // 12: regen.ecocredit.v1.Msg.CreateProject:input_type -> regen.ecocredit.v1.MsgCreateProject 4, // 13: regen.ecocredit.v1.Msg.CreateBatch:input_type -> regen.ecocredit.v1.MsgCreateBatch - 7, // 14: regen.ecocredit.v1.Msg.MintBatchCredits:input_type -> regen.ecocredit.v1.MsgMintBatchCredits + 6, // 14: regen.ecocredit.v1.Msg.MintBatchCredits:input_type -> regen.ecocredit.v1.MsgMintBatchCredits 8, // 15: regen.ecocredit.v1.Msg.SealBatch:input_type -> regen.ecocredit.v1.MsgSealBatch - 11, // 16: regen.ecocredit.v1.Msg.Send:input_type -> regen.ecocredit.v1.MsgSend - 13, // 17: regen.ecocredit.v1.Msg.Retire:input_type -> regen.ecocredit.v1.MsgRetire - 15, // 18: regen.ecocredit.v1.Msg.Cancel:input_type -> regen.ecocredit.v1.MsgCancel - 17, // 19: regen.ecocredit.v1.Msg.UpdateClassAdmin:input_type -> regen.ecocredit.v1.MsgUpdateClassAdmin - 19, // 20: regen.ecocredit.v1.Msg.UpdateClassIssuers:input_type -> regen.ecocredit.v1.MsgUpdateClassIssuers - 21, // 21: regen.ecocredit.v1.Msg.UpdateClassMetadata:input_type -> regen.ecocredit.v1.MsgUpdateClassMetadata - 23, // 22: regen.ecocredit.v1.Msg.UpdateProjectAdmin:input_type -> regen.ecocredit.v1.MsgUpdateProjectAdmin - 25, // 23: regen.ecocredit.v1.Msg.UpdateProjectMetadata:input_type -> regen.ecocredit.v1.MsgUpdateProjectMetadata - 27, // 24: regen.ecocredit.v1.Msg.Bridge:input_type -> regen.ecocredit.v1.MsgBridge + 10, // 16: regen.ecocredit.v1.Msg.Send:input_type -> regen.ecocredit.v1.MsgSend + 12, // 17: regen.ecocredit.v1.Msg.Retire:input_type -> regen.ecocredit.v1.MsgRetire + 14, // 18: regen.ecocredit.v1.Msg.Cancel:input_type -> regen.ecocredit.v1.MsgCancel + 16, // 19: regen.ecocredit.v1.Msg.UpdateClassAdmin:input_type -> regen.ecocredit.v1.MsgUpdateClassAdmin + 18, // 20: regen.ecocredit.v1.Msg.UpdateClassIssuers:input_type -> regen.ecocredit.v1.MsgUpdateClassIssuers + 20, // 21: regen.ecocredit.v1.Msg.UpdateClassMetadata:input_type -> regen.ecocredit.v1.MsgUpdateClassMetadata + 22, // 22: regen.ecocredit.v1.Msg.UpdateProjectAdmin:input_type -> regen.ecocredit.v1.MsgUpdateProjectAdmin + 24, // 23: regen.ecocredit.v1.Msg.UpdateProjectMetadata:input_type -> regen.ecocredit.v1.MsgUpdateProjectMetadata + 26, // 24: regen.ecocredit.v1.Msg.Bridge:input_type -> regen.ecocredit.v1.MsgBridge 1, // 25: regen.ecocredit.v1.Msg.CreateClass:output_type -> regen.ecocredit.v1.MsgCreateClassResponse 3, // 26: regen.ecocredit.v1.Msg.CreateProject:output_type -> regen.ecocredit.v1.MsgCreateProjectResponse - 6, // 27: regen.ecocredit.v1.Msg.CreateBatch:output_type -> regen.ecocredit.v1.MsgCreateBatchResponse - 9, // 28: regen.ecocredit.v1.Msg.MintBatchCredits:output_type -> regen.ecocredit.v1.MsgMintBatchCreditsResponse - 10, // 29: regen.ecocredit.v1.Msg.SealBatch:output_type -> regen.ecocredit.v1.MsgSealBatchResponse - 12, // 30: regen.ecocredit.v1.Msg.Send:output_type -> regen.ecocredit.v1.MsgSendResponse - 14, // 31: regen.ecocredit.v1.Msg.Retire:output_type -> regen.ecocredit.v1.MsgRetireResponse - 16, // 32: regen.ecocredit.v1.Msg.Cancel:output_type -> regen.ecocredit.v1.MsgCancelResponse - 18, // 33: regen.ecocredit.v1.Msg.UpdateClassAdmin:output_type -> regen.ecocredit.v1.MsgUpdateClassAdminResponse - 20, // 34: regen.ecocredit.v1.Msg.UpdateClassIssuers:output_type -> regen.ecocredit.v1.MsgUpdateClassIssuersResponse - 22, // 35: regen.ecocredit.v1.Msg.UpdateClassMetadata:output_type -> regen.ecocredit.v1.MsgUpdateClassMetadataResponse - 24, // 36: regen.ecocredit.v1.Msg.UpdateProjectAdmin:output_type -> regen.ecocredit.v1.MsgUpdateProjectAdminResponse - 26, // 37: regen.ecocredit.v1.Msg.UpdateProjectMetadata:output_type -> regen.ecocredit.v1.MsgUpdateProjectMetadataResponse - 28, // 38: regen.ecocredit.v1.Msg.Bridge:output_type -> regen.ecocredit.v1.MsgBridgeResponse + 5, // 27: regen.ecocredit.v1.Msg.CreateBatch:output_type -> regen.ecocredit.v1.MsgCreateBatchResponse + 7, // 28: regen.ecocredit.v1.Msg.MintBatchCredits:output_type -> regen.ecocredit.v1.MsgMintBatchCreditsResponse + 9, // 29: regen.ecocredit.v1.Msg.SealBatch:output_type -> regen.ecocredit.v1.MsgSealBatchResponse + 11, // 30: regen.ecocredit.v1.Msg.Send:output_type -> regen.ecocredit.v1.MsgSendResponse + 13, // 31: regen.ecocredit.v1.Msg.Retire:output_type -> regen.ecocredit.v1.MsgRetireResponse + 15, // 32: regen.ecocredit.v1.Msg.Cancel:output_type -> regen.ecocredit.v1.MsgCancelResponse + 17, // 33: regen.ecocredit.v1.Msg.UpdateClassAdmin:output_type -> regen.ecocredit.v1.MsgUpdateClassAdminResponse + 19, // 34: regen.ecocredit.v1.Msg.UpdateClassIssuers:output_type -> regen.ecocredit.v1.MsgUpdateClassIssuersResponse + 21, // 35: regen.ecocredit.v1.Msg.UpdateClassMetadata:output_type -> regen.ecocredit.v1.MsgUpdateClassMetadataResponse + 23, // 36: regen.ecocredit.v1.Msg.UpdateProjectAdmin:output_type -> regen.ecocredit.v1.MsgUpdateProjectAdminResponse + 25, // 37: regen.ecocredit.v1.Msg.UpdateProjectMetadata:output_type -> regen.ecocredit.v1.MsgUpdateProjectMetadataResponse + 27, // 38: regen.ecocredit.v1.Msg.Bridge:output_type -> regen.ecocredit.v1.MsgBridgeResponse 25, // [25:39] is the sub-list for method output_type 11, // [11:25] is the sub-list for method input_type 11, // [11:11] is the sub-list for extension type_name @@ -18170,7 +16974,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { } } file_regen_ecocredit_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchIssuance); i { + switch v := v.(*MsgCreateBatchResponse); i { case 0: return &v.state case 1: @@ -18182,7 +16986,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.(*MsgCreateBatchResponse); i { + switch v := v.(*MsgMintBatchCredits); i { case 0: return &v.state case 1: @@ -18194,7 +16998,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.(*MsgMintBatchCredits); i { + switch v := v.(*MsgMintBatchCreditsResponse); i { case 0: return &v.state case 1: @@ -18218,18 +17022,6 @@ 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 { - 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[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgSealBatchResponse); i { case 0: return &v.state @@ -18241,7 +17033,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgSend); i { case 0: return &v.state @@ -18253,7 +17045,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgSendResponse); i { case 0: return &v.state @@ -18265,7 +17057,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRetire); i { case 0: return &v.state @@ -18277,7 +17069,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRetireResponse); i { case 0: return &v.state @@ -18289,7 +17081,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCancel); i { case 0: return &v.state @@ -18301,7 +17093,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCancelResponse); i { case 0: return &v.state @@ -18313,7 +17105,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateClassAdmin); i { case 0: return &v.state @@ -18325,7 +17117,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateClassAdminResponse); i { case 0: return &v.state @@ -18337,7 +17129,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateClassIssuers); i { case 0: return &v.state @@ -18349,7 +17141,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateClassIssuersResponse); i { case 0: return &v.state @@ -18361,7 +17153,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateClassMetadata); i { case 0: return &v.state @@ -18373,7 +17165,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateClassMetadataResponse); i { case 0: return &v.state @@ -18385,7 +17177,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateProjectAdmin); i { case 0: return &v.state @@ -18397,7 +17189,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateProjectAdminResponse); i { case 0: return &v.state @@ -18409,7 +17201,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateProjectMetadata); i { case 0: return &v.state @@ -18421,7 +17213,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateProjectMetadataResponse); i { case 0: return &v.state @@ -18433,7 +17225,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgBridge); i { case 0: return &v.state @@ -18445,7 +17237,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgBridgeResponse); i { case 0: return &v.state @@ -18457,7 +17249,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_regen_ecocredit_v1_tx_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgSend_SendCredits); i { case 0: return &v.state @@ -18469,18 +17261,6 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRetire_RetireCredits); 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{ @@ -18488,7 +17268,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: 31, + NumMessages: 29, 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 accae0c345..fcb0b17637 100644 --- a/api/regen/ecocredit/v1/tx_grpc.pb.go +++ b/api/regen/ecocredit/v1/tx_grpc.pb.go @@ -22,48 +22,75 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type MsgClient interface { - // CreateClass creates a new credit class with an approved list of issuers and - // optional metadata. + // CreateClass creates a new credit class under the given credit type with an + // approved list of issuers and optional metadata. The fee denom must be one + // of the denoms listed in Params.credit_class_fee and greater than or equal + // to the fee amount but only the minimum amount is charged. 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 within a credit class. + // 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 and 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 for an existing project. - // This will create a new batch denom with a fixed supply. Issued credits can - // be distributed to recipients in either tradable or retired form. + // 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 issues new token in a given batch. - // The issuer must be the account who created (or delegated using x/authz), - // the batch. - // The request will fail if the batch is not open (is sealed). - // NOTE: this method is only for bridge purpose. It must not be used - // for issuing native credits on Regen. More specifically, we - // enable minting more credits in an existing batch, when the batch - // represents a vintage originally registered in another chain. + // 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 sets the `batch.open` attribute to false. Sealed batch - // can't issue more credits. Once batch is sealed it can't be toggled any - // more. Only batch creator can seal a batch. + // 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 tradable credits from one account to another account. Sent - // credits can either be tradable or retired on receipt. + // 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 number of credits in the holder's account. + // 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 removes a number of credits from the holder's account and also - // deducts them from the tradable supply, effectively cancelling their - // issuance on Regen Ledger + // 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 + // 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 + // 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 + // 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 + // 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 + // 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) - // Bridge cancels credits and emits a bridge event. + // Bridge cancels a specified amount of tradable credits and emits a special + // bridge event handled by an external bridge service. Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.CallOption) (*MsgBridgeResponse, error) } @@ -205,48 +232,75 @@ func (c *msgClient) Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.Call // All implementations must embed UnimplementedMsgServer // for forward compatibility type MsgServer interface { - // CreateClass creates a new credit class with an approved list of issuers and - // optional metadata. + // CreateClass creates a new credit class under the given credit type with an + // approved list of issuers and optional metadata. The fee denom must be one + // of the denoms listed in Params.credit_class_fee and greater than or equal + // to the fee amount but only the minimum amount is charged. 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 within a credit class. + // 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 and the creator becomes the admin of the project upon creation. CreateProject(context.Context, *MsgCreateProject) (*MsgCreateProjectResponse, error) - // CreateBatch creates a new batch of credits for an existing project. - // This will create a new batch denom with a fixed supply. Issued credits can - // be distributed to recipients in either tradable or retired form. + // 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 issues new token in a given batch. - // The issuer must be the account who created (or delegated using x/authz), - // the batch. - // The request will fail if the batch is not open (is sealed). - // NOTE: this method is only for bridge purpose. It must not be used - // for issuing native credits on Regen. More specifically, we - // enable minting more credits in an existing batch, when the batch - // represents a vintage originally registered in another chain. + // 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 sets the `batch.open` attribute to false. Sealed batch - // can't issue more credits. Once batch is sealed it can't be toggled any - // more. Only batch creator can seal a batch. + // 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 tradable credits from one account to another account. Sent - // credits can either be tradable or retired on receipt. + // 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 number of credits in the holder's account. + // 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 removes a number of credits from the holder's account and also - // deducts them from the tradable supply, effectively cancelling their - // issuance on Regen Ledger + // 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 + // 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 + // 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 + // 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 + // 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 + // UpdateProjectMetadata updates the project metadata. Only the admin of the + // project can update the project. UpdateProjectMetadata(context.Context, *MsgUpdateProjectMetadata) (*MsgUpdateProjectMetadataResponse, error) - // Bridge cancels credits and emits a bridge event. + // Bridge cancels a specified amount of tradable credits and emits a special + // bridge event handled by an external bridge service. Bridge(context.Context, *MsgBridge) (*MsgBridgeResponse, error) mustEmbedUnimplementedMsgServer() } diff --git a/api/regen/ecocredit/v1/types.pulsar.go b/api/regen/ecocredit/v1/types.pulsar.go index 97bd927353..5cf125c549 100644 --- a/api/regen/ecocredit/v1/types.pulsar.go +++ b/api/regen/ecocredit/v1/types.pulsar.go @@ -825,27 +825,27 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } var ( - md_OriginTx protoreflect.MessageDescriptor - fd_OriginTx_id protoreflect.FieldDescriptor - fd_OriginTx_source protoreflect.FieldDescriptor + md_Credits protoreflect.MessageDescriptor + fd_Credits_batch_denom protoreflect.FieldDescriptor + fd_Credits_amount protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_types_proto_init() - md_OriginTx = File_regen_ecocredit_v1_types_proto.Messages().ByName("OriginTx") - fd_OriginTx_id = md_OriginTx.Fields().ByName("id") - fd_OriginTx_source = md_OriginTx.Fields().ByName("source") + md_Credits = File_regen_ecocredit_v1_types_proto.Messages().ByName("Credits") + fd_Credits_batch_denom = md_Credits.Fields().ByName("batch_denom") + fd_Credits_amount = md_Credits.Fields().ByName("amount") } -var _ protoreflect.Message = (*fastReflection_OriginTx)(nil) +var _ protoreflect.Message = (*fastReflection_Credits)(nil) -type fastReflection_OriginTx OriginTx +type fastReflection_Credits Credits -func (x *OriginTx) ProtoReflect() protoreflect.Message { - return (*fastReflection_OriginTx)(x) +func (x *Credits) ProtoReflect() protoreflect.Message { + return (*fastReflection_Credits)(x) } -func (x *OriginTx) slowProtoReflect() protoreflect.Message { +func (x *Credits) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_types_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -857,43 +857,43 @@ func (x *OriginTx) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_OriginTx_messageType fastReflection_OriginTx_messageType -var _ protoreflect.MessageType = fastReflection_OriginTx_messageType{} +var _fastReflection_Credits_messageType fastReflection_Credits_messageType +var _ protoreflect.MessageType = fastReflection_Credits_messageType{} -type fastReflection_OriginTx_messageType struct{} +type fastReflection_Credits_messageType struct{} -func (x fastReflection_OriginTx_messageType) Zero() protoreflect.Message { - return (*fastReflection_OriginTx)(nil) +func (x fastReflection_Credits_messageType) Zero() protoreflect.Message { + return (*fastReflection_Credits)(nil) } -func (x fastReflection_OriginTx_messageType) New() protoreflect.Message { - return new(fastReflection_OriginTx) +func (x fastReflection_Credits_messageType) New() protoreflect.Message { + return new(fastReflection_Credits) } -func (x fastReflection_OriginTx_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_OriginTx +func (x fastReflection_Credits_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Credits } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_OriginTx) Descriptor() protoreflect.MessageDescriptor { - return md_OriginTx +func (x *fastReflection_Credits) Descriptor() protoreflect.MessageDescriptor { + return md_Credits } // 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_OriginTx) Type() protoreflect.MessageType { - return _fastReflection_OriginTx_messageType +func (x *fastReflection_Credits) Type() protoreflect.MessageType { + return _fastReflection_Credits_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_OriginTx) New() protoreflect.Message { - return new(fastReflection_OriginTx) +func (x *fastReflection_Credits) New() protoreflect.Message { + return new(fastReflection_Credits) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_OriginTx) Interface() protoreflect.ProtoMessage { - return (*OriginTx)(x) +func (x *fastReflection_Credits) Interface() protoreflect.ProtoMessage { + return (*Credits)(x) } // Range iterates over every populated field in an undefined order, @@ -901,16 +901,16 @@ func (x *fastReflection_OriginTx) 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_OriginTx) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != "" { - value := protoreflect.ValueOfString(x.Id) - if !f(fd_OriginTx_id, value) { +func (x *fastReflection_Credits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BatchDenom != "" { + value := protoreflect.ValueOfString(x.BatchDenom) + if !f(fd_Credits_batch_denom, value) { return } } - if x.Source != "" { - value := protoreflect.ValueOfString(x.Source) - if !f(fd_OriginTx_source, value) { + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_Credits_amount, value) { return } } @@ -927,17 +927,17 @@ func (x *fastReflection_OriginTx) Range(f func(protoreflect.FieldDescriptor, pro // 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_OriginTx) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_Credits) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.OriginTx.id": - return x.Id != "" - case "regen.ecocredit.v1.OriginTx.source": - return x.Source != "" + case "regen.ecocredit.v1.Credits.batch_denom": + return x.BatchDenom != "" + case "regen.ecocredit.v1.Credits.amount": + return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.Credits does not contain field %s", fd.FullName())) } } @@ -947,17 +947,17 @@ func (x *fastReflection_OriginTx) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OriginTx) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_Credits) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.OriginTx.id": - x.Id = "" - case "regen.ecocredit.v1.OriginTx.source": - x.Source = "" + case "regen.ecocredit.v1.Credits.batch_denom": + x.BatchDenom = "" + case "regen.ecocredit.v1.Credits.amount": + x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.Credits does not contain field %s", fd.FullName())) } } @@ -967,19 +967,19 @@ func (x *fastReflection_OriginTx) 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_OriginTx) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Credits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.OriginTx.id": - value := x.Id + case "regen.ecocredit.v1.Credits.batch_denom": + value := x.BatchDenom return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.OriginTx.source": - value := x.Source + case "regen.ecocredit.v1.Credits.amount": + value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.Credits does not contain field %s", descriptor.FullName())) } } @@ -993,17 +993,17 @@ func (x *fastReflection_OriginTx) Get(descriptor protoreflect.FieldDescriptor) p // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OriginTx) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_Credits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.OriginTx.id": - x.Id = value.Interface().(string) - case "regen.ecocredit.v1.OriginTx.source": - x.Source = value.Interface().(string) + case "regen.ecocredit.v1.Credits.batch_denom": + x.BatchDenom = value.Interface().(string) + case "regen.ecocredit.v1.Credits.amount": + x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.Credits does not contain field %s", fd.FullName())) } } @@ -1017,44 +1017,44 @@ func (x *fastReflection_OriginTx) Set(fd protoreflect.FieldDescriptor, value pro // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OriginTx) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Credits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.OriginTx.id": - panic(fmt.Errorf("field id of message regen.ecocredit.v1.OriginTx is not mutable")) - case "regen.ecocredit.v1.OriginTx.source": - panic(fmt.Errorf("field source of message regen.ecocredit.v1.OriginTx is not mutable")) + case "regen.ecocredit.v1.Credits.batch_denom": + panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.Credits is not mutable")) + case "regen.ecocredit.v1.Credits.amount": + panic(fmt.Errorf("field amount of message regen.ecocredit.v1.Credits is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.Credits 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_OriginTx) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Credits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.OriginTx.id": + case "regen.ecocredit.v1.Credits.batch_denom": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.OriginTx.source": + case "regen.ecocredit.v1.Credits.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) } - panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.Credits 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_OriginTx) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_Credits) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.OriginTx", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.Credits", d.FullName())) } panic("unreachable") } @@ -1062,7 +1062,7 @@ func (x *fastReflection_OriginTx) WhichOneof(d protoreflect.OneofDescriptor) pro // 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_OriginTx) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_Credits) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1073,7 +1073,7 @@ func (x *fastReflection_OriginTx) 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_OriginTx) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_Credits) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1085,7 +1085,7 @@ func (x *fastReflection_OriginTx) 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_OriginTx) IsValid() bool { +func (x *fastReflection_Credits) IsValid() bool { return x != nil } @@ -1095,9 +1095,9 @@ func (x *fastReflection_OriginTx) 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_OriginTx) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_Credits) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*OriginTx) + x := input.Message.Interface().(*Credits) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1109,11 +1109,11 @@ func (x *fastReflection_OriginTx) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Id) + l = len(x.BatchDenom) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Source) + l = len(x.Amount) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -1127,7 +1127,7 @@ func (x *fastReflection_OriginTx) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*OriginTx) + x := input.Message.Interface().(*Credits) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1146,17 +1146,17 @@ func (x *fastReflection_OriginTx) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Source) > 0 { - i -= len(x.Source) - copy(dAtA[i:], x.Source) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Source))) + 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.Id) > 0 { - i -= len(x.Id) - copy(dAtA[i:], x.Id) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) + 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 } @@ -1171,7 +1171,7 @@ func (x *fastReflection_OriginTx) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*OriginTx) + x := input.Message.Interface().(*Credits) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1203,15 +1203,15 @@ func (x *fastReflection_OriginTx) 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: OriginTx: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Credits: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OriginTx: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Credits: 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 Id", 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 { @@ -1239,11 +1239,11 @@ func (x *fastReflection_OriginTx) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Id = 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 Source", wireType) + 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 { @@ -1271,7 +1271,7 @@ func (x *fastReflection_OriginTx) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Source = string(dAtA[iNdEx:postIndex]) + x.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1309,29 +1309,31 @@ func (x *fastReflection_OriginTx) ProtoMethods() *protoiface.Methods { } var ( - md_CreditTypeProposal protoreflect.MessageDescriptor - fd_CreditTypeProposal_title protoreflect.FieldDescriptor - fd_CreditTypeProposal_description protoreflect.FieldDescriptor - fd_CreditTypeProposal_credit_type protoreflect.FieldDescriptor + md_BatchIssuance protoreflect.MessageDescriptor + fd_BatchIssuance_recipient protoreflect.FieldDescriptor + fd_BatchIssuance_tradable_amount protoreflect.FieldDescriptor + fd_BatchIssuance_retired_amount protoreflect.FieldDescriptor + fd_BatchIssuance_retirement_jurisdiction protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_types_proto_init() - md_CreditTypeProposal = File_regen_ecocredit_v1_types_proto.Messages().ByName("CreditTypeProposal") - fd_CreditTypeProposal_title = md_CreditTypeProposal.Fields().ByName("title") - fd_CreditTypeProposal_description = md_CreditTypeProposal.Fields().ByName("description") - fd_CreditTypeProposal_credit_type = md_CreditTypeProposal.Fields().ByName("credit_type") + md_BatchIssuance = File_regen_ecocredit_v1_types_proto.Messages().ByName("BatchIssuance") + fd_BatchIssuance_recipient = md_BatchIssuance.Fields().ByName("recipient") + fd_BatchIssuance_tradable_amount = md_BatchIssuance.Fields().ByName("tradable_amount") + fd_BatchIssuance_retired_amount = md_BatchIssuance.Fields().ByName("retired_amount") + fd_BatchIssuance_retirement_jurisdiction = md_BatchIssuance.Fields().ByName("retirement_jurisdiction") } -var _ protoreflect.Message = (*fastReflection_CreditTypeProposal)(nil) +var _ protoreflect.Message = (*fastReflection_BatchIssuance)(nil) -type fastReflection_CreditTypeProposal CreditTypeProposal +type fastReflection_BatchIssuance BatchIssuance -func (x *CreditTypeProposal) ProtoReflect() protoreflect.Message { - return (*fastReflection_CreditTypeProposal)(x) +func (x *BatchIssuance) ProtoReflect() protoreflect.Message { + return (*fastReflection_BatchIssuance)(x) } -func (x *CreditTypeProposal) slowProtoReflect() protoreflect.Message { +func (x *BatchIssuance) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_types_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1343,43 +1345,43 @@ func (x *CreditTypeProposal) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_CreditTypeProposal_messageType fastReflection_CreditTypeProposal_messageType -var _ protoreflect.MessageType = fastReflection_CreditTypeProposal_messageType{} +var _fastReflection_BatchIssuance_messageType fastReflection_BatchIssuance_messageType +var _ protoreflect.MessageType = fastReflection_BatchIssuance_messageType{} -type fastReflection_CreditTypeProposal_messageType struct{} +type fastReflection_BatchIssuance_messageType struct{} -func (x fastReflection_CreditTypeProposal_messageType) Zero() protoreflect.Message { - return (*fastReflection_CreditTypeProposal)(nil) +func (x fastReflection_BatchIssuance_messageType) Zero() protoreflect.Message { + return (*fastReflection_BatchIssuance)(nil) } -func (x fastReflection_CreditTypeProposal_messageType) New() protoreflect.Message { - return new(fastReflection_CreditTypeProposal) +func (x fastReflection_BatchIssuance_messageType) New() protoreflect.Message { + return new(fastReflection_BatchIssuance) } -func (x fastReflection_CreditTypeProposal_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CreditTypeProposal +func (x fastReflection_BatchIssuance_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BatchIssuance } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_CreditTypeProposal) Descriptor() protoreflect.MessageDescriptor { - return md_CreditTypeProposal +func (x *fastReflection_BatchIssuance) Descriptor() protoreflect.MessageDescriptor { + return md_BatchIssuance } // 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_CreditTypeProposal) Type() protoreflect.MessageType { - return _fastReflection_CreditTypeProposal_messageType +func (x *fastReflection_BatchIssuance) Type() protoreflect.MessageType { + return _fastReflection_BatchIssuance_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_CreditTypeProposal) New() protoreflect.Message { - return new(fastReflection_CreditTypeProposal) +func (x *fastReflection_BatchIssuance) New() protoreflect.Message { + return new(fastReflection_BatchIssuance) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_CreditTypeProposal) Interface() protoreflect.ProtoMessage { - return (*CreditTypeProposal)(x) +func (x *fastReflection_BatchIssuance) Interface() protoreflect.ProtoMessage { + return (*BatchIssuance)(x) } // Range iterates over every populated field in an undefined order, @@ -1387,22 +1389,28 @@ func (x *fastReflection_CreditTypeProposal) 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_CreditTypeProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Title != "" { - value := protoreflect.ValueOfString(x.Title) - if !f(fd_CreditTypeProposal_title, value) { +func (x *fastReflection_BatchIssuance) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Recipient != "" { + value := protoreflect.ValueOfString(x.Recipient) + if !f(fd_BatchIssuance_recipient, value) { return } } - if x.Description != "" { - value := protoreflect.ValueOfString(x.Description) - if !f(fd_CreditTypeProposal_description, value) { + if x.TradableAmount != "" { + value := protoreflect.ValueOfString(x.TradableAmount) + if !f(fd_BatchIssuance_tradable_amount, value) { return } } - if x.CreditType != nil { - value := protoreflect.ValueOfMessage(x.CreditType.ProtoReflect()) - if !f(fd_CreditTypeProposal_credit_type, value) { + if x.RetiredAmount != "" { + value := protoreflect.ValueOfString(x.RetiredAmount) + if !f(fd_BatchIssuance_retired_amount, value) { + return + } + } + if x.RetirementJurisdiction != "" { + value := protoreflect.ValueOfString(x.RetirementJurisdiction) + if !f(fd_BatchIssuance_retirement_jurisdiction, value) { return } } @@ -1419,19 +1427,21 @@ func (x *fastReflection_CreditTypeProposal) 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_CreditTypeProposal) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_BatchIssuance) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.CreditTypeProposal.title": - return x.Title != "" - case "regen.ecocredit.v1.CreditTypeProposal.description": - return x.Description != "" - case "regen.ecocredit.v1.CreditTypeProposal.credit_type": - return x.CreditType != nil + case "regen.ecocredit.v1.BatchIssuance.recipient": + return x.Recipient != "" + case "regen.ecocredit.v1.BatchIssuance.tradable_amount": + return x.TradableAmount != "" + case "regen.ecocredit.v1.BatchIssuance.retired_amount": + return x.RetiredAmount != "" + case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": + return x.RetirementJurisdiction != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.BatchIssuance")) } - panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance does not contain field %s", fd.FullName())) } } @@ -1441,19 +1451,21 @@ func (x *fastReflection_CreditTypeProposal) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CreditTypeProposal) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_BatchIssuance) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.CreditTypeProposal.title": - x.Title = "" - case "regen.ecocredit.v1.CreditTypeProposal.description": - x.Description = "" - case "regen.ecocredit.v1.CreditTypeProposal.credit_type": - x.CreditType = nil + case "regen.ecocredit.v1.BatchIssuance.recipient": + x.Recipient = "" + case "regen.ecocredit.v1.BatchIssuance.tradable_amount": + x.TradableAmount = "" + case "regen.ecocredit.v1.BatchIssuance.retired_amount": + x.RetiredAmount = "" + case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": + x.RetirementJurisdiction = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.BatchIssuance")) } - panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance does not contain field %s", fd.FullName())) } } @@ -1463,22 +1475,25 @@ func (x *fastReflection_CreditTypeProposal) 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_CreditTypeProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_BatchIssuance) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.CreditTypeProposal.title": - value := x.Title + case "regen.ecocredit.v1.BatchIssuance.recipient": + value := x.Recipient return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.CreditTypeProposal.description": - value := x.Description + case "regen.ecocredit.v1.BatchIssuance.tradable_amount": + value := x.TradableAmount + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.BatchIssuance.retired_amount": + value := x.RetiredAmount + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": + value := x.RetirementJurisdiction return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.CreditTypeProposal.credit_type": - value := x.CreditType - return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.BatchIssuance")) } - panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance does not contain field %s", descriptor.FullName())) } } @@ -1492,19 +1507,21 @@ func (x *fastReflection_CreditTypeProposal) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CreditTypeProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_BatchIssuance) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.CreditTypeProposal.title": - x.Title = value.Interface().(string) - case "regen.ecocredit.v1.CreditTypeProposal.description": - x.Description = value.Interface().(string) - case "regen.ecocredit.v1.CreditTypeProposal.credit_type": - x.CreditType = value.Message().Interface().(*CreditType) + case "regen.ecocredit.v1.BatchIssuance.recipient": + x.Recipient = value.Interface().(string) + case "regen.ecocredit.v1.BatchIssuance.tradable_amount": + x.TradableAmount = value.Interface().(string) + case "regen.ecocredit.v1.BatchIssuance.retired_amount": + x.RetiredAmount = value.Interface().(string) + case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": + x.RetirementJurisdiction = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.BatchIssuance")) } - panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance does not contain field %s", fd.FullName())) } } @@ -1518,52 +1535,52 @@ func (x *fastReflection_CreditTypeProposal) 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_CreditTypeProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_BatchIssuance) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.CreditTypeProposal.credit_type": - if x.CreditType == nil { - x.CreditType = new(CreditType) - } - return protoreflect.ValueOfMessage(x.CreditType.ProtoReflect()) - case "regen.ecocredit.v1.CreditTypeProposal.title": - panic(fmt.Errorf("field title of message regen.ecocredit.v1.CreditTypeProposal is not mutable")) - case "regen.ecocredit.v1.CreditTypeProposal.description": - panic(fmt.Errorf("field description of message regen.ecocredit.v1.CreditTypeProposal is not mutable")) + case "regen.ecocredit.v1.BatchIssuance.recipient": + panic(fmt.Errorf("field recipient of message regen.ecocredit.v1.BatchIssuance is not mutable")) + case "regen.ecocredit.v1.BatchIssuance.tradable_amount": + panic(fmt.Errorf("field tradable_amount of message regen.ecocredit.v1.BatchIssuance is not mutable")) + case "regen.ecocredit.v1.BatchIssuance.retired_amount": + panic(fmt.Errorf("field retired_amount of message regen.ecocredit.v1.BatchIssuance is not mutable")) + case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": + panic(fmt.Errorf("field retirement_jurisdiction of message regen.ecocredit.v1.BatchIssuance is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.BatchIssuance")) } - panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance 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_CreditTypeProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_BatchIssuance) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.CreditTypeProposal.title": + case "regen.ecocredit.v1.BatchIssuance.recipient": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.CreditTypeProposal.description": + case "regen.ecocredit.v1.BatchIssuance.tradable_amount": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.BatchIssuance.retired_amount": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.BatchIssuance.retirement_jurisdiction": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.CreditTypeProposal.credit_type": - m := new(CreditType) - return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.BatchIssuance")) } - panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.BatchIssuance 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_CreditTypeProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_BatchIssuance) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.CreditTypeProposal", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.BatchIssuance", d.FullName())) } panic("unreachable") } @@ -1571,7 +1588,7 @@ func (x *fastReflection_CreditTypeProposal) 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_CreditTypeProposal) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_BatchIssuance) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1582,7 +1599,7 @@ func (x *fastReflection_CreditTypeProposal) 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_CreditTypeProposal) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_BatchIssuance) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1594,7 +1611,7 @@ func (x *fastReflection_CreditTypeProposal) 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_CreditTypeProposal) IsValid() bool { +func (x *fastReflection_BatchIssuance) IsValid() bool { return x != nil } @@ -1604,9 +1621,9 @@ func (x *fastReflection_CreditTypeProposal) 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_CreditTypeProposal) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_BatchIssuance) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CreditTypeProposal) + x := input.Message.Interface().(*BatchIssuance) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1618,16 +1635,20 @@ func (x *fastReflection_CreditTypeProposal) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Title) + l = len(x.Recipient) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Description) + l = len(x.TradableAmount) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.CreditType != nil { - l = options.Size(x.CreditType) + 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)) } if x.unknownFields != nil { @@ -1640,7 +1661,7 @@ func (x *fastReflection_CreditTypeProposal) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*CreditTypeProposal) + x := input.Message.Interface().(*BatchIssuance) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1659,31 +1680,31 @@ func (x *fastReflection_CreditTypeProposal) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.CreditType != nil { - encoded, err := options.Marshal(x.CreditType) - 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.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.Description) > 0 { - i -= len(x.Description) - copy(dAtA[i:], x.Description) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Description))) + 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.Title) > 0 { - i -= len(x.Title) - copy(dAtA[i:], x.Title) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Title))) + 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 } @@ -1698,7 +1719,7 @@ func (x *fastReflection_CreditTypeProposal) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CreditTypeProposal) + x := input.Message.Interface().(*BatchIssuance) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1730,15 +1751,15 @@ func (x *fastReflection_CreditTypeProposal) 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: CreditTypeProposal: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BatchIssuance: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CreditTypeProposal: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BatchIssuance: 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 Title", wireType) + 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 { @@ -1766,11 +1787,11 @@ func (x *fastReflection_CreditTypeProposal) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Title = string(dAtA[iNdEx:postIndex]) + 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 Description", 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 { @@ -1798,13 +1819,13 @@ func (x *fastReflection_CreditTypeProposal) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Description = 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 CreditType", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RetiredAmount", 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 @@ -1814,27 +1835,55 @@ func (x *fastReflection_CreditTypeProposal) 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.CreditType == nil { - x.CreditType = &CreditType{} + 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) } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CreditType); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + 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 default: iNdEx = preIndex @@ -1872,27 +1921,27 @@ func (x *fastReflection_CreditTypeProposal) ProtoMethods() *protoiface.Methods { } var ( - md_Credits protoreflect.MessageDescriptor - fd_Credits_batch_denom protoreflect.FieldDescriptor - fd_Credits_amount protoreflect.FieldDescriptor + md_OriginTx protoreflect.MessageDescriptor + fd_OriginTx_id protoreflect.FieldDescriptor + fd_OriginTx_source protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_types_proto_init() - md_Credits = File_regen_ecocredit_v1_types_proto.Messages().ByName("Credits") - fd_Credits_batch_denom = md_Credits.Fields().ByName("batch_denom") - fd_Credits_amount = md_Credits.Fields().ByName("amount") + md_OriginTx = File_regen_ecocredit_v1_types_proto.Messages().ByName("OriginTx") + fd_OriginTx_id = md_OriginTx.Fields().ByName("id") + fd_OriginTx_source = md_OriginTx.Fields().ByName("source") } -var _ protoreflect.Message = (*fastReflection_Credits)(nil) +var _ protoreflect.Message = (*fastReflection_OriginTx)(nil) -type fastReflection_Credits Credits +type fastReflection_OriginTx OriginTx -func (x *Credits) ProtoReflect() protoreflect.Message { - return (*fastReflection_Credits)(x) +func (x *OriginTx) ProtoReflect() protoreflect.Message { + return (*fastReflection_OriginTx)(x) } -func (x *Credits) slowProtoReflect() protoreflect.Message { +func (x *OriginTx) slowProtoReflect() protoreflect.Message { mi := &file_regen_ecocredit_v1_types_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1904,43 +1953,43 @@ func (x *Credits) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_Credits_messageType fastReflection_Credits_messageType -var _ protoreflect.MessageType = fastReflection_Credits_messageType{} +var _fastReflection_OriginTx_messageType fastReflection_OriginTx_messageType +var _ protoreflect.MessageType = fastReflection_OriginTx_messageType{} -type fastReflection_Credits_messageType struct{} +type fastReflection_OriginTx_messageType struct{} -func (x fastReflection_Credits_messageType) Zero() protoreflect.Message { - return (*fastReflection_Credits)(nil) +func (x fastReflection_OriginTx_messageType) Zero() protoreflect.Message { + return (*fastReflection_OriginTx)(nil) } -func (x fastReflection_Credits_messageType) New() protoreflect.Message { - return new(fastReflection_Credits) +func (x fastReflection_OriginTx_messageType) New() protoreflect.Message { + return new(fastReflection_OriginTx) } -func (x fastReflection_Credits_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Credits +func (x fastReflection_OriginTx_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OriginTx } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_Credits) Descriptor() protoreflect.MessageDescriptor { - return md_Credits +func (x *fastReflection_OriginTx) Descriptor() protoreflect.MessageDescriptor { + return md_OriginTx } // 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_Credits) Type() protoreflect.MessageType { - return _fastReflection_Credits_messageType +func (x *fastReflection_OriginTx) Type() protoreflect.MessageType { + return _fastReflection_OriginTx_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_Credits) New() protoreflect.Message { - return new(fastReflection_Credits) +func (x *fastReflection_OriginTx) New() protoreflect.Message { + return new(fastReflection_OriginTx) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_Credits) Interface() protoreflect.ProtoMessage { - return (*Credits)(x) +func (x *fastReflection_OriginTx) Interface() protoreflect.ProtoMessage { + return (*OriginTx)(x) } // Range iterates over every populated field in an undefined order, @@ -1948,16 +1997,16 @@ func (x *fastReflection_Credits) 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_Credits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.BatchDenom != "" { - value := protoreflect.ValueOfString(x.BatchDenom) - if !f(fd_Credits_batch_denom, value) { +func (x *fastReflection_OriginTx) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != "" { + value := protoreflect.ValueOfString(x.Id) + if !f(fd_OriginTx_id, value) { return } } - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_Credits_amount, value) { + if x.Source != "" { + value := protoreflect.ValueOfString(x.Source) + if !f(fd_OriginTx_source, value) { return } } @@ -1974,17 +2023,17 @@ func (x *fastReflection_Credits) Range(f func(protoreflect.FieldDescriptor, prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_Credits) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_OriginTx) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.Credits.batch_denom": - return x.BatchDenom != "" - case "regen.ecocredit.v1.Credits.amount": - return x.Amount != "" + case "regen.ecocredit.v1.OriginTx.id": + return x.Id != "" + case "regen.ecocredit.v1.OriginTx.source": + return x.Source != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) } - panic(fmt.Errorf("message regen.ecocredit.v1.Credits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx does not contain field %s", fd.FullName())) } } @@ -1994,17 +2043,17 @@ func (x *fastReflection_Credits) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Credits) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_OriginTx) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.Credits.batch_denom": - x.BatchDenom = "" - case "regen.ecocredit.v1.Credits.amount": - x.Amount = "" + case "regen.ecocredit.v1.OriginTx.id": + x.Id = "" + case "regen.ecocredit.v1.OriginTx.source": + x.Source = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) } - panic(fmt.Errorf("message regen.ecocredit.v1.Credits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx does not contain field %s", fd.FullName())) } } @@ -2014,19 +2063,19 @@ func (x *fastReflection_Credits) 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_Credits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_OriginTx) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.Credits.batch_denom": - value := x.BatchDenom + case "regen.ecocredit.v1.OriginTx.id": + value := x.Id return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.Credits.amount": - value := x.Amount + case "regen.ecocredit.v1.OriginTx.source": + value := x.Source return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) } - panic(fmt.Errorf("message regen.ecocredit.v1.Credits does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx does not contain field %s", descriptor.FullName())) } } @@ -2040,17 +2089,518 @@ func (x *fastReflection_Credits) 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_Credits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_OriginTx) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.Credits.batch_denom": - x.BatchDenom = value.Interface().(string) - case "regen.ecocredit.v1.Credits.amount": - x.Amount = value.Interface().(string) + case "regen.ecocredit.v1.OriginTx.id": + x.Id = value.Interface().(string) + case "regen.ecocredit.v1.OriginTx.source": + x.Source = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx 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_OriginTx) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.OriginTx.id": + panic(fmt.Errorf("field id of message regen.ecocredit.v1.OriginTx is not mutable")) + case "regen.ecocredit.v1.OriginTx.source": + panic(fmt.Errorf("field source of message regen.ecocredit.v1.OriginTx is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx 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_OriginTx) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.OriginTx.id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.OriginTx.source": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.OriginTx")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.OriginTx 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_OriginTx) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.OriginTx", 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_OriginTx) 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_OriginTx) 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_OriginTx) 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_OriginTx) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OriginTx) + 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.Id) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Source) + 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().(*OriginTx) + 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.Source) > 0 { + i -= len(x.Source) + copy(dAtA[i:], x.Source) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Source))) + i-- + dAtA[i] = 0x12 + } + if len(x.Id) > 0 { + i -= len(x.Id) + copy(dAtA[i:], x.Id) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) + 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().(*OriginTx) + 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: OriginTx: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OriginTx: 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 Id", 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.Id = 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 Source", 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.Source = 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_CreditTypeProposal protoreflect.MessageDescriptor + fd_CreditTypeProposal_title protoreflect.FieldDescriptor + fd_CreditTypeProposal_description protoreflect.FieldDescriptor + fd_CreditTypeProposal_credit_type protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_types_proto_init() + md_CreditTypeProposal = File_regen_ecocredit_v1_types_proto.Messages().ByName("CreditTypeProposal") + fd_CreditTypeProposal_title = md_CreditTypeProposal.Fields().ByName("title") + fd_CreditTypeProposal_description = md_CreditTypeProposal.Fields().ByName("description") + fd_CreditTypeProposal_credit_type = md_CreditTypeProposal.Fields().ByName("credit_type") +} + +var _ protoreflect.Message = (*fastReflection_CreditTypeProposal)(nil) + +type fastReflection_CreditTypeProposal CreditTypeProposal + +func (x *CreditTypeProposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_CreditTypeProposal)(x) +} + +func (x *CreditTypeProposal) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_types_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_CreditTypeProposal_messageType fastReflection_CreditTypeProposal_messageType +var _ protoreflect.MessageType = fastReflection_CreditTypeProposal_messageType{} + +type fastReflection_CreditTypeProposal_messageType struct{} + +func (x fastReflection_CreditTypeProposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_CreditTypeProposal)(nil) +} +func (x fastReflection_CreditTypeProposal_messageType) New() protoreflect.Message { + return new(fastReflection_CreditTypeProposal) +} +func (x fastReflection_CreditTypeProposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_CreditTypeProposal +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_CreditTypeProposal) Descriptor() protoreflect.MessageDescriptor { + return md_CreditTypeProposal +} + +// 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_CreditTypeProposal) Type() protoreflect.MessageType { + return _fastReflection_CreditTypeProposal_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_CreditTypeProposal) New() protoreflect.Message { + return new(fastReflection_CreditTypeProposal) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_CreditTypeProposal) Interface() protoreflect.ProtoMessage { + return (*CreditTypeProposal)(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_CreditTypeProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Title != "" { + value := protoreflect.ValueOfString(x.Title) + if !f(fd_CreditTypeProposal_title, value) { + return + } + } + if x.Description != "" { + value := protoreflect.ValueOfString(x.Description) + if !f(fd_CreditTypeProposal_description, value) { + return + } + } + if x.CreditType != nil { + value := protoreflect.ValueOfMessage(x.CreditType.ProtoReflect()) + if !f(fd_CreditTypeProposal_credit_type, value) { + return } - panic(fmt.Errorf("message regen.ecocredit.v1.Credits does not contain field %s", fd.FullName())) + } +} + +// 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_CreditTypeProposal) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.CreditTypeProposal.title": + return x.Title != "" + case "regen.ecocredit.v1.CreditTypeProposal.description": + return x.Description != "" + case "regen.ecocredit.v1.CreditTypeProposal.credit_type": + return x.CreditType != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal 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_CreditTypeProposal) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.CreditTypeProposal.title": + x.Title = "" + case "regen.ecocredit.v1.CreditTypeProposal.description": + x.Description = "" + case "regen.ecocredit.v1.CreditTypeProposal.credit_type": + x.CreditType = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal 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_CreditTypeProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.CreditTypeProposal.title": + value := x.Title + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.CreditTypeProposal.description": + value := x.Description + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.CreditTypeProposal.credit_type": + value := x.CreditType + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal 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_CreditTypeProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.CreditTypeProposal.title": + x.Title = value.Interface().(string) + case "regen.ecocredit.v1.CreditTypeProposal.description": + x.Description = value.Interface().(string) + case "regen.ecocredit.v1.CreditTypeProposal.credit_type": + x.CreditType = value.Message().Interface().(*CreditType) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal does not contain field %s", fd.FullName())) } } @@ -2064,44 +2614,52 @@ func (x *fastReflection_Credits) 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_Credits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_CreditTypeProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.Credits.batch_denom": - panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.Credits is not mutable")) - case "regen.ecocredit.v1.Credits.amount": - panic(fmt.Errorf("field amount of message regen.ecocredit.v1.Credits is not mutable")) + case "regen.ecocredit.v1.CreditTypeProposal.credit_type": + if x.CreditType == nil { + x.CreditType = new(CreditType) + } + return protoreflect.ValueOfMessage(x.CreditType.ProtoReflect()) + case "regen.ecocredit.v1.CreditTypeProposal.title": + panic(fmt.Errorf("field title of message regen.ecocredit.v1.CreditTypeProposal is not mutable")) + case "regen.ecocredit.v1.CreditTypeProposal.description": + panic(fmt.Errorf("field description of message regen.ecocredit.v1.CreditTypeProposal is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) } - panic(fmt.Errorf("message regen.ecocredit.v1.Credits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal 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_Credits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_CreditTypeProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.Credits.batch_denom": + case "regen.ecocredit.v1.CreditTypeProposal.title": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.Credits.amount": + case "regen.ecocredit.v1.CreditTypeProposal.description": return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.CreditTypeProposal.credit_type": + m := new(CreditType) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.CreditTypeProposal")) } - panic(fmt.Errorf("message regen.ecocredit.v1.Credits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.CreditTypeProposal 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_Credits) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_CreditTypeProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.Credits", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.CreditTypeProposal", d.FullName())) } panic("unreachable") } @@ -2109,7 +2667,7 @@ func (x *fastReflection_Credits) 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_Credits) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_CreditTypeProposal) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2120,7 +2678,7 @@ func (x *fastReflection_Credits) 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_Credits) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_CreditTypeProposal) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2132,7 +2690,7 @@ func (x *fastReflection_Credits) 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_Credits) IsValid() bool { +func (x *fastReflection_CreditTypeProposal) IsValid() bool { return x != nil } @@ -2142,9 +2700,9 @@ func (x *fastReflection_Credits) 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_Credits) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_CreditTypeProposal) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Credits) + x := input.Message.Interface().(*CreditTypeProposal) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2156,14 +2714,18 @@ func (x *fastReflection_Credits) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.BatchDenom) + l = len(x.Title) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Amount) + l = len(x.Description) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.CreditType != nil { + l = options.Size(x.CreditType) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2174,7 +2736,7 @@ func (x *fastReflection_Credits) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Credits) + x := input.Message.Interface().(*CreditTypeProposal) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2193,17 +2755,31 @@ func (x *fastReflection_Credits) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - i -= len(x.Amount) - copy(dAtA[i:], x.Amount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + if x.CreditType != nil { + encoded, err := options.Marshal(x.CreditType) + 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.Description) > 0 { + i -= len(x.Description) + copy(dAtA[i:], x.Description) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Description))) 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))) + if len(x.Title) > 0 { + i -= len(x.Title) + copy(dAtA[i:], x.Title) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Title))) i-- dAtA[i] = 0xa } @@ -2218,7 +2794,7 @@ func (x *fastReflection_Credits) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Credits) + x := input.Message.Interface().(*CreditTypeProposal) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2250,15 +2826,15 @@ func (x *fastReflection_Credits) 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: Credits: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CreditTypeProposal: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Credits: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CreditTypeProposal: 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 Title", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2286,11 +2862,11 @@ func (x *fastReflection_Credits) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BatchDenom = string(dAtA[iNdEx:postIndex]) + x.Title = 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2318,7 +2894,43 @@ func (x *fastReflection_Credits) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = string(dAtA[iNdEx:postIndex]) + x.Description = 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 CreditType", 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.CreditType == nil { + x.CreditType = &CreditType{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CreditType); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -2375,15 +2987,22 @@ type Params struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // credit_class_fee is the fixed fee charged on creation of a new credit class + // credit_class_fee is a list of credit class creation fees accepted when + // creating a credit class. Any fee listed is accepted and charged to the + // credit class creator when creating a credit class. CreditClassFee []*v1beta1.Coin `protobuf:"bytes,1,rep,name=credit_class_fee,json=creditClassFee,proto3" json:"credit_class_fee,omitempty"` - // basket_fee is the fixed fee charged on creation of a new basket + // basket_fee is a list of basket creation fees accepted when creating a + // basket. Any fee listed is accepted and charged to the basket creator when + // creating a basket. BasketFee []*v1beta1.Coin `protobuf:"bytes,2,rep,name=basket_fee,json=basketFee,proto3" json:"basket_fee,omitempty"` - // allowed_class_creators is an allowlist defining the addresses with - // the required permissions to create credit classes + // allowed_class_creators is an allowlist defining the addresses with the + // required permissions to create credit classes when allowlist_enabled is set + // to true. If allowlist_enabled is set to false, this list has no effect. AllowedClassCreators []string `protobuf:"bytes,3,rep,name=allowed_class_creators,json=allowedClassCreators,proto3" json:"allowed_class_creators,omitempty"` - // allowlist_enabled is a param that enables/disables the allowlist for credit - // creation + // allowlist_enabled determines whether or not the allowlist for creating + // credit classes is enabled. When set to true, only the addresses listed in + // allowed_class_creators can create credit classes. When set to false, any + // address can create credit classes. AllowlistEnabled bool `protobuf:"varint,4,opt,name=allowlist_enabled,json=allowlistEnabled,proto3" json:"allowlist_enabled,omitempty"` } @@ -2435,6 +3054,127 @@ func (x *Params) GetAllowlistEnabled() bool { return false } +// Credits represents a simple structure for credits. +type Credits struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // batch_denom is the denom of the credit batch. + BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` + // amount is the amount of credits. + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *Credits) Reset() { + *x = Credits{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Credits) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Credits) ProtoMessage() {} + +// Deprecated: Use Credits.ProtoReflect.Descriptor instead. +func (*Credits) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_types_proto_rawDescGZIP(), []int{1} +} + +func (x *Credits) GetBatchDenom() string { + if x != nil { + return x.BatchDenom + } + return "" +} + +func (x *Credits) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +// BatchIssuance represents a simple structure for a credit batch issuance. +type BatchIssuance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // recipient is the address of the account receiving the issued credits. + Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` + // tradable_amount is the amount of credits that the recipient will receive in + // a tradable state. 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 that the recipient will receive in + // a retired state. 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 following + // 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. + RetirementJurisdiction string `protobuf:"bytes,4,opt,name=retirement_jurisdiction,json=retirementJurisdiction,proto3" json:"retirement_jurisdiction,omitempty"` +} + +func (x *BatchIssuance) Reset() { + *x = BatchIssuance{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchIssuance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchIssuance) ProtoMessage() {} + +// Deprecated: Use BatchIssuance.ProtoReflect.Descriptor instead. +func (*BatchIssuance) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_types_proto_rawDescGZIP(), []int{2} +} + +func (x *BatchIssuance) GetRecipient() string { + if x != nil { + return x.Recipient + } + return "" +} + +func (x *BatchIssuance) GetTradableAmount() string { + if x != nil { + return x.TradableAmount + } + return "" +} + +func (x *BatchIssuance) GetRetiredAmount() string { + if x != nil { + return x.RetiredAmount + } + return "" +} + +func (x *BatchIssuance) GetRetirementJurisdiction() string { + if x != nil { + return x.RetirementJurisdiction + } + return "" +} + // OriginTx is the transaction from another chain or registry that triggered // the minting of credits. type OriginTx struct { @@ -2453,7 +3193,7 @@ type OriginTx struct { func (x *OriginTx) Reset() { *x = OriginTx{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_types_proto_msgTypes[1] + mi := &file_regen_ecocredit_v1_types_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2467,7 +3207,7 @@ func (*OriginTx) ProtoMessage() {} // Deprecated: Use OriginTx.ProtoReflect.Descriptor instead. func (*OriginTx) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_types_proto_rawDescGZIP(), []int{1} + return file_regen_ecocredit_v1_types_proto_rawDescGZIP(), []int{3} } func (x *OriginTx) GetId() string { @@ -2502,7 +3242,7 @@ type CreditTypeProposal struct { func (x *CreditTypeProposal) Reset() { *x = CreditTypeProposal{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_types_proto_msgTypes[2] + mi := &file_regen_ecocredit_v1_types_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2516,7 +3256,7 @@ func (*CreditTypeProposal) ProtoMessage() {} // Deprecated: Use CreditTypeProposal.ProtoReflect.Descriptor instead. func (*CreditTypeProposal) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_types_proto_rawDescGZIP(), []int{2} + return file_regen_ecocredit_v1_types_proto_rawDescGZIP(), []int{4} } func (x *CreditTypeProposal) GetTitle() string { @@ -2540,52 +3280,6 @@ func (x *CreditTypeProposal) GetCreditType() *CreditType { return nil } -// Credits represents a simple structure for credits. -type Credits struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // batch_denom is the denom of the credit batch - BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` - // amount is the amount of credits - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *Credits) Reset() { - *x = Credits{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_types_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Credits) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Credits) ProtoMessage() {} - -// Deprecated: Use Credits.ProtoReflect.Descriptor instead. -func (*Credits) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_types_proto_rawDescGZIP(), []int{3} -} - -func (x *Credits) GetBatchDenom() string { - if x != nil { - return x.BatchDenom - } - return "" -} - -func (x *Credits) GetAmount() string { - if x != nil { - return x.Amount - } - return "" -} - var File_regen_ecocredit_v1_types_proto protoreflect.FileDescriptor var file_regen_ecocredit_v1_types_proto_rawDesc = []byte{ @@ -2618,38 +3312,50 @@ var file_regen_ecocredit_v1_types_proto_rawDesc = []byte{ 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, - 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x32, 0x0a, 0x08, 0x4f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, 0x78, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, - 0x93, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, - 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1e, 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, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x3a, - 0x04, 0x98, 0xa0, 0x1f, 0x00, 0x22, 0x42, 0x0a, 0x07, 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, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 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, 0x54, 0x79, 0x70, 0x65, 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, + 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x42, 0x0a, 0x07, 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, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, + 0xb6, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, + 0x65, 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, + 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, 0x22, 0x32, 0x0a, 0x08, 0x4f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x54, 0x78, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x93, 0x01, 0x0a, + 0x12, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x0b, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 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, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x04, 0x98, 0xa0, + 0x1f, 0x00, 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, 0x54, + 0x79, 0x70, 0x65, 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 ( @@ -2664,19 +3370,20 @@ func file_regen_ecocredit_v1_types_proto_rawDescGZIP() []byte { return file_regen_ecocredit_v1_types_proto_rawDescData } -var file_regen_ecocredit_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_regen_ecocredit_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_regen_ecocredit_v1_types_proto_goTypes = []interface{}{ (*Params)(nil), // 0: regen.ecocredit.v1.Params - (*OriginTx)(nil), // 1: regen.ecocredit.v1.OriginTx - (*CreditTypeProposal)(nil), // 2: regen.ecocredit.v1.CreditTypeProposal - (*Credits)(nil), // 3: regen.ecocredit.v1.Credits - (*v1beta1.Coin)(nil), // 4: cosmos.base.v1beta1.Coin - (*CreditType)(nil), // 5: regen.ecocredit.v1.CreditType + (*Credits)(nil), // 1: regen.ecocredit.v1.Credits + (*BatchIssuance)(nil), // 2: regen.ecocredit.v1.BatchIssuance + (*OriginTx)(nil), // 3: regen.ecocredit.v1.OriginTx + (*CreditTypeProposal)(nil), // 4: regen.ecocredit.v1.CreditTypeProposal + (*v1beta1.Coin)(nil), // 5: cosmos.base.v1beta1.Coin + (*CreditType)(nil), // 6: regen.ecocredit.v1.CreditType } var file_regen_ecocredit_v1_types_proto_depIdxs = []int32{ - 4, // 0: regen.ecocredit.v1.Params.credit_class_fee:type_name -> cosmos.base.v1beta1.Coin - 4, // 1: regen.ecocredit.v1.Params.basket_fee:type_name -> cosmos.base.v1beta1.Coin - 5, // 2: regen.ecocredit.v1.CreditTypeProposal.credit_type:type_name -> regen.ecocredit.v1.CreditType + 5, // 0: regen.ecocredit.v1.Params.credit_class_fee:type_name -> cosmos.base.v1beta1.Coin + 5, // 1: regen.ecocredit.v1.Params.basket_fee:type_name -> cosmos.base.v1beta1.Coin + 6, // 2: regen.ecocredit.v1.CreditTypeProposal.credit_type:type_name -> regen.ecocredit.v1.CreditType 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 @@ -2704,7 +3411,7 @@ func file_regen_ecocredit_v1_types_proto_init() { } } file_regen_ecocredit_v1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OriginTx); i { + switch v := v.(*Credits); i { case 0: return &v.state case 1: @@ -2716,7 +3423,7 @@ func file_regen_ecocredit_v1_types_proto_init() { } } file_regen_ecocredit_v1_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreditTypeProposal); i { + switch v := v.(*BatchIssuance); i { case 0: return &v.state case 1: @@ -2728,7 +3435,19 @@ func file_regen_ecocredit_v1_types_proto_init() { } } file_regen_ecocredit_v1_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Credits); i { + switch v := v.(*OriginTx); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreditTypeProposal); i { case 0: return &v.state case 1: @@ -2746,7 +3465,7 @@ func file_regen_ecocredit_v1_types_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_ecocredit_v1_types_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 5, NumExtensions: 0, NumServices: 0, }, diff --git a/proto/regen/ecocredit/v1/tx.proto b/proto/regen/ecocredit/v1/tx.proto index f920b00f16..a113d3cb54 100644 --- a/proto/regen/ecocredit/v1/tx.proto +++ b/proto/regen/ecocredit/v1/tx.proto @@ -12,87 +12,123 @@ option go_package = "github.com/regen-network/regen-ledger/x/ecocredit/core"; // Msg is the regen.ecocredit.v1 Msg service. service Msg { - // CreateClass creates a new credit class with an approved list of issuers and - // optional metadata. + // CreateClass creates a new credit class under the given credit type with an + // approved list of issuers and optional metadata. The fee denom must be one + // of the denoms listed in Params.credit_class_fee and greater than or equal + // to the fee amount but only the minimum amount is charged. The creator of + // the credit class becomes the admin of the credit class upon creation. rpc CreateClass(MsgCreateClass) returns (MsgCreateClassResponse); - // CreateProject creates a new project within a credit class. + // 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 and the creator becomes the admin of the project upon creation. rpc CreateProject(MsgCreateProject) returns (MsgCreateProjectResponse); - // CreateBatch creates a new batch of credits for an existing project. - // This will create a new batch denom with a fixed supply. Issued credits can - // be distributed to recipients in either tradable or retired form. + // 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. rpc CreateBatch(MsgCreateBatch) returns (MsgCreateBatchResponse); - // MintBatchCredits issues new token in a given batch. - // The issuer must be the account who created (or delegated using x/authz), - // the batch. - // The request will fail if the batch is not open (is sealed). - // NOTE: this method is only for bridge purpose. It must not be used - // for issuing native credits on Regen. More specifically, we - // enable minting more credits in an existing batch, when the batch - // represents a vintage originally registered in another chain. + // 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". rpc MintBatchCredits(MsgMintBatchCredits) returns (MsgMintBatchCreditsResponse); - // MsgSealBatch sets the `batch.open` attribute to false. Sealed batch - // can't issue more credits. Once batch is sealed it can't be toggled any - // more. Only batch creator can seal a batch. + // 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. rpc SealBatch(MsgSealBatch) returns (MsgSealBatchResponse); - // Send sends tradable credits from one account to another account. Sent - // credits can either be tradable or retired on receipt. + // 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. rpc Send(MsgSend) returns (MsgSendResponse); - // Retire retires a specified number of credits in the holder's account. + // 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. rpc Retire(MsgRetire) returns (MsgRetireResponse); - // Cancel removes a number of credits from the holder's account and also - // deducts them from the tradable supply, effectively cancelling their - // issuance on Regen Ledger + // 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. rpc Cancel(MsgCancel) returns (MsgCancelResponse); - // UpdateClassAdmin updates the credit class admin + // UpdateClassAdmin updates the credit class admin. Only the admin of the + // credit class can update the credit class. rpc UpdateClassAdmin(MsgUpdateClassAdmin) returns (MsgUpdateClassAdminResponse); - // UpdateClassIssuers updates the credit class issuer list + // UpdateClassIssuers updates the credit class issuer list. Only the admin of + // the credit class can update the credit class. rpc UpdateClassIssuers(MsgUpdateClassIssuers) returns (MsgUpdateClassIssuersResponse); - // UpdateClassMetadata updates the credit class metadata + // UpdateClassMetadata updates the credit class metadata. Only the admin of + // the credit class can update the credit class. rpc UpdateClassMetadata(MsgUpdateClassMetadata) returns (MsgUpdateClassMetadataResponse); - // UpdateProjectAdmin updates the project admin address + // UpdateProjectAdmin updates the project admin address. Only the admin of the + // project can update the project. rpc UpdateProjectAdmin(MsgUpdateProjectAdmin) returns (MsgUpdateProjectAdminResponse); - // UpdateProjectMetadata updates the project metadata + // UpdateProjectMetadata updates the project metadata. Only the admin of the + // project can update the project. rpc UpdateProjectMetadata(MsgUpdateProjectMetadata) returns (MsgUpdateProjectMetadataResponse); - // Bridge cancels credits and emits a bridge event. + // Bridge cancels a specified amount of tradable credits and emits a special + // bridge event handled by an external bridge service. rpc Bridge(MsgBridge) returns (MsgBridgeResponse); } // MsgCreateClass is the Msg/CreateClass request type. message MsgCreateClass { - // admin is the address of the account that created the credit class. + + // 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. string admin = 1; - // issuers are the account addresses of the approved issuers. + // issuers are the addresses of the accounts that will have permissions within + // the credit class to create projects and issue credits. repeated string issuers = 2; - // metadata is any arbitrary metadata to attached to the credit class. + // metadata is any arbitrary string with a maximum length of 256 characters + // that includes or references metadata to attach to the credit class. string metadata = 3; - // credit_type_abbrev is the abbreviation of a credit type (e.g. "C", "BIO"). + // credit_type_abbrev is the abbreviation of the credit type under which the + // credit class will be created (e.g. "C", "BIO"). string credit_type_abbrev = 4; - // fee specifies the fee to pay for the creation of the credit class. - // acceptable fees for creating a credit class can be found in the governance - // parameters for the ecocredit module. + // fee is the credit class creation fee. The specified fee must be one of the + // fees listed in Params.credit_class_fee. The specified amount can be greater + // than or equal to the listed amount but the credit class creator will only + // be charged the listed amount (i.e. the minimum amount). cosmos.base.v1beta1.Coin fee = 5; } @@ -105,51 +141,61 @@ message MsgCreateClassResponse { // MsgCreateProjectResponse is the Msg/CreateProject request type. message MsgCreateProject { - // issuer is the address of an approved issuer for the credit class through - // which batches will be issued. It is not required, however, that this same - // issuer issue all batches for a project. - string issuer = 1; - // class_id is the unique identifier of the credit class within which the + // 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. + string admin = 1; + + // class_id is the unique identifier of the credit class under which the // project will be created. string class_id = 2; - // metadata is any arbitrary metadata attached to the project. + // metadata is any arbitrary string with a maximum length of 256 characters + // that includes or references metadata to attach to the project. string metadata = 3; - // jurisdiction is the jurisdiction of the project backing the credits - // in this batch. It is a string of the form - // [-[ ]], with the first two - // fields conforming to ISO 3166-2, and postal-code being up to 64 - // alphanumeric characters. country-code is required, while sub-national-code - // and postal-code are optional and can be added for increased precision. + // 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 = 4; - // reference_id is any arbitrary string used to reference the project. + // reference_id is any arbitrary string used to reference the project with a + // maximum length of 32 characters. string reference_id = 5; } // MsgCreateProjectResponse is the Msg/CreateProject response type. message MsgCreateProjectResponse { - // project_id is the unique identifier of the newly created project. + // project_id is the unique identifier of the project. string project_id = 1; } // MsgCreateBatch is the Msg/CreateBatch request type. message MsgCreateBatch { - // issuer is the address of the batch issuer. + // issuer is the address of the account issuing the credits and must be an + // approved issuer within the credit class of the project. string issuer = 1; - // project_id is the unique identifier of the project within which the credit + // project_id is the unique identifier of the project under which the credit // batch will be created. string project_id = 2; - // issuance are the credits issued in the batch. + // 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. repeated BatchIssuance issuance = 3; - // metadata is any arbitrary metadata attached to the credit batch. + // metadata is any arbitrary string with a maximum length of 256 characters + // that includes or references metadata to attach to the credit batch. string metadata = 4; // start_date is the beginning of the period during which this credit batch @@ -160,84 +206,70 @@ message MsgCreateBatch { // quantified and verified. google.protobuf.Timestamp end_date = 6 [ (gogoproto.stdtime) = true ]; - // If open is true we will enable future minting. - // Otherwise we will seal the batch and disable the future minting. + // 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. bool open = 7; - // A reference to a transaction or an event referencing the transaction - // which caused the transfer from other chain or registry. - // If not set (null), it means that the batch originate in Regen Ledger - // (doesn't come from external registry). + // 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 origin_tx = 8; - // reference note for accounting, will be passed to an event + // note is a reference note for accounting that should only be set when + // bridging assets from another chain or registry as a result of a bridge + // operation and will be stored in state as a field of BatchOriginTx. string note = 9; } -// BatchIssuance represents the issuance of some credits in a batch to a -// single recipient. -message BatchIssuance { - - // recipient is the account of the recipient. - string recipient = 1; - - // tradable_amount is the number of credits in this issuance that can be - // traded by this recipient. Decimal values are acceptable. - string tradable_amount = 2; - - // retired_amount is the number of credits in this issuance that are - // effectively retired by the issuer on receipt. Decimal values are - // acceptable. - string retired_amount = 3; - - // retirement_jurisdiction is the jurisdiction of the beneficiary or buyer of - // the retired credits. This must be provided if retired_amount is positive. - // It is a string of the form [-[ - // ]], with the first two fields conforming to ISO 3166-2, and - // postal-code being up to 64 alphanumeric characters. - string retirement_jurisdiction = 4; -} - // MsgCreateBatchResponse is the Msg/CreateBatch response type. message MsgCreateBatchResponse { - // batch_denom is the unique identifier of the newly created batch. + // batch_denom is the unique identifier of the credit batch. string batch_denom = 1; } -// MsgMintBatchCredits is a request type for MintBatchCredits Msg RPC. +// MsgMintBatchCredits is the Msg/MintBatchCredits request type. message MsgMintBatchCredits { - // Issuer must equal to the batch.issuer address. - // Signer of the msg. + + // issuer is the address of the account minting the credits and must be the + // same issuer who created the credit batch. string issuer = 1; // batch_denom is the unique identifier of the credit batch. string batch_denom = 2; - // issuance are the credits issued in the batch. + // 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. repeated BatchIssuance issuance = 3; - // A reference to a transaction or an event referencing the transaction - // which caused the transfer from other chain or registry. + // origin_tx is the transaction from another chain or registry that triggered + // the minting of credits. OriginTx origin_tx = 4; - // reference note for accounting, will be passed to an event + // note is a reference note for accounting that should only be set when + // bridging assets from another chain or registry as a result of a bridge + // operation and will be stored in state as a field of BatchOriginTx. string note = 5; } -// MsgSealBatch request type for MsgSealBatch RPC. +// MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. +message MsgMintBatchCreditsResponse {} + +// MsgSealBatch is the Msg/MintBatchCredits request type. message MsgSealBatch { - // Issuer must equal to the batch.issuer address. - // Signer of the msg. + + // issuer is the address of the account that created the credit batch and the + // only account with permissions to seal the credit batch. string issuer = 1; // batch_denom is the unique identifier of the credit batch. string batch_denom = 2; } -// MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. -message MsgMintBatchCreditsResponse {} - // MsgSealBatchResponse is the Msg/SealBatch response type. message MsgSealBatchResponse {} @@ -247,35 +279,37 @@ message MsgSend { // sender is the address of the account sending credits. string sender = 1; - // sender is the address of the account receiving credits. + // recipient is the address of the account receiving credits. string recipient = 2; - // credits are the credits being sent. + // credits are the credits being sent to the recipient. repeated SendCredits credits = 3; - // SendCredits specifies a batch and the number of credits being transferred. - // This is split into tradable credits, which will remain tradable on receipt, - // and retired credits, which will be retired on receipt. + // 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. message SendCredits { // batch_denom is the unique identifier of the credit batch. string batch_denom = 1; - // tradable_amount is the number of credits in this transfer that can be - // traded by the recipient. Decimal values are acceptable within the - // precision returned by Query/Precision. + // 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. string tradable_amount = 2; - // retired_amount is the number of credits in this transfer that are - // effectively retired by the issuer on receipt. Decimal values are - // acceptable within the precision returned by Query/Precision. + // 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. string retired_amount = 3; - // retirement_jurisdiction is the jurisdiction of the beneficiary or buyer - // of the retired credits. This must be provided if retired_amount is - // positive. It is a string of the form [-[ - // ]], with the first two fields conforming to ISO 3166-2, and - // postal-code being up to 64 alphanumeric characters. + // 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. string retirement_jurisdiction = 4; } } @@ -289,26 +323,16 @@ message MsgRetire { // owner is the address of the account that owns the credits being retired. string owner = 1; - // credits are the credits being retired. - repeated RetireCredits credits = 2; - - // RetireCredits specifies a batch and the number of credits being retired. - message RetireCredits { - - // batch_denom is the unique identifier of the credit batch. - string batch_denom = 1; - - // amount is the number of credits being retired. - // Decimal values are acceptable within the precision returned by - // Query/Precision. - string amount = 2; - } + // credits specifies a credit batch and the number of credits being retired. + repeated Credits credits = 2; - // jurisdiction is the jurisdiction of the beneficiary or buyer of the retired - // credits. It is a string of the form - // [-[ ]], with the first two - // fields conforming to ISO 3166-2, and postal-code being up to 64 - // alphanumeric characters. + // 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. string jurisdiction = 3; } @@ -321,7 +345,7 @@ message MsgCancel { // owner is the address of the account that owns the credits being cancelled. string owner = 1; - // credits are the credits being cancelled. + // credits specifies a credit batch and the number of credits being cancelled. repeated Credits credits = 2; // reason is any arbitrary string that specifies the reason for cancelling @@ -335,13 +359,15 @@ message MsgCancelResponse {} // MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. message MsgUpdateClassAdmin { - // admin is the address of the account that is the admin of the credit class. + // admin is the address of the account that is currently the admin of the + // credit class. string admin = 1; // class_id is the unique identifier of the credit class. string class_id = 2; - // new_admin is the address of the new admin of the credit class. + // new_admin is the address of the account that will become the new admin of + // the credit class. string new_admin = 3; } @@ -357,10 +383,12 @@ message MsgUpdateClassIssuers { // class_id is the unique identifier of the credit class. string class_id = 2; - // add_issuers are the issuers to add to the class issuers list. + // add_issuers are the addresses of the accounts that will be added to the + // list of approved credit class issuers. repeated string add_issuers = 3; - // remove_issuers are the issuers to remove from the class issuers list. + // remove_issuers are the addresses of the accounts that will be removed from + // the list of approved credit class issuers. repeated string remove_issuers = 4; } @@ -376,9 +404,10 @@ message MsgUpdateClassMetadata { // class_id is the unique identifier of the credit class. string class_id = 2; - // metadata is the updated arbitrary metadata to be attached to the credit - // class. - string metadata = 3; + // 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. + string new_metadata = 3; } // MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. @@ -387,14 +416,16 @@ message MsgUpdateClassMetadataResponse {} // MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. message MsgUpdateProjectAdmin { - // admin is the project's current admin address. + // admin is the address of the account that is the currently the admin of the + // project. string admin = 1; - // new_admin is the address of the new admin of the project. - string new_admin = 2; + // project_id is the unique identifier of the project. + string project_id = 2; - // project_id is the unique identifier of the project (e.g. VERRA1). - string project_id = 3; + // new_admin is the address of the account that will become the new admin of + // the project. + string new_admin = 3; } // MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. @@ -403,14 +434,16 @@ message MsgUpdateProjectAdminResponse {} // MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. message MsgUpdateProjectMetadata { - // admin is project admin address. + // admin is the address of the account that is the admin of the project. string admin = 1; - // new_metadata is the metadata to update the project with. - string new_metadata = 2; + // project_id is the unique identifier of the project. + string project_id = 2; - // project_id is the unique identifier of the project (e.g. VERRA1). - string project_id = 3; + // 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. + string new_metadata = 3; } // MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse @@ -419,19 +452,20 @@ message MsgUpdateProjectMetadataResponse {} // MsgBridge is the Msg/Bridge request type. message MsgBridge { - // target is the target chain. - string target = 1; - // recipient is the recipient address. - string recipient = 2; + // owner is the address of the account that owns the credits being bridged. + string owner = 1; - // contract is the contract address. - string contract = 3; + // target is the name of the target chain or registry. + string target = 2; - // owner is the address of the account that owns the credits being bridged. - string owner = 4; + // recipient is the address of the account receiving the bridged credits. + string recipient = 3; + + // recipient is the address of the contract handling the bridged credits. + string contract = 4; - // credits are the credits being cancelled. + // credits specifies a credit batch and the number of credits being bridged. repeated Credits credits = 5; } diff --git a/proto/regen/ecocredit/v1/types.proto b/proto/regen/ecocredit/v1/types.proto index 2dc8f80e28..ae1654e0a0 100644 --- a/proto/regen/ecocredit/v1/types.proto +++ b/proto/regen/ecocredit/v1/types.proto @@ -11,27 +11,72 @@ option go_package = "github.com/regen-network/regen-ledger/x/ecocredit/core"; // Params defines the updatable global parameters of the ecocredit module for // use with the x/params module. message Params { - // credit_class_fee is the fixed fee charged on creation of a new credit class + + // credit_class_fee is a list of credit class creation fees accepted when + // creating a credit class. Any fee listed is accepted and charged to the + // credit class creator when creating a credit class. repeated cosmos.base.v1beta1.Coin credit_class_fee = 1 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; - // basket_fee is the fixed fee charged on creation of a new basket + // basket_fee is a list of basket creation fees accepted when creating a + // basket. Any fee listed is accepted and charged to the basket creator when + // creating a basket. repeated cosmos.base.v1beta1.Coin basket_fee = 2 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; - // allowed_class_creators is an allowlist defining the addresses with - // the required permissions to create credit classes + // allowed_class_creators is an allowlist defining the addresses with the + // required permissions to create credit classes when allowlist_enabled is set + // to true. If allowlist_enabled is set to false, this list has no effect. repeated string allowed_class_creators = 3; - // allowlist_enabled is a param that enables/disables the allowlist for credit - // creation + // allowlist_enabled determines whether or not the allowlist for creating + // credit classes is enabled. When set to true, only the addresses listed in + // allowed_class_creators can create credit classes. When set to false, any + // address can create credit classes. bool allowlist_enabled = 4; } +// Credits represents a simple structure for credits. +message Credits { + + // batch_denom is the denom of the credit batch. + string batch_denom = 1; + + // amount is the amount of credits. + string amount = 2; +} + +// BatchIssuance represents a simple structure for a credit batch issuance. +message BatchIssuance { + + // recipient is the address of the account receiving the issued credits. + string recipient = 1; + + // tradable_amount is the amount of credits that the recipient will receive in + // a tradable state. The number of decimal places must be less than or equal + // to the credit type precision. + string tradable_amount = 2; + + // retired_amount is the amount of credits that the recipient will receive in + // a retired state. The number of decimal places must be less than or equal to + // the credit type precision. + string retired_amount = 3; + + // retirement_jurisdiction is the jurisdiction of the recipient and is only + // required if retired_amount is positive. A jurisdiction has the following + // 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 retirement_jurisdiction = 4; +} + // OriginTx is the transaction from another chain or registry that triggered // the minting of credits. message OriginTx { @@ -59,12 +104,3 @@ message CreditTypeProposal { // passes. CreditType credit_type = 3; } - -// Credits represents a simple structure for credits. -message Credits { - // batch_denom is the denom of the credit batch - string batch_denom = 1; - - // amount is the amount of credits - string amount = 2; -} diff --git a/x/ecocredit/client/testsuite/tx.go b/x/ecocredit/client/testsuite/tx.go index 92c4d9d5da..5f62237ccf 100644 --- a/x/ecocredit/client/testsuite/tx.go +++ b/x/ecocredit/client/testsuite/tx.go @@ -204,7 +204,7 @@ func (s *IntegrationTestSuite) TestTxCreateBatch() { }) s.Require().NoError(err) projectId, err := s.createProject(clientCtx, &core.MsgCreateProject{ - Issuer: val.Address.String(), + Admin: val.Address.String(), ClassId: classId, Metadata: validMetadata, Jurisdiction: "US-OR", @@ -1132,7 +1132,7 @@ func (s *IntegrationTestSuite) TestCreateProject() { makeArgs := func(msg *core.MsgCreateProject) []string { args := []string{msg.ClassId, msg.Jurisdiction, msg.Metadata} - args = append(args, makeFlagFrom(msg.Issuer)) + args = append(args, makeFlagFrom(msg.Admin)) return append(args, s.commonTxFlags()...) } @@ -1157,7 +1157,7 @@ func (s *IntegrationTestSuite) TestCreateProject() { { "valid tx without project id", makeArgs(&core.MsgCreateProject{ - Issuer: val0.Address.String(), + Admin: val0.Address.String(), ClassId: classId, Metadata: validMetadata, Jurisdiction: "US-OR", @@ -1168,7 +1168,7 @@ func (s *IntegrationTestSuite) TestCreateProject() { { "valid tx with project id", makeArgs(&core.MsgCreateProject{ - Issuer: val0.Address.String(), + Admin: val0.Address.String(), ClassId: classId, Metadata: validMetadata, Jurisdiction: "US-OR", @@ -1683,7 +1683,7 @@ func (s *IntegrationTestSuite) createProject(clientCtx client.Context, msg *core } referenceIdFlag := fmt.Sprintf("--reference-id=%s", msg.ReferenceId) - flags := append(s.commonTxFlags(), makeFlagFrom(msg.Issuer), referenceIdFlag) + flags := append(s.commonTxFlags(), makeFlagFrom(msg.Admin), referenceIdFlag) args := makeCreateProjectArgs(msg, flags...) out, err := cli.ExecTestCLICmd(clientCtx, cmd, args) @@ -1794,7 +1794,7 @@ func (s *IntegrationTestSuite) createClassProject(clientCtx client.Context, addr s.Require().NoError(err) projectId, err = s.createProject(clientCtx, &core.MsgCreateProject{ - Issuer: addr, + Admin: addr, ClassId: classId, Metadata: validMetadata, Jurisdiction: "US-OR", diff --git a/x/ecocredit/client/tx.go b/x/ecocredit/client/tx.go index df9e9431b6..b1aa4191db 100644 --- a/x/ecocredit/client/tx.go +++ b/x/ecocredit/client/tx.go @@ -364,7 +364,7 @@ Parameters: eg: 'AA-BB 12345'`, Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { - var credits = []*core.MsgRetire_RetireCredits{} + var credits []*core.Credits if err := yaml.Unmarshal([]byte(args[0]), &credits); err != nil { return err } @@ -448,9 +448,9 @@ regen tx ecocredit update-class-metadata C01 "some metadata" } msg := core.MsgUpdateClassMetadata{ - Admin: clientCtx.GetFromAddress().String(), - ClassId: classID, - Metadata: args[1], + Admin: clientCtx.GetFromAddress().String(), + ClassId: classID, + NewMetadata: args[1], } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) @@ -607,7 +607,7 @@ regen tx ecocredit create-project C01 "AA-BB 12345" metadata --reference-id R01 } msg := core.MsgCreateProject{ - Issuer: clientCtx.GetFromAddress().String(), + Admin: clientCtx.GetFromAddress().String(), ClassId: classID, Jurisdiction: projectJurisdiction, Metadata: args[2], diff --git a/x/ecocredit/core/msg_create_project.go b/x/ecocredit/core/msg_create_project.go index c95e73b047..822dcf3414 100644 --- a/x/ecocredit/core/msg_create_project.go +++ b/x/ecocredit/core/msg_create_project.go @@ -26,8 +26,8 @@ func (m MsgCreateProject) GetSignBytes() []byte { // ValidateBasic does a sanity check on the provided data. func (m *MsgCreateProject) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(m.Issuer); err != nil { - return sdkerrors.ErrInvalidAddress.Wrap("issuer") + if _, err := sdk.AccAddressFromBech32(m.Admin); err != nil { + return sdkerrors.ErrInvalidAddress.Wrap("admin") } if err := ValidateClassId(m.ClassId); err != nil { @@ -51,6 +51,6 @@ func (m *MsgCreateProject) ValidateBasic() error { // GetSigners returns the expected signers for MsgCreateProject. func (m *MsgCreateProject) GetSigners() []sdk.AccAddress { - addr, _ := sdk.AccAddressFromBech32(m.Issuer) + addr, _ := sdk.AccAddressFromBech32(m.Admin) return []sdk.AccAddress{addr} } diff --git a/x/ecocredit/core/msg_create_project_test.go b/x/ecocredit/core/msg_create_project_test.go index 88a1566f85..36a67d6e79 100644 --- a/x/ecocredit/core/msg_create_project_test.go +++ b/x/ecocredit/core/msg_create_project_test.go @@ -11,7 +11,7 @@ import ( func TestMsgCreateProject(t *testing.T) { t.Parallel() - issuer := testutil.GenAddress() + admin := testutil.GenAddress() testCases := []struct { name string @@ -21,7 +21,7 @@ func TestMsgCreateProject(t *testing.T) { { "valid msg without reference id", MsgCreateProject{ - Issuer: issuer, + Admin: admin, ClassId: "A00", Metadata: "hello", Jurisdiction: "AB-CDE FG1 345", @@ -29,9 +29,9 @@ func TestMsgCreateProject(t *testing.T) { false, }, { - "invalid issuer", + "invalid admin", MsgCreateProject{ - Issuer: "invalid address", + Admin: "invalid address", ClassId: "A00", Metadata: "hello", Jurisdiction: "AB-CDE FG1 345", @@ -41,7 +41,7 @@ func TestMsgCreateProject(t *testing.T) { { "invalid class id", MsgCreateProject{ - Issuer: issuer, + Admin: admin, ClassId: "ABCD", Metadata: "hello", Jurisdiction: "AB-CDE FG1 345", @@ -51,7 +51,7 @@ func TestMsgCreateProject(t *testing.T) { { "invalid project jurisdiction", MsgCreateProject{ - Issuer: issuer, + Admin: admin, ClassId: "A01", Metadata: "hello", Jurisdiction: "abcd", @@ -61,7 +61,7 @@ func TestMsgCreateProject(t *testing.T) { { "invalid: metadata is too large", MsgCreateProject{ - Issuer: issuer, + Admin: admin, ClassId: "A01", Metadata: strings.Repeat("x", 288), Jurisdiction: "AB-CDE FG1 345", @@ -71,7 +71,7 @@ func TestMsgCreateProject(t *testing.T) { { "invalid: reference id is too large", MsgCreateProject{ - Issuer: issuer, + Admin: admin, ClassId: "A01", Metadata: "metadata", Jurisdiction: "AB-CDE FG1 345", @@ -82,7 +82,7 @@ func TestMsgCreateProject(t *testing.T) { { "valid: with reference id", MsgCreateProject{ - Issuer: issuer, + Admin: admin, ClassId: "A01", Metadata: "metadata", Jurisdiction: "AB-CDE FG1 345", diff --git a/x/ecocredit/core/msg_retire_test.go b/x/ecocredit/core/msg_retire_test.go index db4a51edd0..37f84550e2 100644 --- a/x/ecocredit/core/msg_retire_test.go +++ b/x/ecocredit/core/msg_retire_test.go @@ -20,7 +20,7 @@ func TestMsgRetire(t *testing.T) { "valid msg": { src: MsgRetire{ Owner: addr1, - Credits: []*MsgRetire_RetireCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -32,7 +32,7 @@ func TestMsgRetire(t *testing.T) { }, "invalid msg without holder": { src: MsgRetire{ - Credits: []*MsgRetire_RetireCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -45,7 +45,7 @@ func TestMsgRetire(t *testing.T) { "invalid msg with wrong holder address": { src: MsgRetire{ Owner: "wrong owner", - Credits: []*MsgRetire_RetireCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -65,7 +65,7 @@ func TestMsgRetire(t *testing.T) { "invalid msg without Credits.BatchDenom": { src: MsgRetire{ Owner: addr1, - Credits: []*MsgRetire_RetireCredits{ + Credits: []*Credits{ { Amount: "10", }, @@ -77,7 +77,7 @@ func TestMsgRetire(t *testing.T) { "invalid msg without Credits.Amount": { src: MsgRetire{ Owner: addr1, - Credits: []*MsgRetire_RetireCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, }, @@ -89,7 +89,7 @@ func TestMsgRetire(t *testing.T) { "invalid msg with wrong Credits.Amount": { src: MsgRetire{ Owner: addr1, - Credits: []*MsgRetire_RetireCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "abc", @@ -102,7 +102,7 @@ func TestMsgRetire(t *testing.T) { "invalid msg without jurisdiction": { src: MsgRetire{ Owner: addr1, - Credits: []*MsgRetire_RetireCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -114,7 +114,7 @@ func TestMsgRetire(t *testing.T) { "invalid msg with wrong jurisdiction": { src: MsgRetire{ Owner: addr1, - Credits: []*MsgRetire_RetireCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", diff --git a/x/ecocredit/core/msg_update_class_metadata.go b/x/ecocredit/core/msg_update_class_metadata.go index 53d3b0cd2d..85465139a1 100644 --- a/x/ecocredit/core/msg_update_class_metadata.go +++ b/x/ecocredit/core/msg_update_class_metadata.go @@ -27,7 +27,7 @@ func (m *MsgUpdateClassMetadata) ValidateBasic() error { return err } - if len(m.Metadata) > MaxMetadataLength { + if len(m.NewMetadata) > MaxMetadataLength { return ecocredit.ErrMaxLimit.Wrap("credit class metadata") } diff --git a/x/ecocredit/core/msg_update_class_metadata_test.go b/x/ecocredit/core/msg_update_class_metadata_test.go index 70292523e3..d54d8af9ef 100644 --- a/x/ecocredit/core/msg_update_class_metadata_test.go +++ b/x/ecocredit/core/msg_update_class_metadata_test.go @@ -17,15 +17,15 @@ func TestMsgUpdateClassMetadata(t *testing.T) { expErr bool }{ "valid": { - src: MsgUpdateClassMetadata{Admin: a1, ClassId: "C01", Metadata: "hello world"}, + src: MsgUpdateClassMetadata{Admin: a1, ClassId: "C01", NewMetadata: "hello world"}, expErr: false, }, "invalid: bad admin address": { - src: MsgUpdateClassMetadata{Admin: "???a!#)(%", ClassId: "C01", Metadata: "hello world"}, + src: MsgUpdateClassMetadata{Admin: "???a!#)(%", ClassId: "C01", NewMetadata: "hello world"}, expErr: true, }, "invalid: bad class ID": { - src: MsgUpdateClassMetadata{Admin: a1, ClassId: "6012949", Metadata: "hello world"}, + src: MsgUpdateClassMetadata{Admin: a1, ClassId: "6012949", NewMetadata: "hello world"}, expErr: true, }, "invalid: no class ID": { @@ -33,7 +33,7 @@ func TestMsgUpdateClassMetadata(t *testing.T) { expErr: true, }, "invalid: metadata too large": { - src: MsgUpdateClassMetadata{Admin: a1, ClassId: "C01", Metadata: strings.Repeat("x", 288)}, + src: MsgUpdateClassMetadata{Admin: a1, ClassId: "C01", NewMetadata: strings.Repeat("x", 288)}, expErr: true, }, } diff --git a/x/ecocredit/core/tx.pb.go b/x/ecocredit/core/tx.pb.go index d12e200979..36a39a10e2 100644 --- a/x/ecocredit/core/tx.pb.go +++ b/x/ecocredit/core/tx.pb.go @@ -35,17 +35,25 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // MsgCreateClass is the Msg/CreateClass request type. type MsgCreateClass struct { - // admin is the address of the account that created the credit class. + // 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 account addresses of the approved issuers. + // 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 metadata to attached to the credit class. + // 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 a credit type (e.g. "C", "BIO"). + // 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 specifies the fee to pay for the creation of the credit class. - // acceptable fees for creating a credit class can be found in the governance - // parameters for the ecocredit module. + // fee is the credit class creation fee. The specified fee must be one of the + // fees listed in Params.credit_class_fee. The specified amount can be greater + // than or equal to the listed amount but the credit class creator will only + // be charged the listed amount (i.e. the minimum amount). Fee *types.Coin `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"` } @@ -165,23 +173,28 @@ func (m *MsgCreateClassResponse) GetClassId() string { // MsgCreateProjectResponse is the Msg/CreateProject request type. type MsgCreateProject struct { - // issuer is the address of an approved issuer for the credit class through - // which batches will be issued. It is not required, however, that this same - // issuer issue all batches for a project. - 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 + // 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 metadata attached to the project. + // 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 backing the credits - // in this batch. It is a string of the form - // [-[ ]], with the first two - // fields conforming to ISO 3166-2, and postal-code being up to 64 - // alphanumeric characters. country-code is required, while sub-national-code - // and postal-code are optional and can be added for increased precision. + // 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. + // 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"` } @@ -218,9 +231,9 @@ func (m *MsgCreateProject) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCreateProject proto.InternalMessageInfo -func (m *MsgCreateProject) GetIssuer() string { +func (m *MsgCreateProject) GetAdmin() string { if m != nil { - return m.Issuer + return m.Admin } return "" } @@ -255,7 +268,7 @@ func (m *MsgCreateProject) GetReferenceId() string { // MsgCreateProjectResponse is the Msg/CreateProject response type. type MsgCreateProjectResponse struct { - // project_id is the unique identifier of the newly created project. + // 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"` } @@ -301,14 +314,18 @@ func (m *MsgCreateProjectResponse) GetProjectId() string { // MsgCreateBatch is the Msg/CreateBatch request type. type MsgCreateBatch struct { - // issuer is the address of the batch issuer. + // 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 within which the credit + // 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 are the credits issued in the batch. + // 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 metadata attached to the credit batch. + // 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. @@ -316,15 +333,19 @@ type MsgCreateBatch struct { // 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"` - // If open is true we will enable future minting. - // Otherwise we will seal the batch and disable the future minting. + // 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"` - // A reference to a transaction or an event referencing the transaction - // which caused the transfer from other chain or registry. - // If not set (null), it means that the batch originate in Regen Ledger - // (doesn't come from external registry). + // 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"` - // reference note for accounting, will be passed to an event + // note is a reference note for accounting that should only be set when + // bridging assets from another chain or registry as a result of a bridge + // operation and will be stored in state as a field of BatchOriginTx. Note string `protobuf:"bytes,9,opt,name=note,proto3" json:"note,omitempty"` } @@ -424,90 +445,9 @@ func (m *MsgCreateBatch) GetNote() string { return "" } -// BatchIssuance represents the issuance of some credits in a batch to a -// single recipient. -type BatchIssuance struct { - // recipient is the account of the recipient. - Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` - // tradable_amount is the number of credits in this issuance that can be - // traded by this recipient. Decimal values are acceptable. - TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"` - // retired_amount is the number of credits in this issuance that are - // effectively retired by the issuer on receipt. Decimal values are - // acceptable. - RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"` - // retirement_jurisdiction is the jurisdiction of the beneficiary or buyer of - // the retired credits. This must be provided if retired_amount is positive. - // It is a string of the form [-[ - // ]], with the first two fields conforming to ISO 3166-2, and - // postal-code being up to 64 alphanumeric characters. - RetirementJurisdiction string `protobuf:"bytes,4,opt,name=retirement_jurisdiction,json=retirementJurisdiction,proto3" json:"retirement_jurisdiction,omitempty"` -} - -func (m *BatchIssuance) Reset() { *m = BatchIssuance{} } -func (m *BatchIssuance) String() string { return proto.CompactTextString(m) } -func (*BatchIssuance) ProtoMessage() {} -func (*BatchIssuance) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{5} -} -func (m *BatchIssuance) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchIssuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchIssuance.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 *BatchIssuance) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchIssuance.Merge(m, src) -} -func (m *BatchIssuance) XXX_Size() int { - return m.Size() -} -func (m *BatchIssuance) XXX_DiscardUnknown() { - xxx_messageInfo_BatchIssuance.DiscardUnknown(m) -} - -var xxx_messageInfo_BatchIssuance proto.InternalMessageInfo - -func (m *BatchIssuance) GetRecipient() string { - if m != nil { - return m.Recipient - } - return "" -} - -func (m *BatchIssuance) GetTradableAmount() string { - if m != nil { - return m.TradableAmount - } - return "" -} - -func (m *BatchIssuance) GetRetiredAmount() string { - if m != nil { - return m.RetiredAmount - } - return "" -} - -func (m *BatchIssuance) GetRetirementJurisdiction() string { - if m != nil { - return m.RetirementJurisdiction - } - return "" -} - // MsgCreateBatchResponse is the Msg/CreateBatch response type. type MsgCreateBatchResponse struct { - // batch_denom is the unique identifier of the newly created batch. + // 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"` } @@ -515,7 +455,7 @@ 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{6} + return fileDescriptor_2b8ae49f50a3ddbd, []int{5} } func (m *MsgCreateBatchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -551,19 +491,23 @@ func (m *MsgCreateBatchResponse) GetBatchDenom() string { return "" } -// MsgMintBatchCredits is a request type for MintBatchCredits Msg RPC. +// MsgMintBatchCredits is the Msg/MintBatchCredits request type. type MsgMintBatchCredits struct { - // Issuer must equal to the batch.issuer address. - // Signer of the msg. + // 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 are the credits issued in the batch. + // 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"` - // A reference to a transaction or an event referencing the transaction - // which caused the transfer from other chain or registry. + // 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"` - // reference note for accounting, will be passed to an event + // note is a reference note for accounting that should only be set when + // bridging assets from another chain or registry as a result of a bridge + // operation and will be stored in state as a field of BatchOriginTx. Note string `protobuf:"bytes,5,opt,name=note,proto3" json:"note,omitempty"` } @@ -571,7 +515,7 @@ 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{7} + return fileDescriptor_2b8ae49f50a3ddbd, []int{6} } func (m *MsgMintBatchCredits) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -635,10 +579,47 @@ func (m *MsgMintBatchCredits) GetNote() string { return "" } -// MsgSealBatch request type for MsgSealBatch RPC. +// MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. +type MsgMintBatchCreditsResponse struct { +} + +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{7} +} +func (m *MsgMintBatchCreditsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMintBatchCreditsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMintBatchCreditsResponse.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 *MsgMintBatchCreditsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMintBatchCreditsResponse.Merge(m, src) +} +func (m *MsgMintBatchCreditsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgMintBatchCreditsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMintBatchCreditsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgMintBatchCreditsResponse proto.InternalMessageInfo + +// MsgSealBatch is the Msg/MintBatchCredits request type. type MsgSealBatch struct { - // Issuer must equal to the batch.issuer address. - // Signer of the msg. + // 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"` @@ -691,43 +672,6 @@ func (m *MsgSealBatch) GetBatchDenom() string { return "" } -// MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. -type MsgMintBatchCreditsResponse struct { -} - -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{9} -} -func (m *MsgMintBatchCreditsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgMintBatchCreditsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgMintBatchCreditsResponse.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 *MsgMintBatchCreditsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMintBatchCreditsResponse.Merge(m, src) -} -func (m *MsgMintBatchCreditsResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgMintBatchCreditsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMintBatchCreditsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgMintBatchCreditsResponse proto.InternalMessageInfo - // MsgSealBatchResponse is the Msg/SealBatch response type. type MsgSealBatchResponse struct { } @@ -736,7 +680,7 @@ 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{10} + return fileDescriptor_2b8ae49f50a3ddbd, []int{9} } func (m *MsgSealBatchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -769,9 +713,9 @@ var xxx_messageInfo_MsgSealBatchResponse proto.InternalMessageInfo type MsgSend struct { // sender is the address of the account sending credits. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - // sender is the address of the account receiving credits. + // 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. + // credits are the credits being sent to the recipient. Credits []*MsgSend_SendCredits `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` } @@ -779,7 +723,7 @@ 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{11} + return fileDescriptor_2b8ae49f50a3ddbd, []int{10} } func (m *MsgSend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -829,25 +773,27 @@ func (m *MsgSend) GetCredits() []*MsgSend_SendCredits { return nil } -// SendCredits specifies a batch and the number of credits being transferred. -// This is split into tradable credits, which will remain tradable on receipt, -// and retired credits, which will be retired on receipt. +// 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 number of credits in this transfer that can be - // traded by the recipient. Decimal values are acceptable within the - // precision returned by Query/Precision. + // 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 number of credits in this transfer that are - // effectively retired by the issuer on receipt. Decimal values are - // acceptable within the precision returned by Query/Precision. + // 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 beneficiary or buyer - // of the retired credits. This must be provided if retired_amount is - // positive. It is a string of the form [-[ - // ]], with the first two fields conforming to ISO 3166-2, and - // postal-code being up to 64 alphanumeric characters. + // 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"` } @@ -855,7 +801,7 @@ 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{11, 0} + return fileDescriptor_2b8ae49f50a3ddbd, []int{10, 0} } func (m *MsgSend_SendCredits) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -920,7 +866,7 @@ 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{12} + return fileDescriptor_2b8ae49f50a3ddbd, []int{11} } func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -953,13 +899,15 @@ var xxx_messageInfo_MsgSendResponse proto.InternalMessageInfo 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 are the credits being retired. - Credits []*MsgRetire_RetireCredits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` - // jurisdiction is the jurisdiction of the beneficiary or buyer of the retired - // credits. It is a string of the form - // [-[ ]], with the first two - // fields conforming to ISO 3166-2, and postal-code being up to 64 - // alphanumeric characters. + // 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"` } @@ -967,7 +915,7 @@ 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{13} + return fileDescriptor_2b8ae49f50a3ddbd, []int{12} } func (m *MsgRetire) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1003,7 +951,7 @@ func (m *MsgRetire) GetOwner() string { return "" } -func (m *MsgRetire) GetCredits() []*MsgRetire_RetireCredits { +func (m *MsgRetire) GetCredits() []*Credits { if m != nil { return m.Credits } @@ -1017,63 +965,6 @@ func (m *MsgRetire) GetJurisdiction() string { return "" } -// RetireCredits specifies a batch and the number of credits being retired. -type MsgRetire_RetireCredits 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"` - // amount is the number of credits being retired. - // Decimal values are acceptable within the precision returned by - // Query/Precision. - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (m *MsgRetire_RetireCredits) Reset() { *m = MsgRetire_RetireCredits{} } -func (m *MsgRetire_RetireCredits) String() string { return proto.CompactTextString(m) } -func (*MsgRetire_RetireCredits) ProtoMessage() {} -func (*MsgRetire_RetireCredits) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{13, 0} -} -func (m *MsgRetire_RetireCredits) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRetire_RetireCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRetire_RetireCredits.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 *MsgRetire_RetireCredits) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRetire_RetireCredits.Merge(m, src) -} -func (m *MsgRetire_RetireCredits) XXX_Size() int { - return m.Size() -} -func (m *MsgRetire_RetireCredits) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRetire_RetireCredits.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRetire_RetireCredits proto.InternalMessageInfo - -func (m *MsgRetire_RetireCredits) GetBatchDenom() string { - if m != nil { - return m.BatchDenom - } - return "" -} - -func (m *MsgRetire_RetireCredits) GetAmount() string { - if m != nil { - return m.Amount - } - return "" -} - // MsgRetire is the Msg/Retire response type. type MsgRetireResponse struct { } @@ -1082,7 +973,7 @@ 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{14} + return fileDescriptor_2b8ae49f50a3ddbd, []int{13} } func (m *MsgRetireResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1115,7 +1006,7 @@ var xxx_messageInfo_MsgRetireResponse proto.InternalMessageInfo 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 are the credits being cancelled. + // 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. @@ -1126,7 +1017,7 @@ 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{15} + return fileDescriptor_2b8ae49f50a3ddbd, []int{14} } func (m *MsgCancel) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1184,7 +1075,7 @@ 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{16} + return fileDescriptor_2b8ae49f50a3ddbd, []int{15} } func (m *MsgCancelResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1215,11 +1106,13 @@ var xxx_messageInfo_MsgCancelResponse proto.InternalMessageInfo // MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. type MsgUpdateClassAdmin struct { - // admin is the address of the account that is the admin of the credit class. + // 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 new admin of the credit class. + // 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"` } @@ -1227,7 +1120,7 @@ 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{17} + return fileDescriptor_2b8ae49f50a3ddbd, []int{16} } func (m *MsgUpdateClassAdmin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1285,7 +1178,7 @@ func (m *MsgUpdateClassAdminResponse) Reset() { *m = MsgUpdateClassAdmin func (m *MsgUpdateClassAdminResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateClassAdminResponse) ProtoMessage() {} func (*MsgUpdateClassAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{18} + return fileDescriptor_2b8ae49f50a3ddbd, []int{17} } func (m *MsgUpdateClassAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1320,9 +1213,11 @@ type MsgUpdateClassIssuers struct { 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 issuers to add to the class issuers list. + // 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 issuers to remove from the class issuers list. + // 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"` } @@ -1330,7 +1225,7 @@ 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{19} + return fileDescriptor_2b8ae49f50a3ddbd, []int{18} } func (m *MsgUpdateClassIssuers) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1395,7 +1290,7 @@ func (m *MsgUpdateClassIssuersResponse) Reset() { *m = MsgUpdateClassIss func (m *MsgUpdateClassIssuersResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateClassIssuersResponse) ProtoMessage() {} func (*MsgUpdateClassIssuersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{20} + return fileDescriptor_2b8ae49f50a3ddbd, []int{19} } func (m *MsgUpdateClassIssuersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1430,16 +1325,17 @@ type MsgUpdateClassMetadata struct { 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"` - // metadata is the updated arbitrary metadata to be attached to the credit - // class. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,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 *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{21} + return fileDescriptor_2b8ae49f50a3ddbd, []int{20} } func (m *MsgUpdateClassMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1482,9 +1378,9 @@ func (m *MsgUpdateClassMetadata) GetClassId() string { return "" } -func (m *MsgUpdateClassMetadata) GetMetadata() string { +func (m *MsgUpdateClassMetadata) GetNewMetadata() string { if m != nil { - return m.Metadata + return m.NewMetadata } return "" } @@ -1497,7 +1393,7 @@ func (m *MsgUpdateClassMetadataResponse) Reset() { *m = MsgUpdateClassMe func (m *MsgUpdateClassMetadataResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateClassMetadataResponse) ProtoMessage() {} func (*MsgUpdateClassMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{22} + return fileDescriptor_2b8ae49f50a3ddbd, []int{21} } func (m *MsgUpdateClassMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1528,19 +1424,21 @@ var xxx_messageInfo_MsgUpdateClassMetadataResponse proto.InternalMessageInfo // MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. type MsgUpdateProjectAdmin struct { - // admin is the project's current admin address. + // 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"` - // new_admin is the address of the new admin of the project. - NewAdmin string `protobuf:"bytes,2,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` - // project_id is the unique identifier of the project (e.g. VERRA1). - ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,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 *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{23} + return fileDescriptor_2b8ae49f50a3ddbd, []int{22} } func (m *MsgUpdateProjectAdmin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1576,16 +1474,16 @@ func (m *MsgUpdateProjectAdmin) GetAdmin() string { return "" } -func (m *MsgUpdateProjectAdmin) GetNewAdmin() string { +func (m *MsgUpdateProjectAdmin) GetProjectId() string { if m != nil { - return m.NewAdmin + return m.ProjectId } return "" } -func (m *MsgUpdateProjectAdmin) GetProjectId() string { +func (m *MsgUpdateProjectAdmin) GetNewAdmin() string { if m != nil { - return m.ProjectId + return m.NewAdmin } return "" } @@ -1598,7 +1496,7 @@ func (m *MsgUpdateProjectAdminResponse) Reset() { *m = MsgUpdateProjectA func (m *MsgUpdateProjectAdminResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateProjectAdminResponse) ProtoMessage() {} func (*MsgUpdateProjectAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{24} + return fileDescriptor_2b8ae49f50a3ddbd, []int{23} } func (m *MsgUpdateProjectAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1629,19 +1527,21 @@ var xxx_messageInfo_MsgUpdateProjectAdminResponse proto.InternalMessageInfo // MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. type MsgUpdateProjectMetadata struct { - // admin is project admin address. + // 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"` - // new_metadata is the metadata to update the project with. - NewMetadata string `protobuf:"bytes,2,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` - // project_id is the unique identifier of the project (e.g. VERRA1). - ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,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 *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{25} + return fileDescriptor_2b8ae49f50a3ddbd, []int{24} } func (m *MsgUpdateProjectMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1677,16 +1577,16 @@ func (m *MsgUpdateProjectMetadata) GetAdmin() string { return "" } -func (m *MsgUpdateProjectMetadata) GetNewMetadata() string { +func (m *MsgUpdateProjectMetadata) GetProjectId() string { if m != nil { - return m.NewMetadata + return m.ProjectId } return "" } -func (m *MsgUpdateProjectMetadata) GetProjectId() string { +func (m *MsgUpdateProjectMetadata) GetNewMetadata() string { if m != nil { - return m.ProjectId + return m.NewMetadata } return "" } @@ -1700,7 +1600,7 @@ func (m *MsgUpdateProjectMetadataResponse) Reset() { *m = MsgUpdateProje func (m *MsgUpdateProjectMetadataResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateProjectMetadataResponse) ProtoMessage() {} func (*MsgUpdateProjectMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{26} + return fileDescriptor_2b8ae49f50a3ddbd, []int{25} } func (m *MsgUpdateProjectMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1731,15 +1631,15 @@ var xxx_messageInfo_MsgUpdateProjectMetadataResponse proto.InternalMessageInfo // MsgBridge is the Msg/Bridge request type. type MsgBridge struct { - // target is the target chain. - Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` - // recipient is the recipient address. - Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` - // contract is the contract address. - Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` // owner is the address of the account that owns the credits being bridged. - Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` - // credits are the credits being cancelled. + 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"` + // recipient is the address of the contract handling the bridged credits. + Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` + // credits specifies a credit batch and the number of credits being bridged. Credits []*Credits `protobuf:"bytes,5,rep,name=credits,proto3" json:"credits,omitempty"` } @@ -1747,7 +1647,7 @@ 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{27} + return fileDescriptor_2b8ae49f50a3ddbd, []int{26} } func (m *MsgBridge) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1776,6 +1676,13 @@ func (m *MsgBridge) XXX_DiscardUnknown() { var xxx_messageInfo_MsgBridge proto.InternalMessageInfo +func (m *MsgBridge) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + func (m *MsgBridge) GetTarget() string { if m != nil { return m.Target @@ -1797,13 +1704,6 @@ func (m *MsgBridge) GetContract() string { return "" } -func (m *MsgBridge) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - func (m *MsgBridge) GetCredits() []*Credits { if m != nil { return m.Credits @@ -1819,7 +1719,7 @@ 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{28} + return fileDescriptor_2b8ae49f50a3ddbd, []int{27} } func (m *MsgBridgeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1854,17 +1754,15 @@ func init() { 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((*BatchIssuance)(nil), "regen.ecocredit.v1.BatchIssuance") proto.RegisterType((*MsgCreateBatchResponse)(nil), "regen.ecocredit.v1.MsgCreateBatchResponse") proto.RegisterType((*MsgMintBatchCredits)(nil), "regen.ecocredit.v1.MsgMintBatchCredits") - proto.RegisterType((*MsgSealBatch)(nil), "regen.ecocredit.v1.MsgSealBatch") 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((*MsgRetire_RetireCredits)(nil), "regen.ecocredit.v1.MsgRetire.RetireCredits") proto.RegisterType((*MsgRetireResponse)(nil), "regen.ecocredit.v1.MsgRetireResponse") proto.RegisterType((*MsgCancel)(nil), "regen.ecocredit.v1.MsgCancel") proto.RegisterType((*MsgCancelResponse)(nil), "regen.ecocredit.v1.MsgCancelResponse") @@ -1885,92 +1783,89 @@ func init() { func init() { proto.RegisterFile("regen/ecocredit/v1/tx.proto", fileDescriptor_2b8ae49f50a3ddbd) } var fileDescriptor_2b8ae49f50a3ddbd = []byte{ - // 1359 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x5f, 0x6f, 0x1b, 0x45, - 0x10, 0xef, 0xd9, 0x4e, 0x62, 0x8f, 0x93, 0xfe, 0xb9, 0xb6, 0xc1, 0xbd, 0x34, 0x8e, 0x7b, 0x50, - 0x35, 0xb4, 0xe5, 0xac, 0xa4, 0xfc, 0x51, 0x85, 0x10, 0x4a, 0x52, 0x44, 0x83, 0x14, 0xa8, 0x4c, - 0x11, 0x12, 0x12, 0xb2, 0xce, 0x77, 0xd3, 0xeb, 0x15, 0x7b, 0xd7, 0xda, 0xdb, 0xfc, 0xa9, 0x78, - 0xe4, 0x0b, 0xf4, 0x63, 0x20, 0x3e, 0x00, 0x7d, 0xe1, 0x03, 0xf0, 0xd8, 0x27, 0xc4, 0x03, 0x12, - 0xa8, 0xfd, 0x08, 0x7c, 0x01, 0x74, 0xbb, 0x7b, 0x9b, 0xbb, 0xf3, 0x9d, 0xed, 0xc2, 0x0b, 0x2f, - 0xed, 0xed, 0xcc, 0x6f, 0x67, 0xe6, 0x37, 0x3b, 0xbb, 0x33, 0x0e, 0xac, 0x31, 0x0c, 0x90, 0x74, - 0xd1, 0xa3, 0x1e, 0x43, 0x3f, 0xe4, 0xdd, 0xa3, 0xad, 0x2e, 0x3f, 0x71, 0xc6, 0x8c, 0x72, 0x6a, - 0x9a, 0x42, 0xe9, 0x68, 0xa5, 0x73, 0xb4, 0x65, 0x5d, 0x0a, 0x68, 0x40, 0x85, 0xba, 0x1b, 0x7f, - 0x49, 0xa4, 0xb5, 0x11, 0x50, 0x1a, 0x0c, 0xb1, 0x2b, 0x56, 0x83, 0xc3, 0x47, 0x5d, 0x1e, 0x8e, - 0x30, 0xe2, 0xee, 0x68, 0xac, 0x00, 0x6d, 0x8f, 0x46, 0x23, 0x1a, 0x75, 0x07, 0x6e, 0x84, 0xdd, - 0xa3, 0xad, 0x01, 0x72, 0x77, 0xab, 0xeb, 0xd1, 0x90, 0x24, 0xfa, 0xa2, 0x38, 0x9e, 0x8e, 0x31, - 0x92, 0x7a, 0xfb, 0xb9, 0x01, 0x67, 0x0f, 0xa2, 0x60, 0x8f, 0xa1, 0xcb, 0x71, 0x6f, 0xe8, 0x46, - 0x91, 0x79, 0x09, 0x16, 0x5c, 0x7f, 0x14, 0x92, 0x96, 0xd1, 0x31, 0x36, 0x1b, 0x3d, 0xb9, 0x30, - 0x5b, 0xb0, 0x14, 0x46, 0xd1, 0x21, 0xb2, 0xa8, 0x55, 0xe9, 0x54, 0x37, 0x1b, 0xbd, 0x64, 0x69, - 0x5a, 0x50, 0x1f, 0x21, 0x77, 0x7d, 0x97, 0xbb, 0xad, 0xaa, 0xd8, 0xa2, 0xd7, 0xe6, 0x6d, 0x30, - 0xa5, 0xdf, 0x7e, 0xec, 0xb4, 0xef, 0x0e, 0x06, 0x0c, 0x8f, 0x5a, 0x35, 0x81, 0x3a, 0x2f, 0x35, - 0x0f, 0x9f, 0x8e, 0x71, 0x47, 0xc8, 0xcd, 0x5b, 0x50, 0x7d, 0x84, 0xd8, 0x5a, 0xe8, 0x18, 0x9b, - 0xcd, 0xed, 0x2b, 0x8e, 0xa4, 0xe6, 0xc4, 0xd4, 0x1c, 0x45, 0xcd, 0xd9, 0xa3, 0x21, 0xe9, 0xc5, - 0x28, 0xfb, 0x0e, 0xac, 0x66, 0x03, 0xef, 0x61, 0x34, 0xa6, 0x24, 0x42, 0xf3, 0x0a, 0xd4, 0xbd, - 0x58, 0xd0, 0x0f, 0x7d, 0xc5, 0x61, 0x49, 0xac, 0xf7, 0x7d, 0xfb, 0x47, 0x03, 0xce, 0xeb, 0x5d, - 0x0f, 0x18, 0x7d, 0x82, 0x1e, 0x37, 0x57, 0x61, 0x51, 0x72, 0x51, 0x68, 0xb5, 0xca, 0xd8, 0xa9, - 0x64, 0xec, 0x4c, 0xe5, 0x6c, 0xc3, 0xf2, 0x93, 0x43, 0x16, 0x46, 0x7e, 0xe8, 0xf1, 0x90, 0x12, - 0xc5, 0x36, 0x23, 0x33, 0xaf, 0xc1, 0x32, 0xc3, 0x47, 0xc8, 0x90, 0x78, 0x18, 0x9b, 0x5f, 0x10, - 0x98, 0xa6, 0x96, 0xed, 0xfb, 0xf6, 0x5d, 0x68, 0xe5, 0x23, 0xd5, 0x0c, 0xd7, 0x01, 0xc6, 0x52, - 0x74, 0xca, 0xb1, 0xa1, 0x24, 0xfb, 0xbe, 0xfd, 0x43, 0x35, 0x75, 0xa8, 0xbb, 0x2e, 0xf7, 0x1e, - 0x97, 0x72, 0xcc, 0x5a, 0xaa, 0xe4, 0x2c, 0x99, 0x1f, 0x41, 0x3d, 0x06, 0xba, 0xc4, 0xc3, 0x56, - 0xb5, 0x53, 0xdd, 0x6c, 0x6e, 0x5f, 0x73, 0x26, 0x8b, 0xd7, 0x11, 0x3e, 0xf6, 0x15, 0xb0, 0xa7, - 0xb7, 0x64, 0xd2, 0x54, 0xcb, 0xa5, 0xe9, 0x63, 0x80, 0x88, 0xbb, 0x8c, 0xf7, 0x7d, 0x97, 0x27, - 0x67, 0x6e, 0x39, 0xb2, 0xde, 0x9d, 0xa4, 0xde, 0x9d, 0x87, 0x49, 0xbd, 0xef, 0xd6, 0x9e, 0xfd, - 0xb9, 0x61, 0xf4, 0x1a, 0x62, 0xcf, 0x3d, 0x97, 0xa3, 0xf9, 0x21, 0xd4, 0x91, 0xf8, 0x72, 0xfb, - 0xe2, 0x9c, 0xdb, 0x97, 0x90, 0xf8, 0x62, 0xb3, 0x09, 0x35, 0x3a, 0x46, 0xd2, 0x5a, 0xea, 0x18, - 0x9b, 0xf5, 0x9e, 0xf8, 0x36, 0xef, 0x42, 0x83, 0xb2, 0x30, 0x08, 0x49, 0x9f, 0x9f, 0xb4, 0xea, - 0xc2, 0xe2, 0xd5, 0x22, 0xb6, 0x5f, 0x08, 0xd0, 0xc3, 0x93, 0x5e, 0x9d, 0xaa, 0xaf, 0xd8, 0x1c, - 0xa1, 0x1c, 0x5b, 0x0d, 0x41, 0x52, 0x7c, 0xdb, 0x3f, 0x1b, 0xb0, 0x92, 0x49, 0x8c, 0x79, 0x15, - 0x1a, 0x0c, 0xbd, 0x70, 0x1c, 0x22, 0xe1, 0xc9, 0xa9, 0x69, 0x81, 0x79, 0x03, 0xce, 0x71, 0xe6, - 0xfa, 0xee, 0x60, 0x88, 0x7d, 0x77, 0x44, 0x0f, 0x09, 0x57, 0xe7, 0x71, 0x36, 0x11, 0xef, 0x08, - 0xa9, 0x79, 0x1d, 0xce, 0x32, 0xe4, 0x21, 0x43, 0x3f, 0xc1, 0xc9, 0x12, 0x5c, 0x51, 0x52, 0x05, - 0xfb, 0x00, 0xde, 0x90, 0x82, 0x11, 0x12, 0xde, 0x2f, 0x28, 0xc9, 0xd5, 0x53, 0xf5, 0x67, 0x29, - 0xad, 0x7d, 0x37, 0x75, 0xb3, 0x04, 0x01, 0x5d, 0x77, 0x1b, 0xd0, 0x1c, 0xc4, 0x82, 0xbe, 0x8f, - 0x84, 0x8e, 0x14, 0x05, 0x10, 0xa2, 0x7b, 0xb1, 0xc4, 0xfe, 0xc3, 0x80, 0x8b, 0x07, 0x51, 0x70, - 0x10, 0x12, 0x2e, 0x76, 0xee, 0x89, 0xa4, 0x45, 0xa5, 0xe5, 0x97, 0x33, 0x58, 0xc9, 0x1b, 0xfc, - 0xaf, 0x05, 0x98, 0x39, 0xd2, 0xda, 0xbf, 0x3a, 0xd2, 0x85, 0xd4, 0x91, 0x7e, 0x0a, 0xcb, 0x07, - 0x51, 0xf0, 0x25, 0xba, 0xc3, 0xe9, 0xb7, 0x6a, 0x16, 0x2d, 0x7b, 0x1d, 0xd6, 0x0a, 0xd2, 0x94, - 0xe4, 0xd9, 0x5e, 0x85, 0x4b, 0x69, 0x3f, 0x5a, 0xfe, 0x4b, 0x05, 0x96, 0x84, 0x82, 0xf8, 0xb1, - 0xef, 0x08, 0x89, 0x7f, 0xea, 0x5b, 0xae, 0xb2, 0x45, 0x56, 0xc9, 0x17, 0xd9, 0x0e, 0x2c, 0x49, - 0xd6, 0x91, 0x4a, 0xe7, 0x8d, 0xa2, 0x74, 0x28, 0x1f, 0x4e, 0xfc, 0x4f, 0x12, 0x5b, 0xb2, 0xcf, - 0x7a, 0x6e, 0x40, 0x33, 0xa5, 0x98, 0x59, 0x14, 0xff, 0x9f, 0xc2, 0xbe, 0x00, 0xe7, 0x14, 0x33, - 0x9d, 0xd1, 0xdf, 0x0c, 0x68, 0x1c, 0x44, 0x41, 0x4f, 0x6c, 0x88, 0x5b, 0x1f, 0x3d, 0x26, 0x3a, - 0xa5, 0x72, 0x61, 0x7e, 0x72, 0x9a, 0xb3, 0x8a, 0xc8, 0xd9, 0xad, 0x92, 0x9c, 0x49, 0x2b, 0x8e, - 0xfc, 0x2f, 0x9f, 0xb7, 0x89, 0xbe, 0x50, 0x9d, 0xec, 0x0b, 0xd6, 0x7d, 0x58, 0xc9, 0xec, 0x9e, - 0x9d, 0xdc, 0x55, 0x58, 0xcc, 0xe4, 0x54, 0xad, 0xec, 0x8b, 0x70, 0x41, 0x47, 0xa4, 0xd9, 0x8e, - 0x05, 0xd9, 0xbd, 0xf8, 0x6a, 0x0c, 0x4b, 0xc8, 0xbe, 0x97, 0x27, 0xbb, 0x56, 0x44, 0x76, 0x82, - 0xdc, 0x2a, 0x2c, 0x32, 0x74, 0x23, 0x4d, 0x4b, 0xad, 0x54, 0x18, 0xd2, 0xa3, 0x0e, 0xc3, 0x13, - 0x8f, 0xc4, 0x57, 0x63, 0x3f, 0x69, 0xdd, 0x3b, 0x62, 0xc4, 0x28, 0x1e, 0x3c, 0xa6, 0x74, 0xe1, - 0x35, 0x68, 0x10, 0x3c, 0xee, 0xcb, 0x4d, 0xaa, 0x0d, 0x13, 0x3c, 0x16, 0xd6, 0xd4, 0x15, 0xcb, - 0x3b, 0xd1, 0x31, 0x3c, 0x33, 0xe0, 0x72, 0x56, 0xbf, 0xaf, 0xe6, 0x99, 0xd7, 0x0e, 0x63, 0x03, - 0x9a, 0xae, 0xef, 0xf7, 0x93, 0xf1, 0xa8, 0x2a, 0xc6, 0x23, 0x70, 0x7d, 0x3f, 0xb1, 0x28, 0xea, - 0x7a, 0x44, 0x8f, 0x50, 0x63, 0x6a, 0x02, 0xb3, 0x22, 0xa5, 0x0a, 0x66, 0x6f, 0xc0, 0x7a, 0x61, - 0x44, 0x3a, 0x66, 0x14, 0x0f, 0x73, 0x0a, 0x70, 0x90, 0x34, 0xd3, 0xd7, 0x8e, 0x79, 0xca, 0x00, - 0x63, 0x77, 0xa0, 0x5d, 0xec, 0x46, 0x07, 0x12, 0xa6, 0x72, 0xa7, 0x66, 0x93, 0x69, 0x47, 0x98, - 0x39, 0xa7, 0x4a, 0xf6, 0x9c, 0x72, 0x13, 0x48, 0x35, 0x3f, 0xcb, 0xa4, 0x93, 0x92, 0x76, 0xa5, - 0x63, 0x61, 0x62, 0x4e, 0xca, 0x00, 0x66, 0xa4, 0xe5, 0x1a, 0x2c, 0xc7, 0xe1, 0x68, 0xfe, 0x32, - 0xa2, 0x26, 0xc1, 0x63, 0xbd, 0x71, 0x46, 0x50, 0x36, 0x74, 0xca, 0x7c, 0xea, 0xb8, 0x7e, 0x92, - 0x2f, 0xcb, 0x2e, 0x0b, 0xfd, 0x00, 0xe3, 0xfb, 0xc1, 0x5d, 0x16, 0x60, 0xd2, 0xf7, 0xd5, 0x6a, - 0xc6, 0x6b, 0x6d, 0x41, 0xdd, 0xa3, 0x84, 0x33, 0xd7, 0x4b, 0x9e, 0x42, 0xbd, 0x3e, 0xbd, 0xbe, - 0xb5, 0x92, 0xeb, 0xbb, 0x30, 0xff, 0xf5, 0x55, 0xd7, 0x54, 0xc6, 0x9a, 0x30, 0xd8, 0xfe, 0x1b, - 0xa0, 0x7a, 0x10, 0x05, 0xe6, 0xb7, 0xd0, 0x4c, 0xff, 0x3e, 0xb0, 0x4b, 0x5e, 0xbf, 0x14, 0xc6, - 0xba, 0x39, 0x1b, 0xa3, 0x87, 0x0a, 0x0f, 0x56, 0xb2, 0xf3, 0xf8, 0x5b, 0x53, 0x37, 0x2b, 0x94, - 0x75, 0x7b, 0x1e, 0x94, 0x76, 0xa2, 0x39, 0xc8, 0xc6, 0x3d, 0x9d, 0x83, 0xc0, 0xcc, 0xe0, 0x90, - 0x1d, 0x8c, 0x86, 0x70, 0x7e, 0x62, 0xe6, 0x29, 0xeb, 0xac, 0x79, 0xa0, 0xd5, 0x9d, 0x13, 0xa8, - 0xbd, 0x7d, 0x0d, 0x8d, 0xd3, 0x19, 0xa4, 0x53, 0xda, 0xc0, 0x15, 0xc2, 0xda, 0x9c, 0x85, 0xd0, - 0x86, 0xef, 0x43, 0x4d, 0xcc, 0x16, 0x6b, 0x53, 0x86, 0x02, 0xeb, 0xcd, 0x29, 0x4a, 0x6d, 0xe9, - 0x73, 0x58, 0x54, 0x3d, 0x75, 0x7d, 0x6a, 0xb3, 0xb4, 0xae, 0x4f, 0x55, 0xa7, 0xed, 0xa9, 0xb6, - 0x55, 0x66, 0x4f, 0xaa, 0x4b, 0xed, 0x65, 0x5b, 0x50, 0x7c, 0x60, 0x13, 0xfd, 0xa7, 0xec, 0xc0, - 0xf2, 0xc0, 0xd2, 0x03, 0x2b, 0x6b, 0x36, 0x26, 0x03, 0xb3, 0xa0, 0xd1, 0xbc, 0x3d, 0xdb, 0x8c, - 0x82, 0x5a, 0x5b, 0x73, 0x43, 0xb5, 0xcf, 0x43, 0xb8, 0x58, 0xd4, 0x29, 0x6e, 0xce, 0xb6, 0x94, - 0x60, 0xad, 0xed, 0xf9, 0xb1, 0x93, 0x54, 0x33, 0x7d, 0x61, 0x3a, 0xd5, 0x34, 0x74, 0x06, 0xd5, - 0xa2, 0x16, 0x60, 0x7e, 0x0f, 0x97, 0x8b, 0xdf, 0xff, 0xdb, 0xf3, 0xd8, 0xd2, 0x74, 0xdf, 0x7d, - 0x1d, 0x74, 0xba, 0x32, 0xd5, 0x1b, 0x5f, 0x56, 0x99, 0x52, 0x5d, 0x5a, 0x99, 0xd9, 0x57, 0x77, - 0xf7, 0xc1, 0xaf, 0x2f, 0xdb, 0xc6, 0x8b, 0x97, 0x6d, 0xe3, 0xaf, 0x97, 0x6d, 0xe3, 0xd9, 0xab, - 0xf6, 0x99, 0x17, 0xaf, 0xda, 0x67, 0x7e, 0x7f, 0xd5, 0x3e, 0xf3, 0xcd, 0xfb, 0x41, 0xc8, 0x1f, - 0x1f, 0x0e, 0x1c, 0x8f, 0x8e, 0xba, 0xc2, 0xd4, 0x3b, 0x04, 0xf9, 0x31, 0x65, 0xdf, 0xa9, 0xd5, - 0x10, 0xfd, 0x00, 0x59, 0xf7, 0x24, 0xf5, 0xd7, 0x1e, 0x8f, 0x32, 0x1c, 0x2c, 0x8a, 0x9f, 0xc3, - 0x77, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x9d, 0xf8, 0xf7, 0xb0, 0x94, 0x12, 0x00, 0x00, + // 1308 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x5f, 0x6f, 0x1b, 0x45, + 0x10, 0xef, 0xc5, 0x4e, 0x62, 0x8f, 0xd3, 0x7f, 0xdb, 0x36, 0xb8, 0x97, 0xc6, 0x71, 0x0f, 0xaa, + 0x86, 0x52, 0xce, 0x4a, 0xca, 0x1f, 0x55, 0x08, 0xa1, 0x24, 0x95, 0x20, 0x48, 0x86, 0xca, 0x14, + 0x21, 0x21, 0x21, 0x6b, 0x7d, 0x37, 0xbd, 0x5e, 0xb1, 0x77, 0xad, 0xbd, 0xcd, 0x9f, 0x0a, 0xde, + 0xf8, 0x02, 0xfd, 0x14, 0x3c, 0xf0, 0x05, 0xfa, 0xc2, 0x07, 0xe0, 0xb1, 0x8f, 0x3c, 0x20, 0x81, + 0xda, 0x8f, 0xc0, 0x17, 0x40, 0xb7, 0xb7, 0xb7, 0xb9, 0x73, 0xee, 0x6c, 0x07, 0x78, 0x89, 0x6e, + 0x67, 0x7e, 0x3b, 0x33, 0xbf, 0xd9, 0xd9, 0x99, 0x8d, 0x61, 0x4d, 0x60, 0x80, 0xac, 0x83, 0x1e, + 0xf7, 0x04, 0xfa, 0xa1, 0xec, 0x1c, 0x6e, 0x75, 0xe4, 0xb1, 0x3b, 0x16, 0x5c, 0x72, 0x42, 0x94, + 0xd2, 0x35, 0x4a, 0xf7, 0x70, 0xcb, 0xbe, 0x1a, 0xf0, 0x80, 0x2b, 0x75, 0x27, 0xfe, 0x4a, 0x90, + 0xf6, 0x46, 0xc0, 0x79, 0x30, 0xc4, 0x8e, 0x5a, 0x0d, 0x0e, 0x1e, 0x77, 0x64, 0x38, 0xc2, 0x48, + 0xd2, 0xd1, 0x58, 0x03, 0x5a, 0x1e, 0x8f, 0x46, 0x3c, 0xea, 0x0c, 0x68, 0x84, 0x9d, 0xc3, 0xad, + 0x01, 0x4a, 0xba, 0xd5, 0xf1, 0x78, 0xc8, 0x52, 0x7d, 0x51, 0x1c, 0xcf, 0xc6, 0x18, 0x25, 0x7a, + 0xe7, 0x85, 0x05, 0x17, 0xba, 0x51, 0xb0, 0x27, 0x90, 0x4a, 0xdc, 0x1b, 0xd2, 0x28, 0x22, 0x57, + 0x61, 0x91, 0xfa, 0xa3, 0x90, 0x35, 0xad, 0xb6, 0xb5, 0x59, 0xef, 0x25, 0x0b, 0xd2, 0x84, 0xe5, + 0x30, 0x8a, 0x0e, 0x50, 0x44, 0xcd, 0x85, 0x76, 0x65, 0xb3, 0xde, 0x4b, 0x97, 0xc4, 0x86, 0xda, + 0x08, 0x25, 0xf5, 0xa9, 0xa4, 0xcd, 0x8a, 0xda, 0x62, 0xd6, 0xe4, 0x2e, 0x90, 0xc4, 0x6f, 0x3f, + 0x76, 0xda, 0xa7, 0x83, 0x81, 0xc0, 0xc3, 0x66, 0x55, 0xa1, 0x2e, 0x25, 0x9a, 0x47, 0xcf, 0xc6, + 0xb8, 0xa3, 0xe4, 0xe4, 0x1d, 0xa8, 0x3c, 0x46, 0x6c, 0x2e, 0xb6, 0xad, 0xcd, 0xc6, 0xf6, 0x75, + 0x37, 0xa1, 0xe6, 0xc6, 0xd4, 0x5c, 0x4d, 0xcd, 0xdd, 0xe3, 0x21, 0xeb, 0xc5, 0x28, 0xe7, 0x1e, + 0xac, 0xe6, 0x03, 0xef, 0x61, 0x34, 0xe6, 0x2c, 0x42, 0x72, 0x1d, 0x6a, 0x5e, 0x2c, 0xe8, 0x87, + 0xbe, 0xe6, 0xb0, 0xac, 0xd6, 0xfb, 0xbe, 0xf3, 0xb3, 0x05, 0x97, 0xcc, 0xae, 0x87, 0x82, 0x3f, + 0x45, 0x4f, 0x96, 0x10, 0xce, 0x5a, 0x59, 0xc8, 0x59, 0x99, 0xca, 0xd8, 0x81, 0x95, 0xa7, 0x07, + 0x22, 0x8c, 0xfc, 0xd0, 0x93, 0x21, 0x67, 0x9a, 0x6b, 0x4e, 0x46, 0x6e, 0xc2, 0x8a, 0xc0, 0xc7, + 0x28, 0x90, 0x79, 0x18, 0x9b, 0x5f, 0x54, 0x98, 0x86, 0x91, 0xed, 0xfb, 0xce, 0x7d, 0x68, 0x4e, + 0xc6, 0x69, 0xf8, 0xad, 0x03, 0x8c, 0x13, 0xd1, 0x09, 0xc3, 0xba, 0x96, 0xec, 0xfb, 0xce, 0x4f, + 0x95, 0xcc, 0x91, 0xee, 0x52, 0xe9, 0x3d, 0x21, 0xab, 0xb0, 0x94, 0x9c, 0x96, 0x46, 0xeb, 0xd5, + 0x84, 0xa5, 0x85, 0x09, 0x4b, 0xe4, 0x63, 0xa8, 0xc5, 0x40, 0xca, 0x3c, 0x6c, 0x56, 0xda, 0x95, + 0xcd, 0xc6, 0xf6, 0x4d, 0xf7, 0x74, 0xe9, 0xba, 0xca, 0xc7, 0xbe, 0x06, 0xf6, 0xcc, 0x96, 0x5c, + 0x9a, 0xaa, 0x13, 0x69, 0xfa, 0x04, 0x20, 0x92, 0x54, 0xc8, 0xbe, 0x4f, 0x65, 0x7a, 0xe2, 0xb6, + 0x9b, 0x54, 0xbb, 0x9b, 0x56, 0xbb, 0xfb, 0x28, 0xad, 0xf6, 0xdd, 0xea, 0xf3, 0x3f, 0x37, 0xac, + 0x5e, 0x5d, 0xed, 0x79, 0x40, 0x25, 0x92, 0x8f, 0xa0, 0x86, 0xcc, 0x4f, 0xb6, 0x2f, 0xcd, 0xb9, + 0x7d, 0x19, 0x99, 0xaf, 0x36, 0x13, 0xa8, 0xf2, 0x31, 0xb2, 0xe6, 0x72, 0xdb, 0xda, 0xac, 0xf5, + 0xd4, 0x37, 0xb9, 0x0f, 0x75, 0x2e, 0xc2, 0x20, 0x64, 0x7d, 0x79, 0xdc, 0xac, 0x29, 0x8b, 0x37, + 0x8a, 0xd8, 0x7e, 0xa9, 0x40, 0x8f, 0x8e, 0x7b, 0x35, 0xae, 0xbf, 0x62, 0x73, 0x8c, 0x4b, 0x6c, + 0xd6, 0x15, 0x49, 0xf5, 0xed, 0xdc, 0xcf, 0x94, 0xa7, 0x4a, 0x90, 0x39, 0xbe, 0x0d, 0x68, 0x0c, + 0x62, 0x41, 0xdf, 0x47, 0xc6, 0x47, 0xfa, 0x44, 0x40, 0x89, 0x1e, 0xc4, 0x12, 0xe7, 0x0f, 0x0b, + 0xae, 0x74, 0xa3, 0xa0, 0x1b, 0x32, 0xa9, 0x76, 0xee, 0x29, 0xdf, 0x51, 0xe9, 0x29, 0x4e, 0x18, + 0x5c, 0x98, 0x34, 0xf8, 0x5f, 0xcf, 0x31, 0x97, 0x99, 0xea, 0xbf, 0xca, 0xcc, 0x62, 0x26, 0x33, + 0xeb, 0xb0, 0x56, 0xc0, 0x2e, 0x4d, 0x8f, 0xf3, 0x29, 0xac, 0x74, 0xa3, 0xe0, 0x2b, 0xa4, 0xc3, + 0xe9, 0xb5, 0x3b, 0x8b, 0xb5, 0xb3, 0x0a, 0x57, 0xb3, 0x86, 0x8c, 0x83, 0x5f, 0x17, 0x60, 0x59, + 0x29, 0x98, 0x1f, 0x1b, 0x8f, 0x90, 0xf9, 0x27, 0xc6, 0x93, 0x15, 0xb9, 0x01, 0x75, 0x81, 0x5e, + 0x38, 0x0e, 0x91, 0xc9, 0xf4, 0x5e, 0x18, 0x01, 0xd9, 0x81, 0xe5, 0x84, 0x75, 0xa4, 0xd3, 0x79, + 0xbb, 0x28, 0x1d, 0xda, 0x87, 0x1b, 0xff, 0x49, 0x49, 0xa6, 0xfb, 0xec, 0x17, 0x16, 0x34, 0x32, + 0x8a, 0x99, 0x45, 0x41, 0x6e, 0xc3, 0x45, 0x29, 0xa8, 0x4f, 0x07, 0x43, 0xec, 0xd3, 0x11, 0x3f, + 0x30, 0x71, 0x5d, 0x48, 0xc5, 0x3b, 0x4a, 0x4a, 0x6e, 0xc1, 0x05, 0x81, 0x32, 0x14, 0xe8, 0xa7, + 0xb8, 0xa4, 0x45, 0x9d, 0xd7, 0x52, 0x0d, 0xfb, 0x10, 0xde, 0x48, 0x04, 0x23, 0x64, 0xb2, 0x5f, + 0xd0, 0xb2, 0x56, 0x4f, 0xd4, 0x9f, 0x67, 0xb4, 0xce, 0x65, 0xb8, 0xa8, 0x99, 0x99, 0x8c, 0xfe, + 0x08, 0xf5, 0x6e, 0x14, 0xf4, 0x14, 0x3e, 0xee, 0xa6, 0xfc, 0x88, 0x99, 0x8c, 0x26, 0x0b, 0xf2, + 0xfe, 0x49, 0xca, 0x16, 0x54, 0xca, 0xd6, 0x8a, 0x52, 0x36, 0x99, 0xa6, 0x53, 0xdd, 0xb4, 0x72, + 0xba, 0x9b, 0x3a, 0x57, 0xe0, 0xb2, 0xf1, 0x6e, 0x42, 0x1a, 0xab, 0x90, 0xf6, 0xe2, 0xfa, 0x1d, + 0xfe, 0xbf, 0x21, 0xad, 0xc2, 0x92, 0x40, 0x1a, 0x99, 0x60, 0xf4, 0x4a, 0x87, 0x91, 0x78, 0x34, + 0x61, 0x78, 0xea, 0x26, 0x7f, 0x3d, 0xf6, 0xd3, 0x21, 0xb5, 0xa3, 0x66, 0xcb, 0x99, 0x27, 0xce, + 0x1a, 0xd4, 0x19, 0x1e, 0xf5, 0x93, 0x4d, 0x7a, 0xe4, 0x30, 0x3c, 0x52, 0xd6, 0xf4, 0x85, 0x9a, + 0x74, 0x62, 0x62, 0x78, 0x6e, 0xc1, 0xb5, 0xbc, 0x7e, 0x5f, 0x4f, 0xee, 0x33, 0x87, 0xb1, 0x01, + 0x0d, 0xea, 0xfb, 0xfd, 0xf4, 0x21, 0x50, 0x51, 0x0f, 0x01, 0xa0, 0xbe, 0x9f, 0x5a, 0x54, 0xc5, + 0x37, 0xe2, 0x87, 0x68, 0x30, 0x55, 0x85, 0x39, 0x9f, 0x48, 0x35, 0xcc, 0xd9, 0x80, 0xf5, 0xc2, + 0x88, 0x4c, 0xcc, 0x43, 0xd5, 0x3d, 0x33, 0x80, 0x6e, 0x3a, 0x38, 0xce, 0x1c, 0xf3, 0x4d, 0x58, + 0x89, 0x53, 0x37, 0x31, 0xb0, 0x1b, 0x0c, 0x8f, 0x52, 0x9b, 0x4e, 0x1b, 0x5a, 0xc5, 0xde, 0x4c, + 0x3c, 0x61, 0x26, 0x85, 0x7a, 0x1c, 0x4f, 0x3b, 0xc9, 0x19, 0x73, 0x75, 0xea, 0x69, 0x66, 0x73, + 0x93, 0x75, 0x65, 0x62, 0x11, 0xea, 0x69, 0x90, 0x03, 0xcc, 0xc8, 0xce, 0x8c, 0x70, 0xe6, 0xc8, + 0x90, 0x03, 0xed, 0x32, 0x9f, 0x26, 0xae, 0x5f, 0x2c, 0x75, 0xe7, 0x76, 0x45, 0xe8, 0x07, 0x65, + 0x6d, 0x60, 0x15, 0x96, 0x24, 0x15, 0x01, 0xa6, 0xcd, 0x4b, 0xaf, 0xf2, 0xfd, 0xb6, 0x32, 0xd9, + 0x6f, 0x6d, 0xa8, 0x79, 0x9c, 0x49, 0x41, 0x3d, 0x99, 0x3e, 0x24, 0xd2, 0x75, 0xf6, 0x16, 0x2f, + 0xce, 0x7f, 0x8b, 0xf5, 0x6d, 0x4d, 0x62, 0x4d, 0x19, 0x6c, 0xff, 0x0d, 0x50, 0xe9, 0x46, 0x01, + 0xf9, 0x0e, 0x1a, 0xd9, 0x07, 0xb1, 0x53, 0xd2, 0xdd, 0x33, 0x18, 0xfb, 0xce, 0x6c, 0x8c, 0x79, + 0x00, 0x78, 0x70, 0x3e, 0xff, 0x00, 0x7d, 0x6b, 0xea, 0x66, 0x8d, 0xb2, 0xef, 0xce, 0x83, 0x32, + 0x4e, 0x0c, 0x87, 0x64, 0x8a, 0x4e, 0xe7, 0xa0, 0x30, 0x33, 0x38, 0xe4, 0x1f, 0x31, 0x43, 0xb8, + 0x74, 0xea, 0x7d, 0x52, 0x36, 0x05, 0x27, 0x81, 0x76, 0x67, 0x4e, 0xa0, 0xf1, 0xf6, 0x0d, 0xd4, + 0x4f, 0x1e, 0x04, 0xed, 0xd2, 0x61, 0xab, 0x11, 0xf6, 0xe6, 0x2c, 0x84, 0x31, 0xfc, 0x19, 0x54, + 0xd5, 0x3b, 0x60, 0x6d, 0xca, 0x00, 0xb7, 0xdf, 0x9c, 0xa2, 0x34, 0x96, 0xbe, 0x80, 0x25, 0x3d, + 0x00, 0xd7, 0x4b, 0xe0, 0x89, 0xda, 0xbe, 0x35, 0x55, 0x9d, 0xb5, 0xa7, 0xa7, 0x57, 0x99, 0xbd, + 0x44, 0x5d, 0x6a, 0x2f, 0x3f, 0x89, 0xe2, 0x03, 0x3b, 0x35, 0x86, 0xca, 0x0e, 0x6c, 0x12, 0x58, + 0x7a, 0x60, 0x65, 0x33, 0x87, 0x08, 0x20, 0x05, 0xf3, 0xe6, 0xed, 0xd9, 0x66, 0x34, 0xd4, 0xde, + 0x9a, 0x1b, 0x6a, 0x7c, 0x1e, 0xc0, 0x95, 0xa2, 0x81, 0x71, 0x67, 0xb6, 0xa5, 0x14, 0x6b, 0x6f, + 0xcf, 0x8f, 0x3d, 0x4d, 0x35, 0x37, 0x17, 0xa6, 0x53, 0xcd, 0x42, 0x67, 0x50, 0x2d, 0x1a, 0x01, + 0xe4, 0x07, 0xb8, 0x56, 0xdc, 0xff, 0xef, 0xce, 0x63, 0xcb, 0xd0, 0x7d, 0xef, 0x2c, 0xe8, 0x6c, + 0x65, 0xea, 0x1e, 0x5f, 0x56, 0x99, 0x89, 0xba, 0xb4, 0x32, 0xf3, 0x5d, 0x77, 0xf7, 0xe1, 0x6f, + 0xaf, 0x5a, 0xd6, 0xcb, 0x57, 0x2d, 0xeb, 0xaf, 0x57, 0x2d, 0xeb, 0xf9, 0xeb, 0xd6, 0xb9, 0x97, + 0xaf, 0x5b, 0xe7, 0x7e, 0x7f, 0xdd, 0x3a, 0xf7, 0xed, 0x07, 0x41, 0x28, 0x9f, 0x1c, 0x0c, 0x5c, + 0x8f, 0x8f, 0x3a, 0xca, 0xd4, 0xbb, 0x0c, 0xe5, 0x11, 0x17, 0xdf, 0xeb, 0xd5, 0x10, 0xfd, 0x00, + 0x45, 0xe7, 0x38, 0xf3, 0xf3, 0x86, 0xc7, 0x05, 0x0e, 0x96, 0xd4, 0x7f, 0x80, 0xf7, 0xfe, 0x09, + 0x00, 0x00, 0xff, 0xff, 0x17, 0xd2, 0xec, 0x41, 0x85, 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1985,48 +1880,75 @@ const _ = grpc.SupportPackageIsVersion4 // // 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 with an approved list of issuers and - // optional metadata. + // CreateClass creates a new credit class under the given credit type with an + // approved list of issuers and optional metadata. The fee denom must be one + // of the denoms listed in Params.credit_class_fee and greater than or equal + // to the fee amount but only the minimum amount is charged. 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 within a credit class. + // 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 and 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 for an existing project. - // This will create a new batch denom with a fixed supply. Issued credits can - // be distributed to recipients in either tradable or retired form. + // 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 issues new token in a given batch. - // The issuer must be the account who created (or delegated using x/authz), - // the batch. - // The request will fail if the batch is not open (is sealed). - // NOTE: this method is only for bridge purpose. It must not be used - // for issuing native credits on Regen. More specifically, we - // enable minting more credits in an existing batch, when the batch - // represents a vintage originally registered in another chain. + // 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 sets the `batch.open` attribute to false. Sealed batch - // can't issue more credits. Once batch is sealed it can't be toggled any - // more. Only batch creator can seal a batch. + // 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 tradable credits from one account to another account. Sent - // credits can either be tradable or retired on receipt. + // 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 number of credits in the holder's account. + // 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 removes a number of credits from the holder's account and also - // deducts them from the tradable supply, effectively cancelling their - // issuance on Regen Ledger + // 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 + // 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 + // 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 + // 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 + // 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 + // 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) - // Bridge cancels credits and emits a bridge event. + // Bridge cancels a specified amount of tradable credits and emits a special + // bridge event handled by an external bridge service. Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.CallOption) (*MsgBridgeResponse, error) } @@ -2166,48 +2088,75 @@ func (c *msgClient) Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.Call // MsgServer is the server API for Msg service. type MsgServer interface { - // CreateClass creates a new credit class with an approved list of issuers and - // optional metadata. + // CreateClass creates a new credit class under the given credit type with an + // approved list of issuers and optional metadata. The fee denom must be one + // of the denoms listed in Params.credit_class_fee and greater than or equal + // to the fee amount but only the minimum amount is charged. 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 within a credit class. + // 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 and the creator becomes the admin of the project upon creation. CreateProject(context.Context, *MsgCreateProject) (*MsgCreateProjectResponse, error) - // CreateBatch creates a new batch of credits for an existing project. - // This will create a new batch denom with a fixed supply. Issued credits can - // be distributed to recipients in either tradable or retired form. + // 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 issues new token in a given batch. - // The issuer must be the account who created (or delegated using x/authz), - // the batch. - // The request will fail if the batch is not open (is sealed). - // NOTE: this method is only for bridge purpose. It must not be used - // for issuing native credits on Regen. More specifically, we - // enable minting more credits in an existing batch, when the batch - // represents a vintage originally registered in another chain. + // 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 sets the `batch.open` attribute to false. Sealed batch - // can't issue more credits. Once batch is sealed it can't be toggled any - // more. Only batch creator can seal a batch. + // 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 tradable credits from one account to another account. Sent - // credits can either be tradable or retired on receipt. + // 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 number of credits in the holder's account. + // 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 removes a number of credits from the holder's account and also - // deducts them from the tradable supply, effectively cancelling their - // issuance on Regen Ledger + // 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 + // 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 + // 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 + // 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 + // 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 + // UpdateProjectMetadata updates the project metadata. Only the admin of the + // project can update the project. UpdateProjectMetadata(context.Context, *MsgUpdateProjectMetadata) (*MsgUpdateProjectMetadataResponse, error) - // Bridge cancels credits and emits a bridge event. + // Bridge cancels a specified amount of tradable credits and emits a special + // bridge event handled by an external bridge service. Bridge(context.Context, *MsgBridge) (*MsgBridgeResponse, error) } @@ -2722,10 +2671,10 @@ func (m *MsgCreateProject) MarshalToSizedBuffer(dAtA []byte) (int, error) { 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))) + 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 } @@ -2869,7 +2818,7 @@ func (m *MsgCreateBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *BatchIssuance) 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]) @@ -2879,63 +2828,12 @@ func (m *BatchIssuance) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BatchIssuance) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateBatchResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BatchIssuance) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - 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 - } - 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 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.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 *MsgCreateBatchResponse) 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 *MsgCreateBatchResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3020,7 +2918,7 @@ func (m *MsgMintBatchCredits) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgSealBatch) 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]) @@ -3030,34 +2928,20 @@ func (m *MsgSealBatch) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgSealBatch) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgMintBatchCreditsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSealBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgMintBatchCreditsResponse) 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 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 *MsgMintBatchCreditsResponse) 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]) @@ -3067,16 +2951,30 @@ func (m *MsgMintBatchCreditsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgMintBatchCreditsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSealBatch) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgMintBatchCreditsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +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 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 } @@ -3279,43 +3177,6 @@ func (m *MsgRetire) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgRetire_RetireCredits) 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 *MsgRetire_RetireCredits) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRetire_RetireCredits) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = 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 - } - 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 *MsgRetireResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3578,10 +3439,10 @@ func (m *MsgUpdateClassMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = 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))) + 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 } @@ -3645,18 +3506,18 @@ func (m *MsgUpdateProjectAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = 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] = 0x1a - } 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.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.Admin) > 0 { @@ -3712,18 +3573,18 @@ func (m *MsgUpdateProjectMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error _ = 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] = 0x1a - } 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.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.Admin) > 0 { @@ -3793,32 +3654,32 @@ func (m *MsgBridge) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x2a } } - 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] = 0x22 - } if len(m.Contract) > 0 { i -= len(m.Contract) copy(dAtA[i:], m.Contract) i = encodeVarintTx(dAtA, i, uint64(len(m.Contract))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } 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 + 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))) 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 @@ -3908,7 +3769,7 @@ func (m *MsgCreateProject) Size() (n int) { } var l int _ = l - l = len(m.Issuer) + l = len(m.Admin) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -3990,31 +3851,6 @@ func (m *MsgCreateBatch) Size() (n int) { return n } -func (m *BatchIssuance) 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.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)) - } - return n -} - func (m *MsgCreateBatchResponse) Size() (n int) { if m == nil { return 0 @@ -4059,6 +3895,15 @@ func (m *MsgMintBatchCredits) Size() (n int) { 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 @@ -4076,15 +3921,6 @@ func (m *MsgSealBatch) Size() (n int) { return n } -func (m *MsgMintBatchCreditsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - func (m *MsgSealBatchResponse) Size() (n int) { if m == nil { return 0 @@ -4174,23 +4010,6 @@ func (m *MsgRetire) Size() (n int) { return n } -func (m *MsgRetire_RetireCredits) 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.Amount) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - func (m *MsgRetireResponse) Size() (n int) { if m == nil { return 0 @@ -4314,7 +4133,7 @@ func (m *MsgUpdateClassMetadata) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Metadata) + l = len(m.NewMetadata) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -4340,11 +4159,11 @@ func (m *MsgUpdateProjectAdmin) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.NewAdmin) + l = len(m.ProjectId) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.ProjectId) + l = len(m.NewAdmin) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -4370,11 +4189,11 @@ func (m *MsgUpdateProjectMetadata) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.NewMetadata) + l = len(m.ProjectId) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.ProjectId) + l = len(m.NewMetadata) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -4396,19 +4215,19 @@ func (m *MsgBridge) Size() (n int) { } var l int _ = l - l = len(m.Target) + l = len(m.Owner) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Recipient) + l = len(m.Target) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Contract) + l = len(m.Recipient) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Owner) + l = len(m.Contract) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -4763,7 +4582,7 @@ func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Issuer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4791,7 +4610,7 @@ func (m *MsgCreateProject) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Issuer = string(dAtA[iNdEx:postIndex]) + m.Admin = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -5307,191 +5126,13 @@ func (m *MsgCreateBatch) Unmarshal(dAtA []byte) error { if m.OriginTx == nil { m.OriginTx = &OriginTx{} } - if err := m.OriginTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Note", 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.Note = 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 *BatchIssuance) 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: BatchIssuance: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BatchIssuance: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Recipient", 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.Recipient = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradableAmount", 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.TradableAmount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RetiredAmount", 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.RetiredAmount = string(dAtA[iNdEx:postIndex]) + if err := m.OriginTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 4: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RetirementJurisdiction", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5519,7 +5160,7 @@ func (m *BatchIssuance) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RetirementJurisdiction = string(dAtA[iNdEx:postIndex]) + m.Note = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5840,6 +5481,56 @@ func (m *MsgMintBatchCredits) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgMintBatchCreditsResponse) 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: MsgMintBatchCreditsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMintBatchCreditsResponse: 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 *MsgSealBatch) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -5954,56 +5645,6 @@ func (m *MsgSealBatch) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMintBatchCreditsResponse) 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: MsgMintBatchCreditsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMintBatchCreditsResponse: 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 *MsgSealBatchResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -6520,7 +6161,7 @@ func (m *MsgRetire) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Credits = append(m.Credits, &MsgRetire_RetireCredits{}) + m.Credits = append(m.Credits, &Credits{}) if err := m.Credits[len(m.Credits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -6578,120 +6219,6 @@ func (m *MsgRetire) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRetire_RetireCredits) 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: RetireCredits: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RetireCredits: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BatchDenom", 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.BatchDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = 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 *MsgRetireResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -7459,7 +6986,7 @@ func (m *MsgUpdateClassMetadata) Unmarshal(dAtA []byte) error { 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 NewMetadata", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7487,7 +7014,7 @@ func (m *MsgUpdateClassMetadata) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Metadata = string(dAtA[iNdEx:postIndex]) + m.NewMetadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7623,7 +7150,7 @@ func (m *MsgUpdateProjectAdmin) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewAdmin", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7651,11 +7178,11 @@ func (m *MsgUpdateProjectAdmin) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NewAdmin = 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 ProjectId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewAdmin", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7683,7 +7210,7 @@ func (m *MsgUpdateProjectAdmin) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ProjectId = string(dAtA[iNdEx:postIndex]) + m.NewAdmin = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7819,7 +7346,7 @@ func (m *MsgUpdateProjectMetadata) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewMetadata", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7847,11 +7374,11 @@ func (m *MsgUpdateProjectMetadata) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NewMetadata = 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 ProjectId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewMetadata", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7879,7 +7406,7 @@ func (m *MsgUpdateProjectMetadata) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ProjectId = string(dAtA[iNdEx:postIndex]) + m.NewMetadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7983,7 +7510,7 @@ func (m *MsgBridge) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8011,11 +7538,11 @@ func (m *MsgBridge) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Target = string(dAtA[iNdEx:postIndex]) + m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8043,11 +7570,11 @@ func (m *MsgBridge) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Recipient = string(dAtA[iNdEx:postIndex]) + m.Target = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8075,11 +7602,11 @@ func (m *MsgBridge) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Contract = string(dAtA[iNdEx:postIndex]) + m.Recipient = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8107,7 +7634,7 @@ func (m *MsgBridge) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Owner = string(dAtA[iNdEx:postIndex]) + m.Contract = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { diff --git a/x/ecocredit/core/types.pb.go b/x/ecocredit/core/types.pb.go index f2ee479695..d90927ba3a 100644 --- a/x/ecocredit/core/types.pb.go +++ b/x/ecocredit/core/types.pb.go @@ -28,15 +28,22 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the updatable global parameters of the ecocredit module for // use with the x/params module. type Params struct { - // credit_class_fee is the fixed fee charged on creation of a new credit class + // credit_class_fee is a list of credit class creation fees accepted when + // creating a credit class. Any fee listed is accepted and charged to the + // credit class creator when creating a credit class. CreditClassFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=credit_class_fee,json=creditClassFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"credit_class_fee"` - // basket_fee is the fixed fee charged on creation of a new basket + // basket_fee is a list of basket creation fees accepted when creating a + // basket. Any fee listed is accepted and charged to the basket creator when + // creating a basket. BasketFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=basket_fee,json=basketFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"basket_fee"` - // allowed_class_creators is an allowlist defining the addresses with - // the required permissions to create credit classes + // allowed_class_creators is an allowlist defining the addresses with the + // required permissions to create credit classes when allowlist_enabled is set + // to true. If allowlist_enabled is set to false, this list has no effect. AllowedClassCreators []string `protobuf:"bytes,3,rep,name=allowed_class_creators,json=allowedClassCreators,proto3" json:"allowed_class_creators,omitempty"` - // allowlist_enabled is a param that enables/disables the allowlist for credit - // creation + // allowlist_enabled determines whether or not the allowlist for creating + // credit classes is enabled. When set to true, only the addresses listed in + // allowed_class_creators can create credit classes. When set to false, any + // address can create credit classes. AllowlistEnabled bool `protobuf:"varint,4,opt,name=allowlist_enabled,json=allowlistEnabled,proto3" json:"allowlist_enabled,omitempty"` } @@ -101,6 +108,145 @@ func (m *Params) GetAllowlistEnabled() bool { return false } +// Credits represents a simple structure for credits. +type Credits struct { + // batch_denom is the denom of the credit batch. + BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` + // amount is the amount of credits. + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (m *Credits) Reset() { *m = Credits{} } +func (m *Credits) String() string { return proto.CompactTextString(m) } +func (*Credits) ProtoMessage() {} +func (*Credits) Descriptor() ([]byte, []int) { + return fileDescriptor_7b044b6b740b984f, []int{1} +} +func (m *Credits) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Credits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Credits.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 *Credits) XXX_Merge(src proto.Message) { + xxx_messageInfo_Credits.Merge(m, src) +} +func (m *Credits) XXX_Size() int { + return m.Size() +} +func (m *Credits) XXX_DiscardUnknown() { + xxx_messageInfo_Credits.DiscardUnknown(m) +} + +var xxx_messageInfo_Credits proto.InternalMessageInfo + +func (m *Credits) GetBatchDenom() string { + if m != nil { + return m.BatchDenom + } + return "" +} + +func (m *Credits) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +// BatchIssuance represents a simple structure for a credit batch issuance. +type BatchIssuance struct { + // recipient is the address of the account receiving the issued credits. + Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` + // tradable_amount is the amount of credits that the recipient will receive in + // a tradable state. 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 that the recipient will receive in + // a retired state. 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 following + // 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. + RetirementJurisdiction string `protobuf:"bytes,4,opt,name=retirement_jurisdiction,json=retirementJurisdiction,proto3" json:"retirement_jurisdiction,omitempty"` +} + +func (m *BatchIssuance) Reset() { *m = BatchIssuance{} } +func (m *BatchIssuance) String() string { return proto.CompactTextString(m) } +func (*BatchIssuance) ProtoMessage() {} +func (*BatchIssuance) Descriptor() ([]byte, []int) { + return fileDescriptor_7b044b6b740b984f, []int{2} +} +func (m *BatchIssuance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchIssuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchIssuance.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 *BatchIssuance) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchIssuance.Merge(m, src) +} +func (m *BatchIssuance) XXX_Size() int { + return m.Size() +} +func (m *BatchIssuance) XXX_DiscardUnknown() { + xxx_messageInfo_BatchIssuance.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchIssuance proto.InternalMessageInfo + +func (m *BatchIssuance) GetRecipient() string { + if m != nil { + return m.Recipient + } + return "" +} + +func (m *BatchIssuance) GetTradableAmount() string { + if m != nil { + return m.TradableAmount + } + return "" +} + +func (m *BatchIssuance) GetRetiredAmount() string { + if m != nil { + return m.RetiredAmount + } + return "" +} + +func (m *BatchIssuance) GetRetirementJurisdiction() string { + if m != nil { + return m.RetirementJurisdiction + } + return "" +} + // OriginTx is the transaction from another chain or registry that triggered // the minting of credits. type OriginTx struct { @@ -116,7 +262,7 @@ func (m *OriginTx) Reset() { *m = OriginTx{} } func (m *OriginTx) String() string { return proto.CompactTextString(m) } func (*OriginTx) ProtoMessage() {} func (*OriginTx) Descriptor() ([]byte, []int) { - return fileDescriptor_7b044b6b740b984f, []int{1} + return fileDescriptor_7b044b6b740b984f, []int{3} } func (m *OriginTx) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -173,7 +319,7 @@ type CreditTypeProposal struct { func (m *CreditTypeProposal) Reset() { *m = CreditTypeProposal{} } func (*CreditTypeProposal) ProtoMessage() {} func (*CreditTypeProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_7b044b6b740b984f, []int{2} + return fileDescriptor_7b044b6b740b984f, []int{4} } func (m *CreditTypeProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -223,103 +369,55 @@ func (m *CreditTypeProposal) GetCreditType() *CreditType { return nil } -// Credits represents a simple structure for credits. -type Credits struct { - // batch_denom is the denom of the credit batch - BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` - // amount is the amount of credits - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (m *Credits) Reset() { *m = Credits{} } -func (m *Credits) String() string { return proto.CompactTextString(m) } -func (*Credits) ProtoMessage() {} -func (*Credits) Descriptor() ([]byte, []int) { - return fileDescriptor_7b044b6b740b984f, []int{3} -} -func (m *Credits) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Credits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Credits.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 *Credits) XXX_Merge(src proto.Message) { - xxx_messageInfo_Credits.Merge(m, src) -} -func (m *Credits) XXX_Size() int { - return m.Size() -} -func (m *Credits) XXX_DiscardUnknown() { - xxx_messageInfo_Credits.DiscardUnknown(m) -} - -var xxx_messageInfo_Credits proto.InternalMessageInfo - -func (m *Credits) GetBatchDenom() string { - if m != nil { - return m.BatchDenom - } - return "" -} - -func (m *Credits) GetAmount() string { - if m != nil { - return m.Amount - } - return "" -} - func init() { proto.RegisterType((*Params)(nil), "regen.ecocredit.v1.Params") + proto.RegisterType((*Credits)(nil), "regen.ecocredit.v1.Credits") + proto.RegisterType((*BatchIssuance)(nil), "regen.ecocredit.v1.BatchIssuance") proto.RegisterType((*OriginTx)(nil), "regen.ecocredit.v1.OriginTx") proto.RegisterType((*CreditTypeProposal)(nil), "regen.ecocredit.v1.CreditTypeProposal") - proto.RegisterType((*Credits)(nil), "regen.ecocredit.v1.Credits") } func init() { proto.RegisterFile("regen/ecocredit/v1/types.proto", fileDescriptor_7b044b6b740b984f) } var fileDescriptor_7b044b6b740b984f = []byte{ - // 493 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x31, 0x6f, 0x13, 0x31, - 0x14, 0xc7, 0x73, 0x49, 0x09, 0x8d, 0x23, 0x55, 0xc5, 0x8a, 0xaa, 0xd0, 0xe1, 0x72, 0xca, 0x74, - 0x12, 0xaa, 0x8f, 0x04, 0xc4, 0xc0, 0x82, 0x94, 0x00, 0x2b, 0x51, 0xd4, 0x89, 0x25, 0xf2, 0xf9, - 0x1e, 0x57, 0x93, 0xcb, 0xbd, 0xc8, 0x76, 0xd2, 0xf6, 0x5b, 0x20, 0xb1, 0x30, 0x32, 0xf3, 0x49, - 0x3a, 0xa1, 0x8e, 0x4c, 0x80, 0x92, 0x2f, 0x82, 0x7c, 0x76, 0x43, 0x24, 0x18, 0x3b, 0x9d, 0xdf, - 0xff, 0xef, 0xf3, 0xef, 0xfd, 0xed, 0x47, 0x42, 0x05, 0x39, 0x94, 0x09, 0x08, 0x14, 0x0a, 0x32, - 0x69, 0x92, 0xf5, 0x20, 0x31, 0xd7, 0x4b, 0xd0, 0x6c, 0xa9, 0xd0, 0x20, 0xa5, 0x95, 0xcf, 0x76, - 0x3e, 0x5b, 0x0f, 0x4e, 0x3b, 0x39, 0xe6, 0x58, 0xd9, 0x89, 0x5d, 0xb9, 0x9d, 0xa7, 0xa1, 0x40, - 0xbd, 0x40, 0x9d, 0xa4, 0x5c, 0x43, 0xb2, 0x1e, 0xa4, 0x60, 0xf8, 0x20, 0x11, 0x28, 0xcb, 0x3b, - 0xff, 0x3f, 0x24, 0x6d, 0xb8, 0x01, 0xe7, 0xf7, 0xbf, 0xd7, 0x49, 0x73, 0xc2, 0x15, 0x5f, 0x68, - 0xba, 0x22, 0xc7, 0x6e, 0xcf, 0x4c, 0x14, 0x5c, 0xeb, 0xd9, 0x07, 0x80, 0x6e, 0x10, 0x35, 0xe2, - 0xf6, 0xf0, 0x31, 0x73, 0x14, 0x66, 0x29, 0xcc, 0x53, 0xd8, 0x18, 0x65, 0x39, 0x7a, 0x7a, 0xf3, - 0xb3, 0x57, 0xfb, 0xf6, 0xab, 0x17, 0xe7, 0xd2, 0x5c, 0xac, 0x52, 0x26, 0x70, 0x91, 0xf8, 0x96, - 0xdc, 0xe7, 0x4c, 0x67, 0x73, 0x9f, 0xcd, 0xfe, 0xa0, 0xa7, 0x47, 0x0e, 0x32, 0xb6, 0x8c, 0xb7, - 0x00, 0xf4, 0x23, 0x21, 0x29, 0xd7, 0x73, 0x30, 0x15, 0xb0, 0x7e, 0xff, 0xc0, 0x96, 0x3b, 0xde, - 0xb2, 0x9e, 0x93, 0x13, 0x5e, 0x14, 0x78, 0x09, 0x99, 0xcf, 0x28, 0x14, 0x70, 0x83, 0x4a, 0x77, - 0x1b, 0x51, 0x23, 0x6e, 0x4d, 0x3b, 0xde, 0xad, 0x9a, 0x1b, 0x7b, 0x8f, 0x3e, 0x21, 0x8f, 0x2a, - 0xbd, 0x90, 0xda, 0xcc, 0xa0, 0xe4, 0x69, 0x01, 0x59, 0xf7, 0x20, 0x0a, 0xe2, 0xc3, 0xe9, 0xf1, - 0xce, 0x78, 0xe3, 0xf4, 0xfe, 0x90, 0x1c, 0xbe, 0x53, 0x32, 0x97, 0xe5, 0xf9, 0x15, 0x3d, 0x22, - 0x75, 0x99, 0x75, 0x83, 0x28, 0x88, 0x5b, 0xd3, 0xba, 0xcc, 0xe8, 0x09, 0x69, 0x6a, 0x5c, 0x29, - 0x61, 0x63, 0x5a, 0xcd, 0x57, 0xfd, 0xcf, 0x01, 0xa1, 0xe3, 0xea, 0x56, 0xce, 0xaf, 0x97, 0x30, - 0x51, 0xb8, 0x44, 0xcd, 0x0b, 0xda, 0x21, 0x0f, 0x8c, 0x34, 0x05, 0xf8, 0x13, 0x5c, 0x41, 0x23, - 0xd2, 0xce, 0x40, 0x0b, 0x25, 0x97, 0x46, 0x62, 0xe9, 0x4f, 0xda, 0x97, 0xe8, 0x2b, 0xd2, 0xf6, - 0x0f, 0x69, 0xaf, 0xa1, 0xdb, 0x88, 0x82, 0xb8, 0x3d, 0x0c, 0xd9, 0xbf, 0x33, 0xc5, 0xfe, 0x42, - 0xa7, 0x44, 0xec, 0xd6, 0x2f, 0x0f, 0xbe, 0x7c, 0xed, 0xd5, 0xfa, 0x23, 0xf2, 0xd0, 0xf9, 0x9a, - 0xf6, 0x48, 0x3b, 0xe5, 0x46, 0x5c, 0xcc, 0x32, 0x28, 0x71, 0xe1, 0xfb, 0x21, 0x95, 0xf4, 0xda, - 0x2a, 0x36, 0x19, 0x5f, 0xe0, 0xaa, 0x34, 0x77, 0xc9, 0x5c, 0x35, 0x9a, 0xdc, 0x6c, 0xc2, 0xe0, - 0x76, 0x13, 0x06, 0xbf, 0x37, 0x61, 0xf0, 0x69, 0x1b, 0xd6, 0x6e, 0xb7, 0x61, 0xed, 0xc7, 0x36, - 0xac, 0xbd, 0x7f, 0xb1, 0xf7, 0x7e, 0x55, 0x67, 0x67, 0x25, 0x98, 0x4b, 0x54, 0x73, 0x5f, 0x15, - 0x90, 0xe5, 0xa0, 0x92, 0xab, 0xbd, 0xd1, 0x15, 0xa8, 0x20, 0x6d, 0x56, 0x73, 0xfb, 0xec, 0x4f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x86, 0x8c, 0xd1, 0xfe, 0x43, 0x03, 0x00, 0x00, + // 578 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcd, 0x6e, 0x13, 0x31, + 0x18, 0xcc, 0x26, 0xa5, 0x34, 0x8e, 0x1a, 0x8a, 0x55, 0x95, 0x50, 0xa1, 0x4d, 0x14, 0x09, 0x11, + 0x09, 0x75, 0x97, 0x14, 0x04, 0x12, 0x17, 0x44, 0x02, 0x48, 0x70, 0xa1, 0x8a, 0x7a, 0xe2, 0xb2, + 0xf2, 0xda, 0x1f, 0x5b, 0xb7, 0xbb, 0xf6, 0xca, 0xf6, 0xf6, 0xe7, 0x2d, 0x90, 0xb8, 0x70, 0xe4, + 0xcc, 0x03, 0xf0, 0x0c, 0x3d, 0xa1, 0x1e, 0x39, 0x01, 0x6a, 0x5f, 0x04, 0xad, 0xed, 0xb4, 0x41, + 0x70, 0xe4, 0x14, 0x7f, 0x33, 0x93, 0x99, 0x6f, 0x56, 0x36, 0x0a, 0x15, 0x64, 0x20, 0x62, 0xa0, + 0x92, 0x2a, 0x60, 0xdc, 0xc4, 0x87, 0xe3, 0xd8, 0x9c, 0x94, 0xa0, 0xa3, 0x52, 0x49, 0x23, 0x31, + 0xb6, 0x7c, 0x74, 0xc9, 0x47, 0x87, 0xe3, 0xcd, 0xf5, 0x4c, 0x66, 0xd2, 0xd2, 0x71, 0x7d, 0x72, + 0xca, 0xcd, 0x90, 0x4a, 0x5d, 0x48, 0x1d, 0xa7, 0x44, 0x43, 0x7c, 0x38, 0x4e, 0xc1, 0x90, 0x71, + 0x4c, 0x25, 0x17, 0x73, 0xfe, 0x1f, 0x49, 0xda, 0x10, 0x03, 0x8e, 0x1f, 0x7e, 0x6b, 0xa2, 0xe5, + 0x1d, 0xa2, 0x48, 0xa1, 0x71, 0x85, 0xd6, 0x9c, 0x26, 0xa1, 0x39, 0xd1, 0x3a, 0x79, 0x0f, 0xd0, + 0x0b, 0x06, 0xad, 0x51, 0x67, 0xfb, 0x76, 0xe4, 0x52, 0xa2, 0x3a, 0x25, 0xf2, 0x29, 0xd1, 0x54, + 0x72, 0x31, 0x79, 0x70, 0xfa, 0xa3, 0xdf, 0xf8, 0xf2, 0xb3, 0x3f, 0xca, 0xb8, 0xd9, 0xab, 0xd2, + 0x88, 0xca, 0x22, 0xf6, 0x2b, 0xb9, 0x9f, 0x2d, 0xcd, 0x0e, 0x7c, 0xb7, 0xfa, 0x0f, 0x7a, 0xd6, + 0x75, 0x21, 0xd3, 0x3a, 0xe3, 0x15, 0x00, 0xde, 0x47, 0x28, 0x25, 0xfa, 0x00, 0x8c, 0x0d, 0x6c, + 0xfe, 0xff, 0xc0, 0xb6, 0xb3, 0xaf, 0xb3, 0x1e, 0xa1, 0x0d, 0x92, 0xe7, 0xf2, 0x08, 0x98, 0xef, + 0x48, 0x15, 0x10, 0x23, 0x95, 0xee, 0xb5, 0x06, 0xad, 0x51, 0x7b, 0xb6, 0xee, 0x59, 0xbb, 0xdc, + 0xd4, 0x73, 0xf8, 0x3e, 0xba, 0x69, 0xf1, 0x9c, 0x6b, 0x93, 0x80, 0x20, 0x69, 0x0e, 0xac, 0xb7, + 0x34, 0x08, 0x46, 0x2b, 0xb3, 0xb5, 0x4b, 0xe2, 0xa5, 0xc3, 0x87, 0x13, 0x74, 0x7d, 0x6a, 0x0b, + 0x6a, 0xdc, 0x47, 0x9d, 0x94, 0x18, 0xba, 0x97, 0x30, 0x10, 0xb2, 0xe8, 0x05, 0x83, 0x60, 0xd4, + 0x9e, 0x21, 0x0b, 0xbd, 0xa8, 0x11, 0xbc, 0x81, 0x96, 0x49, 0x21, 0x2b, 0x61, 0x7a, 0x4d, 0xcb, + 0xf9, 0x69, 0xf8, 0x35, 0x40, 0xab, 0x93, 0x5a, 0xf6, 0x5a, 0xeb, 0x8a, 0x08, 0x0a, 0xf8, 0x0e, + 0x6a, 0x2b, 0xa0, 0xbc, 0xe4, 0x20, 0x8c, 0x37, 0xba, 0x02, 0xf0, 0x3d, 0x74, 0xc3, 0x28, 0xc2, + 0xea, 0x05, 0x92, 0x3f, 0x0c, 0xbb, 0x73, 0xf8, 0xb9, 0x45, 0xf1, 0x5d, 0xd4, 0x55, 0x60, 0xb8, + 0x02, 0x36, 0xd7, 0xb5, 0xac, 0x6e, 0xd5, 0xa3, 0x5e, 0xf6, 0x04, 0xdd, 0x72, 0x40, 0x01, 0xc2, + 0x24, 0xfb, 0x95, 0xe2, 0x9a, 0x71, 0x6a, 0xb8, 0x14, 0xb6, 0x76, 0x7b, 0xb6, 0x71, 0x45, 0xbf, + 0x59, 0x60, 0x87, 0xdb, 0x68, 0xe5, 0xad, 0xe2, 0x19, 0x17, 0xbb, 0xc7, 0xb8, 0x8b, 0x9a, 0x9c, + 0xf9, 0x5d, 0x9b, 0x9c, 0xd5, 0x65, 0xb5, 0xac, 0x14, 0x85, 0x79, 0x59, 0x37, 0x0d, 0x3f, 0x06, + 0x08, 0xbb, 0x2f, 0xb6, 0x7b, 0x52, 0xc2, 0x8e, 0x92, 0xa5, 0xd4, 0x24, 0xc7, 0xeb, 0xe8, 0x9a, + 0xe1, 0x26, 0x07, 0xef, 0xe0, 0x06, 0x3c, 0x40, 0x1d, 0x06, 0x9a, 0x2a, 0x5e, 0xda, 0x6d, 0x9c, + 0xd3, 0x22, 0x84, 0x9f, 0xa1, 0x8e, 0xbf, 0xc5, 0xf5, 0x1d, 0xb0, 0xfd, 0x3a, 0xdb, 0x61, 0xf4, + 0xf7, 0x83, 0x8a, 0xae, 0x42, 0x67, 0x88, 0x5e, 0x9e, 0x9f, 0x2e, 0x7d, 0xfa, 0xdc, 0x6f, 0x4c, + 0x76, 0x4e, 0xcf, 0xc3, 0xe0, 0xec, 0x3c, 0x0c, 0x7e, 0x9d, 0x87, 0xc1, 0x87, 0x8b, 0xb0, 0x71, + 0x76, 0x11, 0x36, 0xbe, 0x5f, 0x84, 0x8d, 0x77, 0x8f, 0x17, 0x2e, 0x9e, 0x75, 0xdd, 0x12, 0x60, + 0x8e, 0xa4, 0x3a, 0xf0, 0x53, 0x0e, 0x2c, 0x03, 0x15, 0x1f, 0x2f, 0xbc, 0x39, 0x2a, 0x15, 0xa4, + 0xcb, 0xf6, 0xc1, 0x3d, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x56, 0xe7, 0x5e, 0xfc, 0x03, + 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -392,6 +490,94 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *Credits) 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 *Credits) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Credits) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x12 + } + if len(m.BatchDenom) > 0 { + i -= len(m.BatchDenom) + copy(dAtA[i:], m.BatchDenom) + i = encodeVarintTypes(dAtA, i, uint64(len(m.BatchDenom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchIssuance) 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 *BatchIssuance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchIssuance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RetirementJurisdiction) > 0 { + i -= len(m.RetirementJurisdiction) + copy(dAtA[i:], m.RetirementJurisdiction) + i = encodeVarintTypes(dAtA, i, uint64(len(m.RetirementJurisdiction))) + i-- + dAtA[i] = 0x22 + } + if len(m.RetiredAmount) > 0 { + i -= len(m.RetiredAmount) + copy(dAtA[i:], m.RetiredAmount) + i = encodeVarintTypes(dAtA, i, uint64(len(m.RetiredAmount))) + i-- + dAtA[i] = 0x1a + } + if len(m.TradableAmount) > 0 { + i -= len(m.TradableAmount) + copy(dAtA[i:], m.TradableAmount) + i = encodeVarintTypes(dAtA, i, uint64(len(m.TradableAmount))) + i-- + dAtA[i] = 0x12 + } + if len(m.Recipient) > 0 { + i -= len(m.Recipient) + copy(dAtA[i:], m.Recipient) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Recipient))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *OriginTx) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -478,43 +664,6 @@ func (m *CreditTypeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Credits) 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 *Credits) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Credits) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Amount) > 0 { - i -= len(m.Amount) - copy(dAtA[i:], m.Amount) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Amount))) - i-- - dAtA[i] = 0x12 - } - if len(m.BatchDenom) > 0 { - i -= len(m.BatchDenom) - copy(dAtA[i:], m.BatchDenom) - i = encodeVarintTypes(dAtA, i, uint64(len(m.BatchDenom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { offset -= sovTypes(v) base := offset @@ -556,58 +705,83 @@ func (m *Params) Size() (n int) { return n } -func (m *OriginTx) Size() (n int) { +func (m *Credits) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BatchDenom) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + return n +} + +func (m *BatchIssuance) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Id) + l = len(m.Recipient) if l > 0 { n += 1 + l + sovTypes(uint64(l)) } - l = len(m.Source) + l = len(m.TradableAmount) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + l = len(m.RetiredAmount) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + l = len(m.RetirementJurisdiction) if l > 0 { n += 1 + l + sovTypes(uint64(l)) } return n } -func (m *CreditTypeProposal) Size() (n int) { +func (m *OriginTx) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Title) + l = len(m.Id) if l > 0 { n += 1 + l + sovTypes(uint64(l)) } - l = len(m.Description) + l = len(m.Source) if l > 0 { n += 1 + l + sovTypes(uint64(l)) } - if m.CreditType != nil { - l = m.CreditType.Size() - n += 1 + l + sovTypes(uint64(l)) - } return n } -func (m *Credits) Size() (n int) { +func (m *CreditTypeProposal) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.BatchDenom) + l = len(m.Title) if l > 0 { n += 1 + l + sovTypes(uint64(l)) } - l = len(m.Amount) + l = len(m.Description) if l > 0 { n += 1 + l + sovTypes(uint64(l)) } + if m.CreditType != nil { + l = m.CreditType.Size() + n += 1 + l + sovTypes(uint64(l)) + } return n } @@ -787,7 +961,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } -func (m *OriginTx) Unmarshal(dAtA []byte) error { +func (m *Credits) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -810,15 +984,15 @@ func (m *OriginTx) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: OriginTx: wiretype end group for non-group") + return fmt.Errorf("proto: Credits: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: OriginTx: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Credits: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BatchDenom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -846,11 +1020,11 @@ func (m *OriginTx) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Id = string(dAtA[iNdEx:postIndex]) + m.BatchDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -878,7 +1052,7 @@ func (m *OriginTx) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Source = string(dAtA[iNdEx:postIndex]) + m.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -901,7 +1075,7 @@ func (m *OriginTx) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreditTypeProposal) Unmarshal(dAtA []byte) error { +func (m *BatchIssuance) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -924,15 +1098,15 @@ func (m *CreditTypeProposal) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreditTypeProposal: wiretype end group for non-group") + return fmt.Errorf("proto: BatchIssuance: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreditTypeProposal: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BatchIssuance: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -960,11 +1134,11 @@ func (m *CreditTypeProposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Title = string(dAtA[iNdEx:postIndex]) + m.Recipient = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradableAmount", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -992,13 +1166,13 @@ func (m *CreditTypeProposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Description = string(dAtA[iNdEx:postIndex]) + m.TradableAmount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreditType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RetiredAmount", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTypes @@ -1008,27 +1182,169 @@ func (m *CreditTypeProposal) Unmarshal(dAtA []byte) error { } 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 ErrInvalidLengthTypes } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTypes } if postIndex > l { return io.ErrUnexpectedEOF } - if m.CreditType == nil { - m.CreditType = &CreditType{} + m.RetiredAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RetirementJurisdiction", wireType) } - if err := m.CreditType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + 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 ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RetirementJurisdiction = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { return err } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OriginTx) 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 ErrIntOverflowTypes + } + 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: OriginTx: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginTx: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + 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 ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + 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 ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Source = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1051,7 +1367,7 @@ func (m *CreditTypeProposal) Unmarshal(dAtA []byte) error { } return nil } -func (m *Credits) Unmarshal(dAtA []byte) error { +func (m *CreditTypeProposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1074,15 +1390,15 @@ func (m *Credits) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Credits: wiretype end group for non-group") + return fmt.Errorf("proto: CreditTypeProposal: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Credits: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreditTypeProposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BatchDenom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1110,11 +1426,11 @@ func (m *Credits) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BatchDenom = string(dAtA[iNdEx:postIndex]) + m.Title = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1142,7 +1458,43 @@ func (m *Credits) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Amount = string(dAtA[iNdEx:postIndex]) + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + 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 diff --git a/x/ecocredit/server/core/create_project.go b/x/ecocredit/server/core/create_project.go index 2a3785fe38..5738c27f57 100644 --- a/x/ecocredit/server/core/create_project.go +++ b/x/ecocredit/server/core/create_project.go @@ -20,7 +20,7 @@ func (k Keeper) CreateProject(ctx context.Context, req *core.MsgCreateProject) ( return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get class with id %s: %s", req.ClassId, err.Error()) } - adminAddress, err := sdk.AccAddressFromBech32(req.Issuer) + adminAddress, err := sdk.AccAddressFromBech32(req.Admin) if err != nil { return nil, err } diff --git a/x/ecocredit/server/core/create_project_test.go b/x/ecocredit/server/core/create_project_test.go index 04714d64f5..f475f8a2ee 100644 --- a/x/ecocredit/server/core/create_project_test.go +++ b/x/ecocredit/server/core/create_project_test.go @@ -17,7 +17,7 @@ func TestCreateProject_ValidProjectState(t *testing.T) { s := setupBase(t) makeClass(t, s.ctx, s.stateStore, s.addr) res, err := s.k.CreateProject(s.ctx, &core.MsgCreateProject{ - Issuer: s.addr.String(), + Admin: s.addr.String(), ClassId: "C01", Metadata: "", Jurisdiction: "US-NY", @@ -36,7 +36,7 @@ func TestCreateProject_GeneratedProjectID(t *testing.T) { s := setupBase(t) makeClass(t, s.ctx, s.stateStore, s.addr) res, err := s.k.CreateProject(s.ctx, &core.MsgCreateProject{ - Issuer: s.addr.String(), + Admin: s.addr.String(), ClassId: "C01", Metadata: "", Jurisdiction: "US-NY", @@ -45,7 +45,7 @@ func TestCreateProject_GeneratedProjectID(t *testing.T) { assert.Equal(t, res.ProjectId, "C01-001", "got project id: %s", res.ProjectId) res, err = s.k.CreateProject(s.ctx, &core.MsgCreateProject{ - Issuer: s.addr.String(), + Admin: s.addr.String(), ClassId: "C01", Metadata: "", Jurisdiction: "US-NY", @@ -58,7 +58,7 @@ func TestCreateProject_BadClassID(t *testing.T) { t.Parallel() s := setupBase(t) _, err := s.k.CreateProject(s.ctx, &core.MsgCreateProject{ - Issuer: s.addr.String(), + Admin: s.addr.String(), ClassId: "NOPE", Jurisdiction: "US-NY", }) @@ -83,7 +83,7 @@ func TestCreateProject_With_ReferenceId_ValidProjectState(t *testing.T) { s := setupBase(t) makeClass(t, s.ctx, s.stateStore, s.addr) res, err := s.k.CreateProject(s.ctx, &core.MsgCreateProject{ - Issuer: s.addr.String(), + Admin: s.addr.String(), ClassId: "C01", Metadata: "", Jurisdiction: "US-NY", diff --git a/x/ecocredit/server/core/msg_create_batch_test.go b/x/ecocredit/server/core/msg_create_batch_test.go index 8d30b9b2bc..97f0afa047 100644 --- a/x/ecocredit/server/core/msg_create_batch_test.go +++ b/x/ecocredit/server/core/msg_create_batch_test.go @@ -139,7 +139,7 @@ func (s *createBatchSuite) AliceHasCreatedACreditClassWithCreditType(a string) { func (s *createBatchSuite) AliceHasCreatedAProjectWithCreditClassId(a string) { _, err := s.k.CreateProject(s.ctx, &core.MsgCreateProject{ - Issuer: s.alice.String(), + Admin: s.alice.String(), ClassId: a, Jurisdiction: "US", }) diff --git a/x/ecocredit/server/core/msg_create_project_test.go b/x/ecocredit/server/core/msg_create_project_test.go index 57db1f30f1..6ad129a2ad 100644 --- a/x/ecocredit/server/core/msg_create_project_test.go +++ b/x/ecocredit/server/core/msg_create_project_test.go @@ -66,7 +66,7 @@ func (s *createProjectSuite) AliceHasCreatedACreditClassWithCreditType(a string) func (s *createProjectSuite) AliceHasCreatedAProjectWithCreditClassId(a string) { _, s.err = s.k.CreateProject(s.ctx, &core.MsgCreateProject{ - Issuer: s.alice.String(), + Admin: s.alice.String(), ClassId: a, Jurisdiction: "US", }) @@ -88,7 +88,7 @@ func (s *createProjectSuite) TheProjectSequenceForCreditClassIs(a, b string) { func (s *createProjectSuite) AliceCreatesAProjectWithCreditClassId(a string) { _, s.err = s.k.CreateProject(s.ctx, &core.MsgCreateProject{ - Issuer: s.alice.String(), + Admin: s.alice.String(), ClassId: a, Jurisdiction: "US", }) diff --git a/x/ecocredit/server/core/retire_test.go b/x/ecocredit/server/core/retire_test.go index 49f4554d98..122ed3db46 100644 --- a/x/ecocredit/server/core/retire_test.go +++ b/x/ecocredit/server/core/retire_test.go @@ -25,7 +25,7 @@ func TestRetire_Valid(t *testing.T) { _, err := s.k.Retire(s.ctx, &core.MsgRetire{ Owner: s.addr.String(), - Credits: []*core.MsgRetire_RetireCredits{ + Credits: []*core.Credits{ {BatchDenom: "C01-001-20200101-20210101-01", Amount: "10.0"}, }, Jurisdiction: "US-NY", @@ -53,7 +53,7 @@ func TestRetire_Invalid(t *testing.T) { // invalid batch denom _, err := s.k.Retire(s.ctx, &core.MsgRetire{ Owner: s.addr.String(), - Credits: []*core.MsgRetire_RetireCredits{ + Credits: []*core.Credits{ {BatchDenom: "A00-00000000-00000000-01", Amount: "10.35"}, }, Jurisdiction: "US-NY", @@ -63,7 +63,7 @@ func TestRetire_Invalid(t *testing.T) { // out of precision _, err = s.k.Retire(s.ctx, &core.MsgRetire{ Owner: s.addr.String(), - Credits: []*core.MsgRetire_RetireCredits{ + Credits: []*core.Credits{ {BatchDenom: batchDenom, Amount: "10.35250982359823095"}, }, Jurisdiction: "US-NY", @@ -73,7 +73,7 @@ func TestRetire_Invalid(t *testing.T) { // not enough credits _, err = s.k.Retire(s.ctx, &core.MsgRetire{ Owner: s.addr.String(), - Credits: []*core.MsgRetire_RetireCredits{ + Credits: []*core.Credits{ {BatchDenom: batchDenom, Amount: "150"}, }, Jurisdiction: "US-NY", diff --git a/x/ecocredit/server/core/update_class.go b/x/ecocredit/server/core/update_class.go index 242aa8aa3a..91d97ff1cc 100644 --- a/x/ecocredit/server/core/update_class.go +++ b/x/ecocredit/server/core/update_class.go @@ -125,7 +125,7 @@ func (k Keeper) UpdateClassMetadata(ctx context.Context, req *core.MsgUpdateClas return nil, sdkerrors.ErrUnauthorized.Wrapf("expected admin %s, got %s", classInfo.Admin, req.Admin) } - classInfo.Metadata = req.Metadata + classInfo.Metadata = req.NewMetadata if err = k.stateStore.ClassTable().Update(ctx, classInfo); err != nil { return nil, err } diff --git a/x/ecocredit/server/core/update_class_test.go b/x/ecocredit/server/core/update_class_test.go index 400c91cbed..65e03a5a79 100644 --- a/x/ecocredit/server/core/update_class_test.go +++ b/x/ecocredit/server/core/update_class_test.go @@ -205,9 +205,9 @@ func TestUpdateClass_Metadata(t *testing.T) { assert.NilError(t, err) _, err = s.k.UpdateClassMetadata(s.ctx, &core.MsgUpdateClassMetadata{ - Admin: s.addr.String(), - ClassId: "C01", - Metadata: "barfoo", + Admin: s.addr.String(), + ClassId: "C01", + NewMetadata: "barfoo", }) assert.NilError(t, err) @@ -231,17 +231,17 @@ func TestUpdateClass_MetadataErrs(t *testing.T) { // try to update non-existent class _, err = s.k.UpdateClassMetadata(s.ctx, &core.MsgUpdateClassMetadata{ - Admin: s.addr.String(), - ClassId: "FOO", - Metadata: "", + Admin: s.addr.String(), + ClassId: "FOO", + NewMetadata: "", }) assert.ErrorContains(t, err, sdkerrors.ErrNotFound.Error()) // try to update class you are not the admin of _, err = s.k.UpdateClassMetadata(s.ctx, &core.MsgUpdateClassMetadata{ - Admin: addr.String(), - ClassId: "C01", - Metadata: "FOO", + Admin: addr.String(), + ClassId: "C01", + NewMetadata: "FOO", }) assert.ErrorContains(t, err, sdkerrors.ErrUnauthorized.Error()) diff --git a/x/ecocredit/server/testsuite/suite.go b/x/ecocredit/server/testsuite/suite.go index ba0058bc0e..b1ce09ebfa 100644 --- a/x/ecocredit/server/testsuite/suite.go +++ b/x/ecocredit/server/testsuite/suite.go @@ -352,7 +352,7 @@ func (s *IntegrationTestSuite) createClassAndIssueBatch(admin, recipient sdk.Acc end, err := types.ParseDate("end date", endStr) require.NoError(err) pRes, err := s.msgClient.CreateProject(s.ctx, &core.MsgCreateProject{ - Issuer: admin.String(), + Admin: admin.String(), ClassId: classId, Metadata: "", Jurisdiction: "US-NY", @@ -415,7 +415,7 @@ func (s *IntegrationTestSuite) TestScenario() { // create project createProjectRes, err := s.msgClient.CreateProject(s.ctx, &core.MsgCreateProject{ ClassId: classId, - Issuer: issuer1, + Admin: issuer1, Metadata: "metadata", Jurisdiction: "AQ", }) @@ -734,7 +734,7 @@ func (s *IntegrationTestSuite) TestScenario() { s.Run(tc.name, func() { _, err := s.msgClient.Retire(s.ctx, &core.MsgRetire{ Owner: addr1, - Credits: []*core.MsgRetire_RetireCredits{ + Credits: []*core.Credits{ { BatchDenom: batchDenom, Amount: tc.toRetire, diff --git a/x/ecocredit/simulation/operations.go b/x/ecocredit/simulation/operations.go index ed0edc6e46..adbeaee3f1 100644 --- a/x/ecocredit/simulation/operations.go +++ b/x/ecocredit/simulation/operations.go @@ -423,21 +423,21 @@ func SimulateMsgCreateProject(ak ecocredit.AccountKeeper, bk ecocredit.BankKeepe return op, nil, err } - issuer := issuers[r.Intn(len(issuers))] - issuerAddr, err := sdk.AccAddressFromBech32(issuer) + admin := issuers[r.Intn(len(issuers))] + adminAddr, err := sdk.AccAddressFromBech32(admin) if err != nil { return simtypes.NoOpMsg(ecocredit.ModuleName, TypeMsgCreateProject, err.Error()), nil, err } - issuerAcc, found := simtypes.FindAccount(accs, issuerAddr) + adminAcc, found := simtypes.FindAccount(accs, adminAddr) if !found { return simtypes.NoOpMsg(ecocredit.ModuleName, TypeMsgCreateProject, "not a simulation account"), nil, nil } - spendable := bk.SpendableCoins(sdkCtx, issuerAddr) + spendable := bk.SpendableCoins(sdkCtx, adminAddr) msg := &core.MsgCreateProject{ - Issuer: issuer, + Admin: admin, ClassId: class.Id, Metadata: simtypes.RandStringOfLength(r, 100), Jurisdiction: "AB-CDE FG1 345", @@ -450,7 +450,7 @@ func SimulateMsgCreateProject(ak ecocredit.AccountKeeper, bk ecocredit.BankKeepe Msg: msg, MsgType: msg.Type(), Context: sdkCtx, - SimAccount: issuerAcc, + SimAccount: adminAcc, AccountKeeper: ak, Bankkeeper: bk, ModuleName: ecocredit.ModuleName, @@ -701,7 +701,7 @@ func SimulateMsgRetire(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, msg := &core.MsgRetire{ Owner: account.Address.String(), - Credits: []*core.MsgRetire_RetireCredits{ + Credits: []*core.Credits{ { BatchDenom: batch.Denom, Amount: randSub.String(), @@ -870,9 +870,9 @@ func SimulateMsgUpdateClassMetadata(ak ecocredit.AccountKeeper, bk ecocredit.Ban } msg := &core.MsgUpdateClassMetadata{ - Admin: admin.String(), - ClassId: class.Id, - Metadata: simtypes.RandStringOfLength(r, simtypes.RandIntBetween(r, 10, 256)), + Admin: admin.String(), + ClassId: class.Id, + NewMetadata: simtypes.RandStringOfLength(r, simtypes.RandIntBetween(r, 10, 256)), } txCtx := simulation.OperationInput{