Use LRN abbrevation for names

This commit is contained in:
Prathamesh Musale 2024-02-27 17:51:31 +05:30
parent c79b7bea7d
commit 53a666c281
14 changed files with 849 additions and 849 deletions

File diff suppressed because it is too large Load Diff

View File

@ -25,8 +25,8 @@ const (
Query_GetRecordsByBondId_FullMethodName = "/cerc.registry.v1.Query/GetRecordsByBondId" Query_GetRecordsByBondId_FullMethodName = "/cerc.registry.v1.Query/GetRecordsByBondId"
Query_NameRecords_FullMethodName = "/cerc.registry.v1.Query/NameRecords" Query_NameRecords_FullMethodName = "/cerc.registry.v1.Query/NameRecords"
Query_Whois_FullMethodName = "/cerc.registry.v1.Query/Whois" Query_Whois_FullMethodName = "/cerc.registry.v1.Query/Whois"
Query_LookupCrn_FullMethodName = "/cerc.registry.v1.Query/LookupCrn" Query_LookupLrn_FullMethodName = "/cerc.registry.v1.Query/LookupLrn"
Query_ResolveCrn_FullMethodName = "/cerc.registry.v1.Query/ResolveCrn" Query_ResolveLrn_FullMethodName = "/cerc.registry.v1.Query/ResolveLrn"
Query_GetRegistryModuleBalance_FullMethodName = "/cerc.registry.v1.Query/GetRegistryModuleBalance" 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) NameRecords(ctx context.Context, in *QueryNameRecordsRequest, opts ...grpc.CallOption) (*QueryNameRecordsResponse, error)
// Whois method retrieve the name authority info // Whois method retrieve the name authority info
Whois(ctx context.Context, in *QueryWhoisRequest, opts ...grpc.CallOption) (*QueryWhoisResponse, error) Whois(ctx context.Context, in *QueryWhoisRequest, opts ...grpc.CallOption) (*QueryWhoisResponse, error)
// LookupCrn // LookupLrn
LookupCrn(ctx context.Context, in *QueryLookupCrnRequest, opts ...grpc.CallOption) (*QueryLookupCrnResponse, error) LookupLrn(ctx context.Context, in *QueryLookupLrnRequest, opts ...grpc.CallOption) (*QueryLookupLrnResponse, error)
// ResolveCrn // ResolveLrn
ResolveCrn(ctx context.Context, in *QueryResolveCrnRequest, opts ...grpc.CallOption) (*QueryResolveCrnResponse, error) ResolveLrn(ctx context.Context, in *QueryResolveLrnRequest, opts ...grpc.CallOption) (*QueryResolveLrnResponse, error)
// Get registry module balance // Get registry module balance
GetRegistryModuleBalance(ctx context.Context, in *QueryGetRegistryModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetRegistryModuleBalanceResponse, error) 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 return out, nil
} }
func (c *queryClient) LookupCrn(ctx context.Context, in *QueryLookupCrnRequest, opts ...grpc.CallOption) (*QueryLookupCrnResponse, error) { func (c *queryClient) LookupLrn(ctx context.Context, in *QueryLookupLrnRequest, opts ...grpc.CallOption) (*QueryLookupLrnResponse, error) {
out := new(QueryLookupCrnResponse) out := new(QueryLookupLrnResponse)
err := c.cc.Invoke(ctx, Query_LookupCrn_FullMethodName, in, out, opts...) err := c.cc.Invoke(ctx, Query_LookupLrn_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *queryClient) ResolveCrn(ctx context.Context, in *QueryResolveCrnRequest, opts ...grpc.CallOption) (*QueryResolveCrnResponse, error) { func (c *queryClient) ResolveLrn(ctx context.Context, in *QueryResolveLrnRequest, opts ...grpc.CallOption) (*QueryResolveLrnResponse, error) {
out := new(QueryResolveCrnResponse) out := new(QueryResolveLrnResponse)
err := c.cc.Invoke(ctx, Query_ResolveCrn_FullMethodName, in, out, opts...) err := c.cc.Invoke(ctx, Query_ResolveLrn_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -159,10 +159,10 @@ type QueryServer interface {
NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error)
// Whois method retrieve the name authority info // Whois method retrieve the name authority info
Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error) Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error)
// LookupCrn // LookupLrn
LookupCrn(context.Context, *QueryLookupCrnRequest) (*QueryLookupCrnResponse, error) LookupLrn(context.Context, *QueryLookupLrnRequest) (*QueryLookupLrnResponse, error)
// ResolveCrn // ResolveLrn
ResolveCrn(context.Context, *QueryResolveCrnRequest) (*QueryResolveCrnResponse, error) ResolveLrn(context.Context, *QueryResolveLrnRequest) (*QueryResolveLrnResponse, error)
// Get registry module balance // Get registry module balance
GetRegistryModuleBalance(context.Context, *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) GetRegistryModuleBalance(context.Context, *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error)
mustEmbedUnimplementedQueryServer() mustEmbedUnimplementedQueryServer()
@ -190,11 +190,11 @@ func (UnimplementedQueryServer) NameRecords(context.Context, *QueryNameRecordsRe
func (UnimplementedQueryServer) Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error) { func (UnimplementedQueryServer) Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Whois not implemented") return nil, status.Errorf(codes.Unimplemented, "method Whois not implemented")
} }
func (UnimplementedQueryServer) LookupCrn(context.Context, *QueryLookupCrnRequest) (*QueryLookupCrnResponse, error) { func (UnimplementedQueryServer) LookupLrn(context.Context, *QueryLookupLrnRequest) (*QueryLookupLrnResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LookupCrn not implemented") return nil, status.Errorf(codes.Unimplemented, "method LookupLrn not implemented")
} }
func (UnimplementedQueryServer) ResolveCrn(context.Context, *QueryResolveCrnRequest) (*QueryResolveCrnResponse, error) { func (UnimplementedQueryServer) ResolveLrn(context.Context, *QueryResolveLrnRequest) (*QueryResolveLrnResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ResolveCrn not implemented") return nil, status.Errorf(codes.Unimplemented, "method ResolveLrn not implemented")
} }
func (UnimplementedQueryServer) GetRegistryModuleBalance(context.Context, *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) { func (UnimplementedQueryServer) GetRegistryModuleBalance(context.Context, *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRegistryModuleBalance not implemented") 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) return interceptor(ctx, in, info, handler)
} }
func _Query_LookupCrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_LookupLrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryLookupCrnRequest) in := new(QueryLookupLrnRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(QueryServer).LookupCrn(ctx, in) return srv.(QueryServer).LookupLrn(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: Query_LookupCrn_FullMethodName, FullMethod: Query_LookupLrn_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { 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) return interceptor(ctx, in, info, handler)
} }
func _Query_ResolveCrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_ResolveLrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryResolveCrnRequest) in := new(QueryResolveLrnRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(QueryServer).ResolveCrn(ctx, in) return srv.(QueryServer).ResolveLrn(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: Query_ResolveCrn_FullMethodName, FullMethod: Query_ResolveLrn_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { 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) return interceptor(ctx, in, info, handler)
} }
@ -406,12 +406,12 @@ var Query_ServiceDesc = grpc.ServiceDesc{
Handler: _Query_Whois_Handler, Handler: _Query_Whois_Handler,
}, },
{ {
MethodName: "LookupCrn", MethodName: "LookupLrn",
Handler: _Query_LookupCrn_Handler, Handler: _Query_LookupLrn_Handler,
}, },
{ {
MethodName: "ResolveCrn", MethodName: "ResolveLrn",
Handler: _Query_ResolveCrn_Handler, Handler: _Query_ResolveLrn_Handler,
}, },
{ {
MethodName: "GetRegistryModuleBalance", MethodName: "GetRegistryModuleBalance",

View File

@ -1573,7 +1573,7 @@ func (x *fastReflection_Payload) ProtoMethods() *protoiface.Methods {
var ( var (
md_MsgSetName protoreflect.MessageDescriptor md_MsgSetName protoreflect.MessageDescriptor
fd_MsgSetName_crn protoreflect.FieldDescriptor fd_MsgSetName_lrn protoreflect.FieldDescriptor
fd_MsgSetName_cid protoreflect.FieldDescriptor fd_MsgSetName_cid protoreflect.FieldDescriptor
fd_MsgSetName_signer protoreflect.FieldDescriptor fd_MsgSetName_signer protoreflect.FieldDescriptor
) )
@ -1581,7 +1581,7 @@ var (
func init() { func init() {
file_cerc_registry_v1_tx_proto_init() file_cerc_registry_v1_tx_proto_init()
md_MsgSetName = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgSetName") 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_cid = md_MsgSetName.Fields().ByName("cid")
fd_MsgSetName_signer = md_MsgSetName.Fields().ByName("signer") 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 // While iterating, mutating operations may only be performed
// on the current field descriptor. // on the current field descriptor.
func (x *fastReflection_MsgSetName) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { func (x *fastReflection_MsgSetName) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Crn != "" { if x.Lrn != "" {
value := protoreflect.ValueOfString(x.Crn) value := protoreflect.ValueOfString(x.Lrn)
if !f(fd_MsgSetName_crn, value) { if !f(fd_MsgSetName_lrn, value) {
return 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. // a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgSetName) Has(fd protoreflect.FieldDescriptor) bool { func (x *fastReflection_MsgSetName) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() { switch fd.FullName() {
case "cerc.registry.v1.MsgSetName.crn": case "cerc.registry.v1.MsgSetName.lrn":
return x.Crn != "" return x.Lrn != ""
case "cerc.registry.v1.MsgSetName.cid": case "cerc.registry.v1.MsgSetName.cid":
return x.Cid != "" return x.Cid != ""
case "cerc.registry.v1.MsgSetName.signer": 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. // Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetName) Clear(fd protoreflect.FieldDescriptor) { func (x *fastReflection_MsgSetName) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() { switch fd.FullName() {
case "cerc.registry.v1.MsgSetName.crn": case "cerc.registry.v1.MsgSetName.lrn":
x.Crn = "" x.Lrn = ""
case "cerc.registry.v1.MsgSetName.cid": case "cerc.registry.v1.MsgSetName.cid":
x.Cid = "" x.Cid = ""
case "cerc.registry.v1.MsgSetName.signer": 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. // of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgSetName) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { func (x *fastReflection_MsgSetName) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() { switch descriptor.FullName() {
case "cerc.registry.v1.MsgSetName.crn": case "cerc.registry.v1.MsgSetName.lrn":
value := x.Crn value := x.Lrn
return protoreflect.ValueOfString(value) return protoreflect.ValueOfString(value)
case "cerc.registry.v1.MsgSetName.cid": case "cerc.registry.v1.MsgSetName.cid":
value := x.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. // Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetName) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { func (x *fastReflection_MsgSetName) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() { switch fd.FullName() {
case "cerc.registry.v1.MsgSetName.crn": case "cerc.registry.v1.MsgSetName.lrn":
x.Crn = value.Interface().(string) x.Lrn = value.Interface().(string)
case "cerc.registry.v1.MsgSetName.cid": case "cerc.registry.v1.MsgSetName.cid":
x.Cid = value.Interface().(string) x.Cid = value.Interface().(string)
case "cerc.registry.v1.MsgSetName.signer": 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. // Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetName) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { func (x *fastReflection_MsgSetName) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() { switch fd.FullName() {
case "cerc.registry.v1.MsgSetName.crn": case "cerc.registry.v1.MsgSetName.lrn":
panic(fmt.Errorf("field crn of message cerc.registry.v1.MsgSetName is not mutable")) panic(fmt.Errorf("field lrn of message cerc.registry.v1.MsgSetName is not mutable"))
case "cerc.registry.v1.MsgSetName.cid": case "cerc.registry.v1.MsgSetName.cid":
panic(fmt.Errorf("field cid of message cerc.registry.v1.MsgSetName is not mutable")) panic(fmt.Errorf("field cid of message cerc.registry.v1.MsgSetName is not mutable"))
case "cerc.registry.v1.MsgSetName.signer": 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. // For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgSetName) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { func (x *fastReflection_MsgSetName) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() { switch fd.FullName() {
case "cerc.registry.v1.MsgSetName.crn": case "cerc.registry.v1.MsgSetName.lrn":
return protoreflect.ValueOfString("") return protoreflect.ValueOfString("")
case "cerc.registry.v1.MsgSetName.cid": case "cerc.registry.v1.MsgSetName.cid":
return protoreflect.ValueOfString("") return protoreflect.ValueOfString("")
@ -1877,7 +1877,7 @@ func (x *fastReflection_MsgSetName) ProtoMethods() *protoiface.Methods {
var n int var n int
var l int var l int
_ = l _ = l
l = len(x.Crn) l = len(x.Lrn)
if l > 0 { if l > 0 {
n += 1 + l + runtime.Sov(uint64(l)) n += 1 + l + runtime.Sov(uint64(l))
} }
@ -1932,10 +1932,10 @@ func (x *fastReflection_MsgSetName) ProtoMethods() *protoiface.Methods {
i-- i--
dAtA[i] = 0x12 dAtA[i] = 0x12
} }
if len(x.Crn) > 0 { if len(x.Lrn) > 0 {
i -= len(x.Crn) i -= len(x.Lrn)
copy(dAtA[i:], x.Crn) copy(dAtA[i:], x.Lrn)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Crn))) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Lrn)))
i-- i--
dAtA[i] = 0xa dAtA[i] = 0xa
} }
@ -1990,7 +1990,7 @@ func (x *fastReflection_MsgSetName) ProtoMethods() *protoiface.Methods {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { 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 var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -2018,7 +2018,7 @@ func (x *fastReflection_MsgSetName) ProtoMethods() *protoiface.Methods {
if postIndex > l { if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 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 iNdEx = postIndex
case 2: case 2:
if wireType != 2 { if wireType != 2 {
@ -4285,14 +4285,14 @@ func (x *fastReflection_MsgSetAuthorityBondResponse) ProtoMethods() *protoiface.
var ( var (
md_MsgDeleteNameAuthority protoreflect.MessageDescriptor md_MsgDeleteNameAuthority protoreflect.MessageDescriptor
fd_MsgDeleteNameAuthority_crn protoreflect.FieldDescriptor fd_MsgDeleteNameAuthority_lrn protoreflect.FieldDescriptor
fd_MsgDeleteNameAuthority_signer protoreflect.FieldDescriptor fd_MsgDeleteNameAuthority_signer protoreflect.FieldDescriptor
) )
func init() { func init() {
file_cerc_registry_v1_tx_proto_init() file_cerc_registry_v1_tx_proto_init()
md_MsgDeleteNameAuthority = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgDeleteNameAuthority") 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") 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 // While iterating, mutating operations may only be performed
// on the current field descriptor. // on the current field descriptor.
func (x *fastReflection_MsgDeleteNameAuthority) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { func (x *fastReflection_MsgDeleteNameAuthority) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Crn != "" { if x.Lrn != "" {
value := protoreflect.ValueOfString(x.Crn) value := protoreflect.ValueOfString(x.Lrn)
if !f(fd_MsgDeleteNameAuthority_crn, value) { if !f(fd_MsgDeleteNameAuthority_lrn, value) {
return return
} }
} }
@ -4388,8 +4388,8 @@ func (x *fastReflection_MsgDeleteNameAuthority) Range(f func(protoreflect.FieldD
// a repeated field is populated if it is non-empty. // a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgDeleteNameAuthority) Has(fd protoreflect.FieldDescriptor) bool { func (x *fastReflection_MsgDeleteNameAuthority) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() { switch fd.FullName() {
case "cerc.registry.v1.MsgDeleteNameAuthority.crn": case "cerc.registry.v1.MsgDeleteNameAuthority.lrn":
return x.Crn != "" return x.Lrn != ""
case "cerc.registry.v1.MsgDeleteNameAuthority.signer": case "cerc.registry.v1.MsgDeleteNameAuthority.signer":
return x.Signer != "" return x.Signer != ""
default: default:
@ -4408,8 +4408,8 @@ func (x *fastReflection_MsgDeleteNameAuthority) Has(fd protoreflect.FieldDescrip
// Clear is a mutating operation and unsafe for concurrent use. // Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgDeleteNameAuthority) Clear(fd protoreflect.FieldDescriptor) { func (x *fastReflection_MsgDeleteNameAuthority) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() { switch fd.FullName() {
case "cerc.registry.v1.MsgDeleteNameAuthority.crn": case "cerc.registry.v1.MsgDeleteNameAuthority.lrn":
x.Crn = "" x.Lrn = ""
case "cerc.registry.v1.MsgDeleteNameAuthority.signer": case "cerc.registry.v1.MsgDeleteNameAuthority.signer":
x.Signer = "" x.Signer = ""
default: default:
@ -4428,8 +4428,8 @@ func (x *fastReflection_MsgDeleteNameAuthority) Clear(fd protoreflect.FieldDescr
// of the value; to obtain a mutable reference, use Mutable. // of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgDeleteNameAuthority) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { func (x *fastReflection_MsgDeleteNameAuthority) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() { switch descriptor.FullName() {
case "cerc.registry.v1.MsgDeleteNameAuthority.crn": case "cerc.registry.v1.MsgDeleteNameAuthority.lrn":
value := x.Crn value := x.Lrn
return protoreflect.ValueOfString(value) return protoreflect.ValueOfString(value)
case "cerc.registry.v1.MsgDeleteNameAuthority.signer": case "cerc.registry.v1.MsgDeleteNameAuthority.signer":
value := x.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. // Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgDeleteNameAuthority) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { func (x *fastReflection_MsgDeleteNameAuthority) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() { switch fd.FullName() {
case "cerc.registry.v1.MsgDeleteNameAuthority.crn": case "cerc.registry.v1.MsgDeleteNameAuthority.lrn":
x.Crn = value.Interface().(string) x.Lrn = value.Interface().(string)
case "cerc.registry.v1.MsgDeleteNameAuthority.signer": case "cerc.registry.v1.MsgDeleteNameAuthority.signer":
x.Signer = value.Interface().(string) x.Signer = value.Interface().(string)
default: default:
@ -4478,8 +4478,8 @@ func (x *fastReflection_MsgDeleteNameAuthority) Set(fd protoreflect.FieldDescrip
// Mutable is a mutating operation and unsafe for concurrent use. // Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgDeleteNameAuthority) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { func (x *fastReflection_MsgDeleteNameAuthority) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() { switch fd.FullName() {
case "cerc.registry.v1.MsgDeleteNameAuthority.crn": case "cerc.registry.v1.MsgDeleteNameAuthority.lrn":
panic(fmt.Errorf("field crn of message cerc.registry.v1.MsgDeleteNameAuthority is not mutable")) panic(fmt.Errorf("field lrn of message cerc.registry.v1.MsgDeleteNameAuthority is not mutable"))
case "cerc.registry.v1.MsgDeleteNameAuthority.signer": case "cerc.registry.v1.MsgDeleteNameAuthority.signer":
panic(fmt.Errorf("field signer of message cerc.registry.v1.MsgDeleteNameAuthority is not mutable")) panic(fmt.Errorf("field signer of message cerc.registry.v1.MsgDeleteNameAuthority is not mutable"))
default: 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. // For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgDeleteNameAuthority) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { func (x *fastReflection_MsgDeleteNameAuthority) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() { switch fd.FullName() {
case "cerc.registry.v1.MsgDeleteNameAuthority.crn": case "cerc.registry.v1.MsgDeleteNameAuthority.lrn":
return protoreflect.ValueOfString("") return protoreflect.ValueOfString("")
case "cerc.registry.v1.MsgDeleteNameAuthority.signer": case "cerc.registry.v1.MsgDeleteNameAuthority.signer":
return protoreflect.ValueOfString("") return protoreflect.ValueOfString("")
@ -4568,7 +4568,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho
var n int var n int
var l int var l int
_ = l _ = l
l = len(x.Crn) l = len(x.Lrn)
if l > 0 { if l > 0 {
n += 1 + l + runtime.Sov(uint64(l)) n += 1 + l + runtime.Sov(uint64(l))
} }
@ -4612,10 +4612,10 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho
i-- i--
dAtA[i] = 0x12 dAtA[i] = 0x12
} }
if len(x.Crn) > 0 { if len(x.Lrn) > 0 {
i -= len(x.Crn) i -= len(x.Lrn)
copy(dAtA[i:], x.Crn) copy(dAtA[i:], x.Lrn)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Crn))) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Lrn)))
i-- i--
dAtA[i] = 0xa dAtA[i] = 0xa
} }
@ -4670,7 +4670,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { 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 var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -4698,7 +4698,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho
if postIndex > l { if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 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 iNdEx = postIndex
case 2: case 2:
if wireType != 2 { if wireType != 2 {
@ -9602,7 +9602,7 @@ type MsgSetName struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields 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"` Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"`
Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,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} return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{3}
} }
func (x *MsgSetName) GetCrn() string { func (x *MsgSetName) GetLrn() string {
if x != nil { if x != nil {
return x.Crn return x.Lrn
} }
return "" return ""
} }
@ -9840,7 +9840,7 @@ type MsgDeleteNameAuthority struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields 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"` 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} return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{9}
} }
func (x *MsgDeleteNameAuthority) GetCrn() string { func (x *MsgDeleteNameAuthority) GetLrn() string {
if x != nil { if x != nil {
return x.Crn return x.Lrn
} }
return "" 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, 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, 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, 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, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x72, 0x6e, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x72, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 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, 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, 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, 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, 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, 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, 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, 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, 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, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x44, 0x65,

View File

@ -47,7 +47,7 @@ type MsgClient interface {
DissociateRecords(ctx context.Context, in *MsgDissociateRecords, opts ...grpc.CallOption) (*MsgDissociateRecordsResponse, error) DissociateRecords(ctx context.Context, in *MsgDissociateRecords, opts ...grpc.CallOption) (*MsgDissociateRecordsResponse, error)
// ReassociateRecords // ReassociateRecords
ReassociateRecords(ctx context.Context, in *MsgReassociateRecords, opts ...grpc.CallOption) (*MsgReassociateRecordsResponse, error) 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) SetName(ctx context.Context, in *MsgSetName, opts ...grpc.CallOption) (*MsgSetNameResponse, error)
// Reserve name // Reserve name
ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error)
@ -171,7 +171,7 @@ type MsgServer interface {
DissociateRecords(context.Context, *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error) DissociateRecords(context.Context, *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error)
// ReassociateRecords // ReassociateRecords
ReassociateRecords(context.Context, *MsgReassociateRecords) (*MsgReassociateRecordsResponse, error) 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) SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error)
// Reserve name // Reserve name
ReserveName(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) ReserveName(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error)

View File

@ -42,13 +42,13 @@ service Query {
option (google.api.http).get = "/cerc/registry/v1/whois/{name}"; option (google.api.http).get = "/cerc/registry/v1/whois/{name}";
} }
// LookupCrn // LookupLrn
rpc LookupCrn(QueryLookupCrnRequest) returns (QueryLookupCrnResponse) { rpc LookupLrn(QueryLookupLrnRequest) returns (QueryLookupLrnResponse) {
option (google.api.http).get = "/cerc/registry/v1/lookup"; option (google.api.http).get = "/cerc/registry/v1/lookup";
} }
// ResolveCrn // ResolveLrn
rpc ResolveCrn(QueryResolveCrnRequest) returns (QueryResolveCrnResponse) { rpc ResolveLrn(QueryResolveLrnRequest) returns (QueryResolveLrnResponse) {
option (google.api.http).get = "/cerc/registry/v1/resolve"; option (google.api.http).get = "/cerc/registry/v1/resolve";
} }
@ -161,23 +161,23 @@ message QueryWhoisResponse {
]; ];
} }
// QueryLookupCrnRequest is request type for LookupCrn // QueryLookupLrnRequest is request type for LookupLrn
message QueryLookupCrnRequest { message QueryLookupLrnRequest {
string crn = 1; string lrn = 1;
} }
// QueryLookupCrnResponse is response type for QueryLookupCrnRequest // QueryLookupLrnResponse is response type for QueryLookupLrnRequest
message QueryLookupCrnResponse { message QueryLookupLrnResponse {
NameRecord name = 1; NameRecord name = 1;
} }
// QueryResolveCrnRequest is request type for ResolveCrn // QueryResolveLrnRequest is request type for ResolveLrn
message QueryResolveCrnRequest { message QueryResolveLrnRequest {
string crn = 1; string lrn = 1;
} }
// QueryResolveCrnResponse is response type for QueryResolveCrnRequest // QueryResolveLrnResponse is response type for QueryResolveLrnRequest
message QueryResolveCrnResponse { message QueryResolveLrnResponse {
Record record = 1; Record record = 1;
} }

View File

@ -43,7 +43,7 @@ service Msg {
option (google.api.http).post = "/cerc/registry/v1/reassociate_records"; 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) { rpc SetName(MsgSetName) returns (MsgSetNameResponse) {
option (google.api.http).post = "/cerc/registry/v1/set_name"; option (google.api.http).post = "/cerc/registry/v1/set_name";
} }
@ -91,7 +91,7 @@ message Payload {
message MsgSetName { message MsgSetName {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string crn = 1; string lrn = 1;
string cid = 2; string cid = 2;
string signer = 3; string signer = 3;
} }
@ -129,7 +129,7 @@ message MsgSetAuthorityBondResponse {}
message MsgDeleteNameAuthority { message MsgDeleteNameAuthority {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string crn = 1; string lrn = 1;
string signer = 2; string signer = 2;
} }

View File

@ -19,7 +19,7 @@ const (
AttributeKeyNewBondId = "new-bond-id" AttributeKeyNewBondId = "new-bond-id"
AttributeKeyCID = "cid" AttributeKeyCID = "cid"
AttributeKeyName = "name" AttributeKeyName = "name"
AttributeKeyCRN = "crn" AttributeKeyLRN = "lrn"
AttributeKeyRecordId = "record-id" AttributeKeyRecordId = "record-id"
AttributeValueCategory = ModuleName AttributeValueCategory = ModuleName
) )

View File

@ -67,7 +67,7 @@ func (ms msgServer) SetName(c context.Context, msg *registrytypes.MsgSetName) (*
sdk.NewEvent( sdk.NewEvent(
registrytypes.EventTypeSetRecord, registrytypes.EventTypeSetRecord,
sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer), 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.NewAttribute(registrytypes.AttributeKeyCID, msg.Cid),
), ),
sdk.NewEvent( sdk.NewEvent(
@ -160,7 +160,7 @@ func (ms msgServer) DeleteName(c context.Context, msg *registrytypes.MsgDeleteNa
sdk.NewEvent( sdk.NewEvent(
registrytypes.EventTypeDeleteName, registrytypes.EventTypeDeleteName,
sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer), sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer),
sdk.NewAttribute(registrytypes.AttributeKeyCRN, msg.Crn), sdk.NewAttribute(registrytypes.AttributeKeyLRN, msg.Lrn),
), ),
sdk.NewEvent( sdk.NewEvent(
sdk.EventTypeMessage, sdk.EventTypeMessage,

View File

@ -57,13 +57,13 @@ func (k Keeper) ListNameAuthorityRecords(ctx sdk.Context) (map[string]registryty
} }
// HasNameRecord - checks if a name record exists. // HasNameRecord - checks if a name record exists.
func (k Keeper) HasNameRecord(ctx sdk.Context, crn string) (bool, error) { func (k Keeper) HasNameRecord(ctx sdk.Context, lrn string) (bool, error) {
return k.NameRecords.Has(ctx, crn) return k.NameRecords.Has(ctx, lrn)
} }
// GetNameRecord - gets a name record from the store. // GetNameRecord - gets a name record from the store.
func (k Keeper) GetNameRecord(ctx sdk.Context, crn string) (*registrytypes.NameRecord, error) { func (k Keeper) GetNameRecord(ctx sdk.Context, lrn string) (*registrytypes.NameRecord, error) {
nameRecord, err := k.NameRecords.Get(ctx, crn) nameRecord, err := k.NameRecords.Get(ctx, lrn)
if err != nil { if err != nil {
if errors.Is(err, collections.ErrNotFound) { if errors.Is(err, collections.ErrNotFound) {
return nil, nil 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. // 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) { func (k Keeper) LookupNameRecord(ctx sdk.Context, lrn string) (*registrytypes.NameRecord, error) {
_, _, authority, err := k.getAuthority(ctx, crn) _, _, authority, err := k.getAuthority(ctx, lrn)
if err != nil || authority.Status != registrytypes.AuthorityActive { if err != nil || authority.Status != registrytypes.AuthorityActive {
// If authority is not active (or any other error), lookup fails. // If authority is not active (or any other error), lookup fails.
return nil, nil return nil, nil
} }
nameRecord, err := k.GetNameRecord(ctx, crn) nameRecord, err := k.GetNameRecord(ctx, lrn)
// Name record may not exist. // Name record may not exist.
if nameRecord == nil { if nameRecord == nil {
@ -115,9 +115,9 @@ func (k Keeper) ListNameRecords(ctx sdk.Context) ([]registrytypes.NameEntry, err
} }
// SaveNameRecord - sets a name record. // 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 var nameRecord registrytypes.NameRecord
existingNameRecord, err := k.GetNameRecord(ctx, crn) existingNameRecord, err := k.GetNameRecord(ctx, lrn)
if err != nil { if err != nil {
return err return err
} }
@ -132,21 +132,21 @@ func (k Keeper) SaveNameRecord(ctx sdk.Context, crn string, id string) error {
Height: uint64(ctx.BlockHeight()), 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 { func (k Keeper) SetName(ctx sdk.Context, msg registrytypes.MsgSetName) error {
signerAddress, err := sdk.AccAddressFromBech32(msg.Signer) signerAddress, err := sdk.AccAddressFromBech32(msg.Signer)
if err != nil { if err != nil {
return err return err
} }
err = k.checkCRNAccess(ctx, signerAddress, msg.Crn) err = k.checkLRNAccess(ctx, signerAddress, msg.Lrn)
if err != nil { if err != nil {
return err return err
} }
nameRecord, err := k.LookupNameRecord(ctx, msg.Crn) nameRecord, err := k.LookupNameRecord(ctx, msg.Lrn)
if err != nil { if err != nil {
return err return err
} }
@ -154,7 +154,7 @@ func (k Keeper) SetName(ctx sdk.Context, msg registrytypes.MsgSetName) error {
return nil return nil
} }
return k.SaveNameRecord(ctx, msg.Crn, msg.Cid) return k.SaveNameRecord(ctx, msg.Lrn, msg.Cid)
} }
// SaveNameAuthority creates the NameAuthority record. // 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. // ReserveAuthority reserves a name authority.
func (k Keeper) ReserveAuthority(ctx sdk.Context, msg registrytypes.MsgReserveAuthority) error { func (k Keeper) ReserveAuthority(ctx sdk.Context, msg registrytypes.MsgReserveAuthority) error {
crn := fmt.Sprintf("crn://%s", msg.GetName()) lrn := fmt.Sprintf("lrn://%s", msg.GetName())
parsedCrn, err := url.Parse(crn) parsedLrn, err := url.Parse(lrn)
if err != nil { if err != nil {
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid name") return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid name")
} }
name := parsedCrn.Host name := parsedLrn.Host
if fmt.Sprintf("crn://%s", name) != crn { if fmt.Sprintf("lrn://%s", name) != lrn {
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid name") return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid name")
} }
@ -352,32 +352,32 @@ func (k Keeper) SetAuthorityBond(ctx sdk.Context, msg registrytypes.MsgSetAuthor
return nil 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 { func (k Keeper) DeleteName(ctx sdk.Context, msg registrytypes.MsgDeleteNameAuthority) error {
signerAddress, err := sdk.AccAddressFromBech32(msg.Signer) signerAddress, err := sdk.AccAddressFromBech32(msg.Signer)
if err != nil { if err != nil {
return err return err
} }
err = k.checkCRNAccess(ctx, signerAddress, msg.Crn) err = k.checkLRNAccess(ctx, signerAddress, msg.Lrn)
if err != nil { if err != nil {
return err return err
} }
crnExists, err := k.HasNameRecord(ctx, msg.Crn) lrnExists, err := k.HasNameRecord(ctx, msg.Lrn)
if err != nil { if err != nil {
return err return err
} }
if !crnExists { if !lrnExists {
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Name not found.") return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Name not found.")
} }
// Set CID to empty string. // Set CID to empty string.
return k.SaveNameRecord(ctx, msg.Crn, "") return k.SaveNameRecord(ctx, msg.Lrn, "")
} }
// ResolveCRN resolves a CRN to a record. // ResolveLRN resolves a LRN to a record.
func (k Keeper) ResolveCRN(ctx sdk.Context, crn string) (*registrytypes.Record, error) { func (k Keeper) ResolveLRN(ctx sdk.Context, lrn string) (*registrytypes.Record, error) {
_, _, authority, err := k.getAuthority(ctx, crn) _, _, authority, err := k.getAuthority(ctx, lrn)
if err != nil || authority.Status != registrytypes.AuthorityActive { if err != nil || authority.Status != registrytypes.AuthorityActive {
// If authority is not active (or any other error), resolution fails. // If authority is not active (or any other error), resolution fails.
return nil, err 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. // Name should not resolve if it's stale.
// i.e. authority was registered later than the name. // 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 { if err != nil {
return nil, err return nil, err
} }
@ -396,8 +396,8 @@ func (k Keeper) ResolveCRN(ctx sdk.Context, crn string) (*registrytypes.Record,
return record, nil return record, nil
} }
func (k Keeper) resolveCRNRecord(ctx sdk.Context, crn string) (*registrytypes.Record, *registrytypes.NameRecord, error) { func (k Keeper) resolveLRNRecord(ctx sdk.Context, lrn string) (*registrytypes.Record, *registrytypes.NameRecord, error) {
nameRecord, err := k.GetNameRecord(ctx, crn) nameRecord, err := k.GetNameRecord(ctx, lrn)
if nameRecord == nil { if nameRecord == nil {
return nil, nil, err return nil, nil, err
} }
@ -423,13 +423,13 @@ func (k Keeper) resolveCRNRecord(ctx sdk.Context, crn string) (*registrytypes.Re
return &record, nameRecord, nil return &record, nameRecord, nil
} }
func (k Keeper) getAuthority(ctx sdk.Context, crn string) (string, *url.URL, *registrytypes.NameAuthority, error) { func (k Keeper) getAuthority(ctx sdk.Context, lrn string) (string, *url.URL, *registrytypes.NameAuthority, error) {
parsedCRN, err := url.Parse(crn) parsedLRN, err := url.Parse(lrn)
if err != nil { 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 has, err := k.HasNameAuthority(ctx, name); !has {
if err != nil { if err != nil {
return "", nil, nil, err 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 "", 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 { func (k Keeper) checkLRNAccess(ctx sdk.Context, signer sdk.AccAddress, lrn string) error {
name, parsedCRN, authority, err := k.getAuthority(ctx, crn) name, parsedLRN, authority, err := k.getAuthority(ctx, lrn)
if err != nil { if err != nil {
return err return err
} }
formattedCRN := fmt.Sprintf("crn://%s%s", name, parsedCRN.RequestURI()) formattedLRN := fmt.Sprintf("lrn://%s%s", name, parsedLRN.RequestURI())
if formattedCRN != crn { if formattedLRN != lrn {
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid CRN.") return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Invalid LRN.")
} }
if authority.OwnerAddress != signer.String() { if authority.OwnerAddress != signer.String() {

View File

@ -120,19 +120,19 @@ func (qs queryServer) Whois(c context.Context, request *registrytypes.QueryWhois
return &registrytypes.QueryWhoisResponse{NameAuthority: nameAuthority}, nil return &registrytypes.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) 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 { if err != nil {
return nil, err return nil, err
} }
if !crnExists { if !lrnExists {
return nil, errorsmod.Wrap(sdkerrors.ErrUnknownRequest, "CRN not found.") 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 nameRecord == nil {
if err != nil { if err != nil {
return nil, err 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 nil, errorsmod.Wrap(sdkerrors.ErrUnknownRequest, "name record not found.")
} }
return &registrytypes.QueryLookupCrnResponse{Name: nameRecord}, nil return &registrytypes.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) ctx := sdk.UnwrapSDKContext(c)
crn := req.GetCrn() lrn := req.GetLrn()
record, err := qs.k.ResolveCRN(ctx, crn) record, err := qs.k.ResolveLRN(ctx, lrn)
if record == nil { if record == nil {
if err != nil { if err != nil {
return nil, err 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 nil, errorsmod.Wrap(sdkerrors.ErrUnknownRequest, "record not found.")
} }
return &registrytypes.QueryResolveCrnResponse{Record: record}, nil return &registrytypes.QueryResolveLrnResponse{Record: record}, nil
} }

View File

@ -58,19 +58,19 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
PositionalArgs: []*autocliv1.PositionalArgDescriptor{}, PositionalArgs: []*autocliv1.PositionalArgDescriptor{},
}, },
{ {
RpcMethod: "LookupCrn", RpcMethod: "LookupLrn",
Use: "lookup [crn]", Use: "lookup [lrn]",
Short: "Get naming info for CRN", Short: "Get naming info for LRN",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{ PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "crn"}, {ProtoField: "lrn"},
}, },
}, },
{ {
RpcMethod: "ResolveCrn", RpcMethod: "ResolveLrn",
Use: "resolve [crn]", Use: "resolve [lrn]",
Short: "Resolve CRN to record", Short: "Resolve LRN to record",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{ PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "crn"}, {ProtoField: "lrn"},
}, },
}, },
{ {
@ -112,19 +112,19 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
}, },
{ {
RpcMethod: "SetName", RpcMethod: "SetName",
Use: "set-name [crn] [cid]", Use: "set-name [lrn] [cid]",
Short: "Set CRN to CID mapping", Short: "Set LRN to CID mapping",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{ PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "crn"}, {ProtoField: "lrn"},
{ProtoField: "cid"}, {ProtoField: "cid"},
}, },
}, },
{ {
RpcMethod: "DeleteName", RpcMethod: "DeleteName",
Use: "delete-name [crn]", Use: "delete-name [lrn]",
Short: "Delete CRN", Short: "Delete LRN",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{ PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "crn"}, {ProtoField: "lrn"},
}, },
}, },
{ {

View File

@ -911,23 +911,23 @@ func (m *QueryWhoisResponse) GetNameAuthority() NameAuthority {
return NameAuthority{} return NameAuthority{}
} }
// QueryLookupCrnRequest is request type for LookupCrn // QueryLookupLrnRequest is request type for LookupLrn
type QueryLookupCrnRequest struct { type QueryLookupLrnRequest 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"`
} }
func (m *QueryLookupCrnRequest) Reset() { *m = QueryLookupCrnRequest{} } func (m *QueryLookupLrnRequest) Reset() { *m = QueryLookupLrnRequest{} }
func (m *QueryLookupCrnRequest) String() string { return proto.CompactTextString(m) } func (m *QueryLookupLrnRequest) String() string { return proto.CompactTextString(m) }
func (*QueryLookupCrnRequest) ProtoMessage() {} func (*QueryLookupLrnRequest) ProtoMessage() {}
func (*QueryLookupCrnRequest) Descriptor() ([]byte, []int) { func (*QueryLookupLrnRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c642b96b6da07a30, []int{12} 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) 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 { if deterministic {
return xxx_messageInfo_QueryLookupCrnRequest.Marshal(b, m, deterministic) return xxx_messageInfo_QueryLookupLrnRequest.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -937,42 +937,42 @@ func (m *QueryLookupCrnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryLookupCrnRequest) XXX_Merge(src proto.Message) { func (m *QueryLookupLrnRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryLookupCrnRequest.Merge(m, src) xxx_messageInfo_QueryLookupLrnRequest.Merge(m, src)
} }
func (m *QueryLookupCrnRequest) XXX_Size() int { func (m *QueryLookupLrnRequest) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryLookupCrnRequest) XXX_DiscardUnknown() { func (m *QueryLookupLrnRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryLookupCrnRequest.DiscardUnknown(m) 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 { if m != nil {
return m.Crn return m.Lrn
} }
return "" return ""
} }
// QueryLookupCrnResponse is response type for QueryLookupCrnRequest // QueryLookupLrnResponse is response type for QueryLookupLrnRequest
type QueryLookupCrnResponse struct { type QueryLookupLrnResponse struct {
Name *NameRecord `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Name *NameRecord `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
} }
func (m *QueryLookupCrnResponse) Reset() { *m = QueryLookupCrnResponse{} } func (m *QueryLookupLrnResponse) Reset() { *m = QueryLookupLrnResponse{} }
func (m *QueryLookupCrnResponse) String() string { return proto.CompactTextString(m) } func (m *QueryLookupLrnResponse) String() string { return proto.CompactTextString(m) }
func (*QueryLookupCrnResponse) ProtoMessage() {} func (*QueryLookupLrnResponse) ProtoMessage() {}
func (*QueryLookupCrnResponse) Descriptor() ([]byte, []int) { func (*QueryLookupLrnResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c642b96b6da07a30, []int{13} 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) 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 { if deterministic {
return xxx_messageInfo_QueryLookupCrnResponse.Marshal(b, m, deterministic) return xxx_messageInfo_QueryLookupLrnResponse.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -982,42 +982,42 @@ func (m *QueryLookupCrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]by
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryLookupCrnResponse) XXX_Merge(src proto.Message) { func (m *QueryLookupLrnResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryLookupCrnResponse.Merge(m, src) xxx_messageInfo_QueryLookupLrnResponse.Merge(m, src)
} }
func (m *QueryLookupCrnResponse) XXX_Size() int { func (m *QueryLookupLrnResponse) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryLookupCrnResponse) XXX_DiscardUnknown() { func (m *QueryLookupLrnResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryLookupCrnResponse.DiscardUnknown(m) 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 { if m != nil {
return m.Name return m.Name
} }
return nil return nil
} }
// QueryResolveCrnRequest is request type for ResolveCrn // QueryResolveLrnRequest is request type for ResolveLrn
type QueryResolveCrnRequest struct { type QueryResolveLrnRequest 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"`
} }
func (m *QueryResolveCrnRequest) Reset() { *m = QueryResolveCrnRequest{} } func (m *QueryResolveLrnRequest) Reset() { *m = QueryResolveLrnRequest{} }
func (m *QueryResolveCrnRequest) String() string { return proto.CompactTextString(m) } func (m *QueryResolveLrnRequest) String() string { return proto.CompactTextString(m) }
func (*QueryResolveCrnRequest) ProtoMessage() {} func (*QueryResolveLrnRequest) ProtoMessage() {}
func (*QueryResolveCrnRequest) Descriptor() ([]byte, []int) { func (*QueryResolveLrnRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c642b96b6da07a30, []int{14} 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) 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 { if deterministic {
return xxx_messageInfo_QueryResolveCrnRequest.Marshal(b, m, deterministic) return xxx_messageInfo_QueryResolveLrnRequest.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -1027,42 +1027,42 @@ func (m *QueryResolveCrnRequest) XXX_Marshal(b []byte, deterministic bool) ([]by
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryResolveCrnRequest) XXX_Merge(src proto.Message) { func (m *QueryResolveLrnRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryResolveCrnRequest.Merge(m, src) xxx_messageInfo_QueryResolveLrnRequest.Merge(m, src)
} }
func (m *QueryResolveCrnRequest) XXX_Size() int { func (m *QueryResolveLrnRequest) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryResolveCrnRequest) XXX_DiscardUnknown() { func (m *QueryResolveLrnRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryResolveCrnRequest.DiscardUnknown(m) 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 { if m != nil {
return m.Crn return m.Lrn
} }
return "" return ""
} }
// QueryResolveCrnResponse is response type for QueryResolveCrnRequest // QueryResolveLrnResponse is response type for QueryResolveLrnRequest
type QueryResolveCrnResponse struct { type QueryResolveLrnResponse struct {
Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
} }
func (m *QueryResolveCrnResponse) Reset() { *m = QueryResolveCrnResponse{} } func (m *QueryResolveLrnResponse) Reset() { *m = QueryResolveLrnResponse{} }
func (m *QueryResolveCrnResponse) String() string { return proto.CompactTextString(m) } func (m *QueryResolveLrnResponse) String() string { return proto.CompactTextString(m) }
func (*QueryResolveCrnResponse) ProtoMessage() {} func (*QueryResolveLrnResponse) ProtoMessage() {}
func (*QueryResolveCrnResponse) Descriptor() ([]byte, []int) { func (*QueryResolveLrnResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c642b96b6da07a30, []int{15} 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) 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 { if deterministic {
return xxx_messageInfo_QueryResolveCrnResponse.Marshal(b, m, deterministic) return xxx_messageInfo_QueryResolveLrnResponse.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -1072,19 +1072,19 @@ func (m *QueryResolveCrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]b
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryResolveCrnResponse) XXX_Merge(src proto.Message) { func (m *QueryResolveLrnResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryResolveCrnResponse.Merge(m, src) xxx_messageInfo_QueryResolveLrnResponse.Merge(m, src)
} }
func (m *QueryResolveCrnResponse) XXX_Size() int { func (m *QueryResolveLrnResponse) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryResolveCrnResponse) XXX_DiscardUnknown() { func (m *QueryResolveLrnResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryResolveCrnResponse.DiscardUnknown(m) 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 { if m != nil {
return m.Record return m.Record
} }
@ -1244,10 +1244,10 @@ func init() {
proto.RegisterType((*QueryNameRecordsResponse)(nil), "cerc.registry.v1.QueryNameRecordsResponse") proto.RegisterType((*QueryNameRecordsResponse)(nil), "cerc.registry.v1.QueryNameRecordsResponse")
proto.RegisterType((*QueryWhoisRequest)(nil), "cerc.registry.v1.QueryWhoisRequest") proto.RegisterType((*QueryWhoisRequest)(nil), "cerc.registry.v1.QueryWhoisRequest")
proto.RegisterType((*QueryWhoisResponse)(nil), "cerc.registry.v1.QueryWhoisResponse") proto.RegisterType((*QueryWhoisResponse)(nil), "cerc.registry.v1.QueryWhoisResponse")
proto.RegisterType((*QueryLookupCrnRequest)(nil), "cerc.registry.v1.QueryLookupCrnRequest") proto.RegisterType((*QueryLookupLrnRequest)(nil), "cerc.registry.v1.QueryLookupLrnRequest")
proto.RegisterType((*QueryLookupCrnResponse)(nil), "cerc.registry.v1.QueryLookupCrnResponse") proto.RegisterType((*QueryLookupLrnResponse)(nil), "cerc.registry.v1.QueryLookupLrnResponse")
proto.RegisterType((*QueryResolveCrnRequest)(nil), "cerc.registry.v1.QueryResolveCrnRequest") proto.RegisterType((*QueryResolveLrnRequest)(nil), "cerc.registry.v1.QueryResolveLrnRequest")
proto.RegisterType((*QueryResolveCrnResponse)(nil), "cerc.registry.v1.QueryResolveCrnResponse") proto.RegisterType((*QueryResolveLrnResponse)(nil), "cerc.registry.v1.QueryResolveLrnResponse")
proto.RegisterType((*QueryGetRegistryModuleBalanceRequest)(nil), "cerc.registry.v1.QueryGetRegistryModuleBalanceRequest") proto.RegisterType((*QueryGetRegistryModuleBalanceRequest)(nil), "cerc.registry.v1.QueryGetRegistryModuleBalanceRequest")
proto.RegisterType((*QueryGetRegistryModuleBalanceResponse)(nil), "cerc.registry.v1.QueryGetRegistryModuleBalanceResponse") proto.RegisterType((*QueryGetRegistryModuleBalanceResponse)(nil), "cerc.registry.v1.QueryGetRegistryModuleBalanceResponse")
proto.RegisterType((*AccountBalance)(nil), "cerc.registry.v1.AccountBalance") 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) } func init() { proto.RegisterFile("cerc/registry/v1/query.proto", fileDescriptor_c642b96b6da07a30) }
var fileDescriptor_c642b96b6da07a30 = []byte{ var fileDescriptor_c642b96b6da07a30 = []byte{
// 1296 bytes of a gzipped FileDescriptorProto // 1295 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4d, 0x6f, 0x1b, 0xc5,
0x17, 0xf7, 0xda, 0xb1, 0xdd, 0x3c, 0x7f, 0x5b, 0xf5, 0x3b, 0x84, 0x76, 0xbb, 0x0d, 0xb6, 0x59, 0x1b, 0xf7, 0xda, 0xb1, 0xdd, 0x3c, 0xfe, 0xb7, 0xea, 0x7f, 0x08, 0xed, 0x66, 0x13, 0x6c, 0xb3,
0xda, 0xc4, 0x49, 0xe4, 0xdd, 0x26, 0x91, 0xda, 0x2a, 0xe2, 0x12, 0x57, 0x34, 0x2e, 0xa5, 0x55, 0xe4, 0xc5, 0x49, 0xe4, 0xdd, 0x26, 0x91, 0xda, 0x2a, 0xe2, 0x12, 0x23, 0x1a, 0x97, 0xbe, 0xa8,
0xb3, 0x48, 0x45, 0xe2, 0x52, 0x8d, 0x77, 0x17, 0x67, 0xc9, 0x7a, 0xc7, 0xdd, 0x5d, 0xbb, 0x2c, 0x59, 0xa4, 0x22, 0x71, 0xa9, 0xc6, 0xde, 0xc5, 0x59, 0xb2, 0xde, 0x71, 0x77, 0xd7, 0x2e, 0x4b,
0x51, 0x25, 0x84, 0x00, 0x71, 0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
0x11, 0xd5, 0xc6, 0x3a, 0x71, 0x2c, 0x7d, 0xc3, 0x50, 0x3f, 0x88, 0xb5, 0x35, 0x72, 0xf4, 0xff, 0xa8, 0x16, 0xae, 0x13, 0xdb, 0xac, 0x6f, 0xe9, 0xea, 0x07, 0x91, 0xb6, 0x5a, 0x86, 0xfe, 0xdf,
0xf6, 0xe6, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x75, 0xb8, 0x19, 0x5d, 0x42, 0x10, 0x00, 0x00, 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. // 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) NameRecords(ctx context.Context, in *QueryNameRecordsRequest, opts ...grpc.CallOption) (*QueryNameRecordsResponse, error)
// Whois method retrieve the name authority info // Whois method retrieve the name authority info
Whois(ctx context.Context, in *QueryWhoisRequest, opts ...grpc.CallOption) (*QueryWhoisResponse, error) Whois(ctx context.Context, in *QueryWhoisRequest, opts ...grpc.CallOption) (*QueryWhoisResponse, error)
// LookupCrn // LookupLrn
LookupCrn(ctx context.Context, in *QueryLookupCrnRequest, opts ...grpc.CallOption) (*QueryLookupCrnResponse, error) LookupLrn(ctx context.Context, in *QueryLookupLrnRequest, opts ...grpc.CallOption) (*QueryLookupLrnResponse, error)
// ResolveCrn // ResolveLrn
ResolveCrn(ctx context.Context, in *QueryResolveCrnRequest, opts ...grpc.CallOption) (*QueryResolveCrnResponse, error) ResolveLrn(ctx context.Context, in *QueryResolveLrnRequest, opts ...grpc.CallOption) (*QueryResolveLrnResponse, error)
// Get registry module balance // Get registry module balance
GetRegistryModuleBalance(ctx context.Context, in *QueryGetRegistryModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetRegistryModuleBalanceResponse, error) 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 return out, nil
} }
func (c *queryClient) LookupCrn(ctx context.Context, in *QueryLookupCrnRequest, opts ...grpc.CallOption) (*QueryLookupCrnResponse, error) { func (c *queryClient) LookupLrn(ctx context.Context, in *QueryLookupLrnRequest, opts ...grpc.CallOption) (*QueryLookupLrnResponse, error) {
out := new(QueryLookupCrnResponse) out := new(QueryLookupLrnResponse)
err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/LookupCrn", in, out, opts...) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/LookupLrn", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *queryClient) ResolveCrn(ctx context.Context, in *QueryResolveCrnRequest, opts ...grpc.CallOption) (*QueryResolveCrnResponse, error) { func (c *queryClient) ResolveLrn(ctx context.Context, in *QueryResolveLrnRequest, opts ...grpc.CallOption) (*QueryResolveLrnResponse, error) {
out := new(QueryResolveCrnResponse) out := new(QueryResolveLrnResponse)
err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/ResolveCrn", in, out, opts...) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/ResolveLrn", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -1475,10 +1475,10 @@ type QueryServer interface {
NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error)
// Whois method retrieve the name authority info // Whois method retrieve the name authority info
Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error) Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error)
// LookupCrn // LookupLrn
LookupCrn(context.Context, *QueryLookupCrnRequest) (*QueryLookupCrnResponse, error) LookupLrn(context.Context, *QueryLookupLrnRequest) (*QueryLookupLrnResponse, error)
// ResolveCrn // ResolveLrn
ResolveCrn(context.Context, *QueryResolveCrnRequest) (*QueryResolveCrnResponse, error) ResolveLrn(context.Context, *QueryResolveLrnRequest) (*QueryResolveLrnResponse, error)
// Get registry module balance // Get registry module balance
GetRegistryModuleBalance(context.Context, *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) 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) { func (*UnimplementedQueryServer) Whois(ctx context.Context, req *QueryWhoisRequest) (*QueryWhoisResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Whois not implemented") return nil, status.Errorf(codes.Unimplemented, "method Whois not implemented")
} }
func (*UnimplementedQueryServer) LookupCrn(ctx context.Context, req *QueryLookupCrnRequest) (*QueryLookupCrnResponse, error) { func (*UnimplementedQueryServer) LookupLrn(ctx context.Context, req *QueryLookupLrnRequest) (*QueryLookupLrnResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LookupCrn not implemented") return nil, status.Errorf(codes.Unimplemented, "method LookupLrn not implemented")
} }
func (*UnimplementedQueryServer) ResolveCrn(ctx context.Context, req *QueryResolveCrnRequest) (*QueryResolveCrnResponse, error) { func (*UnimplementedQueryServer) ResolveLrn(ctx context.Context, req *QueryResolveLrnRequest) (*QueryResolveLrnResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ResolveCrn not implemented") return nil, status.Errorf(codes.Unimplemented, "method ResolveLrn not implemented")
} }
func (*UnimplementedQueryServer) GetRegistryModuleBalance(ctx context.Context, req *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) { func (*UnimplementedQueryServer) GetRegistryModuleBalance(ctx context.Context, req *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRegistryModuleBalance not implemented") 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) return interceptor(ctx, in, info, handler)
} }
func _Query_LookupCrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_LookupLrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryLookupCrnRequest) in := new(QueryLookupLrnRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(QueryServer).LookupCrn(ctx, in) return srv.(QueryServer).LookupLrn(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/cerc.registry.v1.Query/LookupCrn", FullMethod: "/cerc.registry.v1.Query/LookupLrn",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { 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) return interceptor(ctx, in, info, handler)
} }
func _Query_ResolveCrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_ResolveLrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryResolveCrnRequest) in := new(QueryResolveLrnRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(QueryServer).ResolveCrn(ctx, in) return srv.(QueryServer).ResolveLrn(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/cerc.registry.v1.Query/ResolveCrn", FullMethod: "/cerc.registry.v1.Query/ResolveLrn",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { 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) return interceptor(ctx, in, info, handler)
} }
@ -1710,12 +1710,12 @@ var _Query_serviceDesc = grpc.ServiceDesc{
Handler: _Query_Whois_Handler, Handler: _Query_Whois_Handler,
}, },
{ {
MethodName: "LookupCrn", MethodName: "LookupLrn",
Handler: _Query_LookupCrn_Handler, Handler: _Query_LookupLrn_Handler,
}, },
{ {
MethodName: "ResolveCrn", MethodName: "ResolveLrn",
Handler: _Query_ResolveCrn_Handler, Handler: _Query_ResolveLrn_Handler,
}, },
{ {
MethodName: "GetRegistryModuleBalance", MethodName: "GetRegistryModuleBalance",
@ -2465,7 +2465,7 @@ func (m *QueryWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryLookupCrnRequest) Marshal() (dAtA []byte, err error) { func (m *QueryLookupLrnRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2475,27 +2475,27 @@ func (m *QueryLookupCrnRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryLookupCrnRequest) MarshalTo(dAtA []byte) (int, error) { func (m *QueryLookupLrnRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[: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 := len(dAtA)
_ = i _ = i
var l int var l int
_ = l _ = l
if len(m.Crn) > 0 { if len(m.Lrn) > 0 {
i -= len(m.Crn) i -= len(m.Lrn)
copy(dAtA[i:], m.Crn) copy(dAtA[i:], m.Lrn)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Crn))) i = encodeVarintQuery(dAtA, i, uint64(len(m.Lrn)))
i-- i--
dAtA[i] = 0xa dAtA[i] = 0xa
} }
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryLookupCrnResponse) Marshal() (dAtA []byte, err error) { func (m *QueryLookupLrnResponse) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2505,12 +2505,12 @@ func (m *QueryLookupCrnResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryLookupCrnResponse) MarshalTo(dAtA []byte) (int, error) { func (m *QueryLookupLrnResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[: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 := len(dAtA)
_ = i _ = i
var l int var l int
@ -2530,7 +2530,7 @@ func (m *QueryLookupCrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryResolveCrnRequest) Marshal() (dAtA []byte, err error) { func (m *QueryResolveLrnRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2540,27 +2540,27 @@ func (m *QueryResolveCrnRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryResolveCrnRequest) MarshalTo(dAtA []byte) (int, error) { func (m *QueryResolveLrnRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[: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 := len(dAtA)
_ = i _ = i
var l int var l int
_ = l _ = l
if len(m.Crn) > 0 { if len(m.Lrn) > 0 {
i -= len(m.Crn) i -= len(m.Lrn)
copy(dAtA[i:], m.Crn) copy(dAtA[i:], m.Lrn)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Crn))) i = encodeVarintQuery(dAtA, i, uint64(len(m.Lrn)))
i-- i--
dAtA[i] = 0xa dAtA[i] = 0xa
} }
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryResolveCrnResponse) Marshal() (dAtA []byte, err error) { func (m *QueryResolveLrnResponse) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2570,12 +2570,12 @@ func (m *QueryResolveCrnResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryResolveCrnResponse) MarshalTo(dAtA []byte) (int, error) { func (m *QueryResolveLrnResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[: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 := len(dAtA)
_ = i _ = i
var l int var l int
@ -3026,20 +3026,20 @@ func (m *QueryWhoisResponse) Size() (n int) {
return n return n
} }
func (m *QueryLookupCrnRequest) Size() (n int) { func (m *QueryLookupLrnRequest) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
var l int var l int
_ = l _ = l
l = len(m.Crn) l = len(m.Lrn)
if l > 0 { if l > 0 {
n += 1 + l + sovQuery(uint64(l)) n += 1 + l + sovQuery(uint64(l))
} }
return n return n
} }
func (m *QueryLookupCrnResponse) Size() (n int) { func (m *QueryLookupLrnResponse) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -3052,20 +3052,20 @@ func (m *QueryLookupCrnResponse) Size() (n int) {
return n return n
} }
func (m *QueryResolveCrnRequest) Size() (n int) { func (m *QueryResolveLrnRequest) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
var l int var l int
_ = l _ = l
l = len(m.Crn) l = len(m.Lrn)
if l > 0 { if l > 0 {
n += 1 + l + sovQuery(uint64(l)) n += 1 + l + sovQuery(uint64(l))
} }
return n return n
} }
func (m *QueryResolveCrnResponse) Size() (n int) { func (m *QueryResolveLrnResponse) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -4914,7 +4914,7 @@ func (m *QueryWhoisResponse) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryLookupCrnRequest) Unmarshal(dAtA []byte) error { func (m *QueryLookupLrnRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -4937,15 +4937,15 @@ func (m *QueryLookupCrnRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { 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 { 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 { switch fieldNum {
case 1: case 1:
if wireType != 2 { 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 var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -4973,7 +4973,7 @@ func (m *QueryLookupCrnRequest) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
m.Crn = string(dAtA[iNdEx:postIndex]) m.Lrn = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex
@ -4996,7 +4996,7 @@ func (m *QueryLookupCrnRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryLookupCrnResponse) Unmarshal(dAtA []byte) error { func (m *QueryLookupLrnResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -5019,10 +5019,10 @@ func (m *QueryLookupCrnResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { 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 { 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 { switch fieldNum {
case 1: case 1:
@ -5082,7 +5082,7 @@ func (m *QueryLookupCrnResponse) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryResolveCrnRequest) Unmarshal(dAtA []byte) error { func (m *QueryResolveLrnRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -5105,15 +5105,15 @@ func (m *QueryResolveCrnRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { 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 { 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 { switch fieldNum {
case 1: case 1:
if wireType != 2 { 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 var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -5141,7 +5141,7 @@ func (m *QueryResolveCrnRequest) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
m.Crn = string(dAtA[iNdEx:postIndex]) m.Lrn = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex
@ -5164,7 +5164,7 @@ func (m *QueryResolveCrnRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryResolveCrnResponse) Unmarshal(dAtA []byte) error { func (m *QueryResolveLrnResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -5187,10 +5187,10 @@ func (m *QueryResolveCrnResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { 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 { 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 { switch fieldNum {
case 1: case 1:

View File

@ -304,73 +304,73 @@ func local_request_Query_Whois_0(ctx context.Context, marshaler runtime.Marshale
} }
var ( 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) { 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 QueryLookupCrnRequest var protoReq QueryLookupLrnRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil { if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 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) 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 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) { 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 QueryLookupCrnRequest var protoReq QueryLookupLrnRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil { if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 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) 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 return msg, metadata, err
} }
var ( 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) { 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 QueryResolveCrnRequest var protoReq QueryResolveLrnRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil { if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 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) 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 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) { 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 QueryResolveCrnRequest var protoReq QueryResolveLrnRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil { if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 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) 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 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()) ctx, cancel := context.WithCancel(req.Context())
defer cancel() defer cancel()
var stream runtime.ServerTransportStream 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) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return 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()) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md) ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil { if err != nil {
@ -556,11 +556,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
return 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()) ctx, cancel := context.WithCancel(req.Context())
defer cancel() defer cancel()
var stream runtime.ServerTransportStream 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) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return 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()) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md) ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil { if err != nil {
@ -579,7 +579,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
return 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()) ctx, cancel := context.WithCancel(req.Context())
defer cancel() defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 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) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return 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) ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil { if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return 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()) ctx, cancel := context.WithCancel(req.Context())
defer cancel() defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 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) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return 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) ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil { if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return 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_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))) 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_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 forward_Query_GetRegistryModuleBalance_0 = runtime.ForwardResponseMessage
) )

View File

@ -191,7 +191,7 @@ func (m *Payload) GetSignatures() []Signature {
// MsgSetName // MsgSetName
type MsgSetName struct { 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"` Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"`
Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,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 var xxx_messageInfo_MsgSetName proto.InternalMessageInfo
func (m *MsgSetName) GetCrn() string { func (m *MsgSetName) GetLrn() string {
if m != nil { if m != nil {
return m.Crn return m.Lrn
} }
return "" return ""
} }
@ -486,7 +486,7 @@ var xxx_messageInfo_MsgSetAuthorityBondResponse proto.InternalMessageInfo
// MsgDeleteNameAuthority // MsgDeleteNameAuthority
type MsgDeleteNameAuthority struct { 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"` 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 var xxx_messageInfo_MsgDeleteNameAuthority proto.InternalMessageInfo
func (m *MsgDeleteNameAuthority) GetCrn() string { func (m *MsgDeleteNameAuthority) GetLrn() string {
if m != nil { if m != nil {
return m.Crn return m.Lrn
} }
return "" return ""
} }
@ -1067,7 +1067,7 @@ func init() {
func init() { proto.RegisterFile("cerc/registry/v1/tx.proto", fileDescriptor_3c6eb2e5a4d8fa03) } func init() { proto.RegisterFile("cerc/registry/v1/tx.proto", fileDescriptor_3c6eb2e5a4d8fa03) }
var fileDescriptor_3c6eb2e5a4d8fa03 = []byte{ var fileDescriptor_3c6eb2e5a4d8fa03 = []byte{
// 1036 bytes of a gzipped FileDescriptorProto // 1037 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00,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, 0xc7, 0x14, 0x72, 0xeb, 0x3a, 0x85, 0x20,
0x72, 0x82, 0x3a, 0x56, 0xd4, 0x8c, 0xb7, 0x82, 0x77, 0x48, 0x01, 0xc3, 0x37, 0x08, 0xde, 0x4a, 0x68, 0x72, 0x82, 0x3a, 0x56, 0xd4, 0x8c, 0xb7, 0x82, 0x77, 0x48, 0x01, 0xc3, 0x37, 0x08, 0xde,
0x7e, 0x03, 0x70, 0x66, 0x8c, 0x84, 0x46, 0xde, 0xbf, 0x5e, 0x23, 0x48, 0x5a, 0x9c, 0x04, 0xe3, 0x4a, 0x7e, 0x03, 0x70, 0x66, 0x8c, 0x84, 0x46, 0xde, 0xbf, 0x5e, 0x23, 0x48, 0x5a, 0x9c, 0x04,
0x7a, 0x9a, 0x44, 0x1c, 0x0e, 0x3f, 0x67, 0xe9, 0x7b, 0x04, 0xab, 0x33, 0xad, 0xbb, 0x93, 0x19, 0xe3, 0x7a, 0x9a, 0x44, 0x1c, 0x0e, 0x3f, 0x67, 0xe9, 0x7b, 0x04, 0xab, 0x33, 0xad, 0xbb, 0x93,
0x28, 0x29, 0x92, 0xef, 0x2f, 0x20, 0x12, 0x38, 0xf7, 0x38, 0xce, 0x0e, 0xde, 0x4e, 0xe3, 0x18, 0x19, 0x28, 0x29, 0x92, 0xef, 0x2f, 0x20, 0x12, 0x38, 0xf7, 0x38, 0xce, 0x0e, 0xde, 0x4e, 0xe3,
0x56, 0x92, 0xe7, 0x67, 0x04, 0x77, 0xd2, 0xfd, 0xda, 0xbc, 0x26, 0x5a, 0xa0, 0x93, 0xdb, 0x8b, 0x18, 0x56, 0x92, 0xe7, 0x67, 0x04, 0x77, 0xd2, 0xfd, 0xda, 0xbc, 0x26, 0x5a, 0xa0, 0x93, 0xdb,
0xe9, 0x04, 0xd8, 0x7b, 0x1c, 0xac, 0x89, 0x77, 0xe7, 0x82, 0x39, 0x01, 0xc5, 0x2f, 0x08, 0xa4, 0x8b, 0xe9, 0x04, 0xd8, 0x7b, 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7e, 0xc7, 0x50, 0x9f, 0x08, 0xff, 0x67, 0xcb, 0xfc, 0xef, 0xcf, 0xfb, 0xff, 0x06, 0x3e, 0xb5, 0xad, 0x7e, 0xc7, 0x50, 0x9f, 0x08, 0xff, 0x67, 0xcb, 0xfc, 0xef, 0xcf, 0xfb, 0xff,
0x00, 0x00, 0xff, 0xff, 0xb4, 0x03, 0xa6, 0xe5, 0x9b, 0x0d, 0x00, 0x00, 0x06, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x74, 0xfe, 0xc2, 0x9b, 0x0d, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // 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) DissociateRecords(ctx context.Context, in *MsgDissociateRecords, opts ...grpc.CallOption) (*MsgDissociateRecordsResponse, error)
// ReassociateRecords // ReassociateRecords
ReassociateRecords(ctx context.Context, in *MsgReassociateRecords, opts ...grpc.CallOption) (*MsgReassociateRecordsResponse, error) 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) SetName(ctx context.Context, in *MsgSetName, opts ...grpc.CallOption) (*MsgSetNameResponse, error)
// Reserve name // Reserve name
ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error)
@ -1281,7 +1281,7 @@ type MsgServer interface {
DissociateRecords(context.Context, *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error) DissociateRecords(context.Context, *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error)
// ReassociateRecords // ReassociateRecords
ReassociateRecords(context.Context, *MsgReassociateRecords) (*MsgReassociateRecordsResponse, error) 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) SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error)
// Reserve name // Reserve name
ReserveName(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) ReserveName(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error)
@ -1719,10 +1719,10 @@ func (m *MsgSetName) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i-- i--
dAtA[i] = 0x12 dAtA[i] = 0x12
} }
if len(m.Crn) > 0 { if len(m.Lrn) > 0 {
i -= len(m.Crn) i -= len(m.Lrn)
copy(dAtA[i:], m.Crn) copy(dAtA[i:], m.Lrn)
i = encodeVarintTx(dAtA, i, uint64(len(m.Crn))) i = encodeVarintTx(dAtA, i, uint64(len(m.Lrn)))
i-- i--
dAtA[i] = 0xa dAtA[i] = 0xa
} }
@ -1913,10 +1913,10 @@ func (m *MsgDeleteNameAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error)
i-- i--
dAtA[i] = 0x12 dAtA[i] = 0x12
} }
if len(m.Crn) > 0 { if len(m.Lrn) > 0 {
i -= len(m.Crn) i -= len(m.Lrn)
copy(dAtA[i:], m.Crn) copy(dAtA[i:], m.Lrn)
i = encodeVarintTx(dAtA, i, uint64(len(m.Crn))) i = encodeVarintTx(dAtA, i, uint64(len(m.Lrn)))
i-- i--
dAtA[i] = 0xa dAtA[i] = 0xa
} }
@ -2328,7 +2328,7 @@ func (m *MsgSetName) Size() (n int) {
} }
var l int var l int
_ = l _ = l
l = len(m.Crn) l = len(m.Lrn)
if l > 0 { if l > 0 {
n += 1 + l + sovTx(uint64(l)) n += 1 + l + sovTx(uint64(l))
} }
@ -2418,7 +2418,7 @@ func (m *MsgDeleteNameAuthority) Size() (n int) {
} }
var l int var l int
_ = l _ = l
l = len(m.Crn) l = len(m.Lrn)
if l > 0 { if l > 0 {
n += 1 + l + sovTx(uint64(l)) n += 1 + l + sovTx(uint64(l))
} }
@ -2962,7 +2962,7 @@ func (m *MsgSetName) Unmarshal(dAtA []byte) error {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { 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 var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -2990,7 +2990,7 @@ func (m *MsgSetName) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
m.Crn = string(dAtA[iNdEx:postIndex]) m.Lrn = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
case 2: case 2:
if wireType != 2 { if wireType != 2 {
@ -3550,7 +3550,7 @@ func (m *MsgDeleteNameAuthority) Unmarshal(dAtA []byte) error {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { 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 var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -3578,7 +3578,7 @@ func (m *MsgDeleteNameAuthority) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
m.Crn = string(dAtA[iNdEx:postIndex]) m.Lrn = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
case 2: case 2:
if wireType != 2 { if wireType != 2 {