diff --git a/api/cerc/registry/v1/query.pulsar.go b/api/cerc/registry/v1/query.pulsar.go index bba2f09e..c9d0f56a 100644 --- a/api/cerc/registry/v1/query.pulsar.go +++ b/api/cerc/registry/v1/query.pulsar.go @@ -8402,25 +8402,25 @@ func (x *fastReflection_QueryWhoisResponse) ProtoMethods() *protoiface.Methods { } var ( - md_QueryLookupCrnRequest protoreflect.MessageDescriptor - fd_QueryLookupCrnRequest_crn protoreflect.FieldDescriptor + md_QueryLookupLrnRequest protoreflect.MessageDescriptor + fd_QueryLookupLrnRequest_lrn protoreflect.FieldDescriptor ) func init() { file_cerc_registry_v1_query_proto_init() - md_QueryLookupCrnRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryLookupCrnRequest") - fd_QueryLookupCrnRequest_crn = md_QueryLookupCrnRequest.Fields().ByName("crn") + md_QueryLookupLrnRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryLookupLrnRequest") + fd_QueryLookupLrnRequest_lrn = md_QueryLookupLrnRequest.Fields().ByName("lrn") } -var _ protoreflect.Message = (*fastReflection_QueryLookupCrnRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLookupLrnRequest)(nil) -type fastReflection_QueryLookupCrnRequest QueryLookupCrnRequest +type fastReflection_QueryLookupLrnRequest QueryLookupLrnRequest -func (x *QueryLookupCrnRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLookupCrnRequest)(x) +func (x *QueryLookupLrnRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLookupLrnRequest)(x) } -func (x *QueryLookupCrnRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryLookupLrnRequest) slowProtoReflect() protoreflect.Message { mi := &file_cerc_registry_v1_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8432,43 +8432,43 @@ func (x *QueryLookupCrnRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryLookupCrnRequest_messageType fastReflection_QueryLookupCrnRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryLookupCrnRequest_messageType{} +var _fastReflection_QueryLookupLrnRequest_messageType fastReflection_QueryLookupLrnRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryLookupLrnRequest_messageType{} -type fastReflection_QueryLookupCrnRequest_messageType struct{} +type fastReflection_QueryLookupLrnRequest_messageType struct{} -func (x fastReflection_QueryLookupCrnRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLookupCrnRequest)(nil) +func (x fastReflection_QueryLookupLrnRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLookupLrnRequest)(nil) } -func (x fastReflection_QueryLookupCrnRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLookupCrnRequest) +func (x fastReflection_QueryLookupLrnRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLookupLrnRequest) } -func (x fastReflection_QueryLookupCrnRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLookupCrnRequest +func (x fastReflection_QueryLookupLrnRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLookupLrnRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLookupCrnRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLookupCrnRequest +func (x *fastReflection_QueryLookupLrnRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLookupLrnRequest } // 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_QueryLookupCrnRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryLookupCrnRequest_messageType +func (x *fastReflection_QueryLookupLrnRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryLookupLrnRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLookupCrnRequest) New() protoreflect.Message { - return new(fastReflection_QueryLookupCrnRequest) +func (x *fastReflection_QueryLookupLrnRequest) New() protoreflect.Message { + return new(fastReflection_QueryLookupLrnRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLookupCrnRequest) Interface() protoreflect.ProtoMessage { - return (*QueryLookupCrnRequest)(x) +func (x *fastReflection_QueryLookupLrnRequest) Interface() protoreflect.ProtoMessage { + return (*QueryLookupLrnRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -8476,10 +8476,10 @@ func (x *fastReflection_QueryLookupCrnRequest) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryLookupCrnRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Crn != "" { - value := protoreflect.ValueOfString(x.Crn) - if !f(fd_QueryLookupCrnRequest_crn, value) { +func (x *fastReflection_QueryLookupLrnRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Lrn != "" { + value := protoreflect.ValueOfString(x.Lrn) + if !f(fd_QueryLookupLrnRequest_lrn, value) { return } } @@ -8496,15 +8496,15 @@ func (x *fastReflection_QueryLookupCrnRequest) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLookupCrnRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLookupLrnRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cerc.registry.v1.QueryLookupCrnRequest.crn": - return x.Crn != "" + case "cerc.registry.v1.QueryLookupLrnRequest.lrn": + return x.Lrn != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnRequest does not contain field %s", fd.FullName())) } } @@ -8514,15 +8514,15 @@ func (x *fastReflection_QueryLookupCrnRequest) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLookupCrnRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLookupLrnRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cerc.registry.v1.QueryLookupCrnRequest.crn": - x.Crn = "" + case "cerc.registry.v1.QueryLookupLrnRequest.lrn": + x.Lrn = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnRequest does not contain field %s", fd.FullName())) } } @@ -8532,16 +8532,16 @@ func (x *fastReflection_QueryLookupCrnRequest) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLookupCrnRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLookupLrnRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cerc.registry.v1.QueryLookupCrnRequest.crn": - value := x.Crn + case "cerc.registry.v1.QueryLookupLrnRequest.lrn": + value := x.Lrn return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnRequest does not contain field %s", descriptor.FullName())) } } @@ -8555,15 +8555,15 @@ func (x *fastReflection_QueryLookupCrnRequest) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLookupCrnRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLookupLrnRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cerc.registry.v1.QueryLookupCrnRequest.crn": - x.Crn = value.Interface().(string) + case "cerc.registry.v1.QueryLookupLrnRequest.lrn": + x.Lrn = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnRequest does not contain field %s", fd.FullName())) } } @@ -8577,40 +8577,40 @@ func (x *fastReflection_QueryLookupCrnRequest) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLookupCrnRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLookupLrnRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.QueryLookupCrnRequest.crn": - panic(fmt.Errorf("field crn of message cerc.registry.v1.QueryLookupCrnRequest is not mutable")) + case "cerc.registry.v1.QueryLookupLrnRequest.lrn": + panic(fmt.Errorf("field lrn of message cerc.registry.v1.QueryLookupLrnRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnRequest 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_QueryLookupCrnRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLookupLrnRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.QueryLookupCrnRequest.crn": + case "cerc.registry.v1.QueryLookupLrnRequest.lrn": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnRequest 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_QueryLookupCrnRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLookupLrnRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryLookupCrnRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryLookupLrnRequest", d.FullName())) } panic("unreachable") } @@ -8618,7 +8618,7 @@ func (x *fastReflection_QueryLookupCrnRequest) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLookupCrnRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLookupLrnRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8629,7 +8629,7 @@ func (x *fastReflection_QueryLookupCrnRequest) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLookupCrnRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLookupLrnRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8641,7 +8641,7 @@ func (x *fastReflection_QueryLookupCrnRequest) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryLookupCrnRequest) IsValid() bool { +func (x *fastReflection_QueryLookupLrnRequest) IsValid() bool { return x != nil } @@ -8651,9 +8651,9 @@ func (x *fastReflection_QueryLookupCrnRequest) 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_QueryLookupCrnRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLookupLrnRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLookupCrnRequest) + x := input.Message.Interface().(*QueryLookupLrnRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8665,7 +8665,7 @@ func (x *fastReflection_QueryLookupCrnRequest) ProtoMethods() *protoiface.Method var n int var l int _ = l - l = len(x.Crn) + l = len(x.Lrn) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -8679,7 +8679,7 @@ func (x *fastReflection_QueryLookupCrnRequest) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLookupCrnRequest) + x := input.Message.Interface().(*QueryLookupLrnRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8698,10 +8698,10 @@ func (x *fastReflection_QueryLookupCrnRequest) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Crn) > 0 { - i -= len(x.Crn) - copy(dAtA[i:], x.Crn) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Crn))) + if len(x.Lrn) > 0 { + i -= len(x.Lrn) + copy(dAtA[i:], x.Lrn) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Lrn))) i-- dAtA[i] = 0xa } @@ -8716,7 +8716,7 @@ func (x *fastReflection_QueryLookupCrnRequest) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLookupCrnRequest) + x := input.Message.Interface().(*QueryLookupLrnRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8748,15 +8748,15 @@ func (x *fastReflection_QueryLookupCrnRequest) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLookupCrnRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLookupLrnRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLookupCrnRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLookupLrnRequest: 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 Crn", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Lrn", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8784,7 +8784,7 @@ func (x *fastReflection_QueryLookupCrnRequest) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Crn = string(dAtA[iNdEx:postIndex]) + x.Lrn = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8822,25 +8822,25 @@ func (x *fastReflection_QueryLookupCrnRequest) ProtoMethods() *protoiface.Method } var ( - md_QueryLookupCrnResponse protoreflect.MessageDescriptor - fd_QueryLookupCrnResponse_name protoreflect.FieldDescriptor + md_QueryLookupLrnResponse protoreflect.MessageDescriptor + fd_QueryLookupLrnResponse_name protoreflect.FieldDescriptor ) func init() { file_cerc_registry_v1_query_proto_init() - md_QueryLookupCrnResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryLookupCrnResponse") - fd_QueryLookupCrnResponse_name = md_QueryLookupCrnResponse.Fields().ByName("name") + md_QueryLookupLrnResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryLookupLrnResponse") + fd_QueryLookupLrnResponse_name = md_QueryLookupLrnResponse.Fields().ByName("name") } -var _ protoreflect.Message = (*fastReflection_QueryLookupCrnResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLookupLrnResponse)(nil) -type fastReflection_QueryLookupCrnResponse QueryLookupCrnResponse +type fastReflection_QueryLookupLrnResponse QueryLookupLrnResponse -func (x *QueryLookupCrnResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLookupCrnResponse)(x) +func (x *QueryLookupLrnResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLookupLrnResponse)(x) } -func (x *QueryLookupCrnResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryLookupLrnResponse) slowProtoReflect() protoreflect.Message { mi := &file_cerc_registry_v1_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8852,43 +8852,43 @@ func (x *QueryLookupCrnResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryLookupCrnResponse_messageType fastReflection_QueryLookupCrnResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryLookupCrnResponse_messageType{} +var _fastReflection_QueryLookupLrnResponse_messageType fastReflection_QueryLookupLrnResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryLookupLrnResponse_messageType{} -type fastReflection_QueryLookupCrnResponse_messageType struct{} +type fastReflection_QueryLookupLrnResponse_messageType struct{} -func (x fastReflection_QueryLookupCrnResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLookupCrnResponse)(nil) +func (x fastReflection_QueryLookupLrnResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLookupLrnResponse)(nil) } -func (x fastReflection_QueryLookupCrnResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLookupCrnResponse) +func (x fastReflection_QueryLookupLrnResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLookupLrnResponse) } -func (x fastReflection_QueryLookupCrnResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLookupCrnResponse +func (x fastReflection_QueryLookupLrnResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLookupLrnResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLookupCrnResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLookupCrnResponse +func (x *fastReflection_QueryLookupLrnResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLookupLrnResponse } // 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_QueryLookupCrnResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryLookupCrnResponse_messageType +func (x *fastReflection_QueryLookupLrnResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryLookupLrnResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLookupCrnResponse) New() protoreflect.Message { - return new(fastReflection_QueryLookupCrnResponse) +func (x *fastReflection_QueryLookupLrnResponse) New() protoreflect.Message { + return new(fastReflection_QueryLookupLrnResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLookupCrnResponse) Interface() protoreflect.ProtoMessage { - return (*QueryLookupCrnResponse)(x) +func (x *fastReflection_QueryLookupLrnResponse) Interface() protoreflect.ProtoMessage { + return (*QueryLookupLrnResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -8896,10 +8896,10 @@ func (x *fastReflection_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryLookupLrnResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Name != nil { value := protoreflect.ValueOfMessage(x.Name.ProtoReflect()) - if !f(fd_QueryLookupCrnResponse_name, value) { + if !f(fd_QueryLookupLrnResponse_name, value) { return } } @@ -8916,15 +8916,15 @@ func (x *fastReflection_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLookupLrnResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cerc.registry.v1.QueryLookupCrnResponse.name": + case "cerc.registry.v1.QueryLookupLrnResponse.name": return x.Name != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnResponse does not contain field %s", fd.FullName())) } } @@ -8934,15 +8934,15 @@ func (x *fastReflection_QueryLookupCrnResponse) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLookupCrnResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLookupLrnResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cerc.registry.v1.QueryLookupCrnResponse.name": + case "cerc.registry.v1.QueryLookupLrnResponse.name": x.Name = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnResponse does not contain field %s", fd.FullName())) } } @@ -8952,16 +8952,16 @@ func (x *fastReflection_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLookupLrnResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cerc.registry.v1.QueryLookupCrnResponse.name": + case "cerc.registry.v1.QueryLookupLrnResponse.name": value := x.Name return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnResponse does not contain field %s", descriptor.FullName())) } } @@ -8975,15 +8975,15 @@ func (x *fastReflection_QueryLookupCrnResponse) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLookupCrnResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLookupLrnResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cerc.registry.v1.QueryLookupCrnResponse.name": + case "cerc.registry.v1.QueryLookupLrnResponse.name": x.Name = value.Message().Interface().(*NameRecord) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnResponse does not contain field %s", fd.FullName())) } } @@ -8997,44 +8997,44 @@ func (x *fastReflection_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLookupLrnResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.QueryLookupCrnResponse.name": + case "cerc.registry.v1.QueryLookupLrnResponse.name": if x.Name == nil { x.Name = new(NameRecord) } return protoreflect.ValueOfMessage(x.Name.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnResponse 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_QueryLookupCrnResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLookupLrnResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.QueryLookupCrnResponse.name": + case "cerc.registry.v1.QueryLookupLrnResponse.name": m := new(NameRecord) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryLookupLrnResponse 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_QueryLookupCrnResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLookupLrnResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryLookupCrnResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryLookupLrnResponse", d.FullName())) } panic("unreachable") } @@ -9042,7 +9042,7 @@ func (x *fastReflection_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLookupLrnResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9053,7 +9053,7 @@ func (x *fastReflection_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLookupLrnResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9065,7 +9065,7 @@ func (x *fastReflection_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) IsValid() bool { +func (x *fastReflection_QueryLookupLrnResponse) IsValid() bool { return x != nil } @@ -9075,9 +9075,9 @@ func (x *fastReflection_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLookupLrnResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLookupCrnResponse) + x := input.Message.Interface().(*QueryLookupLrnResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9103,7 +9103,7 @@ func (x *fastReflection_QueryLookupCrnResponse) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLookupCrnResponse) + x := input.Message.Interface().(*QueryLookupLrnResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9147,7 +9147,7 @@ func (x *fastReflection_QueryLookupCrnResponse) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLookupCrnResponse) + x := input.Message.Interface().(*QueryLookupLrnResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9179,10 +9179,10 @@ func (x *fastReflection_QueryLookupCrnResponse) 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: QueryLookupCrnResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLookupLrnResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLookupCrnResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLookupLrnResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9257,25 +9257,25 @@ func (x *fastReflection_QueryLookupCrnResponse) ProtoMethods() *protoiface.Metho } var ( - md_QueryResolveCrnRequest protoreflect.MessageDescriptor - fd_QueryResolveCrnRequest_crn protoreflect.FieldDescriptor + md_QueryResolveLrnRequest protoreflect.MessageDescriptor + fd_QueryResolveLrnRequest_lrn protoreflect.FieldDescriptor ) func init() { file_cerc_registry_v1_query_proto_init() - md_QueryResolveCrnRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryResolveCrnRequest") - fd_QueryResolveCrnRequest_crn = md_QueryResolveCrnRequest.Fields().ByName("crn") + md_QueryResolveLrnRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryResolveLrnRequest") + fd_QueryResolveLrnRequest_lrn = md_QueryResolveLrnRequest.Fields().ByName("lrn") } -var _ protoreflect.Message = (*fastReflection_QueryResolveCrnRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryResolveLrnRequest)(nil) -type fastReflection_QueryResolveCrnRequest QueryResolveCrnRequest +type fastReflection_QueryResolveLrnRequest QueryResolveLrnRequest -func (x *QueryResolveCrnRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryResolveCrnRequest)(x) +func (x *QueryResolveLrnRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryResolveLrnRequest)(x) } -func (x *QueryResolveCrnRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryResolveLrnRequest) slowProtoReflect() protoreflect.Message { mi := &file_cerc_registry_v1_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9287,43 +9287,43 @@ func (x *QueryResolveCrnRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryResolveCrnRequest_messageType fastReflection_QueryResolveCrnRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryResolveCrnRequest_messageType{} +var _fastReflection_QueryResolveLrnRequest_messageType fastReflection_QueryResolveLrnRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryResolveLrnRequest_messageType{} -type fastReflection_QueryResolveCrnRequest_messageType struct{} +type fastReflection_QueryResolveLrnRequest_messageType struct{} -func (x fastReflection_QueryResolveCrnRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryResolveCrnRequest)(nil) +func (x fastReflection_QueryResolveLrnRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryResolveLrnRequest)(nil) } -func (x fastReflection_QueryResolveCrnRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryResolveCrnRequest) +func (x fastReflection_QueryResolveLrnRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryResolveLrnRequest) } -func (x fastReflection_QueryResolveCrnRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolveCrnRequest +func (x fastReflection_QueryResolveLrnRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolveLrnRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryResolveCrnRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolveCrnRequest +func (x *fastReflection_QueryResolveLrnRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolveLrnRequest } // 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_QueryResolveCrnRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryResolveCrnRequest_messageType +func (x *fastReflection_QueryResolveLrnRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryResolveLrnRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryResolveCrnRequest) New() protoreflect.Message { - return new(fastReflection_QueryResolveCrnRequest) +func (x *fastReflection_QueryResolveLrnRequest) New() protoreflect.Message { + return new(fastReflection_QueryResolveLrnRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryResolveCrnRequest) Interface() protoreflect.ProtoMessage { - return (*QueryResolveCrnRequest)(x) +func (x *fastReflection_QueryResolveLrnRequest) Interface() protoreflect.ProtoMessage { + return (*QueryResolveLrnRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -9331,10 +9331,10 @@ func (x *fastReflection_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Crn != "" { - value := protoreflect.ValueOfString(x.Crn) - if !f(fd_QueryResolveCrnRequest_crn, value) { +func (x *fastReflection_QueryResolveLrnRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Lrn != "" { + value := protoreflect.ValueOfString(x.Lrn) + if !f(fd_QueryResolveLrnRequest_lrn, value) { return } } @@ -9351,15 +9351,15 @@ func (x *fastReflection_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryResolveLrnRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cerc.registry.v1.QueryResolveCrnRequest.crn": - return x.Crn != "" + case "cerc.registry.v1.QueryResolveLrnRequest.lrn": + return x.Lrn != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnRequest does not contain field %s", fd.FullName())) } } @@ -9369,15 +9369,15 @@ func (x *fastReflection_QueryResolveCrnRequest) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryResolveCrnRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryResolveLrnRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cerc.registry.v1.QueryResolveCrnRequest.crn": - x.Crn = "" + case "cerc.registry.v1.QueryResolveLrnRequest.lrn": + x.Lrn = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnRequest does not contain field %s", fd.FullName())) } } @@ -9387,16 +9387,16 @@ func (x *fastReflection_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryResolveLrnRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cerc.registry.v1.QueryResolveCrnRequest.crn": - value := x.Crn + case "cerc.registry.v1.QueryResolveLrnRequest.lrn": + value := x.Lrn return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnRequest does not contain field %s", descriptor.FullName())) } } @@ -9410,15 +9410,15 @@ func (x *fastReflection_QueryResolveCrnRequest) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryResolveCrnRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryResolveLrnRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cerc.registry.v1.QueryResolveCrnRequest.crn": - x.Crn = value.Interface().(string) + case "cerc.registry.v1.QueryResolveLrnRequest.lrn": + x.Lrn = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnRequest does not contain field %s", fd.FullName())) } } @@ -9432,40 +9432,40 @@ func (x *fastReflection_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryResolveLrnRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.QueryResolveCrnRequest.crn": - panic(fmt.Errorf("field crn of message cerc.registry.v1.QueryResolveCrnRequest is not mutable")) + case "cerc.registry.v1.QueryResolveLrnRequest.lrn": + panic(fmt.Errorf("field lrn of message cerc.registry.v1.QueryResolveLrnRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnRequest 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_QueryResolveCrnRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryResolveLrnRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.QueryResolveCrnRequest.crn": + case "cerc.registry.v1.QueryResolveLrnRequest.lrn": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnRequest")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnRequest 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_QueryResolveCrnRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryResolveLrnRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryResolveCrnRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryResolveLrnRequest", d.FullName())) } panic("unreachable") } @@ -9473,7 +9473,7 @@ func (x *fastReflection_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryResolveLrnRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9484,7 +9484,7 @@ func (x *fastReflection_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryResolveLrnRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9496,7 +9496,7 @@ func (x *fastReflection_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) IsValid() bool { +func (x *fastReflection_QueryResolveLrnRequest) IsValid() bool { return x != nil } @@ -9506,9 +9506,9 @@ func (x *fastReflection_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryResolveLrnRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryResolveCrnRequest) + x := input.Message.Interface().(*QueryResolveLrnRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9520,7 +9520,7 @@ func (x *fastReflection_QueryResolveCrnRequest) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.Crn) + l = len(x.Lrn) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -9534,7 +9534,7 @@ func (x *fastReflection_QueryResolveCrnRequest) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryResolveCrnRequest) + x := input.Message.Interface().(*QueryResolveLrnRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9553,10 +9553,10 @@ func (x *fastReflection_QueryResolveCrnRequest) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Crn) > 0 { - i -= len(x.Crn) - copy(dAtA[i:], x.Crn) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Crn))) + if len(x.Lrn) > 0 { + i -= len(x.Lrn) + copy(dAtA[i:], x.Lrn) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Lrn))) i-- dAtA[i] = 0xa } @@ -9571,7 +9571,7 @@ func (x *fastReflection_QueryResolveCrnRequest) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryResolveCrnRequest) + x := input.Message.Interface().(*QueryResolveLrnRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9603,15 +9603,15 @@ func (x *fastReflection_QueryResolveCrnRequest) 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: QueryResolveCrnRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolveLrnRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolveCrnRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolveLrnRequest: 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 Crn", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Lrn", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9639,7 +9639,7 @@ func (x *fastReflection_QueryResolveCrnRequest) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Crn = string(dAtA[iNdEx:postIndex]) + x.Lrn = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -9677,25 +9677,25 @@ func (x *fastReflection_QueryResolveCrnRequest) ProtoMethods() *protoiface.Metho } var ( - md_QueryResolveCrnResponse protoreflect.MessageDescriptor - fd_QueryResolveCrnResponse_record protoreflect.FieldDescriptor + md_QueryResolveLrnResponse protoreflect.MessageDescriptor + fd_QueryResolveLrnResponse_record protoreflect.FieldDescriptor ) func init() { file_cerc_registry_v1_query_proto_init() - md_QueryResolveCrnResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryResolveCrnResponse") - fd_QueryResolveCrnResponse_record = md_QueryResolveCrnResponse.Fields().ByName("record") + md_QueryResolveLrnResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryResolveLrnResponse") + fd_QueryResolveLrnResponse_record = md_QueryResolveLrnResponse.Fields().ByName("record") } -var _ protoreflect.Message = (*fastReflection_QueryResolveCrnResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryResolveLrnResponse)(nil) -type fastReflection_QueryResolveCrnResponse QueryResolveCrnResponse +type fastReflection_QueryResolveLrnResponse QueryResolveLrnResponse -func (x *QueryResolveCrnResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryResolveCrnResponse)(x) +func (x *QueryResolveLrnResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryResolveLrnResponse)(x) } -func (x *QueryResolveCrnResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryResolveLrnResponse) slowProtoReflect() protoreflect.Message { mi := &file_cerc_registry_v1_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9707,43 +9707,43 @@ func (x *QueryResolveCrnResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryResolveCrnResponse_messageType fastReflection_QueryResolveCrnResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryResolveCrnResponse_messageType{} +var _fastReflection_QueryResolveLrnResponse_messageType fastReflection_QueryResolveLrnResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryResolveLrnResponse_messageType{} -type fastReflection_QueryResolveCrnResponse_messageType struct{} +type fastReflection_QueryResolveLrnResponse_messageType struct{} -func (x fastReflection_QueryResolveCrnResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryResolveCrnResponse)(nil) +func (x fastReflection_QueryResolveLrnResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryResolveLrnResponse)(nil) } -func (x fastReflection_QueryResolveCrnResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryResolveCrnResponse) +func (x fastReflection_QueryResolveLrnResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryResolveLrnResponse) } -func (x fastReflection_QueryResolveCrnResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolveCrnResponse +func (x fastReflection_QueryResolveLrnResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolveLrnResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryResolveCrnResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolveCrnResponse +func (x *fastReflection_QueryResolveLrnResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolveLrnResponse } // 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_QueryResolveCrnResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryResolveCrnResponse_messageType +func (x *fastReflection_QueryResolveLrnResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryResolveLrnResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryResolveCrnResponse) New() protoreflect.Message { - return new(fastReflection_QueryResolveCrnResponse) +func (x *fastReflection_QueryResolveLrnResponse) New() protoreflect.Message { + return new(fastReflection_QueryResolveLrnResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryResolveCrnResponse) Interface() protoreflect.ProtoMessage { - return (*QueryResolveCrnResponse)(x) +func (x *fastReflection_QueryResolveLrnResponse) Interface() protoreflect.ProtoMessage { + return (*QueryResolveLrnResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -9751,10 +9751,10 @@ func (x *fastReflection_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryResolveLrnResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Record != nil { value := protoreflect.ValueOfMessage(x.Record.ProtoReflect()) - if !f(fd_QueryResolveCrnResponse_record, value) { + if !f(fd_QueryResolveLrnResponse_record, value) { return } } @@ -9771,15 +9771,15 @@ func (x *fastReflection_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryResolveLrnResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cerc.registry.v1.QueryResolveCrnResponse.record": + case "cerc.registry.v1.QueryResolveLrnResponse.record": return x.Record != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnResponse does not contain field %s", fd.FullName())) } } @@ -9789,15 +9789,15 @@ func (x *fastReflection_QueryResolveCrnResponse) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryResolveCrnResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryResolveLrnResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cerc.registry.v1.QueryResolveCrnResponse.record": + case "cerc.registry.v1.QueryResolveLrnResponse.record": x.Record = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnResponse does not contain field %s", fd.FullName())) } } @@ -9807,16 +9807,16 @@ func (x *fastReflection_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryResolveLrnResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cerc.registry.v1.QueryResolveCrnResponse.record": + case "cerc.registry.v1.QueryResolveLrnResponse.record": value := x.Record return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnResponse does not contain field %s", descriptor.FullName())) } } @@ -9830,15 +9830,15 @@ func (x *fastReflection_QueryResolveCrnResponse) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryResolveCrnResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryResolveLrnResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cerc.registry.v1.QueryResolveCrnResponse.record": + case "cerc.registry.v1.QueryResolveLrnResponse.record": x.Record = value.Message().Interface().(*Record) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnResponse does not contain field %s", fd.FullName())) } } @@ -9852,44 +9852,44 @@ func (x *fastReflection_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryResolveLrnResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.QueryResolveCrnResponse.record": + case "cerc.registry.v1.QueryResolveLrnResponse.record": if x.Record == nil { x.Record = new(Record) } return protoreflect.ValueOfMessage(x.Record.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnResponse 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_QueryResolveCrnResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryResolveLrnResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.QueryResolveCrnResponse.record": + case "cerc.registry.v1.QueryResolveLrnResponse.record": m := new(Record) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveLrnResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.QueryResolveLrnResponse 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_QueryResolveCrnResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryResolveLrnResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryResolveCrnResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryResolveLrnResponse", d.FullName())) } panic("unreachable") } @@ -9897,7 +9897,7 @@ func (x *fastReflection_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryResolveLrnResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9908,7 +9908,7 @@ func (x *fastReflection_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryResolveLrnResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9920,7 +9920,7 @@ func (x *fastReflection_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) IsValid() bool { +func (x *fastReflection_QueryResolveLrnResponse) IsValid() bool { return x != nil } @@ -9930,9 +9930,9 @@ func (x *fastReflection_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryResolveLrnResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryResolveCrnResponse) + x := input.Message.Interface().(*QueryResolveLrnResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9958,7 +9958,7 @@ func (x *fastReflection_QueryResolveCrnResponse) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryResolveCrnResponse) + x := input.Message.Interface().(*QueryResolveLrnResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10002,7 +10002,7 @@ func (x *fastReflection_QueryResolveCrnResponse) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryResolveCrnResponse) + x := input.Message.Interface().(*QueryResolveLrnResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10034,10 +10034,10 @@ func (x *fastReflection_QueryResolveCrnResponse) 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: QueryResolveCrnResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolveLrnResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolveCrnResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolveLrnResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12009,17 +12009,17 @@ func (x *QueryWhoisResponse) GetNameAuthority() *NameAuthority { return nil } -// QueryLookupCrnRequest is request type for LookupCrn -type QueryLookupCrnRequest struct { +// QueryLookupLrnRequest is request type for LookupLrn +type QueryLookupLrnRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"` + Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` } -func (x *QueryLookupCrnRequest) Reset() { - *x = QueryLookupCrnRequest{} +func (x *QueryLookupLrnRequest) Reset() { + *x = QueryLookupLrnRequest{} if protoimpl.UnsafeEnabled { mi := &file_cerc_registry_v1_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12027,26 +12027,26 @@ func (x *QueryLookupCrnRequest) Reset() { } } -func (x *QueryLookupCrnRequest) String() string { +func (x *QueryLookupLrnRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryLookupCrnRequest) ProtoMessage() {} +func (*QueryLookupLrnRequest) ProtoMessage() {} -// Deprecated: Use QueryLookupCrnRequest.ProtoReflect.Descriptor instead. -func (*QueryLookupCrnRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryLookupLrnRequest.ProtoReflect.Descriptor instead. +func (*QueryLookupLrnRequest) Descriptor() ([]byte, []int) { return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{12} } -func (x *QueryLookupCrnRequest) GetCrn() string { +func (x *QueryLookupLrnRequest) GetLrn() string { if x != nil { - return x.Crn + return x.Lrn } return "" } -// QueryLookupCrnResponse is response type for QueryLookupCrnRequest -type QueryLookupCrnResponse struct { +// QueryLookupLrnResponse is response type for QueryLookupLrnRequest +type QueryLookupLrnResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -12054,8 +12054,8 @@ type QueryLookupCrnResponse struct { Name *NameRecord `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *QueryLookupCrnResponse) Reset() { - *x = QueryLookupCrnResponse{} +func (x *QueryLookupLrnResponse) Reset() { + *x = QueryLookupLrnResponse{} if protoimpl.UnsafeEnabled { mi := &file_cerc_registry_v1_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12063,35 +12063,35 @@ func (x *QueryLookupCrnResponse) Reset() { } } -func (x *QueryLookupCrnResponse) String() string { +func (x *QueryLookupLrnResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryLookupCrnResponse) ProtoMessage() {} +func (*QueryLookupLrnResponse) ProtoMessage() {} -// Deprecated: Use QueryLookupCrnResponse.ProtoReflect.Descriptor instead. -func (*QueryLookupCrnResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryLookupLrnResponse.ProtoReflect.Descriptor instead. +func (*QueryLookupLrnResponse) Descriptor() ([]byte, []int) { return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{13} } -func (x *QueryLookupCrnResponse) GetName() *NameRecord { +func (x *QueryLookupLrnResponse) GetName() *NameRecord { if x != nil { return x.Name } return nil } -// QueryResolveCrnRequest is request type for ResolveCrn -type QueryResolveCrnRequest struct { +// QueryResolveLrnRequest is request type for ResolveLrn +type QueryResolveLrnRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"` + Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` } -func (x *QueryResolveCrnRequest) Reset() { - *x = QueryResolveCrnRequest{} +func (x *QueryResolveLrnRequest) Reset() { + *x = QueryResolveLrnRequest{} if protoimpl.UnsafeEnabled { mi := &file_cerc_registry_v1_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12099,26 +12099,26 @@ func (x *QueryResolveCrnRequest) Reset() { } } -func (x *QueryResolveCrnRequest) String() string { +func (x *QueryResolveLrnRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryResolveCrnRequest) ProtoMessage() {} +func (*QueryResolveLrnRequest) ProtoMessage() {} -// Deprecated: Use QueryResolveCrnRequest.ProtoReflect.Descriptor instead. -func (*QueryResolveCrnRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryResolveLrnRequest.ProtoReflect.Descriptor instead. +func (*QueryResolveLrnRequest) Descriptor() ([]byte, []int) { return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{14} } -func (x *QueryResolveCrnRequest) GetCrn() string { +func (x *QueryResolveLrnRequest) GetLrn() string { if x != nil { - return x.Crn + return x.Lrn } return "" } -// QueryResolveCrnResponse is response type for QueryResolveCrnRequest -type QueryResolveCrnResponse struct { +// QueryResolveLrnResponse is response type for QueryResolveLrnRequest +type QueryResolveLrnResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -12126,8 +12126,8 @@ type QueryResolveCrnResponse struct { Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` } -func (x *QueryResolveCrnResponse) Reset() { - *x = QueryResolveCrnResponse{} +func (x *QueryResolveLrnResponse) Reset() { + *x = QueryResolveLrnResponse{} if protoimpl.UnsafeEnabled { mi := &file_cerc_registry_v1_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12135,18 +12135,18 @@ func (x *QueryResolveCrnResponse) Reset() { } } -func (x *QueryResolveCrnResponse) String() string { +func (x *QueryResolveLrnResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryResolveCrnResponse) ProtoMessage() {} +func (*QueryResolveLrnResponse) ProtoMessage() {} -// Deprecated: Use QueryResolveCrnResponse.ProtoReflect.Descriptor instead. -func (*QueryResolveCrnResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryResolveLrnResponse.ProtoReflect.Descriptor instead. +func (*QueryResolveLrnResponse) Descriptor() ([]byte, []int) { return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{15} } -func (x *QueryResolveCrnResponse) GetRecord() *Record { +func (x *QueryResolveLrnResponse) GetRecord() *Record { if x != nil { return x.Record } @@ -12655,17 +12655,17 @@ var file_cerc_registry_v1_query_proto_rawDesc = []byte{ 0x69, 0x74, 0x79, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x52, 0x0d, 0x6e, 0x61, 0x6d, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x29, 0x0a, 0x15, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x63, 0x72, 0x6e, 0x22, 0x4a, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x6f, - 0x6b, 0x75, 0x70, 0x43, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, + 0x72, 0x79, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x4c, 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6c, 0x72, 0x6e, 0x22, 0x4a, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x6f, + 0x6b, 0x75, 0x70, 0x4c, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2a, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x43, 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x72, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x72, 0x6e, 0x22, 0x4b, 0x0a, 0x17, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x72, 0x6e, 0x52, + 0x4c, 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x72, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x72, 0x6e, 0x22, 0x4b, 0x0a, 0x17, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x4c, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, @@ -12745,20 +12745,20 @@ var file_cerc_registry_v1_query_proto_rawDesc = []byte{ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x68, 0x6f, 0x69, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x80, 0x01, 0x0a, - 0x09, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x72, 0x6e, 0x12, 0x27, 0x2e, 0x63, 0x65, 0x72, + 0x09, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x4c, 0x72, 0x6e, 0x12, 0x27, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x4c, 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x6f, 0x6b, - 0x75, 0x70, 0x43, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, + 0x75, 0x70, 0x4c, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x12, - 0x84, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x72, 0x6e, 0x12, 0x28, + 0x84, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x4c, 0x72, 0x6e, 0x12, 0x28, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x72, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x4c, 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x4c, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x12, 0xae, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, @@ -12814,10 +12814,10 @@ var file_cerc_registry_v1_query_proto_goTypes = []interface{}{ (*QueryNameRecordsResponse)(nil), // 9: cerc.registry.v1.QueryNameRecordsResponse (*QueryWhoisRequest)(nil), // 10: cerc.registry.v1.QueryWhoisRequest (*QueryWhoisResponse)(nil), // 11: cerc.registry.v1.QueryWhoisResponse - (*QueryLookupCrnRequest)(nil), // 12: cerc.registry.v1.QueryLookupCrnRequest - (*QueryLookupCrnResponse)(nil), // 13: cerc.registry.v1.QueryLookupCrnResponse - (*QueryResolveCrnRequest)(nil), // 14: cerc.registry.v1.QueryResolveCrnRequest - (*QueryResolveCrnResponse)(nil), // 15: cerc.registry.v1.QueryResolveCrnResponse + (*QueryLookupLrnRequest)(nil), // 12: cerc.registry.v1.QueryLookupLrnRequest + (*QueryLookupLrnResponse)(nil), // 13: cerc.registry.v1.QueryLookupLrnResponse + (*QueryResolveLrnRequest)(nil), // 14: cerc.registry.v1.QueryResolveLrnRequest + (*QueryResolveLrnResponse)(nil), // 15: cerc.registry.v1.QueryResolveLrnResponse (*QueryGetRegistryModuleBalanceRequest)(nil), // 16: cerc.registry.v1.QueryGetRegistryModuleBalanceRequest (*QueryGetRegistryModuleBalanceResponse)(nil), // 17: cerc.registry.v1.QueryGetRegistryModuleBalanceResponse (*AccountBalance)(nil), // 18: cerc.registry.v1.AccountBalance @@ -12849,8 +12849,8 @@ var file_cerc_registry_v1_query_proto_depIdxs = []int32{ 28, // 10: cerc.registry.v1.QueryNameRecordsResponse.names:type_name -> cerc.registry.v1.NameEntry 27, // 11: cerc.registry.v1.QueryNameRecordsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 29, // 12: cerc.registry.v1.QueryWhoisResponse.name_authority:type_name -> cerc.registry.v1.NameAuthority - 30, // 13: cerc.registry.v1.QueryLookupCrnResponse.name:type_name -> cerc.registry.v1.NameRecord - 26, // 14: cerc.registry.v1.QueryResolveCrnResponse.record:type_name -> cerc.registry.v1.Record + 30, // 13: cerc.registry.v1.QueryLookupLrnResponse.name:type_name -> cerc.registry.v1.NameRecord + 26, // 14: cerc.registry.v1.QueryResolveLrnResponse.record:type_name -> cerc.registry.v1.Record 18, // 15: cerc.registry.v1.QueryGetRegistryModuleBalanceResponse.balances:type_name -> cerc.registry.v1.AccountBalance 31, // 16: cerc.registry.v1.AccountBalance.balance:type_name -> cosmos.base.v1beta1.Coin 21, // 17: cerc.registry.v1.QueryRecordsRequest.ArrayInput.values:type_name -> cerc.registry.v1.QueryRecordsRequest.ValueInput @@ -12865,8 +12865,8 @@ var file_cerc_registry_v1_query_proto_depIdxs = []int32{ 6, // 26: cerc.registry.v1.Query.GetRecordsByBondId:input_type -> cerc.registry.v1.QueryRecordsByBondIdRequest 8, // 27: cerc.registry.v1.Query.NameRecords:input_type -> cerc.registry.v1.QueryNameRecordsRequest 10, // 28: cerc.registry.v1.Query.Whois:input_type -> cerc.registry.v1.QueryWhoisRequest - 12, // 29: cerc.registry.v1.Query.LookupCrn:input_type -> cerc.registry.v1.QueryLookupCrnRequest - 14, // 30: cerc.registry.v1.Query.ResolveCrn:input_type -> cerc.registry.v1.QueryResolveCrnRequest + 12, // 29: cerc.registry.v1.Query.LookupLrn:input_type -> cerc.registry.v1.QueryLookupLrnRequest + 14, // 30: cerc.registry.v1.Query.ResolveLrn:input_type -> cerc.registry.v1.QueryResolveLrnRequest 16, // 31: cerc.registry.v1.Query.GetRegistryModuleBalance:input_type -> cerc.registry.v1.QueryGetRegistryModuleBalanceRequest 1, // 32: cerc.registry.v1.Query.Params:output_type -> cerc.registry.v1.QueryParamsResponse 3, // 33: cerc.registry.v1.Query.Records:output_type -> cerc.registry.v1.QueryRecordsResponse @@ -12874,8 +12874,8 @@ var file_cerc_registry_v1_query_proto_depIdxs = []int32{ 7, // 35: cerc.registry.v1.Query.GetRecordsByBondId:output_type -> cerc.registry.v1.QueryRecordsByBondIdResponse 9, // 36: cerc.registry.v1.Query.NameRecords:output_type -> cerc.registry.v1.QueryNameRecordsResponse 11, // 37: cerc.registry.v1.Query.Whois:output_type -> cerc.registry.v1.QueryWhoisResponse - 13, // 38: cerc.registry.v1.Query.LookupCrn:output_type -> cerc.registry.v1.QueryLookupCrnResponse - 15, // 39: cerc.registry.v1.Query.ResolveCrn:output_type -> cerc.registry.v1.QueryResolveCrnResponse + 13, // 38: cerc.registry.v1.Query.LookupLrn:output_type -> cerc.registry.v1.QueryLookupLrnResponse + 15, // 39: cerc.registry.v1.Query.ResolveLrn:output_type -> cerc.registry.v1.QueryResolveLrnResponse 17, // 40: cerc.registry.v1.Query.GetRegistryModuleBalance:output_type -> cerc.registry.v1.QueryGetRegistryModuleBalanceResponse 32, // [32:41] is the sub-list for method output_type 23, // [23:32] is the sub-list for method input_type @@ -13036,7 +13036,7 @@ func file_cerc_registry_v1_query_proto_init() { } } file_cerc_registry_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryLookupCrnRequest); i { + switch v := v.(*QueryLookupLrnRequest); i { case 0: return &v.state case 1: @@ -13048,7 +13048,7 @@ func file_cerc_registry_v1_query_proto_init() { } } file_cerc_registry_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryLookupCrnResponse); i { + switch v := v.(*QueryLookupLrnResponse); i { case 0: return &v.state case 1: @@ -13060,7 +13060,7 @@ func file_cerc_registry_v1_query_proto_init() { } } file_cerc_registry_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryResolveCrnRequest); i { + switch v := v.(*QueryResolveLrnRequest); i { case 0: return &v.state case 1: @@ -13072,7 +13072,7 @@ func file_cerc_registry_v1_query_proto_init() { } } file_cerc_registry_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryResolveCrnResponse); i { + switch v := v.(*QueryResolveLrnResponse); i { case 0: return &v.state case 1: diff --git a/api/cerc/registry/v1/query_grpc.pb.go b/api/cerc/registry/v1/query_grpc.pb.go index e982e7db..0cb20422 100644 --- a/api/cerc/registry/v1/query_grpc.pb.go +++ b/api/cerc/registry/v1/query_grpc.pb.go @@ -25,8 +25,8 @@ const ( Query_GetRecordsByBondId_FullMethodName = "/cerc.registry.v1.Query/GetRecordsByBondId" Query_NameRecords_FullMethodName = "/cerc.registry.v1.Query/NameRecords" Query_Whois_FullMethodName = "/cerc.registry.v1.Query/Whois" - Query_LookupCrn_FullMethodName = "/cerc.registry.v1.Query/LookupCrn" - Query_ResolveCrn_FullMethodName = "/cerc.registry.v1.Query/ResolveCrn" + Query_LookupLrn_FullMethodName = "/cerc.registry.v1.Query/LookupLrn" + Query_ResolveLrn_FullMethodName = "/cerc.registry.v1.Query/ResolveLrn" Query_GetRegistryModuleBalance_FullMethodName = "/cerc.registry.v1.Query/GetRegistryModuleBalance" ) @@ -46,10 +46,10 @@ type QueryClient interface { NameRecords(ctx context.Context, in *QueryNameRecordsRequest, opts ...grpc.CallOption) (*QueryNameRecordsResponse, error) // Whois method retrieve the name authority info Whois(ctx context.Context, in *QueryWhoisRequest, opts ...grpc.CallOption) (*QueryWhoisResponse, error) - // LookupCrn - LookupCrn(ctx context.Context, in *QueryLookupCrnRequest, opts ...grpc.CallOption) (*QueryLookupCrnResponse, error) - // ResolveCrn - ResolveCrn(ctx context.Context, in *QueryResolveCrnRequest, opts ...grpc.CallOption) (*QueryResolveCrnResponse, error) + // LookupLrn + LookupLrn(ctx context.Context, in *QueryLookupLrnRequest, opts ...grpc.CallOption) (*QueryLookupLrnResponse, error) + // ResolveLrn + ResolveLrn(ctx context.Context, in *QueryResolveLrnRequest, opts ...grpc.CallOption) (*QueryResolveLrnResponse, error) // Get registry module balance GetRegistryModuleBalance(ctx context.Context, in *QueryGetRegistryModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetRegistryModuleBalanceResponse, error) } @@ -116,18 +116,18 @@ func (c *queryClient) Whois(ctx context.Context, in *QueryWhoisRequest, opts ... return out, nil } -func (c *queryClient) LookupCrn(ctx context.Context, in *QueryLookupCrnRequest, opts ...grpc.CallOption) (*QueryLookupCrnResponse, error) { - out := new(QueryLookupCrnResponse) - err := c.cc.Invoke(ctx, Query_LookupCrn_FullMethodName, in, out, opts...) +func (c *queryClient) LookupLrn(ctx context.Context, in *QueryLookupLrnRequest, opts ...grpc.CallOption) (*QueryLookupLrnResponse, error) { + out := new(QueryLookupLrnResponse) + err := c.cc.Invoke(ctx, Query_LookupLrn_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) ResolveCrn(ctx context.Context, in *QueryResolveCrnRequest, opts ...grpc.CallOption) (*QueryResolveCrnResponse, error) { - out := new(QueryResolveCrnResponse) - err := c.cc.Invoke(ctx, Query_ResolveCrn_FullMethodName, in, out, opts...) +func (c *queryClient) ResolveLrn(ctx context.Context, in *QueryResolveLrnRequest, opts ...grpc.CallOption) (*QueryResolveLrnResponse, error) { + out := new(QueryResolveLrnResponse) + err := c.cc.Invoke(ctx, Query_ResolveLrn_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -159,10 +159,10 @@ type QueryServer interface { NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) // Whois method retrieve the name authority info Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error) - // LookupCrn - LookupCrn(context.Context, *QueryLookupCrnRequest) (*QueryLookupCrnResponse, error) - // ResolveCrn - ResolveCrn(context.Context, *QueryResolveCrnRequest) (*QueryResolveCrnResponse, error) + // LookupLrn + LookupLrn(context.Context, *QueryLookupLrnRequest) (*QueryLookupLrnResponse, error) + // ResolveLrn + ResolveLrn(context.Context, *QueryResolveLrnRequest) (*QueryResolveLrnResponse, error) // Get registry module balance GetRegistryModuleBalance(context.Context, *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) mustEmbedUnimplementedQueryServer() @@ -190,11 +190,11 @@ func (UnimplementedQueryServer) NameRecords(context.Context, *QueryNameRecordsRe func (UnimplementedQueryServer) Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Whois not implemented") } -func (UnimplementedQueryServer) LookupCrn(context.Context, *QueryLookupCrnRequest) (*QueryLookupCrnResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LookupCrn not implemented") +func (UnimplementedQueryServer) LookupLrn(context.Context, *QueryLookupLrnRequest) (*QueryLookupLrnResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LookupLrn not implemented") } -func (UnimplementedQueryServer) ResolveCrn(context.Context, *QueryResolveCrnRequest) (*QueryResolveCrnResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResolveCrn not implemented") +func (UnimplementedQueryServer) ResolveLrn(context.Context, *QueryResolveLrnRequest) (*QueryResolveLrnResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResolveLrn not implemented") } func (UnimplementedQueryServer) GetRegistryModuleBalance(context.Context, *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRegistryModuleBalance not implemented") @@ -320,38 +320,38 @@ func _Query_Whois_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Query_LookupCrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryLookupCrnRequest) +func _Query_LookupLrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryLookupLrnRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).LookupCrn(ctx, in) + return srv.(QueryServer).LookupLrn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_LookupCrn_FullMethodName, + FullMethod: Query_LookupLrn_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).LookupCrn(ctx, req.(*QueryLookupCrnRequest)) + return srv.(QueryServer).LookupLrn(ctx, req.(*QueryLookupLrnRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_ResolveCrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryResolveCrnRequest) +func _Query_ResolveLrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryResolveLrnRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).ResolveCrn(ctx, in) + return srv.(QueryServer).ResolveLrn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_ResolveCrn_FullMethodName, + FullMethod: Query_ResolveLrn_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ResolveCrn(ctx, req.(*QueryResolveCrnRequest)) + return srv.(QueryServer).ResolveLrn(ctx, req.(*QueryResolveLrnRequest)) } return interceptor(ctx, in, info, handler) } @@ -406,12 +406,12 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_Whois_Handler, }, { - MethodName: "LookupCrn", - Handler: _Query_LookupCrn_Handler, + MethodName: "LookupLrn", + Handler: _Query_LookupLrn_Handler, }, { - MethodName: "ResolveCrn", - Handler: _Query_ResolveCrn_Handler, + MethodName: "ResolveLrn", + Handler: _Query_ResolveLrn_Handler, }, { MethodName: "GetRegistryModuleBalance", diff --git a/api/cerc/registry/v1/tx.pulsar.go b/api/cerc/registry/v1/tx.pulsar.go index 74fe51bd..0e2c3895 100644 --- a/api/cerc/registry/v1/tx.pulsar.go +++ b/api/cerc/registry/v1/tx.pulsar.go @@ -1573,7 +1573,7 @@ func (x *fastReflection_Payload) ProtoMethods() *protoiface.Methods { var ( md_MsgSetName protoreflect.MessageDescriptor - fd_MsgSetName_crn protoreflect.FieldDescriptor + fd_MsgSetName_lrn protoreflect.FieldDescriptor fd_MsgSetName_cid protoreflect.FieldDescriptor fd_MsgSetName_signer protoreflect.FieldDescriptor ) @@ -1581,7 +1581,7 @@ var ( func init() { file_cerc_registry_v1_tx_proto_init() md_MsgSetName = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgSetName") - fd_MsgSetName_crn = md_MsgSetName.Fields().ByName("crn") + fd_MsgSetName_lrn = md_MsgSetName.Fields().ByName("lrn") fd_MsgSetName_cid = md_MsgSetName.Fields().ByName("cid") fd_MsgSetName_signer = md_MsgSetName.Fields().ByName("signer") } @@ -1651,9 +1651,9 @@ func (x *fastReflection_MsgSetName) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_MsgSetName) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Crn != "" { - value := protoreflect.ValueOfString(x.Crn) - if !f(fd_MsgSetName_crn, value) { + if x.Lrn != "" { + value := protoreflect.ValueOfString(x.Lrn) + if !f(fd_MsgSetName_lrn, value) { return } } @@ -1684,8 +1684,8 @@ func (x *fastReflection_MsgSetName) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgSetName) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cerc.registry.v1.MsgSetName.crn": - return x.Crn != "" + case "cerc.registry.v1.MsgSetName.lrn": + return x.Lrn != "" case "cerc.registry.v1.MsgSetName.cid": return x.Cid != "" case "cerc.registry.v1.MsgSetName.signer": @@ -1706,8 +1706,8 @@ func (x *fastReflection_MsgSetName) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgSetName) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cerc.registry.v1.MsgSetName.crn": - x.Crn = "" + case "cerc.registry.v1.MsgSetName.lrn": + x.Lrn = "" case "cerc.registry.v1.MsgSetName.cid": x.Cid = "" case "cerc.registry.v1.MsgSetName.signer": @@ -1728,8 +1728,8 @@ func (x *fastReflection_MsgSetName) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgSetName) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cerc.registry.v1.MsgSetName.crn": - value := x.Crn + case "cerc.registry.v1.MsgSetName.lrn": + value := x.Lrn return protoreflect.ValueOfString(value) case "cerc.registry.v1.MsgSetName.cid": value := x.Cid @@ -1757,8 +1757,8 @@ func (x *fastReflection_MsgSetName) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgSetName) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cerc.registry.v1.MsgSetName.crn": - x.Crn = value.Interface().(string) + case "cerc.registry.v1.MsgSetName.lrn": + x.Lrn = value.Interface().(string) case "cerc.registry.v1.MsgSetName.cid": x.Cid = value.Interface().(string) case "cerc.registry.v1.MsgSetName.signer": @@ -1783,8 +1783,8 @@ func (x *fastReflection_MsgSetName) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgSetName) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.MsgSetName.crn": - panic(fmt.Errorf("field crn of message cerc.registry.v1.MsgSetName is not mutable")) + case "cerc.registry.v1.MsgSetName.lrn": + panic(fmt.Errorf("field lrn of message cerc.registry.v1.MsgSetName is not mutable")) case "cerc.registry.v1.MsgSetName.cid": panic(fmt.Errorf("field cid of message cerc.registry.v1.MsgSetName is not mutable")) case "cerc.registry.v1.MsgSetName.signer": @@ -1802,7 +1802,7 @@ func (x *fastReflection_MsgSetName) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgSetName) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.MsgSetName.crn": + case "cerc.registry.v1.MsgSetName.lrn": return protoreflect.ValueOfString("") case "cerc.registry.v1.MsgSetName.cid": return protoreflect.ValueOfString("") @@ -1877,7 +1877,7 @@ func (x *fastReflection_MsgSetName) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Crn) + l = len(x.Lrn) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -1932,10 +1932,10 @@ func (x *fastReflection_MsgSetName) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x12 } - if len(x.Crn) > 0 { - i -= len(x.Crn) - copy(dAtA[i:], x.Crn) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Crn))) + if len(x.Lrn) > 0 { + i -= len(x.Lrn) + copy(dAtA[i:], x.Lrn) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Lrn))) i-- dAtA[i] = 0xa } @@ -1990,7 +1990,7 @@ func (x *fastReflection_MsgSetName) 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 Crn", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Lrn", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2018,7 +2018,7 @@ func (x *fastReflection_MsgSetName) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Crn = string(dAtA[iNdEx:postIndex]) + x.Lrn = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -4285,14 +4285,14 @@ func (x *fastReflection_MsgSetAuthorityBondResponse) ProtoMethods() *protoiface. var ( md_MsgDeleteNameAuthority protoreflect.MessageDescriptor - fd_MsgDeleteNameAuthority_crn protoreflect.FieldDescriptor + fd_MsgDeleteNameAuthority_lrn protoreflect.FieldDescriptor fd_MsgDeleteNameAuthority_signer protoreflect.FieldDescriptor ) func init() { file_cerc_registry_v1_tx_proto_init() md_MsgDeleteNameAuthority = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgDeleteNameAuthority") - fd_MsgDeleteNameAuthority_crn = md_MsgDeleteNameAuthority.Fields().ByName("crn") + fd_MsgDeleteNameAuthority_lrn = md_MsgDeleteNameAuthority.Fields().ByName("lrn") fd_MsgDeleteNameAuthority_signer = md_MsgDeleteNameAuthority.Fields().ByName("signer") } @@ -4361,9 +4361,9 @@ func (x *fastReflection_MsgDeleteNameAuthority) Interface() protoreflect.ProtoMe // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_MsgDeleteNameAuthority) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Crn != "" { - value := protoreflect.ValueOfString(x.Crn) - if !f(fd_MsgDeleteNameAuthority_crn, value) { + if x.Lrn != "" { + value := protoreflect.ValueOfString(x.Lrn) + if !f(fd_MsgDeleteNameAuthority_lrn, value) { return } } @@ -4388,8 +4388,8 @@ func (x *fastReflection_MsgDeleteNameAuthority) Range(f func(protoreflect.FieldD // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgDeleteNameAuthority) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.crn": - return x.Crn != "" + case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": + return x.Lrn != "" case "cerc.registry.v1.MsgDeleteNameAuthority.signer": return x.Signer != "" default: @@ -4408,8 +4408,8 @@ func (x *fastReflection_MsgDeleteNameAuthority) Has(fd protoreflect.FieldDescrip // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgDeleteNameAuthority) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.crn": - x.Crn = "" + case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": + x.Lrn = "" case "cerc.registry.v1.MsgDeleteNameAuthority.signer": x.Signer = "" default: @@ -4428,8 +4428,8 @@ func (x *fastReflection_MsgDeleteNameAuthority) Clear(fd protoreflect.FieldDescr // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgDeleteNameAuthority) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.crn": - value := x.Crn + case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": + value := x.Lrn return protoreflect.ValueOfString(value) case "cerc.registry.v1.MsgDeleteNameAuthority.signer": value := x.Signer @@ -4454,8 +4454,8 @@ func (x *fastReflection_MsgDeleteNameAuthority) Get(descriptor protoreflect.Fiel // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgDeleteNameAuthority) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.crn": - x.Crn = value.Interface().(string) + case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": + x.Lrn = value.Interface().(string) case "cerc.registry.v1.MsgDeleteNameAuthority.signer": x.Signer = value.Interface().(string) default: @@ -4478,8 +4478,8 @@ func (x *fastReflection_MsgDeleteNameAuthority) Set(fd protoreflect.FieldDescrip // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgDeleteNameAuthority) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.crn": - panic(fmt.Errorf("field crn of message cerc.registry.v1.MsgDeleteNameAuthority is not mutable")) + case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": + panic(fmt.Errorf("field lrn of message cerc.registry.v1.MsgDeleteNameAuthority is not mutable")) case "cerc.registry.v1.MsgDeleteNameAuthority.signer": panic(fmt.Errorf("field signer of message cerc.registry.v1.MsgDeleteNameAuthority is not mutable")) default: @@ -4495,7 +4495,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) Mutable(fd protoreflect.FieldDes // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgDeleteNameAuthority) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.crn": + case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": return protoreflect.ValueOfString("") case "cerc.registry.v1.MsgDeleteNameAuthority.signer": return protoreflect.ValueOfString("") @@ -4568,7 +4568,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.Crn) + l = len(x.Lrn) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -4612,10 +4612,10 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho i-- dAtA[i] = 0x12 } - if len(x.Crn) > 0 { - i -= len(x.Crn) - copy(dAtA[i:], x.Crn) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Crn))) + if len(x.Lrn) > 0 { + i -= len(x.Lrn) + copy(dAtA[i:], x.Lrn) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Lrn))) i-- dAtA[i] = 0xa } @@ -4670,7 +4670,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Crn", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Lrn", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4698,7 +4698,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Crn = string(dAtA[iNdEx:postIndex]) + x.Lrn = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -9602,7 +9602,7 @@ type MsgSetName struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"` + Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"` Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"` } @@ -9627,9 +9627,9 @@ func (*MsgSetName) Descriptor() ([]byte, []int) { return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{3} } -func (x *MsgSetName) GetCrn() string { +func (x *MsgSetName) GetLrn() string { if x != nil { - return x.Crn + return x.Lrn } return "" } @@ -9840,7 +9840,7 @@ type MsgDeleteNameAuthority struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"` + Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` } @@ -9864,9 +9864,9 @@ func (*MsgDeleteNameAuthority) Descriptor() ([]byte, []int) { return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{9} } -func (x *MsgDeleteNameAuthority) GetCrn() string { +func (x *MsgDeleteNameAuthority) GetLrn() string { if x != nil { - return x.Crn + return x.Lrn } return "" } @@ -10313,8 +10313,8 @@ var file_cerc_registry_v1_tx_proto_rawDesc = []byte{ 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0x55, 0x0a, 0x0a, 0x4d, 0x73, 0x67, 0x53, - 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x72, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x72, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, + 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x72, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x72, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, @@ -10340,7 +10340,7 @@ var file_cerc_registry_v1_tx_proto_rawDesc = []byte{ 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x63, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, + 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x72, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x44, 0x65, diff --git a/api/cerc/registry/v1/tx_grpc.pb.go b/api/cerc/registry/v1/tx_grpc.pb.go index 1c86471f..fc3e7cd4 100644 --- a/api/cerc/registry/v1/tx_grpc.pb.go +++ b/api/cerc/registry/v1/tx_grpc.pb.go @@ -47,7 +47,7 @@ type MsgClient interface { DissociateRecords(ctx context.Context, in *MsgDissociateRecords, opts ...grpc.CallOption) (*MsgDissociateRecordsResponse, error) // ReassociateRecords ReassociateRecords(ctx context.Context, in *MsgReassociateRecords, opts ...grpc.CallOption) (*MsgReassociateRecordsResponse, error) - // SetName will store the name with given crn and name + // SetName will store the name with given lrn and name SetName(ctx context.Context, in *MsgSetName, opts ...grpc.CallOption) (*MsgSetNameResponse, error) // Reserve name ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) @@ -171,7 +171,7 @@ type MsgServer interface { DissociateRecords(context.Context, *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error) // ReassociateRecords ReassociateRecords(context.Context, *MsgReassociateRecords) (*MsgReassociateRecordsResponse, error) - // SetName will store the name with given crn and name + // SetName will store the name with given lrn and name SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error) // Reserve name ReserveName(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) diff --git a/proto/cerc/registry/v1/query.proto b/proto/cerc/registry/v1/query.proto index abb36f21..8e5ea128 100644 --- a/proto/cerc/registry/v1/query.proto +++ b/proto/cerc/registry/v1/query.proto @@ -42,13 +42,13 @@ service Query { option (google.api.http).get = "/cerc/registry/v1/whois/{name}"; } - // LookupCrn - rpc LookupCrn(QueryLookupCrnRequest) returns (QueryLookupCrnResponse) { + // LookupLrn + rpc LookupLrn(QueryLookupLrnRequest) returns (QueryLookupLrnResponse) { option (google.api.http).get = "/cerc/registry/v1/lookup"; } - // ResolveCrn - rpc ResolveCrn(QueryResolveCrnRequest) returns (QueryResolveCrnResponse) { + // ResolveLrn + rpc ResolveLrn(QueryResolveLrnRequest) returns (QueryResolveLrnResponse) { option (google.api.http).get = "/cerc/registry/v1/resolve"; } @@ -161,23 +161,23 @@ message QueryWhoisResponse { ]; } -// QueryLookupCrnRequest is request type for LookupCrn -message QueryLookupCrnRequest { - string crn = 1; +// QueryLookupLrnRequest is request type for LookupLrn +message QueryLookupLrnRequest { + string lrn = 1; } -// QueryLookupCrnResponse is response type for QueryLookupCrnRequest -message QueryLookupCrnResponse { +// QueryLookupLrnResponse is response type for QueryLookupLrnRequest +message QueryLookupLrnResponse { NameRecord name = 1; } -// QueryResolveCrnRequest is request type for ResolveCrn -message QueryResolveCrnRequest { - string crn = 1; +// QueryResolveLrnRequest is request type for ResolveLrn +message QueryResolveLrnRequest { + string lrn = 1; } -// QueryResolveCrnResponse is response type for QueryResolveCrnRequest -message QueryResolveCrnResponse { +// QueryResolveLrnResponse is response type for QueryResolveLrnRequest +message QueryResolveLrnResponse { Record record = 1; } diff --git a/proto/cerc/registry/v1/tx.proto b/proto/cerc/registry/v1/tx.proto index a26c9043..8e88402b 100644 --- a/proto/cerc/registry/v1/tx.proto +++ b/proto/cerc/registry/v1/tx.proto @@ -43,7 +43,7 @@ service Msg { option (google.api.http).post = "/cerc/registry/v1/reassociate_records"; } - // SetName will store the name with given crn and name + // SetName will store the name with given lrn and name rpc SetName(MsgSetName) returns (MsgSetNameResponse) { option (google.api.http).post = "/cerc/registry/v1/set_name"; } @@ -91,7 +91,7 @@ message Payload { message MsgSetName { option (cosmos.msg.v1.signer) = "signer"; - string crn = 1; + string lrn = 1; string cid = 2; string signer = 3; } @@ -129,7 +129,7 @@ message MsgSetAuthorityBondResponse {} message MsgDeleteNameAuthority { option (cosmos.msg.v1.signer) = "signer"; - string crn = 1; + string lrn = 1; string signer = 2; } diff --git a/x/registry/events.go b/x/registry/events.go index c69a809f..0291e64b 100644 --- a/x/registry/events.go +++ b/x/registry/events.go @@ -19,7 +19,7 @@ const ( AttributeKeyNewBondId = "new-bond-id" AttributeKeyCID = "cid" AttributeKeyName = "name" - AttributeKeyCRN = "crn" + AttributeKeyLRN = "lrn" AttributeKeyRecordId = "record-id" AttributeValueCategory = ModuleName ) diff --git a/x/registry/keeper/msg_server.go b/x/registry/keeper/msg_server.go index 511b0c6b..ba48d633 100644 --- a/x/registry/keeper/msg_server.go +++ b/x/registry/keeper/msg_server.go @@ -67,7 +67,7 @@ func (ms msgServer) SetName(c context.Context, msg *registrytypes.MsgSetName) (* sdk.NewEvent( registrytypes.EventTypeSetRecord, sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer), - sdk.NewAttribute(registrytypes.AttributeKeyCRN, msg.Crn), + sdk.NewAttribute(registrytypes.AttributeKeyLRN, msg.Lrn), sdk.NewAttribute(registrytypes.AttributeKeyCID, msg.Cid), ), sdk.NewEvent( @@ -160,7 +160,7 @@ func (ms msgServer) DeleteName(c context.Context, msg *registrytypes.MsgDeleteNa sdk.NewEvent( registrytypes.EventTypeDeleteName, sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer), - sdk.NewAttribute(registrytypes.AttributeKeyCRN, msg.Crn), + sdk.NewAttribute(registrytypes.AttributeKeyLRN, msg.Lrn), ), sdk.NewEvent( sdk.EventTypeMessage, diff --git a/x/registry/keeper/naming_keeper.go b/x/registry/keeper/naming_keeper.go index fbf2bd28..ed4fc89a 100644 --- a/x/registry/keeper/naming_keeper.go +++ b/x/registry/keeper/naming_keeper.go @@ -57,13 +57,13 @@ func (k Keeper) ListNameAuthorityRecords(ctx sdk.Context) (map[string]registryty } // HasNameRecord - checks if a name record exists. -func (k Keeper) HasNameRecord(ctx sdk.Context, crn string) (bool, error) { - return k.NameRecords.Has(ctx, crn) +func (k Keeper) HasNameRecord(ctx sdk.Context, lrn string) (bool, error) { + return k.NameRecords.Has(ctx, lrn) } // GetNameRecord - gets a name record from the store. -func (k Keeper) GetNameRecord(ctx sdk.Context, crn string) (*registrytypes.NameRecord, error) { - nameRecord, err := k.NameRecords.Get(ctx, crn) +func (k Keeper) GetNameRecord(ctx sdk.Context, lrn string) (*registrytypes.NameRecord, error) { + nameRecord, err := k.NameRecords.Get(ctx, lrn) if err != nil { if errors.Is(err, collections.ErrNotFound) { return nil, nil @@ -75,14 +75,14 @@ func (k Keeper) GetNameRecord(ctx sdk.Context, crn string) (*registrytypes.NameR } // LookupNameRecord - gets a name record which is not stale and under active authority. -func (k Keeper) LookupNameRecord(ctx sdk.Context, crn string) (*registrytypes.NameRecord, error) { - _, _, authority, err := k.getAuthority(ctx, crn) +func (k Keeper) LookupNameRecord(ctx sdk.Context, lrn string) (*registrytypes.NameRecord, error) { + _, _, authority, err := k.getAuthority(ctx, lrn) if err != nil || authority.Status != registrytypes.AuthorityActive { // If authority is not active (or any other error), lookup fails. return nil, nil } - nameRecord, err := k.GetNameRecord(ctx, crn) + nameRecord, err := k.GetNameRecord(ctx, lrn) // Name record may not exist. if nameRecord == nil { @@ -115,9 +115,9 @@ func (k Keeper) ListNameRecords(ctx sdk.Context) ([]registrytypes.NameEntry, err } // SaveNameRecord - sets a name record. -func (k Keeper) SaveNameRecord(ctx sdk.Context, crn string, id string) error { +func (k Keeper) SaveNameRecord(ctx sdk.Context, lrn string, id string) error { var nameRecord registrytypes.NameRecord - existingNameRecord, err := k.GetNameRecord(ctx, crn) + existingNameRecord, err := k.GetNameRecord(ctx, lrn) if err != nil { return err } @@ -132,21 +132,21 @@ func (k Keeper) SaveNameRecord(ctx sdk.Context, crn string, id string) error { Height: uint64(ctx.BlockHeight()), } - return k.NameRecords.Set(ctx, crn, nameRecord) + return k.NameRecords.Set(ctx, lrn, nameRecord) } -// SetName creates a CRN -> Record ID mapping. +// SetName creates a LRN -> Record ID mapping. func (k Keeper) SetName(ctx sdk.Context, msg registrytypes.MsgSetName) error { signerAddress, err := sdk.AccAddressFromBech32(msg.Signer) if err != nil { return err } - err = k.checkCRNAccess(ctx, signerAddress, msg.Crn) + err = k.checkLRNAccess(ctx, signerAddress, msg.Lrn) if err != nil { return err } - nameRecord, err := k.LookupNameRecord(ctx, msg.Crn) + nameRecord, err := k.LookupNameRecord(ctx, msg.Lrn) if err != nil { return err } @@ -154,7 +154,7 @@ func (k Keeper) SetName(ctx sdk.Context, msg registrytypes.MsgSetName) error { return nil } - return k.SaveNameRecord(ctx, msg.Crn, msg.Cid) + return k.SaveNameRecord(ctx, msg.Lrn, msg.Cid) } // SaveNameAuthority creates the NameAuthority record. @@ -164,14 +164,14 @@ func (k Keeper) SaveNameAuthority(ctx sdk.Context, name string, authority *regis // ReserveAuthority reserves a name authority. func (k Keeper) ReserveAuthority(ctx sdk.Context, msg registrytypes.MsgReserveAuthority) error { - crn := fmt.Sprintf("crn://%s", msg.GetName()) - parsedCrn, err := url.Parse(crn) + lrn := fmt.Sprintf("lrn://%s", msg.GetName()) + parsedLrn, err := url.Parse(lrn) if err != nil { return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid name") } - name := parsedCrn.Host - if fmt.Sprintf("crn://%s", name) != crn { + name := parsedLrn.Host + if fmt.Sprintf("lrn://%s", name) != lrn { return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid name") } @@ -352,32 +352,32 @@ func (k Keeper) SetAuthorityBond(ctx sdk.Context, msg registrytypes.MsgSetAuthor return nil } -// DeleteName removes a CRN -> Record ID mapping. +// DeleteName removes a LRN -> Record ID mapping. func (k Keeper) DeleteName(ctx sdk.Context, msg registrytypes.MsgDeleteNameAuthority) error { signerAddress, err := sdk.AccAddressFromBech32(msg.Signer) if err != nil { return err } - err = k.checkCRNAccess(ctx, signerAddress, msg.Crn) + err = k.checkLRNAccess(ctx, signerAddress, msg.Lrn) if err != nil { return err } - crnExists, err := k.HasNameRecord(ctx, msg.Crn) + lrnExists, err := k.HasNameRecord(ctx, msg.Lrn) if err != nil { return err } - if !crnExists { + if !lrnExists { return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Name not found.") } // Set CID to empty string. - return k.SaveNameRecord(ctx, msg.Crn, "") + return k.SaveNameRecord(ctx, msg.Lrn, "") } -// ResolveCRN resolves a CRN to a record. -func (k Keeper) ResolveCRN(ctx sdk.Context, crn string) (*registrytypes.Record, error) { - _, _, authority, err := k.getAuthority(ctx, crn) +// ResolveLRN resolves a LRN to a record. +func (k Keeper) ResolveLRN(ctx sdk.Context, lrn string) (*registrytypes.Record, error) { + _, _, authority, err := k.getAuthority(ctx, lrn) if err != nil || authority.Status != registrytypes.AuthorityActive { // If authority is not active (or any other error), resolution fails. return nil, err @@ -385,7 +385,7 @@ func (k Keeper) ResolveCRN(ctx sdk.Context, crn string) (*registrytypes.Record, // Name should not resolve if it's stale. // i.e. authority was registered later than the name. - record, nameRecord, err := k.resolveCRNRecord(ctx, crn) + record, nameRecord, err := k.resolveLRNRecord(ctx, lrn) if err != nil { return nil, err } @@ -396,8 +396,8 @@ func (k Keeper) ResolveCRN(ctx sdk.Context, crn string) (*registrytypes.Record, return record, nil } -func (k Keeper) resolveCRNRecord(ctx sdk.Context, crn string) (*registrytypes.Record, *registrytypes.NameRecord, error) { - nameRecord, err := k.GetNameRecord(ctx, crn) +func (k Keeper) resolveLRNRecord(ctx sdk.Context, lrn string) (*registrytypes.Record, *registrytypes.NameRecord, error) { + nameRecord, err := k.GetNameRecord(ctx, lrn) if nameRecord == nil { return nil, nil, err } @@ -423,13 +423,13 @@ func (k Keeper) resolveCRNRecord(ctx sdk.Context, crn string) (*registrytypes.Re return &record, nameRecord, nil } -func (k Keeper) getAuthority(ctx sdk.Context, crn string) (string, *url.URL, *registrytypes.NameAuthority, error) { - parsedCRN, err := url.Parse(crn) +func (k Keeper) getAuthority(ctx sdk.Context, lrn string) (string, *url.URL, *registrytypes.NameAuthority, error) { + parsedLRN, err := url.Parse(lrn) if err != nil { - return "", nil, nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid CRN.") + return "", nil, nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid LRN.") } - name := parsedCRN.Host + name := parsedLRN.Host if has, err := k.HasNameAuthority(ctx, name); !has { if err != nil { return "", nil, nil, err @@ -443,18 +443,18 @@ func (k Keeper) getAuthority(ctx sdk.Context, crn string) (string, *url.URL, *re return "", nil, nil, err } - return name, parsedCRN, &authority, nil + return name, parsedLRN, &authority, nil } -func (k Keeper) checkCRNAccess(ctx sdk.Context, signer sdk.AccAddress, crn string) error { - name, parsedCRN, authority, err := k.getAuthority(ctx, crn) +func (k Keeper) checkLRNAccess(ctx sdk.Context, signer sdk.AccAddress, lrn string) error { + name, parsedLRN, authority, err := k.getAuthority(ctx, lrn) if err != nil { return err } - formattedCRN := fmt.Sprintf("crn://%s%s", name, parsedCRN.RequestURI()) - if formattedCRN != crn { - return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid CRN.") + formattedLRN := fmt.Sprintf("lrn://%s%s", name, parsedLRN.RequestURI()) + if formattedLRN != lrn { + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid LRN.") } if authority.OwnerAddress != signer.String() { diff --git a/x/registry/keeper/query_server.go b/x/registry/keeper/query_server.go index 08519518..da2a8bc4 100644 --- a/x/registry/keeper/query_server.go +++ b/x/registry/keeper/query_server.go @@ -120,19 +120,19 @@ func (qs queryServer) Whois(c context.Context, request *registrytypes.QueryWhois return ®istrytypes.QueryWhoisResponse{NameAuthority: nameAuthority}, nil } -func (qs queryServer) LookupCrn(c context.Context, req *registrytypes.QueryLookupCrnRequest) (*registrytypes.QueryLookupCrnResponse, error) { +func (qs queryServer) LookupLrn(c context.Context, req *registrytypes.QueryLookupLrnRequest) (*registrytypes.QueryLookupLrnResponse, error) { ctx := sdk.UnwrapSDKContext(c) - crn := req.GetCrn() + lrn := req.GetLrn() - crnExists, err := qs.k.HasNameRecord(ctx, crn) + lrnExists, err := qs.k.HasNameRecord(ctx, lrn) if err != nil { return nil, err } - if !crnExists { - return nil, errorsmod.Wrap(sdkerrors.ErrUnknownRequest, "CRN not found.") + if !lrnExists { + return nil, errorsmod.Wrap(sdkerrors.ErrUnknownRequest, "LRN not found.") } - nameRecord, err := qs.k.LookupNameRecord(ctx, crn) + nameRecord, err := qs.k.LookupNameRecord(ctx, lrn) if nameRecord == nil { if err != nil { return nil, err @@ -141,14 +141,14 @@ func (qs queryServer) LookupCrn(c context.Context, req *registrytypes.QueryLooku return nil, errorsmod.Wrap(sdkerrors.ErrUnknownRequest, "name record not found.") } - return ®istrytypes.QueryLookupCrnResponse{Name: nameRecord}, nil + return ®istrytypes.QueryLookupLrnResponse{Name: nameRecord}, nil } -func (qs queryServer) ResolveCrn(c context.Context, req *registrytypes.QueryResolveCrnRequest) (*registrytypes.QueryResolveCrnResponse, error) { +func (qs queryServer) ResolveLrn(c context.Context, req *registrytypes.QueryResolveLrnRequest) (*registrytypes.QueryResolveLrnResponse, error) { ctx := sdk.UnwrapSDKContext(c) - crn := req.GetCrn() - record, err := qs.k.ResolveCRN(ctx, crn) + lrn := req.GetLrn() + record, err := qs.k.ResolveLRN(ctx, lrn) if record == nil { if err != nil { return nil, err @@ -157,5 +157,5 @@ func (qs queryServer) ResolveCrn(c context.Context, req *registrytypes.QueryReso return nil, errorsmod.Wrap(sdkerrors.ErrUnknownRequest, "record not found.") } - return ®istrytypes.QueryResolveCrnResponse{Record: record}, nil + return ®istrytypes.QueryResolveLrnResponse{Record: record}, nil } diff --git a/x/registry/module/autocli.go b/x/registry/module/autocli.go index 17441a29..25fc20e7 100644 --- a/x/registry/module/autocli.go +++ b/x/registry/module/autocli.go @@ -58,19 +58,19 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { PositionalArgs: []*autocliv1.PositionalArgDescriptor{}, }, { - RpcMethod: "LookupCrn", - Use: "lookup [crn]", - Short: "Get naming info for CRN", + RpcMethod: "LookupLrn", + Use: "lookup [lrn]", + Short: "Get naming info for LRN", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ - {ProtoField: "crn"}, + {ProtoField: "lrn"}, }, }, { - RpcMethod: "ResolveCrn", - Use: "resolve [crn]", - Short: "Resolve CRN to record", + RpcMethod: "ResolveLrn", + Use: "resolve [lrn]", + Short: "Resolve LRN to record", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ - {ProtoField: "crn"}, + {ProtoField: "lrn"}, }, }, { @@ -112,19 +112,19 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, { RpcMethod: "SetName", - Use: "set-name [crn] [cid]", - Short: "Set CRN to CID mapping", + Use: "set-name [lrn] [cid]", + Short: "Set LRN to CID mapping", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ - {ProtoField: "crn"}, + {ProtoField: "lrn"}, {ProtoField: "cid"}, }, }, { RpcMethod: "DeleteName", - Use: "delete-name [crn]", - Short: "Delete CRN", + Use: "delete-name [lrn]", + Short: "Delete LRN", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ - {ProtoField: "crn"}, + {ProtoField: "lrn"}, }, }, { diff --git a/x/registry/query.pb.go b/x/registry/query.pb.go index c7df8afe..afa7c8b6 100644 --- a/x/registry/query.pb.go +++ b/x/registry/query.pb.go @@ -911,23 +911,23 @@ func (m *QueryWhoisResponse) GetNameAuthority() NameAuthority { return NameAuthority{} } -// QueryLookupCrnRequest is request type for LookupCrn -type QueryLookupCrnRequest struct { - Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"` +// QueryLookupLrnRequest is request type for LookupLrn +type QueryLookupLrnRequest struct { + Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` } -func (m *QueryLookupCrnRequest) Reset() { *m = QueryLookupCrnRequest{} } -func (m *QueryLookupCrnRequest) String() string { return proto.CompactTextString(m) } -func (*QueryLookupCrnRequest) ProtoMessage() {} -func (*QueryLookupCrnRequest) Descriptor() ([]byte, []int) { +func (m *QueryLookupLrnRequest) Reset() { *m = QueryLookupLrnRequest{} } +func (m *QueryLookupLrnRequest) String() string { return proto.CompactTextString(m) } +func (*QueryLookupLrnRequest) ProtoMessage() {} +func (*QueryLookupLrnRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{12} } -func (m *QueryLookupCrnRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryLookupLrnRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryLookupCrnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryLookupLrnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryLookupCrnRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryLookupLrnRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -937,42 +937,42 @@ func (m *QueryLookupCrnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryLookupCrnRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryLookupCrnRequest.Merge(m, src) +func (m *QueryLookupLrnRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryLookupLrnRequest.Merge(m, src) } -func (m *QueryLookupCrnRequest) XXX_Size() int { +func (m *QueryLookupLrnRequest) XXX_Size() int { return m.Size() } -func (m *QueryLookupCrnRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryLookupCrnRequest.DiscardUnknown(m) +func (m *QueryLookupLrnRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryLookupLrnRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryLookupCrnRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryLookupLrnRequest proto.InternalMessageInfo -func (m *QueryLookupCrnRequest) GetCrn() string { +func (m *QueryLookupLrnRequest) GetLrn() string { if m != nil { - return m.Crn + return m.Lrn } return "" } -// QueryLookupCrnResponse is response type for QueryLookupCrnRequest -type QueryLookupCrnResponse struct { +// QueryLookupLrnResponse is response type for QueryLookupLrnRequest +type QueryLookupLrnResponse struct { Name *NameRecord `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (m *QueryLookupCrnResponse) Reset() { *m = QueryLookupCrnResponse{} } -func (m *QueryLookupCrnResponse) String() string { return proto.CompactTextString(m) } -func (*QueryLookupCrnResponse) ProtoMessage() {} -func (*QueryLookupCrnResponse) Descriptor() ([]byte, []int) { +func (m *QueryLookupLrnResponse) Reset() { *m = QueryLookupLrnResponse{} } +func (m *QueryLookupLrnResponse) String() string { return proto.CompactTextString(m) } +func (*QueryLookupLrnResponse) ProtoMessage() {} +func (*QueryLookupLrnResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{13} } -func (m *QueryLookupCrnResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryLookupLrnResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryLookupCrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryLookupLrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryLookupCrnResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryLookupLrnResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -982,42 +982,42 @@ func (m *QueryLookupCrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *QueryLookupCrnResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryLookupCrnResponse.Merge(m, src) +func (m *QueryLookupLrnResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryLookupLrnResponse.Merge(m, src) } -func (m *QueryLookupCrnResponse) XXX_Size() int { +func (m *QueryLookupLrnResponse) XXX_Size() int { return m.Size() } -func (m *QueryLookupCrnResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryLookupCrnResponse.DiscardUnknown(m) +func (m *QueryLookupLrnResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryLookupLrnResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryLookupCrnResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryLookupLrnResponse proto.InternalMessageInfo -func (m *QueryLookupCrnResponse) GetName() *NameRecord { +func (m *QueryLookupLrnResponse) GetName() *NameRecord { if m != nil { return m.Name } return nil } -// QueryResolveCrnRequest is request type for ResolveCrn -type QueryResolveCrnRequest struct { - Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"` +// QueryResolveLrnRequest is request type for ResolveLrn +type QueryResolveLrnRequest struct { + Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` } -func (m *QueryResolveCrnRequest) Reset() { *m = QueryResolveCrnRequest{} } -func (m *QueryResolveCrnRequest) String() string { return proto.CompactTextString(m) } -func (*QueryResolveCrnRequest) ProtoMessage() {} -func (*QueryResolveCrnRequest) Descriptor() ([]byte, []int) { +func (m *QueryResolveLrnRequest) Reset() { *m = QueryResolveLrnRequest{} } +func (m *QueryResolveLrnRequest) String() string { return proto.CompactTextString(m) } +func (*QueryResolveLrnRequest) ProtoMessage() {} +func (*QueryResolveLrnRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{14} } -func (m *QueryResolveCrnRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryResolveLrnRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryResolveCrnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryResolveLrnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryResolveCrnRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryResolveLrnRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1027,42 +1027,42 @@ func (m *QueryResolveCrnRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *QueryResolveCrnRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryResolveCrnRequest.Merge(m, src) +func (m *QueryResolveLrnRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryResolveLrnRequest.Merge(m, src) } -func (m *QueryResolveCrnRequest) XXX_Size() int { +func (m *QueryResolveLrnRequest) XXX_Size() int { return m.Size() } -func (m *QueryResolveCrnRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryResolveCrnRequest.DiscardUnknown(m) +func (m *QueryResolveLrnRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryResolveLrnRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryResolveCrnRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryResolveLrnRequest proto.InternalMessageInfo -func (m *QueryResolveCrnRequest) GetCrn() string { +func (m *QueryResolveLrnRequest) GetLrn() string { if m != nil { - return m.Crn + return m.Lrn } return "" } -// QueryResolveCrnResponse is response type for QueryResolveCrnRequest -type QueryResolveCrnResponse struct { +// QueryResolveLrnResponse is response type for QueryResolveLrnRequest +type QueryResolveLrnResponse struct { Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` } -func (m *QueryResolveCrnResponse) Reset() { *m = QueryResolveCrnResponse{} } -func (m *QueryResolveCrnResponse) String() string { return proto.CompactTextString(m) } -func (*QueryResolveCrnResponse) ProtoMessage() {} -func (*QueryResolveCrnResponse) Descriptor() ([]byte, []int) { +func (m *QueryResolveLrnResponse) Reset() { *m = QueryResolveLrnResponse{} } +func (m *QueryResolveLrnResponse) String() string { return proto.CompactTextString(m) } +func (*QueryResolveLrnResponse) ProtoMessage() {} +func (*QueryResolveLrnResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{15} } -func (m *QueryResolveCrnResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryResolveLrnResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryResolveCrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryResolveLrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryResolveCrnResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryResolveLrnResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1072,19 +1072,19 @@ func (m *QueryResolveCrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryResolveCrnResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryResolveCrnResponse.Merge(m, src) +func (m *QueryResolveLrnResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryResolveLrnResponse.Merge(m, src) } -func (m *QueryResolveCrnResponse) XXX_Size() int { +func (m *QueryResolveLrnResponse) XXX_Size() int { return m.Size() } -func (m *QueryResolveCrnResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryResolveCrnResponse.DiscardUnknown(m) +func (m *QueryResolveLrnResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryResolveLrnResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryResolveCrnResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryResolveLrnResponse proto.InternalMessageInfo -func (m *QueryResolveCrnResponse) GetRecord() *Record { +func (m *QueryResolveLrnResponse) GetRecord() *Record { if m != nil { return m.Record } @@ -1244,10 +1244,10 @@ func init() { proto.RegisterType((*QueryNameRecordsResponse)(nil), "cerc.registry.v1.QueryNameRecordsResponse") proto.RegisterType((*QueryWhoisRequest)(nil), "cerc.registry.v1.QueryWhoisRequest") proto.RegisterType((*QueryWhoisResponse)(nil), "cerc.registry.v1.QueryWhoisResponse") - proto.RegisterType((*QueryLookupCrnRequest)(nil), "cerc.registry.v1.QueryLookupCrnRequest") - proto.RegisterType((*QueryLookupCrnResponse)(nil), "cerc.registry.v1.QueryLookupCrnResponse") - proto.RegisterType((*QueryResolveCrnRequest)(nil), "cerc.registry.v1.QueryResolveCrnRequest") - proto.RegisterType((*QueryResolveCrnResponse)(nil), "cerc.registry.v1.QueryResolveCrnResponse") + proto.RegisterType((*QueryLookupLrnRequest)(nil), "cerc.registry.v1.QueryLookupLrnRequest") + proto.RegisterType((*QueryLookupLrnResponse)(nil), "cerc.registry.v1.QueryLookupLrnResponse") + proto.RegisterType((*QueryResolveLrnRequest)(nil), "cerc.registry.v1.QueryResolveLrnRequest") + proto.RegisterType((*QueryResolveLrnResponse)(nil), "cerc.registry.v1.QueryResolveLrnResponse") proto.RegisterType((*QueryGetRegistryModuleBalanceRequest)(nil), "cerc.registry.v1.QueryGetRegistryModuleBalanceRequest") proto.RegisterType((*QueryGetRegistryModuleBalanceResponse)(nil), "cerc.registry.v1.QueryGetRegistryModuleBalanceResponse") proto.RegisterType((*AccountBalance)(nil), "cerc.registry.v1.AccountBalance") @@ -1256,88 +1256,88 @@ func init() { func init() { proto.RegisterFile("cerc/registry/v1/query.proto", fileDescriptor_c642b96b6da07a30) } var fileDescriptor_c642b96b6da07a30 = []byte{ - // 1296 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xf7, 0xda, 0xb1, 0xdd, 0x3c, 0x7f, 0x5b, 0xf5, 0x3b, 0x84, 0x76, 0xbb, 0x0d, 0xb6, 0x59, - 0xda, 0xc4, 0x49, 0xe4, 0xdd, 0x26, 0x91, 0xda, 0x2a, 0xe2, 0x12, 0x57, 0x34, 0x2e, 0xa5, 0x55, - 0xb3, 0x48, 0x45, 0xe2, 0x52, 0x8d, 0x77, 0x17, 0x67, 0xc9, 0x7a, 0xc7, 0xdd, 0x5d, 0xbb, 0x2c, - 0x51, 0x25, 0x84, 0x00, 0x71, 0x04, 0x71, 0x42, 0x70, 0xe1, 0xc2, 0x81, 0x03, 0x7f, 0x47, 0x25, - 0x2e, 0x95, 0xb8, 0x70, 0x0a, 0x28, 0xe1, 0xc2, 0x0d, 0x95, 0x7f, 0x00, 0xed, 0xcc, 0xec, 0x7a, - 0xfd, 0xdb, 0x89, 0x40, 0xe2, 0xe4, 0x9d, 0x99, 0xcf, 0x7b, 0xef, 0xf3, 0x7e, 0xce, 0x18, 0x16, - 0x75, 0xd3, 0xd5, 0x55, 0xd7, 0x6c, 0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 0xd7, 0xc7, 0x98, 0x9a, 0x32, - 0xe9, 0xa5, 0x1b, 0x27, 0x96, 0x9b, 0x4e, 0x98, 0x8f, 0xbc, 0xda, 0xf6, 0xb3, 0xa3, 0xa2, 0xf0, - 0xfc, 0xa8, 0x28, 0xfc, 0x76, 0x54, 0x14, 0xbe, 0x38, 0x2e, 0xa6, 0x9e, 0x1f, 0x17, 0x53, 0xbf, - 0x1c, 0x17, 0x53, 0xef, 0x2e, 0x37, 0x2d, 0x5f, 0xe9, 0x1a, 0x0d, 0xc5, 0x27, 0x54, 0xbc, 0x6a, - 0x11, 0xd5, 0xc6, 0x3a, 0x71, 0x2c, 0x7d, 0xc3, 0x50, 0x3f, 0x88, 0xb5, 0x35, 0x72, 0xf4, 0xff, - 0xf6, 0xe6, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x75, 0xb8, 0x19, 0x5d, 0x42, 0x10, 0x00, 0x00, + // 1295 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4d, 0x6f, 0x1b, 0xc5, + 0x1b, 0xf7, 0xda, 0xb1, 0xdd, 0x3c, 0xfe, 0xb7, 0xea, 0x7f, 0x08, 0xed, 0x66, 0x13, 0x6c, 0xb3, + 0xe4, 0xc5, 0x49, 0xe4, 0xdd, 0x26, 0x91, 0xda, 0x2a, 0xe2, 0x12, 0x23, 0x1a, 0x97, 0xbe, 0xa8, + 0x59, 0xa4, 0x22, 0x71, 0xa9, 0xc6, 0xde, 0xc5, 0x59, 0xb2, 0xde, 0x71, 0x77, 0xd7, 0x2e, 0x4b, + 0x54, 0x09, 0x21, 0x40, 0x1c, 0x41, 0x9c, 0x10, 0x5c, 0xb8, 0x70, 0xe0, 0xc0, 0xe7, 0xa8, 0xc4, + 0xa5, 0x12, 0x17, 0x4e, 0x01, 0x25, 0x5c, 0xb8, 0xa1, 0xf2, 0x05, 0xd0, 0xce, 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x45, 0xb0, 0x47, 0xb3, 0x24, 0x54, + 0x13, 0x1a, 0x5b, 0x22, 0x09, 0xb2, 0x35, 0x42, 0x2c, 0x03, 0xdb, 0xe2, 0x4c, 0x90, 0xd8, 0x6a, + 0x42, 0x0b, 0x37, 0xd0, 0x1c, 0xcc, 0x58, 0xa6, 0x7d, 0x28, 0xa6, 0xb9, 0x7e, 0xba, 0x42, 0x55, + 0x48, 0xe3, 0x20, 0x59, 0x62, 0xe6, 0x2c, 0x2e, 0x75, 0xf3, 0x1b, 0xd8, 0xa6, 0x0a, 0x50, 0x05, + 0x52, 0x4d, 0xdc, 0x12, 0xb3, 0x54, 0x8f, 0x72, 0xb6, 0x74, 0x04, 0x7e, 0x35, 0x71, 0xab, 0x92, + 0xe5, 0x01, 0x96, 0x4c, 0xb8, 0xd8, 0x53, 0xba, 0xff, 0x5e, 0x32, 0xe4, 0xaf, 0x05, 0x98, 0xeb, + 0x45, 0xf2, 0x06, 0xbe, 0x09, 0x59, 0x87, 0x6d, 0xf1, 0x1a, 0x1b, 0xd2, 0xc1, 0x4c, 0xa6, 0x32, + 0xf3, 0xec, 0xb8, 0x90, 0xd0, 0x42, 0x38, 0xda, 0xeb, 0xe9, 0x24, 0xc6, 0x6f, 0x75, 0x62, 0x27, + 0x31, 0xb3, 0xf1, 0x56, 0x92, 0x4b, 0x70, 0x25, 0x46, 0xad, 0xe2, 0xdf, 0xd6, 0xc3, 0x99, 0x70, + 0x09, 0x92, 0xa6, 0xce, 0xc3, 0x91, 0x34, 0x75, 0x79, 0x1f, 0xae, 0x0e, 0x20, 0xb9, 0x1f, 0xd7, + 0x21, 0xc3, 0x88, 0x8d, 0x1e, 0x44, 0x3d, 0x6e, 0x70, 0xb4, 0xdc, 0x86, 0x85, 0x78, 0x5c, 0x2a, + 0x7e, 0x85, 0xd8, 0xfa, 0x48, 0x06, 0x7d, 0xe3, 0x23, 0x79, 0xde, 0xf1, 0x21, 0x7f, 0x27, 0xc0, + 0xe2, 0x70, 0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xf1, 0x3b, 0xa6, 0x76, 0xfb, 0xa6, 0xf9, 0x98, 0xda, 0xed, 0x9f, 0xe5, 0xe3, + 0x3b, 0x88, 0xa2, 0xd1, 0x8f, 0x02, 0x88, 0xa3, 0x06, 0x32, 0xba, 0x3e, 0xc2, 0xd4, 0x84, 0x49, + 0x2f, 0xdd, 0x38, 0xb3, 0xdc, 0x64, 0xc2, 0x7c, 0xe4, 0x55, 0x76, 0x9f, 0x9d, 0xe4, 0x85, 0xe7, + 0x27, 0x79, 0xe1, 0xb7, 0x93, 0xbc, 0xf0, 0xc5, 0x69, 0x3e, 0xf1, 0xfc, 0x34, 0x9f, 0xf8, 0xe5, + 0x34, 0x9f, 0x78, 0x77, 0xb5, 0x61, 0x7a, 0x4a, 0x47, 0xaf, 0x29, 0x1e, 0xa1, 0xe2, 0x65, 0x93, + 0xa8, 0x16, 0xae, 0x13, 0xdb, 0xac, 0x6f, 0xe9, 0xea, 0x07, 0x91, 0xb6, 0x5a, 0x86, 0xfe, 0xdf, + 0xde, 0xfe, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x94, 0x6e, 0x34, 0x42, 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1364,10 +1364,10 @@ type QueryClient interface { NameRecords(ctx context.Context, in *QueryNameRecordsRequest, opts ...grpc.CallOption) (*QueryNameRecordsResponse, error) // Whois method retrieve the name authority info Whois(ctx context.Context, in *QueryWhoisRequest, opts ...grpc.CallOption) (*QueryWhoisResponse, error) - // LookupCrn - LookupCrn(ctx context.Context, in *QueryLookupCrnRequest, opts ...grpc.CallOption) (*QueryLookupCrnResponse, error) - // ResolveCrn - ResolveCrn(ctx context.Context, in *QueryResolveCrnRequest, opts ...grpc.CallOption) (*QueryResolveCrnResponse, error) + // LookupLrn + LookupLrn(ctx context.Context, in *QueryLookupLrnRequest, opts ...grpc.CallOption) (*QueryLookupLrnResponse, error) + // ResolveLrn + ResolveLrn(ctx context.Context, in *QueryResolveLrnRequest, opts ...grpc.CallOption) (*QueryResolveLrnResponse, error) // Get registry module balance GetRegistryModuleBalance(ctx context.Context, in *QueryGetRegistryModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetRegistryModuleBalanceResponse, error) } @@ -1434,18 +1434,18 @@ func (c *queryClient) Whois(ctx context.Context, in *QueryWhoisRequest, opts ... return out, nil } -func (c *queryClient) LookupCrn(ctx context.Context, in *QueryLookupCrnRequest, opts ...grpc.CallOption) (*QueryLookupCrnResponse, error) { - out := new(QueryLookupCrnResponse) - err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/LookupCrn", in, out, opts...) +func (c *queryClient) LookupLrn(ctx context.Context, in *QueryLookupLrnRequest, opts ...grpc.CallOption) (*QueryLookupLrnResponse, error) { + out := new(QueryLookupLrnResponse) + err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/LookupLrn", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) ResolveCrn(ctx context.Context, in *QueryResolveCrnRequest, opts ...grpc.CallOption) (*QueryResolveCrnResponse, error) { - out := new(QueryResolveCrnResponse) - err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/ResolveCrn", in, out, opts...) +func (c *queryClient) ResolveLrn(ctx context.Context, in *QueryResolveLrnRequest, opts ...grpc.CallOption) (*QueryResolveLrnResponse, error) { + out := new(QueryResolveLrnResponse) + err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/ResolveLrn", in, out, opts...) if err != nil { return nil, err } @@ -1475,10 +1475,10 @@ type QueryServer interface { NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) // Whois method retrieve the name authority info Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error) - // LookupCrn - LookupCrn(context.Context, *QueryLookupCrnRequest) (*QueryLookupCrnResponse, error) - // ResolveCrn - ResolveCrn(context.Context, *QueryResolveCrnRequest) (*QueryResolveCrnResponse, error) + // LookupLrn + LookupLrn(context.Context, *QueryLookupLrnRequest) (*QueryLookupLrnResponse, error) + // ResolveLrn + ResolveLrn(context.Context, *QueryResolveLrnRequest) (*QueryResolveLrnResponse, error) // Get registry module balance GetRegistryModuleBalance(context.Context, *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) } @@ -1505,11 +1505,11 @@ func (*UnimplementedQueryServer) NameRecords(ctx context.Context, req *QueryName func (*UnimplementedQueryServer) Whois(ctx context.Context, req *QueryWhoisRequest) (*QueryWhoisResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Whois not implemented") } -func (*UnimplementedQueryServer) LookupCrn(ctx context.Context, req *QueryLookupCrnRequest) (*QueryLookupCrnResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LookupCrn not implemented") +func (*UnimplementedQueryServer) LookupLrn(ctx context.Context, req *QueryLookupLrnRequest) (*QueryLookupLrnResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LookupLrn not implemented") } -func (*UnimplementedQueryServer) ResolveCrn(ctx context.Context, req *QueryResolveCrnRequest) (*QueryResolveCrnResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResolveCrn not implemented") +func (*UnimplementedQueryServer) ResolveLrn(ctx context.Context, req *QueryResolveLrnRequest) (*QueryResolveLrnResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResolveLrn not implemented") } func (*UnimplementedQueryServer) GetRegistryModuleBalance(ctx context.Context, req *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRegistryModuleBalance not implemented") @@ -1627,38 +1627,38 @@ func _Query_Whois_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Query_LookupCrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryLookupCrnRequest) +func _Query_LookupLrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryLookupLrnRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).LookupCrn(ctx, in) + return srv.(QueryServer).LookupLrn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cerc.registry.v1.Query/LookupCrn", + FullMethod: "/cerc.registry.v1.Query/LookupLrn", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).LookupCrn(ctx, req.(*QueryLookupCrnRequest)) + return srv.(QueryServer).LookupLrn(ctx, req.(*QueryLookupLrnRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_ResolveCrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryResolveCrnRequest) +func _Query_ResolveLrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryResolveLrnRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).ResolveCrn(ctx, in) + return srv.(QueryServer).ResolveLrn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cerc.registry.v1.Query/ResolveCrn", + FullMethod: "/cerc.registry.v1.Query/ResolveLrn", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ResolveCrn(ctx, req.(*QueryResolveCrnRequest)) + return srv.(QueryServer).ResolveLrn(ctx, req.(*QueryResolveLrnRequest)) } return interceptor(ctx, in, info, handler) } @@ -1710,12 +1710,12 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_Whois_Handler, }, { - MethodName: "LookupCrn", - Handler: _Query_LookupCrn_Handler, + MethodName: "LookupLrn", + Handler: _Query_LookupLrn_Handler, }, { - MethodName: "ResolveCrn", - Handler: _Query_ResolveCrn_Handler, + MethodName: "ResolveLrn", + Handler: _Query_ResolveLrn_Handler, }, { MethodName: "GetRegistryModuleBalance", @@ -2465,7 +2465,7 @@ func (m *QueryWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryLookupCrnRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryLookupLrnRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2475,27 +2475,27 @@ func (m *QueryLookupCrnRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryLookupCrnRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryLookupLrnRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryLookupCrnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryLookupLrnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Crn) > 0 { - i -= len(m.Crn) - copy(dAtA[i:], m.Crn) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Crn))) + if len(m.Lrn) > 0 { + i -= len(m.Lrn) + copy(dAtA[i:], m.Lrn) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Lrn))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryLookupCrnResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryLookupLrnResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2505,12 +2505,12 @@ func (m *QueryLookupCrnResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryLookupCrnResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryLookupLrnResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryLookupCrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryLookupLrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2530,7 +2530,7 @@ func (m *QueryLookupCrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryResolveCrnRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryResolveLrnRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2540,27 +2540,27 @@ func (m *QueryResolveCrnRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryResolveCrnRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryResolveLrnRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryResolveCrnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryResolveLrnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Crn) > 0 { - i -= len(m.Crn) - copy(dAtA[i:], m.Crn) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Crn))) + if len(m.Lrn) > 0 { + i -= len(m.Lrn) + copy(dAtA[i:], m.Lrn) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Lrn))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryResolveCrnResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryResolveLrnResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2570,12 +2570,12 @@ func (m *QueryResolveCrnResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryResolveCrnResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryResolveLrnResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryResolveCrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryResolveLrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3026,20 +3026,20 @@ func (m *QueryWhoisResponse) Size() (n int) { return n } -func (m *QueryLookupCrnRequest) Size() (n int) { +func (m *QueryLookupLrnRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Crn) + l = len(m.Lrn) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } -func (m *QueryLookupCrnResponse) Size() (n int) { +func (m *QueryLookupLrnResponse) Size() (n int) { if m == nil { return 0 } @@ -3052,20 +3052,20 @@ func (m *QueryLookupCrnResponse) Size() (n int) { return n } -func (m *QueryResolveCrnRequest) Size() (n int) { +func (m *QueryResolveLrnRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Crn) + l = len(m.Lrn) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } -func (m *QueryResolveCrnResponse) Size() (n int) { +func (m *QueryResolveLrnResponse) Size() (n int) { if m == nil { return 0 } @@ -4914,7 +4914,7 @@ func (m *QueryWhoisResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryLookupCrnRequest) Unmarshal(dAtA []byte) error { +func (m *QueryLookupLrnRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4937,15 +4937,15 @@ func (m *QueryLookupCrnRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryLookupCrnRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryLookupLrnRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryLookupCrnRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryLookupLrnRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Crn", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Lrn", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4973,7 +4973,7 @@ func (m *QueryLookupCrnRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Crn = string(dAtA[iNdEx:postIndex]) + m.Lrn = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4996,7 +4996,7 @@ func (m *QueryLookupCrnRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryLookupCrnResponse) Unmarshal(dAtA []byte) error { +func (m *QueryLookupLrnResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5019,10 +5019,10 @@ func (m *QueryLookupCrnResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryLookupCrnResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryLookupLrnResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryLookupCrnResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryLookupLrnResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5082,7 +5082,7 @@ func (m *QueryLookupCrnResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryResolveCrnRequest) Unmarshal(dAtA []byte) error { +func (m *QueryResolveLrnRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5105,15 +5105,15 @@ func (m *QueryResolveCrnRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryResolveCrnRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryResolveLrnRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryResolveCrnRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryResolveLrnRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Crn", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Lrn", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5141,7 +5141,7 @@ func (m *QueryResolveCrnRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Crn = string(dAtA[iNdEx:postIndex]) + m.Lrn = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5164,7 +5164,7 @@ func (m *QueryResolveCrnRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryResolveCrnResponse) Unmarshal(dAtA []byte) error { +func (m *QueryResolveLrnResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5187,10 +5187,10 @@ func (m *QueryResolveCrnResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryResolveCrnResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryResolveLrnResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryResolveCrnResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryResolveLrnResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/registry/query.pb.gw.go b/x/registry/query.pb.gw.go index 68f3bb13..743963b0 100644 --- a/x/registry/query.pb.gw.go +++ b/x/registry/query.pb.gw.go @@ -304,73 +304,73 @@ func local_request_Query_Whois_0(ctx context.Context, marshaler runtime.Marshale } var ( - filter_Query_LookupCrn_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_LookupLrn_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_LookupCrn_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryLookupCrnRequest +func request_Query_LookupLrn_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryLookupLrnRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LookupCrn_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LookupLrn_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.LookupCrn(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.LookupLrn(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_LookupCrn_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryLookupCrnRequest +func local_request_Query_LookupLrn_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryLookupLrnRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LookupCrn_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LookupLrn_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.LookupCrn(ctx, &protoReq) + msg, err := server.LookupLrn(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_ResolveCrn_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_ResolveLrn_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_ResolveCrn_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryResolveCrnRequest +func request_Query_ResolveLrn_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryResolveLrnRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ResolveCrn_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ResolveLrn_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ResolveCrn(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.ResolveLrn(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_ResolveCrn_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryResolveCrnRequest +func local_request_Query_ResolveLrn_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryResolveLrnRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ResolveCrn_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ResolveLrn_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ResolveCrn(ctx, &protoReq) + msg, err := server.ResolveLrn(ctx, &protoReq) return msg, metadata, err } @@ -537,7 +537,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_LookupCrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_LookupLrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -548,7 +548,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_LookupCrn_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_LookupLrn_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -556,11 +556,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_LookupCrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_LookupLrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_ResolveCrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_ResolveLrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -571,7 +571,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_ResolveCrn_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_ResolveLrn_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -579,7 +579,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_ResolveCrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_ResolveLrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -767,7 +767,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_LookupCrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_LookupLrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -776,18 +776,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_LookupCrn_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_LookupLrn_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_LookupCrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_LookupLrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_ResolveCrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_ResolveLrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -796,14 +796,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_ResolveCrn_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_ResolveLrn_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_ResolveCrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_ResolveLrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -843,9 +843,9 @@ var ( pattern_Query_Whois_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cerc", "registry", "v1", "whois", "name"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LookupCrn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "lookup"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_LookupLrn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "lookup"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ResolveCrn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "resolve"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_ResolveLrn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "resolve"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_GetRegistryModuleBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "balance"}, "", runtime.AssumeColonVerbOpt(false))) ) @@ -863,9 +863,9 @@ var ( forward_Query_Whois_0 = runtime.ForwardResponseMessage - forward_Query_LookupCrn_0 = runtime.ForwardResponseMessage + forward_Query_LookupLrn_0 = runtime.ForwardResponseMessage - forward_Query_ResolveCrn_0 = runtime.ForwardResponseMessage + forward_Query_ResolveLrn_0 = runtime.ForwardResponseMessage forward_Query_GetRegistryModuleBalance_0 = runtime.ForwardResponseMessage ) diff --git a/x/registry/tx.pb.go b/x/registry/tx.pb.go index 6592b25b..a84ed567 100644 --- a/x/registry/tx.pb.go +++ b/x/registry/tx.pb.go @@ -191,7 +191,7 @@ func (m *Payload) GetSignatures() []Signature { // MsgSetName type MsgSetName struct { - Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"` + Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"` Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"` } @@ -229,9 +229,9 @@ func (m *MsgSetName) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSetName proto.InternalMessageInfo -func (m *MsgSetName) GetCrn() string { +func (m *MsgSetName) GetLrn() string { if m != nil { - return m.Crn + return m.Lrn } return "" } @@ -486,7 +486,7 @@ var xxx_messageInfo_MsgSetAuthorityBondResponse proto.InternalMessageInfo // MsgDeleteNameAuthority type MsgDeleteNameAuthority struct { - Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"` + Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` } @@ -523,9 +523,9 @@ func (m *MsgDeleteNameAuthority) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDeleteNameAuthority proto.InternalMessageInfo -func (m *MsgDeleteNameAuthority) GetCrn() string { +func (m *MsgDeleteNameAuthority) GetLrn() string { if m != nil { - return m.Crn + return m.Lrn } return "" } @@ -1067,7 +1067,7 @@ func init() { func init() { proto.RegisterFile("cerc/registry/v1/tx.proto", fileDescriptor_3c6eb2e5a4d8fa03) } var fileDescriptor_3c6eb2e5a4d8fa03 = []byte{ - // 1036 bytes of a gzipped FileDescriptorProto + // 1037 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x97, 0x41, 0x6f, 0xe3, 0x44, 0x14, 0xc7, 0x3b, 0xc9, 0x6e, 0x4b, 0x5e, 0xa0, 0xea, 0x9a, 0xb2, 0xa4, 0x6e, 0xea, 0xa4, 0xd3, 0x26, 0xcd, 0x76, 0x69, 0xbc, 0x1b, 0x4e, 0xf4, 0xd6, 0x88, 0x4b, 0x0f, 0x01, 0xe4, 0x8a, 0x0b, @@ -1091,48 +1091,48 @@ var fileDescriptor_3c6eb2e5a4d8fa03 = []byte{ 0x57, 0x73, 0x7b, 0xb9, 0x53, 0x49, 0x87, 0x0e, 0xbc, 0x05, 0x3a, 0xe9, 0x11, 0x80, 0x17, 0x4f, 0x77, 0x1f, 0x3b, 0x84, 0x55, 0x0a, 0xf5, 0x62, 0xab, 0xdc, 0xd9, 0x4c, 0xaf, 0x3a, 0x09, 0x35, 0xdd, 0xfb, 0x1e, 0xf2, 0x74, 0x52, 0xdb, 0xf1, 0xb3, 0x14, 0x2d, 0x0e, 0x13, 0x15, 0x9b, 0xd1, - 0x62, 0xbe, 0xf1, 0xa7, 0x00, 0xfe, 0x7e, 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, 0xb7, 0x82, 0x77, 0x48, 0x01, 0xc3, 0x37, 0x08, 0xde, 0x4a, - 0x7e, 0x03, 0x70, 0x66, 0x8c, 0x84, 0x46, 0xde, 0xbf, 0x5e, 0x23, 0x48, 0x5a, 0x9c, 0x04, 0xe3, - 0x7a, 0x9a, 0x44, 0x1c, 0x0e, 0x3f, 0x67, 0xe9, 0x7b, 0x04, 0xab, 0x33, 0xad, 0xbb, 0x93, 0x19, - 0x28, 0x29, 0x92, 0xef, 0x2f, 0x20, 0x12, 0x38, 0xf7, 0x38, 0xce, 0x0e, 0xde, 0x4e, 0xe3, 0x18, - 0x56, 0x92, 0xe7, 0x67, 0x04, 0x77, 0xd2, 0xfd, 0xda, 0xbc, 0x26, 0x5a, 0xa0, 0x93, 0xdb, 0x8b, - 0xe9, 0x04, 0xd8, 0x7b, 0x1c, 0xac, 0x89, 0x77, 0xe7, 0x82, 0x39, 0x01, 0xc5, 0x2f, 0x08, 0xa4, - 0x8c, 0x8e, 0xdd, 0xcb, 0x29, 0x90, 0x59, 0xa1, 0xac, 0x2e, 0x28, 0x14, 0x78, 0x07, 0x1c, 0x6f, - 0x0f, 0x37, 0xb2, 0x0a, 0x4a, 0x4f, 0xf1, 0x7d, 0x01, 0x2b, 0xe1, 0x0b, 0xa8, 0x9a, 0xd7, 0x34, - 0x9e, 0x55, 0xde, 0x9d, 0x67, 0x15, 0xd1, 0x31, 0x8f, 0x5e, 0xc5, 0x72, 0x76, 0x43, 0xf1, 0x97, - 0xc5, 0x77, 0xbc, 0x9d, 0xf8, 0x13, 0x85, 0xc7, 0x6d, 0xe4, 0x6c, 0x31, 0xf9, 0x88, 0x91, 0x0f, - 0x16, 0x92, 0x2d, 0xd6, 0x58, 0x7c, 0x8d, 0x4f, 0xf3, 0x0c, 0x01, 0x44, 0x8f, 0x02, 0x29, 0xbb, - 0x73, 0x33, 0x5e, 0x0d, 0xf2, 0x83, 0x45, 0x95, 0x02, 0xa9, 0xc1, 0x91, 0x6a, 0x78,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2c, 0xda, 0x31, + 0x94, 0x6d, 0x32, 0x3a, 0x4d, 0xe2, 0xdd, 0x9b, 0x4e, 0x6a, 0x0d, 0x1f, 0x2f, 0x66, 0x0c, 0x11, + 0xe3, 0x53, 0x5a, 0xc9, 0x26, 0xa3, 0xae, 0x4f, 0x7a, 0x0c, 0x65, 0x3a, 0x30, 0x4e, 0x93, 0x95, + 0x11, 0x73, 0x15, 0x33, 0x86, 0xae, 0xe2, 0x53, 0x5a, 0x89, 0x0e, 0x8c, 0xee, 0x7f, 0x28, 0x92, + 0x1a, 0x6c, 0x65, 0xee, 0x29, 0xdc, 0x75, 0xe7, 0x59, 0x19, 0x8a, 0x3d, 0x66, 0x4a, 0x63, 0x28, + 0x45, 0xd7, 0xa4, 0x92, 0xbe, 0x10, 0xe2, 0x57, 0x93, 0xdc, 0x9c, 0x6f, 0x17, 0x29, 0xdd, 0x7d, + 0xfa, 0xe7, 0x3f, 0x3f, 0x16, 0x14, 0x5c, 0x55, 0x53, 0x37, 0x35, 0x23, 0xee, 0x69, 0x70, 0x25, + 0x7d, 0x8d, 0xa0, 0x1c, 0xff, 0x2a, 0xd4, 0x33, 0xbd, 0xc7, 0x14, 0x72, 0xeb, 0x3a, 0x85, 0x20, + 0x68, 0x72, 0x82, 0x3a, 0x56, 0xd4, 0x8c, 0xb7, 0x82, 0x77, 0x48, 0x01, 0xc3, 0x37, 0x08, 0xde, + 0x4a, 0x7e, 0x03, 0x70, 0x66, 0x8c, 0x84, 0x46, 0xde, 0xbf, 0x5e, 0x23, 0x48, 0x5a, 0x9c, 0x04, + 0xe3, 0x7a, 0x9a, 0x44, 0x1c, 0x0e, 0x3f, 0x67, 0xe9, 0x7b, 0x04, 0xab, 0x33, 0xad, 0xbb, 0x93, + 0x19, 0x28, 0x29, 0x92, 0xef, 0x2f, 0x20, 0x12, 0x38, 0xf7, 0x38, 0xce, 0x0e, 0xde, 0x4e, 0xe3, + 0x18, 0x56, 0x92, 0xe7, 0x67, 0x04, 0x77,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, 0x5d, 0x29, 0x4b, 0x9f, + 0xed, 0x99, 0x96, 0xdb, 0xbe, 0x30, 0xce, 0xda, 0x2e, 0xe5, 0x0e, 0x0f, 0x2c, 0xaa, 0x0e, 0xf4, + 0x3e, 0xb5, 0xad, 0x7e, 0xc7, 0x50, 0x9f, 0x08, 0xff, 0x67, 0xcb, 0xfc, 0xef, 0xcf, 0xfb, 0xff, + 0x06, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x74, 0xfe, 0xc2, 0x9b, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1159,7 +1159,7 @@ type MsgClient interface { DissociateRecords(ctx context.Context, in *MsgDissociateRecords, opts ...grpc.CallOption) (*MsgDissociateRecordsResponse, error) // ReassociateRecords ReassociateRecords(ctx context.Context, in *MsgReassociateRecords, opts ...grpc.CallOption) (*MsgReassociateRecordsResponse, error) - // SetName will store the name with given crn and name + // SetName will store the name with given lrn and name SetName(ctx context.Context, in *MsgSetName, opts ...grpc.CallOption) (*MsgSetNameResponse, error) // Reserve name ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) @@ -1281,7 +1281,7 @@ type MsgServer interface { DissociateRecords(context.Context, *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error) // ReassociateRecords ReassociateRecords(context.Context, *MsgReassociateRecords) (*MsgReassociateRecordsResponse, error) - // SetName will store the name with given crn and name + // SetName will store the name with given lrn and name SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error) // Reserve name ReserveName(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) @@ -1719,10 +1719,10 @@ func (m *MsgSetName) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.Crn) > 0 { - i -= len(m.Crn) - copy(dAtA[i:], m.Crn) - i = encodeVarintTx(dAtA, i, uint64(len(m.Crn))) + if len(m.Lrn) > 0 { + i -= len(m.Lrn) + copy(dAtA[i:], m.Lrn) + i = encodeVarintTx(dAtA, i, uint64(len(m.Lrn))) i-- dAtA[i] = 0xa } @@ -1913,10 +1913,10 @@ func (m *MsgDeleteNameAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0x12 } - if len(m.Crn) > 0 { - i -= len(m.Crn) - copy(dAtA[i:], m.Crn) - i = encodeVarintTx(dAtA, i, uint64(len(m.Crn))) + if len(m.Lrn) > 0 { + i -= len(m.Lrn) + copy(dAtA[i:], m.Lrn) + i = encodeVarintTx(dAtA, i, uint64(len(m.Lrn))) i-- dAtA[i] = 0xa } @@ -2328,7 +2328,7 @@ func (m *MsgSetName) Size() (n int) { } var l int _ = l - l = len(m.Crn) + l = len(m.Lrn) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -2418,7 +2418,7 @@ func (m *MsgDeleteNameAuthority) Size() (n int) { } var l int _ = l - l = len(m.Crn) + l = len(m.Lrn) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -2962,7 +2962,7 @@ func (m *MsgSetName) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Crn", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Lrn", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2990,7 +2990,7 @@ func (m *MsgSetName) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Crn = string(dAtA[iNdEx:postIndex]) + m.Lrn = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -3550,7 +3550,7 @@ func (m *MsgDeleteNameAuthority) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Crn", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Lrn", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3578,7 +3578,7 @@ func (m *MsgDeleteNameAuthority) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Crn = string(dAtA[iNdEx:postIndex]) + m.Lrn = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 {