From 8f6f00d6b0e597759dbb2932be2103b75ec236df Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 7 Mar 2024 16:23:26 +0530 Subject: [PATCH] Rename rpc method to reserve authority and resolve type errors --- api/cerc/registry/v1/tx.pulsar.go | 662 +++++++++--------- api/cerc/registry/v1/tx_grpc.pb.go | 82 +-- gql/resolver.go | 12 +- proto/cerc/registry/v1/tx.proto | 26 +- tests/e2e/auction/grpc.go | 6 +- tests/e2e/bond/grpc.go | 2 +- tests/e2e/bond/query.go | 2 +- tests/e2e/bond/suite.go | 2 +- tests/e2e/registry/grpc.go | 4 +- tests/e2e/registry/suite.go | 6 +- .../auction/keeper/query_server_test.go | 20 +- .../bond/keeper/query_server_test.go | 14 +- .../registry/keeper/query_server_test.go | 12 +- x/auction/keeper/query_server.go | 12 +- x/bond/client/cli/query.go | 2 +- x/bond/keeper/query_server.go | 8 +- x/bond/module/autocli.go | 2 +- x/registry/client/cli/tx.go | 4 +- x/registry/codec.go | 2 +- x/registry/events.go | 18 +- x/registry/keeper/msg_server.go | 8 +- x/registry/keeper/naming_keeper.go | 2 +- x/registry/keeper/query_server.go | 8 +- x/registry/module/autocli.go | 6 +- x/registry/msgs.go | 2 +- x/registry/tx.pb.go | 310 ++++---- x/registry/tx.pb.gw.go | 170 ++--- 27 files changed, 701 insertions(+), 703 deletions(-) diff --git a/api/cerc/registry/v1/tx.pulsar.go b/api/cerc/registry/v1/tx.pulsar.go index 0e2c3895..298a864f 100644 --- a/api/cerc/registry/v1/tx.pulsar.go +++ b/api/cerc/registry/v1/tx.pulsar.go @@ -4284,27 +4284,27 @@ func (x *fastReflection_MsgSetAuthorityBondResponse) ProtoMethods() *protoiface. } var ( - md_MsgDeleteNameAuthority protoreflect.MessageDescriptor - fd_MsgDeleteNameAuthority_lrn protoreflect.FieldDescriptor - fd_MsgDeleteNameAuthority_signer protoreflect.FieldDescriptor + md_MsgDeleteName protoreflect.MessageDescriptor + fd_MsgDeleteName_lrn protoreflect.FieldDescriptor + fd_MsgDeleteName_signer protoreflect.FieldDescriptor ) func init() { file_cerc_registry_v1_tx_proto_init() - md_MsgDeleteNameAuthority = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgDeleteNameAuthority") - fd_MsgDeleteNameAuthority_lrn = md_MsgDeleteNameAuthority.Fields().ByName("lrn") - fd_MsgDeleteNameAuthority_signer = md_MsgDeleteNameAuthority.Fields().ByName("signer") + md_MsgDeleteName = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgDeleteName") + fd_MsgDeleteName_lrn = md_MsgDeleteName.Fields().ByName("lrn") + fd_MsgDeleteName_signer = md_MsgDeleteName.Fields().ByName("signer") } -var _ protoreflect.Message = (*fastReflection_MsgDeleteNameAuthority)(nil) +var _ protoreflect.Message = (*fastReflection_MsgDeleteName)(nil) -type fastReflection_MsgDeleteNameAuthority MsgDeleteNameAuthority +type fastReflection_MsgDeleteName MsgDeleteName -func (x *MsgDeleteNameAuthority) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgDeleteNameAuthority)(x) +func (x *MsgDeleteName) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDeleteName)(x) } -func (x *MsgDeleteNameAuthority) slowProtoReflect() protoreflect.Message { +func (x *MsgDeleteName) slowProtoReflect() protoreflect.Message { mi := &file_cerc_registry_v1_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4316,43 +4316,43 @@ func (x *MsgDeleteNameAuthority) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgDeleteNameAuthority_messageType fastReflection_MsgDeleteNameAuthority_messageType -var _ protoreflect.MessageType = fastReflection_MsgDeleteNameAuthority_messageType{} +var _fastReflection_MsgDeleteName_messageType fastReflection_MsgDeleteName_messageType +var _ protoreflect.MessageType = fastReflection_MsgDeleteName_messageType{} -type fastReflection_MsgDeleteNameAuthority_messageType struct{} +type fastReflection_MsgDeleteName_messageType struct{} -func (x fastReflection_MsgDeleteNameAuthority_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgDeleteNameAuthority)(nil) +func (x fastReflection_MsgDeleteName_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDeleteName)(nil) } -func (x fastReflection_MsgDeleteNameAuthority_messageType) New() protoreflect.Message { - return new(fastReflection_MsgDeleteNameAuthority) +func (x fastReflection_MsgDeleteName_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDeleteName) } -func (x fastReflection_MsgDeleteNameAuthority_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDeleteNameAuthority +func (x fastReflection_MsgDeleteName_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDeleteName } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgDeleteNameAuthority) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDeleteNameAuthority +func (x *fastReflection_MsgDeleteName) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDeleteName } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgDeleteNameAuthority) Type() protoreflect.MessageType { - return _fastReflection_MsgDeleteNameAuthority_messageType +func (x *fastReflection_MsgDeleteName) Type() protoreflect.MessageType { + return _fastReflection_MsgDeleteName_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgDeleteNameAuthority) New() protoreflect.Message { - return new(fastReflection_MsgDeleteNameAuthority) +func (x *fastReflection_MsgDeleteName) New() protoreflect.Message { + return new(fastReflection_MsgDeleteName) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgDeleteNameAuthority) Interface() protoreflect.ProtoMessage { - return (*MsgDeleteNameAuthority)(x) +func (x *fastReflection_MsgDeleteName) Interface() protoreflect.ProtoMessage { + return (*MsgDeleteName)(x) } // Range iterates over every populated field in an undefined order, @@ -4360,16 +4360,16 @@ func (x *fastReflection_MsgDeleteNameAuthority) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgDeleteNameAuthority) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgDeleteName) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Lrn != "" { value := protoreflect.ValueOfString(x.Lrn) - if !f(fd_MsgDeleteNameAuthority_lrn, value) { + if !f(fd_MsgDeleteName_lrn, value) { return } } if x.Signer != "" { value := protoreflect.ValueOfString(x.Signer) - if !f(fd_MsgDeleteNameAuthority_signer, value) { + if !f(fd_MsgDeleteName_signer, value) { return } } @@ -4386,17 +4386,17 @@ func (x *fastReflection_MsgDeleteNameAuthority) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgDeleteNameAuthority) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgDeleteName) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": + case "cerc.registry.v1.MsgDeleteName.lrn": return x.Lrn != "" - case "cerc.registry.v1.MsgDeleteNameAuthority.signer": + case "cerc.registry.v1.MsgDeleteName.signer": return x.Signer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteName")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteName does not contain field %s", fd.FullName())) } } @@ -4406,17 +4406,17 @@ func (x *fastReflection_MsgDeleteNameAuthority) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteNameAuthority) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgDeleteName) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": + case "cerc.registry.v1.MsgDeleteName.lrn": x.Lrn = "" - case "cerc.registry.v1.MsgDeleteNameAuthority.signer": + case "cerc.registry.v1.MsgDeleteName.signer": x.Signer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteName")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteName does not contain field %s", fd.FullName())) } } @@ -4426,19 +4426,19 @@ func (x *fastReflection_MsgDeleteNameAuthority) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgDeleteNameAuthority) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgDeleteName) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": + case "cerc.registry.v1.MsgDeleteName.lrn": value := x.Lrn return protoreflect.ValueOfString(value) - case "cerc.registry.v1.MsgDeleteNameAuthority.signer": + case "cerc.registry.v1.MsgDeleteName.signer": value := x.Signer return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteName")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthority does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteName does not contain field %s", descriptor.FullName())) } } @@ -4452,17 +4452,17 @@ func (x *fastReflection_MsgDeleteNameAuthority) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteNameAuthority) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgDeleteName) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": + case "cerc.registry.v1.MsgDeleteName.lrn": x.Lrn = value.Interface().(string) - case "cerc.registry.v1.MsgDeleteNameAuthority.signer": + case "cerc.registry.v1.MsgDeleteName.signer": x.Signer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteName")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteName does not contain field %s", fd.FullName())) } } @@ -4476,44 +4476,44 @@ func (x *fastReflection_MsgDeleteNameAuthority) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteNameAuthority) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgDeleteName) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": - panic(fmt.Errorf("field lrn of message cerc.registry.v1.MsgDeleteNameAuthority is not mutable")) - case "cerc.registry.v1.MsgDeleteNameAuthority.signer": - panic(fmt.Errorf("field signer of message cerc.registry.v1.MsgDeleteNameAuthority is not mutable")) + case "cerc.registry.v1.MsgDeleteName.lrn": + panic(fmt.Errorf("field lrn of message cerc.registry.v1.MsgDeleteName is not mutable")) + case "cerc.registry.v1.MsgDeleteName.signer": + panic(fmt.Errorf("field signer of message cerc.registry.v1.MsgDeleteName is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteName")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteName does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgDeleteNameAuthority) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgDeleteName) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cerc.registry.v1.MsgDeleteNameAuthority.lrn": + case "cerc.registry.v1.MsgDeleteName.lrn": return protoreflect.ValueOfString("") - case "cerc.registry.v1.MsgDeleteNameAuthority.signer": + case "cerc.registry.v1.MsgDeleteName.signer": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteName")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteName does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgDeleteNameAuthority) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgDeleteName) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.MsgDeleteNameAuthority", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.MsgDeleteName", d.FullName())) } panic("unreachable") } @@ -4521,7 +4521,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgDeleteNameAuthority) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgDeleteName) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4532,7 +4532,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteNameAuthority) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgDeleteName) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4544,7 +4544,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgDeleteNameAuthority) IsValid() bool { +func (x *fastReflection_MsgDeleteName) IsValid() bool { return x != nil } @@ -4554,9 +4554,9 @@ func (x *fastReflection_MsgDeleteNameAuthority) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgDeleteName) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgDeleteNameAuthority) + x := input.Message.Interface().(*MsgDeleteName) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4586,7 +4586,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgDeleteNameAuthority) + x := input.Message.Interface().(*MsgDeleteName) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4630,7 +4630,7 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgDeleteNameAuthority) + x := input.Message.Interface().(*MsgDeleteName) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4662,10 +4662,10 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteNameAuthority: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteName: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteNameAuthority: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteName: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4768,23 +4768,23 @@ func (x *fastReflection_MsgDeleteNameAuthority) ProtoMethods() *protoiface.Metho } var ( - md_MsgDeleteNameAuthorityResponse protoreflect.MessageDescriptor + md_MsgDeleteNameResponse protoreflect.MessageDescriptor ) func init() { file_cerc_registry_v1_tx_proto_init() - md_MsgDeleteNameAuthorityResponse = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgDeleteNameAuthorityResponse") + md_MsgDeleteNameResponse = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgDeleteNameResponse") } -var _ protoreflect.Message = (*fastReflection_MsgDeleteNameAuthorityResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgDeleteNameResponse)(nil) -type fastReflection_MsgDeleteNameAuthorityResponse MsgDeleteNameAuthorityResponse +type fastReflection_MsgDeleteNameResponse MsgDeleteNameResponse -func (x *MsgDeleteNameAuthorityResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgDeleteNameAuthorityResponse)(x) +func (x *MsgDeleteNameResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDeleteNameResponse)(x) } -func (x *MsgDeleteNameAuthorityResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgDeleteNameResponse) slowProtoReflect() protoreflect.Message { mi := &file_cerc_registry_v1_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4796,43 +4796,43 @@ func (x *MsgDeleteNameAuthorityResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgDeleteNameAuthorityResponse_messageType fastReflection_MsgDeleteNameAuthorityResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgDeleteNameAuthorityResponse_messageType{} +var _fastReflection_MsgDeleteNameResponse_messageType fastReflection_MsgDeleteNameResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgDeleteNameResponse_messageType{} -type fastReflection_MsgDeleteNameAuthorityResponse_messageType struct{} +type fastReflection_MsgDeleteNameResponse_messageType struct{} -func (x fastReflection_MsgDeleteNameAuthorityResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgDeleteNameAuthorityResponse)(nil) +func (x fastReflection_MsgDeleteNameResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDeleteNameResponse)(nil) } -func (x fastReflection_MsgDeleteNameAuthorityResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgDeleteNameAuthorityResponse) +func (x fastReflection_MsgDeleteNameResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDeleteNameResponse) } -func (x fastReflection_MsgDeleteNameAuthorityResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDeleteNameAuthorityResponse +func (x fastReflection_MsgDeleteNameResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDeleteNameResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDeleteNameAuthorityResponse +func (x *fastReflection_MsgDeleteNameResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDeleteNameResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgDeleteNameAuthorityResponse_messageType +func (x *fastReflection_MsgDeleteNameResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgDeleteNameResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) New() protoreflect.Message { - return new(fastReflection_MsgDeleteNameAuthorityResponse) +func (x *fastReflection_MsgDeleteNameResponse) New() protoreflect.Message { + return new(fastReflection_MsgDeleteNameResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) Interface() protoreflect.ProtoMessage { - return (*MsgDeleteNameAuthorityResponse)(x) +func (x *fastReflection_MsgDeleteNameResponse) Interface() protoreflect.ProtoMessage { + return (*MsgDeleteNameResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4840,7 +4840,7 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgDeleteNameResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -4854,13 +4854,13 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgDeleteNameResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameResponse does not contain field %s", fd.FullName())) } } @@ -4870,13 +4870,13 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgDeleteNameResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameResponse does not contain field %s", fd.FullName())) } } @@ -4886,13 +4886,13 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgDeleteNameResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthorityResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameResponse does not contain field %s", descriptor.FullName())) } } @@ -4906,13 +4906,13 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgDeleteNameResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameResponse does not contain field %s", fd.FullName())) } } @@ -4926,36 +4926,36 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgDeleteNameResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgDeleteNameResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgDeleteNameResponse")) } - panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cerc.registry.v1.MsgDeleteNameResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgDeleteNameResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.MsgDeleteNameAuthorityResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.MsgDeleteNameResponse", d.FullName())) } panic("unreachable") } @@ -4963,7 +4963,7 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgDeleteNameResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4974,7 +4974,7 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgDeleteNameResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4986,7 +4986,7 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) IsValid() bool { +func (x *fastReflection_MsgDeleteNameResponse) IsValid() bool { return x != nil } @@ -4996,9 +4996,9 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgDeleteNameAuthorityResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgDeleteNameResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgDeleteNameAuthorityResponse) + x := input.Message.Interface().(*MsgDeleteNameResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5020,7 +5020,7 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgDeleteNameAuthorityResponse) + x := input.Message.Interface().(*MsgDeleteNameResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5050,7 +5050,7 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgDeleteNameAuthorityResponse) + x := input.Message.Interface().(*MsgDeleteNameResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5082,10 +5082,10 @@ func (x *fastReflection_MsgDeleteNameAuthorityResponse) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteNameAuthorityResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteNameResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteNameAuthorityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteNameResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -9675,7 +9675,7 @@ func (*MsgSetNameResponse) Descriptor() ([]byte, []int) { return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{4} } -// MsgReserveName +// MsgReserveAuthority type MsgReserveAuthority struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9728,7 +9728,7 @@ func (x *MsgReserveAuthority) GetOwner() string { return "" } -// MsgReserveNameResponse +// MsgReserveAuthorityResponse type MsgReserveAuthorityResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9834,8 +9834,8 @@ func (*MsgSetAuthorityBondResponse) Descriptor() ([]byte, []int) { return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{8} } -// MsgDeleteNameAuthority -type MsgDeleteNameAuthority struct { +// MsgDeleteName +type MsgDeleteName struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -9844,8 +9844,8 @@ type MsgDeleteNameAuthority struct { Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` } -func (x *MsgDeleteNameAuthority) Reset() { - *x = MsgDeleteNameAuthority{} +func (x *MsgDeleteName) Reset() { + *x = MsgDeleteName{} if protoimpl.UnsafeEnabled { mi := &file_cerc_registry_v1_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9853,40 +9853,40 @@ func (x *MsgDeleteNameAuthority) Reset() { } } -func (x *MsgDeleteNameAuthority) String() string { +func (x *MsgDeleteName) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgDeleteNameAuthority) ProtoMessage() {} +func (*MsgDeleteName) ProtoMessage() {} -// Deprecated: Use MsgDeleteNameAuthority.ProtoReflect.Descriptor instead. -func (*MsgDeleteNameAuthority) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgDeleteName.ProtoReflect.Descriptor instead. +func (*MsgDeleteName) Descriptor() ([]byte, []int) { return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{9} } -func (x *MsgDeleteNameAuthority) GetLrn() string { +func (x *MsgDeleteName) GetLrn() string { if x != nil { return x.Lrn } return "" } -func (x *MsgDeleteNameAuthority) GetSigner() string { +func (x *MsgDeleteName) GetSigner() string { if x != nil { return x.Signer } return "" } -// MsgDeleteNameAuthorityResponse -type MsgDeleteNameAuthorityResponse struct { +// MsgDeleteNameResponse +type MsgDeleteNameResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgDeleteNameAuthorityResponse) Reset() { - *x = MsgDeleteNameAuthorityResponse{} +func (x *MsgDeleteNameResponse) Reset() { + *x = MsgDeleteNameResponse{} if protoimpl.UnsafeEnabled { mi := &file_cerc_registry_v1_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9894,14 +9894,14 @@ func (x *MsgDeleteNameAuthorityResponse) Reset() { } } -func (x *MsgDeleteNameAuthorityResponse) String() string { +func (x *MsgDeleteNameResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgDeleteNameAuthorityResponse) ProtoMessage() {} +func (*MsgDeleteNameResponse) ProtoMessage() {} -// Deprecated: Use MsgDeleteNameAuthorityResponse.ProtoReflect.Descriptor instead. -func (*MsgDeleteNameAuthorityResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgDeleteNameResponse.ProtoReflect.Descriptor instead. +func (*MsgDeleteNameResponse) Descriptor() ([]byte, []int) { return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{10} } @@ -10338,173 +10338,171 @@ var file_cerc_registry_v1_tx_proto_rawDesc = []byte{ 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x53, 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, - 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, - 0x72, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, - 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x79, 0x0a, 0x0e, 0x4d, 0x73, 0x67, - 0x52, 0x65, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x42, 0x0a, 0x09, 0x72, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x25, - 0xf2, 0xde, 0x1f, 0x21, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x08, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x12, - 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, - 0x67, 0x6e, 0x65, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e, 0x65, 0x77, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb7, - 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, - 0x6f, 0x6e, 0x64, 0x12, 0x42, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x25, 0xf2, 0xde, 0x1f, 0x21, 0x6a, 0x73, 0x6f, 0x6e, - 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, - 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x08, 0x72, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x07, 0x62, 0x6f, 0x6e, 0x64, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xf2, 0xde, 0x1f, 0x1d, 0x6a, 0x73, - 0x6f, 0x6e, 0x3a, 0x22, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, - 0x6c, 0x3a, 0x22, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x06, 0x62, 0x6f, 0x6e, - 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, - 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x41, - 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, 0x6f, - 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x12, 0x42, 0x0a, 0x09, 0x72, 0x65, 0x63, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x72, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x72, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x17, + 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x79, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x6e, 0x65, 0x77, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x42, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x25, 0xf2, 0xde, 0x1f, 0x21, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x08, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, - 0x65, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, - 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x77, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x3a, 0x0a, 0x07, 0x62, 0x6f, 0x6e, 0x64, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xf2, 0xde, 0x1f, 0x1d, 0x6a, 0x73, - 0x6f, 0x6e, 0x3a, 0x22, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, - 0x6c, 0x3a, 0x22, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x06, 0x62, 0x6f, 0x6e, - 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, - 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x44, - 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, - 0x52, 0x65, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x12, 0x49, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xf2, 0xde, 0x1f, 0x25, 0x6a, 0x73, 0x6f, - 0x6e, 0x3a, 0x22, 0x6e, 0x65, 0x77, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, - 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x77, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, - 0x64, 0x22, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x42, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x49, 0x0a, - 0x0b, 0x6f, 0x6c, 0x64, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x29, 0xf2, 0xde, 0x1f, 0x25, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x6f, 0x6c, - 0x64, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, - 0x22, 0x6f, 0x6c, 0x64, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x09, 0x6f, - 0x6c, 0x64, 0x42, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, - 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, - 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x1f, 0x0a, - 0x1d, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x8f, - 0x0b, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x79, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x12, 0x1e, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x1a, 0x26, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1e, 0x22, 0x1c, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x12, 0x81, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x12, 0x20, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x65, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb7, 0x01, 0x0a, + 0x10, 0x4d, 0x73, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, + 0x64, 0x12, 0x42, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x25, 0xf2, 0xde, 0x1f, 0x21, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, + 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x08, 0x72, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x07, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xf2, 0xde, 0x1f, 0x1d, 0x6a, 0x73, 0x6f, 0x6e, + 0x3a, 0x22, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x22, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x06, 0x62, 0x6f, 0x6e, 0x64, 0x49, + 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x41, 0x73, 0x73, + 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x7c, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, + 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x12, 0x42, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x25, 0xf2, 0xde, 0x1f, 0x21, + 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, + 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, + 0x22, 0x52, 0x08, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, + 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, + 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x77, 0x0a, + 0x14, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x3a, 0x0a, 0x07, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xf2, 0xde, 0x1f, 0x1d, 0x6a, 0x73, 0x6f, 0x6e, + 0x3a, 0x22, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x22, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x06, 0x62, 0x6f, 0x6e, 0x64, 0x49, + 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, + 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, + 0x12, 0x49, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xf2, 0xde, 0x1f, 0x25, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, + 0x22, 0x6e, 0x65, 0x77, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, + 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x77, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, + 0x52, 0x09, 0x6e, 0x65, 0x77, 0x42, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x0b, 0x6f, + 0x6c, 0x64, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x29, 0xf2, 0xde, 0x1f, 0x25, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x6f, 0x6c, 0x64, 0x5f, + 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, + 0x6c, 0x64, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x09, 0x6f, 0x6c, 0x64, + 0x42, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x0b, + 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x86, 0x0b, 0x0a, + 0x03, 0x4d, 0x73, 0x67, 0x12, 0x79, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x12, 0x1e, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x1a, 0x26, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1e, 0x22, 0x1c, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, + 0x81, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, + 0x20, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x1a, 0x28, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x1a, 0x28, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1e, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x5f, 0x72, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x89, 0x01, 0x0a, 0x0d, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, - 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x12, 0x22, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x73, - 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x1a, 0x2a, 0x2e, 0x63, 0x65, - 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, - 0x20, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, - 0x76, 0x31, 0x2f, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x6f, 0x6e, - 0x64, 0x12, 0x8d, 0x01, 0x0a, 0x0e, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, - 0x42, 0x6f, 0x6e, 0x64, 0x12, 0x23, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, 0x6f, - 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x1a, 0x2b, 0x2e, 0x63, 0x65, 0x72, 0x63, + 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x20, 0x22, 0x1e, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x5f, 0x72, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x12, 0x89, 0x01, 0x0a, 0x0d, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, + 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x12, 0x22, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x73, 0x73, 0x6f, + 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x1a, 0x2a, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x21, - 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, - 0x31, 0x2f, 0x64, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x6f, 0x6e, - 0x64, 0x12, 0x99, 0x01, 0x0a, 0x11, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, + 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x20, 0x2f, + 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x12, + 0x8d, 0x01, 0x0a, 0x0e, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, + 0x6e, 0x64, 0x12, 0x23, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, + 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x1a, 0x2b, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, - 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x1a, - 0x2e, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x24, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x69, 0x73, 0x73, 0x6f, - 0x63, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x9d, 0x01, - 0x0a, 0x12, 0x52, 0x65, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x73, 0x12, 0x27, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x61, 0x73, 0x73, - 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x1a, 0x2f, 0x2e, + 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x21, 0x2f, 0x63, + 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, + 0x64, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x12, + 0x99, 0x01, 0x0a, 0x11, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, + 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x1a, 0x2e, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x25, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x73, 0x73, 0x6f, - 0x63, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x71, 0x0a, - 0x07, 0x53, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, - 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x24, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, + 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x24, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x69, 0x73, 0x73, 0x6f, 0x63, 0x69, + 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x9d, 0x01, 0x0a, 0x12, + 0x52, 0x65, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x73, 0x12, 0x27, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x61, 0x73, 0x73, 0x6f, 0x63, + 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x1a, 0x2f, 0x2e, 0x63, 0x65, + 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x27, 0x22, 0x25, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, + 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x71, 0x0a, 0x07, 0x53, + 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, - 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x1a, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x8b, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x25, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x1a, 0x2d, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1e, - 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, - 0x31, 0x2f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x8f, - 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x2e, - 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x1a, 0x30, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1f, 0x22, 0x1d, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x96, 0x01, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x12, 0x25, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x1a, 0x2d, 0x2e, 0x63, + 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x24, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x4e, 0x61, + 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1c, 0x22, 0x1a, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x7d, + 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, - 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x26, 0x22, 0x24, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, - 0x42, 0xbf, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x2e, 0x76, 0x64, 0x62, 0x2e, 0x74, 0x6f, - 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x63, 0x6f, 0x6e, 0x69, 0x63, - 0x32, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x10, 0x43, 0x65, 0x72, 0x63, 0x2e, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x43, 0x65, - 0x72, 0x63, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x1c, 0x43, 0x65, 0x72, 0x63, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, - 0x43, 0x65, 0x72, 0x63, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x27, 0x2e, + 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1d, + 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x95, 0x01, + 0x0a, 0x10, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x12, 0x25, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x1a, 0x2d, 0x2e, 0x63, 0x65, 0x72, 0x63, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, + 0x22, 0x23, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x96, 0x01, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x12, 0x25, 0x2e, 0x63, 0x65, 0x72, + 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x6f, 0x6e, + 0x64, 0x1a, 0x2d, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x24, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x5f, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x1a, 0x05, + 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xbf, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x65, + 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x07, + 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x2e, 0x76, + 0x64, 0x62, 0x2e, 0x74, 0x6f, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, + 0x63, 0x6f, 0x6e, 0x69, 0x63, 0x32, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x65, 0x72, 0x63, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x10, + 0x43, 0x65, 0x72, 0x63, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x10, 0x43, 0x65, 0x72, 0x63, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x43, 0x65, 0x72, 0x63, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x12, 0x43, 0x65, 0x72, 0x63, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -10521,29 +10519,29 @@ func file_cerc_registry_v1_tx_proto_rawDescGZIP() []byte { var file_cerc_registry_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 21) var file_cerc_registry_v1_tx_proto_goTypes = []interface{}{ - (*MsgSetRecord)(nil), // 0: cerc.registry.v1.MsgSetRecord - (*MsgSetRecordResponse)(nil), // 1: cerc.registry.v1.MsgSetRecordResponse - (*Payload)(nil), // 2: cerc.registry.v1.Payload - (*MsgSetName)(nil), // 3: cerc.registry.v1.MsgSetName - (*MsgSetNameResponse)(nil), // 4: cerc.registry.v1.MsgSetNameResponse - (*MsgReserveAuthority)(nil), // 5: cerc.registry.v1.MsgReserveAuthority - (*MsgReserveAuthorityResponse)(nil), // 6: cerc.registry.v1.MsgReserveAuthorityResponse - (*MsgSetAuthorityBond)(nil), // 7: cerc.registry.v1.MsgSetAuthorityBond - (*MsgSetAuthorityBondResponse)(nil), // 8: cerc.registry.v1.MsgSetAuthorityBondResponse - (*MsgDeleteNameAuthority)(nil), // 9: cerc.registry.v1.MsgDeleteNameAuthority - (*MsgDeleteNameAuthorityResponse)(nil), // 10: cerc.registry.v1.MsgDeleteNameAuthorityResponse - (*MsgRenewRecord)(nil), // 11: cerc.registry.v1.MsgRenewRecord - (*MsgRenewRecordResponse)(nil), // 12: cerc.registry.v1.MsgRenewRecordResponse - (*MsgAssociateBond)(nil), // 13: cerc.registry.v1.MsgAssociateBond - (*MsgAssociateBondResponse)(nil), // 14: cerc.registry.v1.MsgAssociateBondResponse - (*MsgDissociateBond)(nil), // 15: cerc.registry.v1.MsgDissociateBond - (*MsgDissociateBondResponse)(nil), // 16: cerc.registry.v1.MsgDissociateBondResponse - (*MsgDissociateRecords)(nil), // 17: cerc.registry.v1.MsgDissociateRecords - (*MsgDissociateRecordsResponse)(nil), // 18: cerc.registry.v1.MsgDissociateRecordsResponse - (*MsgReassociateRecords)(nil), // 19: cerc.registry.v1.MsgReassociateRecords - (*MsgReassociateRecordsResponse)(nil), // 20: cerc.registry.v1.MsgReassociateRecordsResponse - (*Record)(nil), // 21: cerc.registry.v1.Record - (*Signature)(nil), // 22: cerc.registry.v1.Signature + (*MsgSetRecord)(nil), // 0: cerc.registry.v1.MsgSetRecord + (*MsgSetRecordResponse)(nil), // 1: cerc.registry.v1.MsgSetRecordResponse + (*Payload)(nil), // 2: cerc.registry.v1.Payload + (*MsgSetName)(nil), // 3: cerc.registry.v1.MsgSetName + (*MsgSetNameResponse)(nil), // 4: cerc.registry.v1.MsgSetNameResponse + (*MsgReserveAuthority)(nil), // 5: cerc.registry.v1.MsgReserveAuthority + (*MsgReserveAuthorityResponse)(nil), // 6: cerc.registry.v1.MsgReserveAuthorityResponse + (*MsgSetAuthorityBond)(nil), // 7: cerc.registry.v1.MsgSetAuthorityBond + (*MsgSetAuthorityBondResponse)(nil), // 8: cerc.registry.v1.MsgSetAuthorityBondResponse + (*MsgDeleteName)(nil), // 9: cerc.registry.v1.MsgDeleteName + (*MsgDeleteNameResponse)(nil), // 10: cerc.registry.v1.MsgDeleteNameResponse + (*MsgRenewRecord)(nil), // 11: cerc.registry.v1.MsgRenewRecord + (*MsgRenewRecordResponse)(nil), // 12: cerc.registry.v1.MsgRenewRecordResponse + (*MsgAssociateBond)(nil), // 13: cerc.registry.v1.MsgAssociateBond + (*MsgAssociateBondResponse)(nil), // 14: cerc.registry.v1.MsgAssociateBondResponse + (*MsgDissociateBond)(nil), // 15: cerc.registry.v1.MsgDissociateBond + (*MsgDissociateBondResponse)(nil), // 16: cerc.registry.v1.MsgDissociateBondResponse + (*MsgDissociateRecords)(nil), // 17: cerc.registry.v1.MsgDissociateRecords + (*MsgDissociateRecordsResponse)(nil), // 18: cerc.registry.v1.MsgDissociateRecordsResponse + (*MsgReassociateRecords)(nil), // 19: cerc.registry.v1.MsgReassociateRecords + (*MsgReassociateRecordsResponse)(nil), // 20: cerc.registry.v1.MsgReassociateRecordsResponse + (*Record)(nil), // 21: cerc.registry.v1.Record + (*Signature)(nil), // 22: cerc.registry.v1.Signature } var file_cerc_registry_v1_tx_proto_depIdxs = []int32{ 2, // 0: cerc.registry.v1.MsgSetRecord.payload:type_name -> cerc.registry.v1.Payload @@ -10556,8 +10554,8 @@ var file_cerc_registry_v1_tx_proto_depIdxs = []int32{ 17, // 7: cerc.registry.v1.Msg.DissociateRecords:input_type -> cerc.registry.v1.MsgDissociateRecords 19, // 8: cerc.registry.v1.Msg.ReassociateRecords:input_type -> cerc.registry.v1.MsgReassociateRecords 3, // 9: cerc.registry.v1.Msg.SetName:input_type -> cerc.registry.v1.MsgSetName - 5, // 10: cerc.registry.v1.Msg.ReserveName:input_type -> cerc.registry.v1.MsgReserveAuthority - 9, // 11: cerc.registry.v1.Msg.DeleteName:input_type -> cerc.registry.v1.MsgDeleteNameAuthority + 9, // 10: cerc.registry.v1.Msg.DeleteName:input_type -> cerc.registry.v1.MsgDeleteName + 5, // 11: cerc.registry.v1.Msg.ReserveAuthority:input_type -> cerc.registry.v1.MsgReserveAuthority 7, // 12: cerc.registry.v1.Msg.SetAuthorityBond:input_type -> cerc.registry.v1.MsgSetAuthorityBond 1, // 13: cerc.registry.v1.Msg.SetRecord:output_type -> cerc.registry.v1.MsgSetRecordResponse 12, // 14: cerc.registry.v1.Msg.RenewRecord:output_type -> cerc.registry.v1.MsgRenewRecordResponse @@ -10566,8 +10564,8 @@ var file_cerc_registry_v1_tx_proto_depIdxs = []int32{ 18, // 17: cerc.registry.v1.Msg.DissociateRecords:output_type -> cerc.registry.v1.MsgDissociateRecordsResponse 20, // 18: cerc.registry.v1.Msg.ReassociateRecords:output_type -> cerc.registry.v1.MsgReassociateRecordsResponse 4, // 19: cerc.registry.v1.Msg.SetName:output_type -> cerc.registry.v1.MsgSetNameResponse - 6, // 20: cerc.registry.v1.Msg.ReserveName:output_type -> cerc.registry.v1.MsgReserveAuthorityResponse - 10, // 21: cerc.registry.v1.Msg.DeleteName:output_type -> cerc.registry.v1.MsgDeleteNameAuthorityResponse + 10, // 20: cerc.registry.v1.Msg.DeleteName:output_type -> cerc.registry.v1.MsgDeleteNameResponse + 6, // 21: cerc.registry.v1.Msg.ReserveAuthority:output_type -> cerc.registry.v1.MsgReserveAuthorityResponse 8, // 22: cerc.registry.v1.Msg.SetAuthorityBond:output_type -> cerc.registry.v1.MsgSetAuthorityBondResponse 13, // [13:23] is the sub-list for method output_type 3, // [3:13] is the sub-list for method input_type @@ -10692,7 +10690,7 @@ func file_cerc_registry_v1_tx_proto_init() { } } file_cerc_registry_v1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgDeleteNameAuthority); i { + switch v := v.(*MsgDeleteName); i { case 0: return &v.state case 1: @@ -10704,7 +10702,7 @@ func file_cerc_registry_v1_tx_proto_init() { } } file_cerc_registry_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgDeleteNameAuthorityResponse); i { + switch v := v.(*MsgDeleteNameResponse); i { case 0: return &v.state case 1: diff --git a/api/cerc/registry/v1/tx_grpc.pb.go b/api/cerc/registry/v1/tx_grpc.pb.go index fc3e7cd4..d517999e 100644 --- a/api/cerc/registry/v1/tx_grpc.pb.go +++ b/api/cerc/registry/v1/tx_grpc.pb.go @@ -26,8 +26,8 @@ const ( Msg_DissociateRecords_FullMethodName = "/cerc.registry.v1.Msg/DissociateRecords" Msg_ReassociateRecords_FullMethodName = "/cerc.registry.v1.Msg/ReassociateRecords" Msg_SetName_FullMethodName = "/cerc.registry.v1.Msg/SetName" - Msg_ReserveName_FullMethodName = "/cerc.registry.v1.Msg/ReserveName" Msg_DeleteName_FullMethodName = "/cerc.registry.v1.Msg/DeleteName" + Msg_ReserveAuthority_FullMethodName = "/cerc.registry.v1.Msg/ReserveAuthority" Msg_SetAuthorityBond_FullMethodName = "/cerc.registry.v1.Msg/SetAuthorityBond" ) @@ -49,10 +49,10 @@ type MsgClient interface { ReassociateRecords(ctx context.Context, in *MsgReassociateRecords, opts ...grpc.CallOption) (*MsgReassociateRecordsResponse, error) // SetName will store the name with given lrn and name SetName(ctx context.Context, in *MsgSetName, opts ...grpc.CallOption) (*MsgSetNameResponse, error) - // Reserve name - ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) // Delete Name method will remove authority name - DeleteName(ctx context.Context, in *MsgDeleteNameAuthority, opts ...grpc.CallOption) (*MsgDeleteNameAuthorityResponse, error) + DeleteName(ctx context.Context, in *MsgDeleteName, opts ...grpc.CallOption) (*MsgDeleteNameResponse, error) + // Reserve authority name + ReserveAuthority(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) // SetAuthorityBond SetAuthorityBond(ctx context.Context, in *MsgSetAuthorityBond, opts ...grpc.CallOption) (*MsgSetAuthorityBondResponse, error) } @@ -128,18 +128,18 @@ func (c *msgClient) SetName(ctx context.Context, in *MsgSetName, opts ...grpc.Ca return out, nil } -func (c *msgClient) ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) { - out := new(MsgReserveAuthorityResponse) - err := c.cc.Invoke(ctx, Msg_ReserveName_FullMethodName, in, out, opts...) +func (c *msgClient) DeleteName(ctx context.Context, in *MsgDeleteName, opts ...grpc.CallOption) (*MsgDeleteNameResponse, error) { + out := new(MsgDeleteNameResponse) + err := c.cc.Invoke(ctx, Msg_DeleteName_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) DeleteName(ctx context.Context, in *MsgDeleteNameAuthority, opts ...grpc.CallOption) (*MsgDeleteNameAuthorityResponse, error) { - out := new(MsgDeleteNameAuthorityResponse) - err := c.cc.Invoke(ctx, Msg_DeleteName_FullMethodName, in, out, opts...) +func (c *msgClient) ReserveAuthority(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) { + out := new(MsgReserveAuthorityResponse) + err := c.cc.Invoke(ctx, Msg_ReserveAuthority_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -173,10 +173,10 @@ type MsgServer interface { ReassociateRecords(context.Context, *MsgReassociateRecords) (*MsgReassociateRecordsResponse, error) // SetName will store the name with given lrn and name SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error) - // Reserve name - ReserveName(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) // Delete Name method will remove authority name - DeleteName(context.Context, *MsgDeleteNameAuthority) (*MsgDeleteNameAuthorityResponse, error) + DeleteName(context.Context, *MsgDeleteName) (*MsgDeleteNameResponse, error) + // Reserve authority name + ReserveAuthority(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) // SetAuthorityBond SetAuthorityBond(context.Context, *MsgSetAuthorityBond) (*MsgSetAuthorityBondResponse, error) mustEmbedUnimplementedMsgServer() @@ -207,12 +207,12 @@ func (UnimplementedMsgServer) ReassociateRecords(context.Context, *MsgReassociat func (UnimplementedMsgServer) SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetName not implemented") } -func (UnimplementedMsgServer) ReserveName(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReserveName not implemented") -} -func (UnimplementedMsgServer) DeleteName(context.Context, *MsgDeleteNameAuthority) (*MsgDeleteNameAuthorityResponse, error) { +func (UnimplementedMsgServer) DeleteName(context.Context, *MsgDeleteName) (*MsgDeleteNameResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteName not implemented") } +func (UnimplementedMsgServer) ReserveAuthority(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReserveAuthority not implemented") +} func (UnimplementedMsgServer) SetAuthorityBond(context.Context, *MsgSetAuthorityBond) (*MsgSetAuthorityBondResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetAuthorityBond not implemented") } @@ -355,26 +355,8 @@ func _Msg_SetName_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Msg_ReserveName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgReserveAuthority) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ReserveName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_ReserveName_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ReserveName(ctx, req.(*MsgReserveAuthority)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_DeleteName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDeleteNameAuthority) + in := new(MsgDeleteName) if err := dec(in); err != nil { return nil, err } @@ -386,7 +368,25 @@ func _Msg_DeleteName_Handler(srv interface{}, ctx context.Context, dec func(inte FullMethod: Msg_DeleteName_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).DeleteName(ctx, req.(*MsgDeleteNameAuthority)) + return srv.(MsgServer).DeleteName(ctx, req.(*MsgDeleteName)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ReserveAuthority_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgReserveAuthority) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ReserveAuthority(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_ReserveAuthority_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ReserveAuthority(ctx, req.(*MsgReserveAuthority)) } return interceptor(ctx, in, info, handler) } @@ -444,14 +444,14 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "SetName", Handler: _Msg_SetName_Handler, }, - { - MethodName: "ReserveName", - Handler: _Msg_ReserveName_Handler, - }, { MethodName: "DeleteName", Handler: _Msg_DeleteName_Handler, }, + { + MethodName: "ReserveAuthority", + Handler: _Msg_ReserveAuthority_Handler, + }, { MethodName: "SetAuthorityBond", Handler: _Msg_SetAuthorityBond_Handler, diff --git a/gql/resolver.go b/gql/resolver.go index ca300885..0c564b72 100644 --- a/gql/resolver.go +++ b/gql/resolver.go @@ -51,11 +51,11 @@ func (q queryResolver) LookupAuthorities(ctx context.Context, names []string) ([ } if nameAuthority.AuctionId != "" { - auctionResp, err := auctionQueryClient.GetAuction(context.Background(), &auctiontypes.QueryAuctionRequest{Id: nameAuthority.GetAuctionId()}) + auctionResp, err := auctionQueryClient.GetAuction(context.Background(), &auctiontypes.QueryGetAuctionRequest{Id: nameAuthority.GetAuctionId()}) if err != nil { return nil, err } - bidsResp, err := auctionQueryClient.GetBids(context.Background(), &auctiontypes.QueryBidsRequest{AuctionId: nameAuthority.GetAuctionId()}) + bidsResp, err := auctionQueryClient.GetBids(context.Background(), &auctiontypes.QueryGetBidsRequest{AuctionId: nameAuthority.GetAuctionId()}) if err != nil { return nil, err } @@ -150,7 +150,7 @@ func (q queryResolver) GetRecordsByIds(ctx context.Context, ids []string) ([]*Re gqlResponse := make([]*Record, len(ids)) for i, id := range ids { - res, err := nsQueryClient.GetRecord(context.Background(), ®istrytypes.QueryRecordByIdRequest{Id: id}) + res, err := nsQueryClient.GetRecord(context.Background(), ®istrytypes.QueryGetRecordRequest{Id: id}) if err != nil { // Return nil for record not found. gqlResponse[i] = nil @@ -275,7 +275,7 @@ func (q *queryResolver) GetBond(ctx context.Context, id string) (*Bond, error) { func (q queryResolver) QueryBonds(ctx context.Context, attributes []*KeyValueInput) ([]*Bond, error) { bondQueryClient := bondtypes.NewQueryClient(q.ctx) - bonds, err := bondQueryClient.Bonds(context.Background(), &bondtypes.QueryGetBondsRequest{}) + bonds, err := bondQueryClient.Bonds(context.Background(), &bondtypes.QueryBondsRequest{}) if err != nil { return nil, err } @@ -330,11 +330,11 @@ func (q queryResolver) GetAuctionsByIds(ctx context.Context, ids []string) ([]*A auctionQueryClient := auctiontypes.NewQueryClient(q.ctx) gqlAuctionResponse := make([]*Auction, len(ids)) for i, id := range ids { - auctionObj, err := auctionQueryClient.GetAuction(context.Background(), &auctiontypes.QueryAuctionRequest{Id: id}) + auctionObj, err := auctionQueryClient.GetAuction(context.Background(), &auctiontypes.QueryGetAuctionRequest{Id: id}) if err != nil { return nil, err } - bidsObj, err := auctionQueryClient.GetBids(context.Background(), &auctiontypes.QueryBidsRequest{AuctionId: id}) + bidsObj, err := auctionQueryClient.GetBids(context.Background(), &auctiontypes.QueryGetBidsRequest{AuctionId: id}) if err != nil { return nil, err } diff --git a/proto/cerc/registry/v1/tx.proto b/proto/cerc/registry/v1/tx.proto index 4b82b1df..36ecc700 100644 --- a/proto/cerc/registry/v1/tx.proto +++ b/proto/cerc/registry/v1/tx.proto @@ -50,15 +50,15 @@ service Msg { option (google.api.http).post = "/cerc/registry/v1/set_name"; } - // Reserve name - rpc ReserveName(MsgReserveAuthority) returns (MsgReserveAuthorityResponse) { - option (google.api.http).post = "/cerc/registry/v1/reserve_name"; + // Delete Name method will remove authority name + rpc DeleteName(MsgDeleteName) returns (MsgDeleteNameResponse) { + option (google.api.http).post = "/cerc/registry/v1/delete_name"; } - // Delete Name method will remove authority name - rpc DeleteName(MsgDeleteNameAuthority) - returns (MsgDeleteNameAuthorityResponse) { - option (google.api.http).post = "/cerc/registry/v1/delete_name"; + // Reserve authority name + rpc ReserveAuthority(MsgReserveAuthority) + returns (MsgReserveAuthorityResponse) { + option (google.api.http).post = "/cerc/registry/v1/reserve_authority"; } // SetAuthorityBond @@ -102,7 +102,7 @@ message MsgSetName { // MsgSetNameResponse message MsgSetNameResponse {} -// MsgReserveName +// MsgReserveAuthority message MsgReserveAuthority { option (cosmos.msg.v1.signer) = "signer"; @@ -113,7 +113,7 @@ message MsgReserveAuthority { string owner = 3; } -// MsgReserveNameResponse +// MsgReserveAuthorityResponse message MsgReserveAuthorityResponse {} // MsgSetAuthorityBond @@ -129,16 +129,16 @@ message MsgSetAuthorityBond { // MsgSetAuthorityBondResponse message MsgSetAuthorityBondResponse {} -// MsgDeleteNameAuthority -message MsgDeleteNameAuthority { +// MsgDeleteName +message MsgDeleteName { option (cosmos.msg.v1.signer) = "signer"; string lrn = 1; string signer = 2; } -// MsgDeleteNameAuthorityResponse -message MsgDeleteNameAuthorityResponse {} +// MsgDeleteNameResponse +message MsgDeleteNameResponse {} // MsgRenewRecord message MsgRenewRecord { diff --git a/tests/e2e/auction/grpc.go b/tests/e2e/auction/grpc.go index 1f9c4ade..02806e62 100644 --- a/tests/e2e/auction/grpc.go +++ b/tests/e2e/auction/grpc.go @@ -106,7 +106,7 @@ func (ets *E2ETestSuite) TestGetAuctionGrpc() { sr.Contains(string(resp), tc.errorMsg) } else { sr.NoError(err) - var auction auctiontypes.QueryAuctionResponse + var auction auctiontypes.QueryGetAuctionResponse err = val.ClientCtx.Codec.UnmarshalJSON(resp, &auction) sr.NoError(err) sr.Equal(auctionId, auction.Auction.Id) @@ -151,7 +151,7 @@ func (ets *E2ETestSuite) TestGetBidsGrpc() { sr.Contains(string(resp), tc.errorMsg) } else { sr.NoError(err) - var bids auctiontypes.QueryBidsResponse + var bids auctiontypes.QueryGetBidsResponse err = val.ClientCtx.Codec.UnmarshalJSON(resp, &bids) sr.NoError(err) sr.Equal(auctionId, bids.Bids[0].AuctionId) @@ -196,7 +196,7 @@ func (ets *E2ETestSuite) TestGetBidGrpc() { sr.Contains(string(resp), tc.errorMsg) } else { sr.NoError(err) - var bid auctiontypes.QueryBidResponse + var bid auctiontypes.QueryGetBidResponse err = val.ClientCtx.Codec.UnmarshalJSON(resp, &bid) sr.NoError(err) } diff --git a/tests/e2e/bond/grpc.go b/tests/e2e/bond/grpc.go index b326a51d..845ac039 100644 --- a/tests/e2e/bond/grpc.go +++ b/tests/e2e/bond/grpc.go @@ -58,7 +58,7 @@ func (ets *E2ETestSuite) TestGRPCGetBonds() { if tc.expErr { sr.Contains(string(resp), tc.errorMsg) } else { - var response bondtypes.QueryGetBondsResponse + var response bondtypes.QueryBondsResponse err := val.ClientCtx.Codec.UnmarshalJSON(resp, &response) sr.NoError(err) sr.NotZero(len(response.GetBonds())) diff --git a/tests/e2e/bond/query.go b/tests/e2e/bond/query.go index 8c48b6e8..16e6432d 100644 --- a/tests/e2e/bond/query.go +++ b/tests/e2e/bond/query.go @@ -40,7 +40,7 @@ func (ets *E2ETestSuite) TestGetQueryBondList() { cmd := cli.GetQueryBondList() out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args) sr.NoError(err) - var queryResponse bondtypes.QueryGetBondsResponse + var queryResponse bondtypes.QueryBondsResponse err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &queryResponse) sr.NoError(err) sr.NotZero(len(queryResponse.GetBonds())) diff --git a/tests/e2e/bond/suite.go b/tests/e2e/bond/suite.go index 484aad86..c14fb4c4 100644 --- a/tests/e2e/bond/suite.go +++ b/tests/e2e/bond/suite.go @@ -113,7 +113,7 @@ func (ets *E2ETestSuite) createBond() string { } out, err = clitestutil.ExecTestCLICmd(clientCtx, cmd, args) sr.NoError(err) - var queryResponse bondtypes.QueryGetBondsResponse + var queryResponse bondtypes.QueryBondsResponse err = val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &queryResponse) sr.NoError(err) diff --git a/tests/e2e/registry/grpc.go b/tests/e2e/registry/grpc.go index f050b05a..c7ad4c2c 100644 --- a/tests/e2e/registry/grpc.go +++ b/tests/e2e/registry/grpc.go @@ -263,7 +263,7 @@ func (ets *E2ETestSuite) TestGRPCQueryGetRecordById() { if tc.expectErr { require.Contains(string(resp), tc.errorMsg) } else { - var response registrytypes.QueryRecordByIdResponse + var response registrytypes.QueryGetRecordResponse err := val.ClientCtx.Codec.UnmarshalJSON(resp, &response) sr.NoError(err) record := response.GetRecord() @@ -317,7 +317,7 @@ func (ets *E2ETestSuite) TestGRPCQueryGetRecordByBondId() { if tc.expectErr { require.Contains(string(resp), tc.errorMsg) } else { - var response registrytypes.QueryRecordsByBondIdResponse + var response registrytypes.QueryGetRecordsByBondIdResponse err := val.ClientCtx.Codec.UnmarshalJSON(resp, &response) sr.NoError(err) records := response.GetRecords() diff --git a/tests/e2e/registry/suite.go b/tests/e2e/registry/suite.go index 058a5ff0..da0d7b43 100644 --- a/tests/e2e/registry/suite.go +++ b/tests/e2e/registry/suite.go @@ -132,7 +132,7 @@ func (ets *E2ETestSuite) createBond() string { } out, err = clitestutil.ExecTestCLICmd(clientCtx, cmd, args) sr.NoError(err) - var queryResponse bondtypes.QueryGetBondsResponse + var queryResponse bondtypes.QueryBondsResponse err = val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &queryResponse) sr.NoError(err) @@ -146,7 +146,7 @@ func (ets *E2ETestSuite) reserveName(authorityName string) { sr := ets.Require() clientCtx := val.ClientCtx - cmd := cli.GetCmdReserveName() + cmd := cli.GetCmdReserveAuthority() args := []string{ authorityName, fmt.Sprintf("--owner=%s", ets.accountAddress), @@ -174,7 +174,7 @@ func (ets *E2ETestSuite) createNameRecord(authorityName string) { // reserving the name clientCtx := val.ClientCtx - cmd := cli.GetCmdReserveName() + cmd := cli.GetCmdReserveAuthority() args := []string{ authorityName, fmt.Sprintf("--owner=%s", ets.accountAddress), diff --git a/tests/integration/auction/keeper/query_server_test.go b/tests/integration/auction/keeper/query_server_test.go index 698b377f..2ec40109 100644 --- a/tests/integration/auction/keeper/query_server_test.go +++ b/tests/integration/auction/keeper/query_server_test.go @@ -35,17 +35,17 @@ func (kts *KeeperTestSuite) TestGrpcQueryParams() { func (kts *KeeperTestSuite) TestGrpcGetAuction() { testCases := []struct { msg string - req *types.QueryAuctionRequest + req *types.QueryGetAuctionRequest createAuction bool }{ { "fetch auction with empty auction ID", - &types.QueryAuctionRequest{}, + &types.QueryGetAuctionRequest{}, false, }, { "fetch auction with valid auction ID", - &types.QueryAuctionRequest{}, + &types.QueryGetAuctionRequest{}, true, }, } @@ -111,28 +111,28 @@ func (kts *KeeperTestSuite) TestGrpcGetAllAuctions() { func (kts *KeeperTestSuite) TestGrpcGetBids() { testCases := []struct { msg string - req *types.QueryBidsRequest + req *types.QueryGetBidsRequest createAuction bool commitBid bool bidCount int }{ { "fetch all bids when no auction exists", - &types.QueryBidsRequest{}, + &types.QueryGetBidsRequest{}, false, false, 0, }, { "fetch all bids for valid auction but no added bids", - &types.QueryBidsRequest{}, + &types.QueryGetBidsRequest{}, true, false, 0, }, { "fetch all bids for valid auction and valid bid", - &types.QueryBidsRequest{}, + &types.QueryGetBidsRequest{}, true, true, 1, @@ -162,17 +162,17 @@ func (kts *KeeperTestSuite) TestGrpcGetBids() { func (kts *KeeperTestSuite) TestGrpcGetBid() { testCases := []struct { msg string - req *types.QueryBidRequest + req *types.QueryGetBidRequest createAuctionAndBid bool }{ { "fetch bid when bid does not exist", - &types.QueryBidRequest{}, + &types.QueryGetBidRequest{}, false, }, { "fetch bid when valid bid exists", - &types.QueryBidRequest{}, + &types.QueryGetBidRequest{}, true, }, } diff --git a/tests/integration/bond/keeper/query_server_test.go b/tests/integration/bond/keeper/query_server_test.go index e652326e..e5c9a650 100644 --- a/tests/integration/bond/keeper/query_server_test.go +++ b/tests/integration/bond/keeper/query_server_test.go @@ -34,22 +34,22 @@ func (kts *KeeperTestSuite) TestGrpcQueryParams() { func (kts *KeeperTestSuite) TestGrpcQueryBondsList() { testCases := []struct { msg string - req *types.QueryGetBondsRequest - resp *types.QueryGetBondsResponse + req *types.QueryBondsRequest + resp *types.QueryBondsResponse noOfBonds int createBonds bool }{ { "empty request", - &types.QueryGetBondsRequest{}, - &types.QueryGetBondsResponse{}, + &types.QueryBondsRequest{}, + &types.QueryBondsResponse{}, 0, false, }, { "Get Bonds", - &types.QueryGetBondsRequest{}, - &types.QueryGetBondsResponse{}, + &types.QueryBondsRequest{}, + &types.QueryBondsResponse{}, 1, true, }, @@ -181,7 +181,7 @@ func (kts *KeeperTestSuite) TestGrpcGetModuleBalance() { _, err := kts.createBond() kts.Require().NoError(err) } - resp, err := kts.queryClient.GetBondsModuleBalance(context.Background(), test.req) + resp, err := kts.queryClient.GetBondModuleBalance(context.Background(), test.req) if !test.errResponse { kts.Require().Nil(err) kts.Require().NotNil(resp.GetBalance()) diff --git a/tests/integration/registry/keeper/query_server_test.go b/tests/integration/registry/keeper/query_server_test.go index ee4294e3..63b1e286 100644 --- a/tests/integration/registry/keeper/query_server_test.go +++ b/tests/integration/registry/keeper/query_server_test.go @@ -228,21 +228,21 @@ func (kts *KeeperTestSuite) TestGrpcGetRecordLists() { // Get the records by record id testCases1 := []struct { msg string - req *types.QueryRecordByIdRequest + req *types.QueryGetRecordRequest createRecord bool expErr bool noOfRecords int }{ { "Invalid Request without record id", - &types.QueryRecordByIdRequest{}, + &types.QueryGetRecordRequest{}, false, true, 0, }, { "With Record ID", - &types.QueryRecordByIdRequest{ + &types.QueryGetRecordRequest{ Id: recordId, }, true, @@ -270,21 +270,21 @@ func (kts *KeeperTestSuite) TestGrpcGetRecordLists() { // Get the records by record id testCasesByBondId := []struct { msg string - req *types.QueryRecordsByBondIdRequest + req *types.QueryGetRecordsByBondIdRequest createRecord bool expErr bool noOfRecords int }{ { "Invalid Request without bond id", - &types.QueryRecordsByBondIdRequest{}, + &types.QueryGetRecordsByBondIdRequest{}, false, true, 0, }, { "With Bond ID", - &types.QueryRecordsByBondIdRequest{ + &types.QueryGetRecordsByBondIdRequest{ Id: kts.bond.GetId(), }, true, diff --git a/x/auction/keeper/query_server.go b/x/auction/keeper/query_server.go index 6b1b3ed3..7e2bff92 100644 --- a/x/auction/keeper/query_server.go +++ b/x/auction/keeper/query_server.go @@ -46,7 +46,7 @@ func (qs queryServer) Auctions(c context.Context, req *auctiontypes.QueryAuction } // GetAuction queries an auction by id -func (qs queryServer) GetAuction(c context.Context, req *auctiontypes.QueryAuctionRequest) (*auctiontypes.QueryAuctionResponse, error) { +func (qs queryServer) GetAuction(c context.Context, req *auctiontypes.QueryGetAuctionRequest) (*auctiontypes.QueryGetAuctionResponse, error) { ctx := sdk.UnwrapSDKContext(c) if req.Id == "" { @@ -58,11 +58,11 @@ func (qs queryServer) GetAuction(c context.Context, req *auctiontypes.QueryAucti return nil, err } - return &auctiontypes.QueryAuctionResponse{Auction: &auction}, nil + return &auctiontypes.QueryGetAuctionResponse{Auction: &auction}, nil } // GetBid queries an auction bid by auction-id and bidder -func (qs queryServer) GetBid(c context.Context, req *auctiontypes.QueryBidRequest) (*auctiontypes.QueryBidResponse, error) { +func (qs queryServer) GetBid(c context.Context, req *auctiontypes.QueryGetBidRequest) (*auctiontypes.QueryGetBidResponse, error) { ctx := sdk.UnwrapSDKContext(c) if req.AuctionId == "" { @@ -78,11 +78,11 @@ func (qs queryServer) GetBid(c context.Context, req *auctiontypes.QueryBidReques return nil, err } - return &auctiontypes.QueryBidResponse{Bid: &bid}, nil + return &auctiontypes.QueryGetBidResponse{Bid: &bid}, nil } // GetBids queries all auction bids -func (qs queryServer) GetBids(c context.Context, req *auctiontypes.QueryBidsRequest) (*auctiontypes.QueryBidsResponse, error) { +func (qs queryServer) GetBids(c context.Context, req *auctiontypes.QueryGetBidsRequest) (*auctiontypes.QueryGetBidsResponse, error) { ctx := sdk.UnwrapSDKContext(c) if req.AuctionId == "" { @@ -94,7 +94,7 @@ func (qs queryServer) GetBids(c context.Context, req *auctiontypes.QueryBidsRequ return nil, err } - return &auctiontypes.QueryBidsResponse{Bids: bids}, nil + return &auctiontypes.QueryGetBidsResponse{Bids: bids}, nil } // AuctionsByBidder queries auctions by bidder diff --git a/x/bond/client/cli/query.go b/x/bond/client/cli/query.go index 019c7d05..fcf0cb7a 100644 --- a/x/bond/client/cli/query.go +++ b/x/bond/client/cli/query.go @@ -33,7 +33,7 @@ $ %s query %s list return err } queryClient := bondtypes.NewQueryClient(clientCtx) - res, err := queryClient.Bonds(cmd.Context(), &bondtypes.QueryGetBondsRequest{}) + res, err := queryClient.Bonds(cmd.Context(), &bondtypes.QueryBondsRequest{}) if err != nil { return err } diff --git a/x/bond/keeper/query_server.go b/x/bond/keeper/query_server.go index 7c0066da..adfb38ac 100644 --- a/x/bond/keeper/query_server.go +++ b/x/bond/keeper/query_server.go @@ -34,7 +34,7 @@ func (qs queryServer) Params(c context.Context, _ *bondtypes.QueryParamsRequest) } // Bonds implements bond.QueryServer. -func (qs queryServer) Bonds(c context.Context, _ *bondtypes.QueryGetBondsRequest) (*bondtypes.QueryGetBondsResponse, error) { +func (qs queryServer) Bonds(c context.Context, _ *bondtypes.QueryBondsRequest) (*bondtypes.QueryBondsResponse, error) { ctx := sdk.UnwrapSDKContext(c) resp, err := qs.k.ListBonds(ctx) @@ -42,7 +42,7 @@ func (qs queryServer) Bonds(c context.Context, _ *bondtypes.QueryGetBondsRequest return nil, err } - return &bondtypes.QueryGetBondsResponse{Bonds: resp}, nil + return &bondtypes.QueryBondsResponse{Bonds: resp}, nil } // GetBondById implements bond.QueryServer. @@ -79,8 +79,8 @@ func (qs queryServer) GetBondsByOwner(c context.Context, req *bondtypes.QueryGet return &bondtypes.QueryGetBondsByOwnerResponse{Bonds: bonds}, nil } -// GetBondsModuleBalance implements bond.QueryServer. -func (qs queryServer) GetBondsModuleBalance(c context.Context, _ *bondtypes.QueryGetBondModuleBalanceRequest) (*bondtypes.QueryGetBondModuleBalanceResponse, error) { +// GetBondModuleBalance implements bond.QueryServer. +func (qs queryServer) GetBondModuleBalance(c context.Context, _ *bondtypes.QueryGetBondModuleBalanceRequest) (*bondtypes.QueryGetBondModuleBalanceResponse, error) { ctx := sdk.UnwrapSDKContext(c) balances := qs.k.GetBondModuleBalances(ctx) diff --git a/x/bond/module/autocli.go b/x/bond/module/autocli.go index 0f61dc9d..bf7c45e0 100644 --- a/x/bond/module/autocli.go +++ b/x/bond/module/autocli.go @@ -44,7 +44,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, }, { - RpcMethod: "GetBondsModuleBalance", + RpcMethod: "GetBondModuleBalance", Use: "balance", Short: "Get bond module account balances", PositionalArgs: []*autocliv1.PositionalArgDescriptor{}, diff --git a/x/registry/client/cli/tx.go b/x/registry/client/cli/tx.go index 2c645d74..f0c63f72 100644 --- a/x/registry/client/cli/tx.go +++ b/x/registry/client/cli/tx.go @@ -85,8 +85,8 @@ func GetPayloadFromFile(filePath string) (*registrytypes.ReadablePayload, error) return &payload, nil } -// GetCmdReserveName is the CLI command for reserving a name. -func GetCmdReserveName() *cobra.Command { +// GetCmdReserveAuthority is the CLI command for reserving a name. +func GetCmdReserveAuthority() *cobra.Command { cmd := &cobra.Command{ Use: "reserve-name [name]", Short: "Reserve name.", diff --git a/x/registry/codec.go b/x/registry/codec.go index 96456dba..cb6317c0 100644 --- a/x/registry/codec.go +++ b/x/registry/codec.go @@ -10,7 +10,7 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgSetName{}, &MsgReserveAuthority{}, - &MsgDeleteNameAuthority{}, + &MsgDeleteName{}, &MsgSetAuthorityBond{}, &MsgSetRecord{}, diff --git a/x/registry/events.go b/x/registry/events.go index 0291e64b..8ca53868 100644 --- a/x/registry/events.go +++ b/x/registry/events.go @@ -1,15 +1,15 @@ package registry const ( - EventTypeSetRecord = "set" - EventTypeDeleteName = "delete-name" - EventTypeReserveNameAuthority = "reserve-authority" - EventTypeAuthorityBond = "authority-bond" - EventTypeRenewRecord = "renew-record" - EventTypeAssociateBond = "associate-bond" - EventTypeDissociateBond = "dissociate-bond" - EventTypeDissociateRecords = "dissociate-record" - EventTypeReassociateRecords = "re-associate-records" + EventTypeSetRecord = "set" + EventTypeDeleteName = "delete-name" + EventTypeReserveAuthority = "reserve-authority" + EventTypeAuthorityBond = "authority-bond" + EventTypeRenewRecord = "renew-record" + EventTypeAssociateBond = "associate-bond" + EventTypeDissociateBond = "dissociate-bond" + EventTypeDissociateRecords = "dissociate-record" + EventTypeReassociateRecords = "re-associate-records" AttributeKeySigner = "signer" AttributeKeyOwner = "owner" diff --git a/x/registry/keeper/msg_server.go b/x/registry/keeper/msg_server.go index fc9e47a7..51697087 100644 --- a/x/registry/keeper/msg_server.go +++ b/x/registry/keeper/msg_server.go @@ -87,7 +87,7 @@ func (ms msgServer) SetName(c context.Context, msg *registrytypes.MsgSetName) (* return ®istrytypes.MsgSetNameResponse{}, nil } -func (ms msgServer) ReserveName(c context.Context, msg *registrytypes.MsgReserveAuthority) (*registrytypes.MsgReserveAuthorityResponse, error) { +func (ms msgServer) ReserveAuthority(c context.Context, msg *registrytypes.MsgReserveAuthority) (*registrytypes.MsgReserveAuthorityResponse, error) { if err := msg.ValidateBasic(); err != nil { return nil, err } @@ -110,7 +110,7 @@ func (ms msgServer) ReserveName(c context.Context, msg *registrytypes.MsgReserve ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( - registrytypes.EventTypeReserveNameAuthority, + registrytypes.EventTypeReserveAuthority, sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer), sdk.NewAttribute(registrytypes.AttributeKeyName, msg.Name), sdk.NewAttribute(registrytypes.AttributeKeyOwner, msg.Owner), @@ -159,7 +159,7 @@ func (ms msgServer) SetAuthorityBond(c context.Context, msg *registrytypes.MsgSe return ®istrytypes.MsgSetAuthorityBondResponse{}, nil } -func (ms msgServer) DeleteName(c context.Context, msg *registrytypes.MsgDeleteNameAuthority) (*registrytypes.MsgDeleteNameAuthorityResponse, error) { +func (ms msgServer) DeleteName(c context.Context, msg *registrytypes.MsgDeleteName) (*registrytypes.MsgDeleteNameResponse, error) { if err := msg.ValidateBasic(); err != nil { return nil, err } @@ -188,7 +188,7 @@ func (ms msgServer) DeleteName(c context.Context, msg *registrytypes.MsgDeleteNa sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer), ), }) - return ®istrytypes.MsgDeleteNameAuthorityResponse{}, nil + return ®istrytypes.MsgDeleteNameResponse{}, nil } func (ms msgServer) RenewRecord(c context.Context, msg *registrytypes.MsgRenewRecord) (*registrytypes.MsgRenewRecordResponse, error) { diff --git a/x/registry/keeper/naming_keeper.go b/x/registry/keeper/naming_keeper.go index ed4fc89a..d16b7242 100644 --- a/x/registry/keeper/naming_keeper.go +++ b/x/registry/keeper/naming_keeper.go @@ -353,7 +353,7 @@ func (k Keeper) SetAuthorityBond(ctx sdk.Context, msg registrytypes.MsgSetAuthor } // 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.MsgDeleteName) error { signerAddress, err := sdk.AccAddressFromBech32(msg.Signer) if err != nil { return err diff --git a/x/registry/keeper/query_server.go b/x/registry/keeper/query_server.go index da2a8bc4..5441002d 100644 --- a/x/registry/keeper/query_server.go +++ b/x/registry/keeper/query_server.go @@ -55,7 +55,7 @@ func (qs queryServer) Records(c context.Context, req *registrytypes.QueryRecords return ®istrytypes.QueryRecordsResponse{Records: records}, nil } -func (qs queryServer) GetRecord(c context.Context, req *registrytypes.QueryRecordByIdRequest) (*registrytypes.QueryRecordByIdResponse, error) { +func (qs queryServer) GetRecord(c context.Context, req *registrytypes.QueryGetRecordRequest) (*registrytypes.QueryGetRecordResponse, error) { ctx := sdk.UnwrapSDKContext(c) id := req.GetId() @@ -72,10 +72,10 @@ func (qs queryServer) GetRecord(c context.Context, req *registrytypes.QueryRecor return nil, err } - return ®istrytypes.QueryRecordByIdResponse{Record: record}, nil + return ®istrytypes.QueryGetRecordResponse{Record: record}, nil } -func (qs queryServer) GetRecordsByBondId(c context.Context, req *registrytypes.QueryRecordsByBondIdRequest) (*registrytypes.QueryRecordsByBondIdResponse, error) { +func (qs queryServer) GetRecordsByBondId(c context.Context, req *registrytypes.QueryGetRecordsByBondIdRequest) (*registrytypes.QueryGetRecordsByBondIdResponse, error) { ctx := sdk.UnwrapSDKContext(c) records, err := qs.k.GetRecordsByBondId(ctx, req.GetId()) @@ -83,7 +83,7 @@ func (qs queryServer) GetRecordsByBondId(c context.Context, req *registrytypes.Q return nil, err } - return ®istrytypes.QueryRecordsByBondIdResponse{Records: records}, nil + return ®istrytypes.QueryGetRecordsByBondIdResponse{Records: records}, nil } func (qs queryServer) GetRegistryModuleBalance(c context.Context, diff --git a/x/registry/module/autocli.go b/x/registry/module/autocli.go index 25fc20e7..258da1cd 100644 --- a/x/registry/module/autocli.go +++ b/x/registry/module/autocli.go @@ -93,9 +93,9 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, }, { - RpcMethod: "ReserveName", - Use: "reserve-name [name] [owner]", - Short: "Reserve name", + RpcMethod: "ReserveAuthority", + Use: "reserve-authority [name] [owner]", + Short: "Reserve authority name", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "name"}, {ProtoField: "owner"}, diff --git a/x/registry/msgs.go b/x/registry/msgs.go index c091441a..c797af08 100644 --- a/x/registry/msgs.go +++ b/x/registry/msgs.go @@ -121,7 +121,7 @@ func (msg MsgSetName) ValidateBasic() error { return nil } -func (msg MsgDeleteNameAuthority) ValidateBasic() error { +func (msg MsgDeleteName) ValidateBasic() error { if len(msg.Lrn) == 0 { return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "lrn is required.") } diff --git a/x/registry/tx.pb.go b/x/registry/tx.pb.go index a84ed567..bea70cab 100644 --- a/x/registry/tx.pb.go +++ b/x/registry/tx.pb.go @@ -287,7 +287,7 @@ func (m *MsgSetNameResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSetNameResponse proto.InternalMessageInfo -// MsgReserveName +// MsgReserveAuthority type MsgReserveAuthority struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` @@ -349,7 +349,7 @@ func (m *MsgReserveAuthority) GetOwner() string { return "" } -// MsgReserveNameResponse +// MsgReserveAuthorityResponse type MsgReserveAuthorityResponse struct { } @@ -484,24 +484,24 @@ func (m *MsgSetAuthorityBondResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSetAuthorityBondResponse proto.InternalMessageInfo -// MsgDeleteNameAuthority -type MsgDeleteNameAuthority struct { +// MsgDeleteName +type MsgDeleteName struct { Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` } -func (m *MsgDeleteNameAuthority) Reset() { *m = MsgDeleteNameAuthority{} } -func (m *MsgDeleteNameAuthority) String() string { return proto.CompactTextString(m) } -func (*MsgDeleteNameAuthority) ProtoMessage() {} -func (*MsgDeleteNameAuthority) Descriptor() ([]byte, []int) { +func (m *MsgDeleteName) Reset() { *m = MsgDeleteName{} } +func (m *MsgDeleteName) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteName) ProtoMessage() {} +func (*MsgDeleteName) Descriptor() ([]byte, []int) { return fileDescriptor_3c6eb2e5a4d8fa03, []int{9} } -func (m *MsgDeleteNameAuthority) XXX_Unmarshal(b []byte) error { +func (m *MsgDeleteName) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgDeleteNameAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgDeleteName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgDeleteNameAuthority.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgDeleteName.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -511,48 +511,48 @@ func (m *MsgDeleteNameAuthority) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *MsgDeleteNameAuthority) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDeleteNameAuthority.Merge(m, src) +func (m *MsgDeleteName) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteName.Merge(m, src) } -func (m *MsgDeleteNameAuthority) XXX_Size() int { +func (m *MsgDeleteName) XXX_Size() int { return m.Size() } -func (m *MsgDeleteNameAuthority) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDeleteNameAuthority.DiscardUnknown(m) +func (m *MsgDeleteName) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteName.DiscardUnknown(m) } -var xxx_messageInfo_MsgDeleteNameAuthority proto.InternalMessageInfo +var xxx_messageInfo_MsgDeleteName proto.InternalMessageInfo -func (m *MsgDeleteNameAuthority) GetLrn() string { +func (m *MsgDeleteName) GetLrn() string { if m != nil { return m.Lrn } return "" } -func (m *MsgDeleteNameAuthority) GetSigner() string { +func (m *MsgDeleteName) GetSigner() string { if m != nil { return m.Signer } return "" } -// MsgDeleteNameAuthorityResponse -type MsgDeleteNameAuthorityResponse struct { +// MsgDeleteNameResponse +type MsgDeleteNameResponse struct { } -func (m *MsgDeleteNameAuthorityResponse) Reset() { *m = MsgDeleteNameAuthorityResponse{} } -func (m *MsgDeleteNameAuthorityResponse) String() string { return proto.CompactTextString(m) } -func (*MsgDeleteNameAuthorityResponse) ProtoMessage() {} -func (*MsgDeleteNameAuthorityResponse) Descriptor() ([]byte, []int) { +func (m *MsgDeleteNameResponse) Reset() { *m = MsgDeleteNameResponse{} } +func (m *MsgDeleteNameResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteNameResponse) ProtoMessage() {} +func (*MsgDeleteNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor_3c6eb2e5a4d8fa03, []int{10} } -func (m *MsgDeleteNameAuthorityResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgDeleteNameResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgDeleteNameAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgDeleteNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgDeleteNameAuthorityResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgDeleteNameResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -562,17 +562,17 @@ func (m *MsgDeleteNameAuthorityResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *MsgDeleteNameAuthorityResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDeleteNameAuthorityResponse.Merge(m, src) +func (m *MsgDeleteNameResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteNameResponse.Merge(m, src) } -func (m *MsgDeleteNameAuthorityResponse) XXX_Size() int { +func (m *MsgDeleteNameResponse) XXX_Size() int { return m.Size() } -func (m *MsgDeleteNameAuthorityResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDeleteNameAuthorityResponse.DiscardUnknown(m) +func (m *MsgDeleteNameResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteNameResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgDeleteNameAuthorityResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgDeleteNameResponse proto.InternalMessageInfo // MsgRenewRecord type MsgRenewRecord struct { @@ -1050,8 +1050,8 @@ func init() { proto.RegisterType((*MsgReserveAuthorityResponse)(nil), "cerc.registry.v1.MsgReserveAuthorityResponse") proto.RegisterType((*MsgSetAuthorityBond)(nil), "cerc.registry.v1.MsgSetAuthorityBond") proto.RegisterType((*MsgSetAuthorityBondResponse)(nil), "cerc.registry.v1.MsgSetAuthorityBondResponse") - proto.RegisterType((*MsgDeleteNameAuthority)(nil), "cerc.registry.v1.MsgDeleteNameAuthority") - proto.RegisterType((*MsgDeleteNameAuthorityResponse)(nil), "cerc.registry.v1.MsgDeleteNameAuthorityResponse") + proto.RegisterType((*MsgDeleteName)(nil), "cerc.registry.v1.MsgDeleteName") + proto.RegisterType((*MsgDeleteNameResponse)(nil), "cerc.registry.v1.MsgDeleteNameResponse") proto.RegisterType((*MsgRenewRecord)(nil), "cerc.registry.v1.MsgRenewRecord") proto.RegisterType((*MsgRenewRecordResponse)(nil), "cerc.registry.v1.MsgRenewRecordResponse") proto.RegisterType((*MsgAssociateBond)(nil), "cerc.registry.v1.MsgAssociateBond") @@ -1067,72 +1067,72 @@ func init() { func init() { proto.RegisterFile("cerc/registry/v1/tx.proto", fileDescriptor_3c6eb2e5a4d8fa03) } var fileDescriptor_3c6eb2e5a4d8fa03 = []byte{ - // 1037 bytes of a gzipped FileDescriptorProto + // 1036 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x97, 0x41, 0x6f, 0xe3, 0x44, - 0x14, 0xc7, 0x3b, 0x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, 0x38, 0xc5, 0x09, 0x71, 0x45, + 0xac, 0x43, 0x6d, 0x23, 0x95, 0x22, 0xb2, 0x13, 0x73, 0xaf, 0xbe, 0x13, 0xe7, 0xd4, 0xc9, 0x67, + 0x9d, 0x65, 0x11, 0xac, 0x1f, 0xc2, 0x9d, 0x2e, 0x33, 0x3f, 0x20, 0x03, 0xe2, 0x92, 0x8c, 0x06, + 0x65, 0x14, 0x2a, 0x6e, 0x73, 0x1f, 0xde, 0x8e, 0xe5, 0x11, 0x06, 0x63, 0x58, 0xe5, 0xb5, 0xb2, + 0xc9, 0x28, 0x38, 0x7c, 0x1d, 0x28, 0xf8, 0x9b, 0x70, 0x7a, 0xfc, 0xea, 0x57, 0x93, 0xea, 0x96, + 0xbf, 0x68, 0x11, 0x0a, 0x97, 0x3d, 0x9d, 0xd0, 0xde, 0xf0, 0xc7, 0xd9, 0x87, 0x30, 0xce, 0x54, + 0x86, 0x7b, 0x71, 0x6b, 0x01, 0xf5, 0x07, 0x82, 0x52, 0x97, 0x99, 0x47, 0x8c, 0xd1, 0xbe, 0xa5, + 0xbb, 0x84, 0xb7, 0xe7, 0x75, 0x70, 0xdd, 0x78, 0x3b, 0x65, 0x28, 0xcf, 0x82, 0x8b, 0x55, 0x7d, + 0x01, 0x77, 0xbd, 0x1e, 0x58, 0xaf, 0x7d, 0x55, 0x0b, 0x55, 0x7b, 0x03, 0xd6, 0x13, 0xee, 0x02, + 0x6d, 0xc4, 0x5f, 0x6a, 0xd3, 0xa0, 0xdf, 0x0f, 0x76, 0x13, 0x2f, 0xe2, 0x38, 0x95, 0x02, 0x95, + 0x34, 0x63, 0x01, 0xf6, 0x27, 0xe2, 0x1b, 0x57, 0x23, 0xfa, 0x2c, 0xda, 0x31, 0x14, 0x6d, 0x32, + 0xea, 0xc5, 0xf1, 0x1e, 0x5c, 0x4d, 0xaa, 0x75, 0x1f, 0x2f, 0x12, 0x0c, 0x11, 0xa3, 0x53, 0x5a, + 0xc1, 0x26, 0xa3, 0x8e, 0x4f, 0x7a, 0x0c, 0x45, 0x3a, 0x30, 0x7a, 0xf1, 0x9d, 0x11, 0x49, 0x15, + 0x09, 0x86, 0xa9, 0xa2, 0x53, 0x5a, 0x81, 0x0e, 0x8c, 0xce, 0xff, 0xd8, 0x24, 0x55, 0xd8, 0x4c, + 0x5d, 0x53, 0xb8, 0xea, 0xf6, 0x37, 0x45, 0xc8, 0x77, 0x99, 0x29, 0x8d, 0xa1, 0x30, 0xfd, 0x28, + 0x2a, 0xc9, 0xd7, 0x7f, 0xf4, 0x43, 0x24, 0x37, 0xe6, 0xc7, 0x45, 0x49, 0x77, 0x9e, 0xfe, 0xf5, + 0xef, 0x8f, 0x39, 0x05, 0x57, 0xd4, 0xc4, 0x77, 0x99, 0x11, 0xb7, 0x17, 0x7c, 0x80, 0xbe, 0x46, + 0x50, 0x8c, 0xbe, 0x15, 0x6a, 0xa9, 0xd9, 0x23, 0x0a, 0xb9, 0x79, 0x9d, 0x42, 0x10, 0x34, 0x38, + 0x41, 0x0d, 0x2b, 0x6a, 0xca, 0xcd, 0xc0, 0x6b, 0x52, 0xc0, 0xf0, 0x2d, 0x82, 0x3b, 0xf1, 0x77, + 0x00, 0x4e, 0xf5, 0x88, 0x69, 0xe4, 0xbd, 0xeb, 0x35, 0x82, 0xa4, 0xc9, 0x49, 0x30, 0xae, 0x25, + 0x49, 0x44, 0x73, 0x78, 0x9f, 0xa5, 0xef, 0x11, 0xac, 0xce, 0x1c, 0xdd, 0xed, 0x54, 0xa3, 0xb8, + 0x48, 0xde, 0x5f, 0x40, 0x24, 0x70, 0x1e, 0x70, 0x9c, 0x6d, 0xbc, 0x95, 0xc4, 0x31, 0xac, 0x38, + 0xcf, 0x2f, 0x08, 0xee, 0x26, 0xcf, 0x6b, 0xe3, 0x1a, 0xb7, 0x40, 0x27, 0xb7, 0x16, 0xd3, 0x09, + 0xb0, 0x77, 0x38, 0x58, 0x03, 0xef, 0xcc, 0x05, 0x73, 0x02, 0x8a, 0x5f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 0xb6, 0xfa, 0x6d, 0x43, 0x7d, 0x22, 0xf2, 0x9f, 0x2e, 0xf3, 0xff, 0x38, 0xef, 0xfd, 0x17, + 0x00, 0x00, 0xff, 0xff, 0x69, 0x83, 0x2d, 0xbe, 0x80, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1161,10 +1161,10 @@ type MsgClient interface { ReassociateRecords(ctx context.Context, in *MsgReassociateRecords, opts ...grpc.CallOption) (*MsgReassociateRecordsResponse, error) // SetName will store the name with given lrn and name SetName(ctx context.Context, in *MsgSetName, opts ...grpc.CallOption) (*MsgSetNameResponse, error) - // Reserve name - ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) // Delete Name method will remove authority name - DeleteName(ctx context.Context, in *MsgDeleteNameAuthority, opts ...grpc.CallOption) (*MsgDeleteNameAuthorityResponse, error) + DeleteName(ctx context.Context, in *MsgDeleteName, opts ...grpc.CallOption) (*MsgDeleteNameResponse, error) + // Reserve authority name + ReserveAuthority(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) // SetAuthorityBond SetAuthorityBond(ctx context.Context, in *MsgSetAuthorityBond, opts ...grpc.CallOption) (*MsgSetAuthorityBondResponse, error) } @@ -1240,18 +1240,18 @@ func (c *msgClient) SetName(ctx context.Context, in *MsgSetName, opts ...grpc.Ca return out, nil } -func (c *msgClient) ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) { - out := new(MsgReserveAuthorityResponse) - err := c.cc.Invoke(ctx, "/cerc.registry.v1.Msg/ReserveName", in, out, opts...) +func (c *msgClient) DeleteName(ctx context.Context, in *MsgDeleteName, opts ...grpc.CallOption) (*MsgDeleteNameResponse, error) { + out := new(MsgDeleteNameResponse) + err := c.cc.Invoke(ctx, "/cerc.registry.v1.Msg/DeleteName", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) DeleteName(ctx context.Context, in *MsgDeleteNameAuthority, opts ...grpc.CallOption) (*MsgDeleteNameAuthorityResponse, error) { - out := new(MsgDeleteNameAuthorityResponse) - err := c.cc.Invoke(ctx, "/cerc.registry.v1.Msg/DeleteName", in, out, opts...) +func (c *msgClient) ReserveAuthority(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) { + out := new(MsgReserveAuthorityResponse) + err := c.cc.Invoke(ctx, "/cerc.registry.v1.Msg/ReserveAuthority", in, out, opts...) if err != nil { return nil, err } @@ -1283,10 +1283,10 @@ type MsgServer interface { ReassociateRecords(context.Context, *MsgReassociateRecords) (*MsgReassociateRecordsResponse, error) // SetName will store the name with given lrn and name SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error) - // Reserve name - ReserveName(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) // Delete Name method will remove authority name - DeleteName(context.Context, *MsgDeleteNameAuthority) (*MsgDeleteNameAuthorityResponse, error) + DeleteName(context.Context, *MsgDeleteName) (*MsgDeleteNameResponse, error) + // Reserve authority name + ReserveAuthority(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) // SetAuthorityBond SetAuthorityBond(context.Context, *MsgSetAuthorityBond) (*MsgSetAuthorityBondResponse, error) } @@ -1316,12 +1316,12 @@ func (*UnimplementedMsgServer) ReassociateRecords(ctx context.Context, req *MsgR func (*UnimplementedMsgServer) SetName(ctx context.Context, req *MsgSetName) (*MsgSetNameResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetName not implemented") } -func (*UnimplementedMsgServer) ReserveName(ctx context.Context, req *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReserveName not implemented") -} -func (*UnimplementedMsgServer) DeleteName(ctx context.Context, req *MsgDeleteNameAuthority) (*MsgDeleteNameAuthorityResponse, error) { +func (*UnimplementedMsgServer) DeleteName(ctx context.Context, req *MsgDeleteName) (*MsgDeleteNameResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteName not implemented") } +func (*UnimplementedMsgServer) ReserveAuthority(ctx context.Context, req *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReserveAuthority not implemented") +} func (*UnimplementedMsgServer) SetAuthorityBond(ctx context.Context, req *MsgSetAuthorityBond) (*MsgSetAuthorityBondResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetAuthorityBond not implemented") } @@ -1456,26 +1456,8 @@ func _Msg_SetName_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Msg_ReserveName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgReserveAuthority) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ReserveName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cerc.registry.v1.Msg/ReserveName", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ReserveName(ctx, req.(*MsgReserveAuthority)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_DeleteName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDeleteNameAuthority) + in := new(MsgDeleteName) if err := dec(in); err != nil { return nil, err } @@ -1487,7 +1469,25 @@ func _Msg_DeleteName_Handler(srv interface{}, ctx context.Context, dec func(inte FullMethod: "/cerc.registry.v1.Msg/DeleteName", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).DeleteName(ctx, req.(*MsgDeleteNameAuthority)) + return srv.(MsgServer).DeleteName(ctx, req.(*MsgDeleteName)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ReserveAuthority_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgReserveAuthority) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ReserveAuthority(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cerc.registry.v1.Msg/ReserveAuthority", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ReserveAuthority(ctx, req.(*MsgReserveAuthority)) } return interceptor(ctx, in, info, handler) } @@ -1542,14 +1542,14 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "SetName", Handler: _Msg_SetName_Handler, }, - { - MethodName: "ReserveName", - Handler: _Msg_ReserveName_Handler, - }, { MethodName: "DeleteName", Handler: _Msg_DeleteName_Handler, }, + { + MethodName: "ReserveAuthority", + Handler: _Msg_ReserveAuthority_Handler, + }, { MethodName: "SetAuthorityBond", Handler: _Msg_SetAuthorityBond_Handler, @@ -1886,7 +1886,7 @@ func (m *MsgSetAuthorityBondResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *MsgDeleteNameAuthority) Marshal() (dAtA []byte, err error) { +func (m *MsgDeleteName) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1896,12 +1896,12 @@ func (m *MsgDeleteNameAuthority) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgDeleteNameAuthority) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgDeleteName) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgDeleteNameAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgDeleteName) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1923,7 +1923,7 @@ func (m *MsgDeleteNameAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgDeleteNameAuthorityResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgDeleteNameResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1933,12 +1933,12 @@ func (m *MsgDeleteNameAuthorityResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgDeleteNameAuthorityResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgDeleteNameResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgDeleteNameAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgDeleteNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2412,7 +2412,7 @@ func (m *MsgSetAuthorityBondResponse) Size() (n int) { return n } -func (m *MsgDeleteNameAuthority) Size() (n int) { +func (m *MsgDeleteName) Size() (n int) { if m == nil { return 0 } @@ -2429,7 +2429,7 @@ func (m *MsgDeleteNameAuthority) Size() (n int) { return n } -func (m *MsgDeleteNameAuthorityResponse) Size() (n int) { +func (m *MsgDeleteNameResponse) Size() (n int) { if m == nil { return 0 } @@ -3519,7 +3519,7 @@ func (m *MsgSetAuthorityBondResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgDeleteNameAuthority) Unmarshal(dAtA []byte) error { +func (m *MsgDeleteName) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3542,10 +3542,10 @@ func (m *MsgDeleteNameAuthority) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgDeleteNameAuthority: wiretype end group for non-group") + return fmt.Errorf("proto: MsgDeleteName: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDeleteNameAuthority: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgDeleteName: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3633,7 +3633,7 @@ func (m *MsgDeleteNameAuthority) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgDeleteNameAuthorityResponse) Unmarshal(dAtA []byte) error { +func (m *MsgDeleteNameResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3656,10 +3656,10 @@ func (m *MsgDeleteNameAuthorityResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgDeleteNameAuthorityResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgDeleteNameResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDeleteNameAuthorityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgDeleteNameResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: diff --git a/x/registry/tx.pb.gw.go b/x/registry/tx.pb.gw.go index df64c4da..edad9ea0 100644 --- a/x/registry/tx.pb.gw.go +++ b/x/registry/tx.pb.gw.go @@ -285,48 +285,12 @@ func local_request_Msg_SetName_0(ctx context.Context, marshaler runtime.Marshale } -var ( - filter_Msg_ReserveName_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Msg_ReserveName_0(ctx context.Context, marshaler runtime.Marshaler, client MsgClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MsgReserveAuthority - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Msg_ReserveName_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ReserveName(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Msg_ReserveName_0(ctx context.Context, marshaler runtime.Marshaler, server MsgServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MsgReserveAuthority - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Msg_ReserveName_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ReserveName(ctx, &protoReq) - return msg, metadata, err - -} - var ( filter_Msg_DeleteName_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) func request_Msg_DeleteName_0(ctx context.Context, marshaler runtime.Marshaler, client MsgClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MsgDeleteNameAuthority + var protoReq MsgDeleteName var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -342,7 +306,7 @@ func request_Msg_DeleteName_0(ctx context.Context, marshaler runtime.Marshaler, } func local_request_Msg_DeleteName_0(ctx context.Context, marshaler runtime.Marshaler, server MsgServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MsgDeleteNameAuthority + var protoReq MsgDeleteName var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -357,6 +321,42 @@ func local_request_Msg_DeleteName_0(ctx context.Context, marshaler runtime.Marsh } +var ( + filter_Msg_ReserveAuthority_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Msg_ReserveAuthority_0(ctx context.Context, marshaler runtime.Marshaler, client MsgClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq MsgReserveAuthority + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Msg_ReserveAuthority_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ReserveAuthority(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Msg_ReserveAuthority_0(ctx context.Context, marshaler runtime.Marshaler, server MsgServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq MsgReserveAuthority + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Msg_ReserveAuthority_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ReserveAuthority(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_Msg_SetAuthorityBond_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -560,29 +560,6 @@ func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server }) - mux.Handle("POST", pattern_Msg_ReserveName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Msg_ReserveName_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Msg_ReserveName_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("POST", pattern_Msg_DeleteName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -606,6 +583,29 @@ func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server }) + mux.Handle("POST", pattern_Msg_ReserveAuthority_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Msg_ReserveAuthority_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Msg_ReserveAuthority_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("POST", pattern_Msg_SetAuthorityBond_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -810,26 +810,6 @@ func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client }) - mux.Handle("POST", pattern_Msg_ReserveName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Msg_ReserveName_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Msg_ReserveName_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("POST", pattern_Msg_DeleteName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -850,6 +830,26 @@ func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client }) + mux.Handle("POST", pattern_Msg_ReserveAuthority_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Msg_ReserveAuthority_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Msg_ReserveAuthority_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("POST", pattern_Msg_SetAuthorityBond_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -888,10 +888,10 @@ var ( pattern_Msg_SetName_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "set_name"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Msg_ReserveName_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "reserve_name"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Msg_DeleteName_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "delete_name"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Msg_ReserveAuthority_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "reserve_authority"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Msg_SetAuthorityBond_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "set_authority_bond"}, "", runtime.AssumeColonVerbOpt(false))) ) @@ -910,9 +910,9 @@ var ( forward_Msg_SetName_0 = runtime.ForwardResponseMessage - forward_Msg_ReserveName_0 = runtime.ForwardResponseMessage - forward_Msg_DeleteName_0 = runtime.ForwardResponseMessage + forward_Msg_ReserveAuthority_0 = runtime.ForwardResponseMessage + forward_Msg_SetAuthorityBond_0 = runtime.ForwardResponseMessage )