Add bond-record association commands to registry module (#8)
Reviewed-on: deep-stack/laconic2d#8 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
parent
d2339e2426
commit
ba7a127d7f
@ -8548,29 +8548,29 @@ func (x *fastReflection_MsgDissociateRecordsResponse) ProtoMethods() *protoiface
|
||||
}
|
||||
|
||||
var (
|
||||
md_MsgReAssociateRecords protoreflect.MessageDescriptor
|
||||
fd_MsgReAssociateRecords_new_bond_id protoreflect.FieldDescriptor
|
||||
fd_MsgReAssociateRecords_old_bond_id protoreflect.FieldDescriptor
|
||||
fd_MsgReAssociateRecords_signer protoreflect.FieldDescriptor
|
||||
md_MsgReassociateRecords protoreflect.MessageDescriptor
|
||||
fd_MsgReassociateRecords_new_bond_id protoreflect.FieldDescriptor
|
||||
fd_MsgReassociateRecords_old_bond_id protoreflect.FieldDescriptor
|
||||
fd_MsgReassociateRecords_signer protoreflect.FieldDescriptor
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_cerc_registry_v1_tx_proto_init()
|
||||
md_MsgReAssociateRecords = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgReAssociateRecords")
|
||||
fd_MsgReAssociateRecords_new_bond_id = md_MsgReAssociateRecords.Fields().ByName("new_bond_id")
|
||||
fd_MsgReAssociateRecords_old_bond_id = md_MsgReAssociateRecords.Fields().ByName("old_bond_id")
|
||||
fd_MsgReAssociateRecords_signer = md_MsgReAssociateRecords.Fields().ByName("signer")
|
||||
md_MsgReassociateRecords = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgReassociateRecords")
|
||||
fd_MsgReassociateRecords_new_bond_id = md_MsgReassociateRecords.Fields().ByName("new_bond_id")
|
||||
fd_MsgReassociateRecords_old_bond_id = md_MsgReassociateRecords.Fields().ByName("old_bond_id")
|
||||
fd_MsgReassociateRecords_signer = md_MsgReassociateRecords.Fields().ByName("signer")
|
||||
}
|
||||
|
||||
var _ protoreflect.Message = (*fastReflection_MsgReAssociateRecords)(nil)
|
||||
var _ protoreflect.Message = (*fastReflection_MsgReassociateRecords)(nil)
|
||||
|
||||
type fastReflection_MsgReAssociateRecords MsgReAssociateRecords
|
||||
type fastReflection_MsgReassociateRecords MsgReassociateRecords
|
||||
|
||||
func (x *MsgReAssociateRecords) ProtoReflect() protoreflect.Message {
|
||||
return (*fastReflection_MsgReAssociateRecords)(x)
|
||||
func (x *MsgReassociateRecords) ProtoReflect() protoreflect.Message {
|
||||
return (*fastReflection_MsgReassociateRecords)(x)
|
||||
}
|
||||
|
||||
func (x *MsgReAssociateRecords) slowProtoReflect() protoreflect.Message {
|
||||
func (x *MsgReassociateRecords) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_cerc_registry_v1_tx_proto_msgTypes[19]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -8582,43 +8582,43 @@ func (x *MsgReAssociateRecords) slowProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
var _fastReflection_MsgReAssociateRecords_messageType fastReflection_MsgReAssociateRecords_messageType
|
||||
var _ protoreflect.MessageType = fastReflection_MsgReAssociateRecords_messageType{}
|
||||
var _fastReflection_MsgReassociateRecords_messageType fastReflection_MsgReassociateRecords_messageType
|
||||
var _ protoreflect.MessageType = fastReflection_MsgReassociateRecords_messageType{}
|
||||
|
||||
type fastReflection_MsgReAssociateRecords_messageType struct{}
|
||||
type fastReflection_MsgReassociateRecords_messageType struct{}
|
||||
|
||||
func (x fastReflection_MsgReAssociateRecords_messageType) Zero() protoreflect.Message {
|
||||
return (*fastReflection_MsgReAssociateRecords)(nil)
|
||||
func (x fastReflection_MsgReassociateRecords_messageType) Zero() protoreflect.Message {
|
||||
return (*fastReflection_MsgReassociateRecords)(nil)
|
||||
}
|
||||
func (x fastReflection_MsgReAssociateRecords_messageType) New() protoreflect.Message {
|
||||
return new(fastReflection_MsgReAssociateRecords)
|
||||
func (x fastReflection_MsgReassociateRecords_messageType) New() protoreflect.Message {
|
||||
return new(fastReflection_MsgReassociateRecords)
|
||||
}
|
||||
func (x fastReflection_MsgReAssociateRecords_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||||
return md_MsgReAssociateRecords
|
||||
func (x fastReflection_MsgReassociateRecords_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||||
return md_MsgReassociateRecords
|
||||
}
|
||||
|
||||
// Descriptor returns message descriptor, which contains only the protobuf
|
||||
// type information for the message.
|
||||
func (x *fastReflection_MsgReAssociateRecords) Descriptor() protoreflect.MessageDescriptor {
|
||||
return md_MsgReAssociateRecords
|
||||
func (x *fastReflection_MsgReassociateRecords) Descriptor() protoreflect.MessageDescriptor {
|
||||
return md_MsgReassociateRecords
|
||||
}
|
||||
|
||||
// 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_MsgReAssociateRecords) Type() protoreflect.MessageType {
|
||||
return _fastReflection_MsgReAssociateRecords_messageType
|
||||
func (x *fastReflection_MsgReassociateRecords) Type() protoreflect.MessageType {
|
||||
return _fastReflection_MsgReassociateRecords_messageType
|
||||
}
|
||||
|
||||
// New returns a newly allocated and mutable empty message.
|
||||
func (x *fastReflection_MsgReAssociateRecords) New() protoreflect.Message {
|
||||
return new(fastReflection_MsgReAssociateRecords)
|
||||
func (x *fastReflection_MsgReassociateRecords) New() protoreflect.Message {
|
||||
return new(fastReflection_MsgReassociateRecords)
|
||||
}
|
||||
|
||||
// Interface unwraps the message reflection interface and
|
||||
// returns the underlying ProtoMessage interface.
|
||||
func (x *fastReflection_MsgReAssociateRecords) Interface() protoreflect.ProtoMessage {
|
||||
return (*MsgReAssociateRecords)(x)
|
||||
func (x *fastReflection_MsgReassociateRecords) Interface() protoreflect.ProtoMessage {
|
||||
return (*MsgReassociateRecords)(x)
|
||||
}
|
||||
|
||||
// Range iterates over every populated field in an undefined order,
|
||||
@ -8626,22 +8626,22 @@ func (x *fastReflection_MsgReAssociateRecords) Interface() protoreflect.ProtoMes
|
||||
// Range returns immediately if f returns false.
|
||||
// While iterating, mutating operations may only be performed
|
||||
// on the current field descriptor.
|
||||
func (x *fastReflection_MsgReAssociateRecords) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||||
func (x *fastReflection_MsgReassociateRecords) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||||
if x.NewBondId != "" {
|
||||
value := protoreflect.ValueOfString(x.NewBondId)
|
||||
if !f(fd_MsgReAssociateRecords_new_bond_id, value) {
|
||||
if !f(fd_MsgReassociateRecords_new_bond_id, value) {
|
||||
return
|
||||
}
|
||||
}
|
||||
if x.OldBondId != "" {
|
||||
value := protoreflect.ValueOfString(x.OldBondId)
|
||||
if !f(fd_MsgReAssociateRecords_old_bond_id, value) {
|
||||
if !f(fd_MsgReassociateRecords_old_bond_id, value) {
|
||||
return
|
||||
}
|
||||
}
|
||||
if x.Signer != "" {
|
||||
value := protoreflect.ValueOfString(x.Signer)
|
||||
if !f(fd_MsgReAssociateRecords_signer, value) {
|
||||
if !f(fd_MsgReassociateRecords_signer, value) {
|
||||
return
|
||||
}
|
||||
}
|
||||
@ -8658,19 +8658,19 @@ func (x *fastReflection_MsgReAssociateRecords) Range(f func(protoreflect.FieldDe
|
||||
// In other cases (aside from the nullable cases above),
|
||||
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_MsgReAssociateRecords) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
func (x *fastReflection_MsgReassociateRecords) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.new_bond_id":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.new_bond_id":
|
||||
return x.NewBondId != ""
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.old_bond_id":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.old_bond_id":
|
||||
return x.OldBondId != ""
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.signer":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.signer":
|
||||
return x.Signer != ""
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReAssociateRecords"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecords"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecords does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecords does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -8680,19 +8680,19 @@ func (x *fastReflection_MsgReAssociateRecords) Has(fd protoreflect.FieldDescript
|
||||
// associated with the given field number.
|
||||
//
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgReAssociateRecords) Clear(fd protoreflect.FieldDescriptor) {
|
||||
func (x *fastReflection_MsgReassociateRecords) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.new_bond_id":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.new_bond_id":
|
||||
x.NewBondId = ""
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.old_bond_id":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.old_bond_id":
|
||||
x.OldBondId = ""
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.signer":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.signer":
|
||||
x.Signer = ""
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReAssociateRecords"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecords"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecords does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecords does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -8702,22 +8702,22 @@ func (x *fastReflection_MsgReAssociateRecords) Clear(fd protoreflect.FieldDescri
|
||||
// the default value of a bytes scalar is guaranteed to be a copy.
|
||||
// For unpopulated composite types, it returns an empty, read-only view
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_MsgReAssociateRecords) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
func (x *fastReflection_MsgReassociateRecords) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.new_bond_id":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.new_bond_id":
|
||||
value := x.NewBondId
|
||||
return protoreflect.ValueOfString(value)
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.old_bond_id":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.old_bond_id":
|
||||
value := x.OldBondId
|
||||
return protoreflect.ValueOfString(value)
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.signer":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.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.MsgReAssociateRecords"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecords"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecords does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecords does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -8731,19 +8731,19 @@ func (x *fastReflection_MsgReAssociateRecords) Get(descriptor protoreflect.Field
|
||||
// empty, read-only value, then it panics.
|
||||
//
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgReAssociateRecords) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
func (x *fastReflection_MsgReassociateRecords) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.new_bond_id":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.new_bond_id":
|
||||
x.NewBondId = value.Interface().(string)
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.old_bond_id":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.old_bond_id":
|
||||
x.OldBondId = value.Interface().(string)
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.signer":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.signer":
|
||||
x.Signer = value.Interface().(string)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReAssociateRecords"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecords"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecords does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecords does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -8757,48 +8757,48 @@ func (x *fastReflection_MsgReAssociateRecords) Set(fd protoreflect.FieldDescript
|
||||
// It panics if the field does not contain a composite type.
|
||||
//
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgReAssociateRecords) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
func (x *fastReflection_MsgReassociateRecords) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.new_bond_id":
|
||||
panic(fmt.Errorf("field new_bond_id of message cerc.registry.v1.MsgReAssociateRecords is not mutable"))
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.old_bond_id":
|
||||
panic(fmt.Errorf("field old_bond_id of message cerc.registry.v1.MsgReAssociateRecords is not mutable"))
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.signer":
|
||||
panic(fmt.Errorf("field signer of message cerc.registry.v1.MsgReAssociateRecords is not mutable"))
|
||||
case "cerc.registry.v1.MsgReassociateRecords.new_bond_id":
|
||||
panic(fmt.Errorf("field new_bond_id of message cerc.registry.v1.MsgReassociateRecords is not mutable"))
|
||||
case "cerc.registry.v1.MsgReassociateRecords.old_bond_id":
|
||||
panic(fmt.Errorf("field old_bond_id of message cerc.registry.v1.MsgReassociateRecords is not mutable"))
|
||||
case "cerc.registry.v1.MsgReassociateRecords.signer":
|
||||
panic(fmt.Errorf("field signer of message cerc.registry.v1.MsgReassociateRecords is not mutable"))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReAssociateRecords"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecords"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecords does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecords 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_MsgReAssociateRecords) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
func (x *fastReflection_MsgReassociateRecords) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.new_bond_id":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.new_bond_id":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.old_bond_id":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.old_bond_id":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "cerc.registry.v1.MsgReAssociateRecords.signer":
|
||||
case "cerc.registry.v1.MsgReassociateRecords.signer":
|
||||
return protoreflect.ValueOfString("")
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReAssociateRecords"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecords"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecords does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecords 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_MsgReAssociateRecords) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
func (x *fastReflection_MsgReassociateRecords) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.MsgReAssociateRecords", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.MsgReassociateRecords", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -8806,7 +8806,7 @@ func (x *fastReflection_MsgReAssociateRecords) WhichOneof(d protoreflect.OneofDe
|
||||
// GetUnknown retrieves the entire list of unknown fields.
|
||||
// The caller may only mutate the contents of the RawFields
|
||||
// if the mutated bytes are stored back into the message with SetUnknown.
|
||||
func (x *fastReflection_MsgReAssociateRecords) GetUnknown() protoreflect.RawFields {
|
||||
func (x *fastReflection_MsgReassociateRecords) GetUnknown() protoreflect.RawFields {
|
||||
return x.unknownFields
|
||||
}
|
||||
|
||||
@ -8817,7 +8817,7 @@ func (x *fastReflection_MsgReAssociateRecords) GetUnknown() protoreflect.RawFiel
|
||||
// An empty RawFields may be passed to clear the fields.
|
||||
//
|
||||
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgReAssociateRecords) SetUnknown(fields protoreflect.RawFields) {
|
||||
func (x *fastReflection_MsgReassociateRecords) SetUnknown(fields protoreflect.RawFields) {
|
||||
x.unknownFields = fields
|
||||
}
|
||||
|
||||
@ -8829,7 +8829,7 @@ func (x *fastReflection_MsgReAssociateRecords) SetUnknown(fields protoreflect.Ra
|
||||
// message type, but the details are implementation dependent.
|
||||
// Validity is not part of the protobuf data model, and may not
|
||||
// be preserved in marshaling or other operations.
|
||||
func (x *fastReflection_MsgReAssociateRecords) IsValid() bool {
|
||||
func (x *fastReflection_MsgReassociateRecords) IsValid() bool {
|
||||
return x != nil
|
||||
}
|
||||
|
||||
@ -8839,9 +8839,9 @@ func (x *fastReflection_MsgReAssociateRecords) 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_MsgReAssociateRecords) ProtoMethods() *protoiface.Methods {
|
||||
func (x *fastReflection_MsgReassociateRecords) ProtoMethods() *protoiface.Methods {
|
||||
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||||
x := input.Message.Interface().(*MsgReAssociateRecords)
|
||||
x := input.Message.Interface().(*MsgReassociateRecords)
|
||||
if x == nil {
|
||||
return protoiface.SizeOutput{
|
||||
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||||
@ -8875,7 +8875,7 @@ func (x *fastReflection_MsgReAssociateRecords) ProtoMethods() *protoiface.Method
|
||||
}
|
||||
|
||||
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
||||
x := input.Message.Interface().(*MsgReAssociateRecords)
|
||||
x := input.Message.Interface().(*MsgReassociateRecords)
|
||||
if x == nil {
|
||||
return protoiface.MarshalOutput{
|
||||
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||||
@ -8926,7 +8926,7 @@ func (x *fastReflection_MsgReAssociateRecords) ProtoMethods() *protoiface.Method
|
||||
}, nil
|
||||
}
|
||||
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
||||
x := input.Message.Interface().(*MsgReAssociateRecords)
|
||||
x := input.Message.Interface().(*MsgReassociateRecords)
|
||||
if x == nil {
|
||||
return protoiface.UnmarshalOutput{
|
||||
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||||
@ -8958,10 +8958,10 @@ func (x *fastReflection_MsgReAssociateRecords) ProtoMethods() *protoiface.Method
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReAssociateRecords: wiretype end group for non-group")
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReassociateRecords: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReAssociateRecords: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReassociateRecords: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
@ -9096,23 +9096,23 @@ func (x *fastReflection_MsgReAssociateRecords) ProtoMethods() *protoiface.Method
|
||||
}
|
||||
|
||||
var (
|
||||
md_MsgReAssociateRecordsResponse protoreflect.MessageDescriptor
|
||||
md_MsgReassociateRecordsResponse protoreflect.MessageDescriptor
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_cerc_registry_v1_tx_proto_init()
|
||||
md_MsgReAssociateRecordsResponse = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgReAssociateRecordsResponse")
|
||||
md_MsgReassociateRecordsResponse = File_cerc_registry_v1_tx_proto.Messages().ByName("MsgReassociateRecordsResponse")
|
||||
}
|
||||
|
||||
var _ protoreflect.Message = (*fastReflection_MsgReAssociateRecordsResponse)(nil)
|
||||
var _ protoreflect.Message = (*fastReflection_MsgReassociateRecordsResponse)(nil)
|
||||
|
||||
type fastReflection_MsgReAssociateRecordsResponse MsgReAssociateRecordsResponse
|
||||
type fastReflection_MsgReassociateRecordsResponse MsgReassociateRecordsResponse
|
||||
|
||||
func (x *MsgReAssociateRecordsResponse) ProtoReflect() protoreflect.Message {
|
||||
return (*fastReflection_MsgReAssociateRecordsResponse)(x)
|
||||
func (x *MsgReassociateRecordsResponse) ProtoReflect() protoreflect.Message {
|
||||
return (*fastReflection_MsgReassociateRecordsResponse)(x)
|
||||
}
|
||||
|
||||
func (x *MsgReAssociateRecordsResponse) slowProtoReflect() protoreflect.Message {
|
||||
func (x *MsgReassociateRecordsResponse) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_cerc_registry_v1_tx_proto_msgTypes[20]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -9124,43 +9124,43 @@ func (x *MsgReAssociateRecordsResponse) slowProtoReflect() protoreflect.Message
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
var _fastReflection_MsgReAssociateRecordsResponse_messageType fastReflection_MsgReAssociateRecordsResponse_messageType
|
||||
var _ protoreflect.MessageType = fastReflection_MsgReAssociateRecordsResponse_messageType{}
|
||||
var _fastReflection_MsgReassociateRecordsResponse_messageType fastReflection_MsgReassociateRecordsResponse_messageType
|
||||
var _ protoreflect.MessageType = fastReflection_MsgReassociateRecordsResponse_messageType{}
|
||||
|
||||
type fastReflection_MsgReAssociateRecordsResponse_messageType struct{}
|
||||
type fastReflection_MsgReassociateRecordsResponse_messageType struct{}
|
||||
|
||||
func (x fastReflection_MsgReAssociateRecordsResponse_messageType) Zero() protoreflect.Message {
|
||||
return (*fastReflection_MsgReAssociateRecordsResponse)(nil)
|
||||
func (x fastReflection_MsgReassociateRecordsResponse_messageType) Zero() protoreflect.Message {
|
||||
return (*fastReflection_MsgReassociateRecordsResponse)(nil)
|
||||
}
|
||||
func (x fastReflection_MsgReAssociateRecordsResponse_messageType) New() protoreflect.Message {
|
||||
return new(fastReflection_MsgReAssociateRecordsResponse)
|
||||
func (x fastReflection_MsgReassociateRecordsResponse_messageType) New() protoreflect.Message {
|
||||
return new(fastReflection_MsgReassociateRecordsResponse)
|
||||
}
|
||||
func (x fastReflection_MsgReAssociateRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||||
return md_MsgReAssociateRecordsResponse
|
||||
func (x fastReflection_MsgReassociateRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||||
return md_MsgReassociateRecordsResponse
|
||||
}
|
||||
|
||||
// Descriptor returns message descriptor, which contains only the protobuf
|
||||
// type information for the message.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) Descriptor() protoreflect.MessageDescriptor {
|
||||
return md_MsgReAssociateRecordsResponse
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) Descriptor() protoreflect.MessageDescriptor {
|
||||
return md_MsgReassociateRecordsResponse
|
||||
}
|
||||
|
||||
// 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_MsgReAssociateRecordsResponse) Type() protoreflect.MessageType {
|
||||
return _fastReflection_MsgReAssociateRecordsResponse_messageType
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) Type() protoreflect.MessageType {
|
||||
return _fastReflection_MsgReassociateRecordsResponse_messageType
|
||||
}
|
||||
|
||||
// New returns a newly allocated and mutable empty message.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) New() protoreflect.Message {
|
||||
return new(fastReflection_MsgReAssociateRecordsResponse)
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) New() protoreflect.Message {
|
||||
return new(fastReflection_MsgReassociateRecordsResponse)
|
||||
}
|
||||
|
||||
// Interface unwraps the message reflection interface and
|
||||
// returns the underlying ProtoMessage interface.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) Interface() protoreflect.ProtoMessage {
|
||||
return (*MsgReAssociateRecordsResponse)(x)
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) Interface() protoreflect.ProtoMessage {
|
||||
return (*MsgReassociateRecordsResponse)(x)
|
||||
}
|
||||
|
||||
// Range iterates over every populated field in an undefined order,
|
||||
@ -9168,7 +9168,7 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) 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_MsgReAssociateRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||||
}
|
||||
|
||||
// Has reports whether a field is populated.
|
||||
@ -9182,13 +9182,13 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) Range(f func(protoreflect
|
||||
// In other cases (aside from the nullable cases above),
|
||||
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) 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.MsgReAssociateRecordsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecordsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecordsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecordsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -9198,13 +9198,13 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) Has(fd protoreflect.Field
|
||||
// associated with the given field number.
|
||||
//
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReAssociateRecordsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecordsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecordsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecordsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -9214,13 +9214,13 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) Clear(fd protoreflect.Fie
|
||||
// the default value of a bytes scalar is guaranteed to be a copy.
|
||||
// For unpopulated composite types, it returns an empty, read-only view
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) 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.MsgReAssociateRecordsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecordsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecordsResponse does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecordsResponse does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -9234,13 +9234,13 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) Get(descriptor protorefle
|
||||
// empty, read-only value, then it panics.
|
||||
//
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) 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.MsgReAssociateRecordsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecordsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecordsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecordsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -9254,36 +9254,36 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) Set(fd protoreflect.Field
|
||||
// It panics if the field does not contain a composite type.
|
||||
//
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) 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.MsgReAssociateRecordsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecordsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecordsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecordsResponse 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_MsgReAssociateRecordsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) 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.MsgReAssociateRecordsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.MsgReassociateRecordsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReAssociateRecordsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cerc.registry.v1.MsgReassociateRecordsResponse 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_MsgReAssociateRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.MsgReAssociateRecordsResponse", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.MsgReassociateRecordsResponse", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -9291,7 +9291,7 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) WhichOneof(d protoreflect
|
||||
// GetUnknown retrieves the entire list of unknown fields.
|
||||
// The caller may only mutate the contents of the RawFields
|
||||
// if the mutated bytes are stored back into the message with SetUnknown.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) GetUnknown() protoreflect.RawFields {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) GetUnknown() protoreflect.RawFields {
|
||||
return x.unknownFields
|
||||
}
|
||||
|
||||
@ -9302,7 +9302,7 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) GetUnknown() protoreflect
|
||||
// An empty RawFields may be passed to clear the fields.
|
||||
//
|
||||
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) SetUnknown(fields protoreflect.RawFields) {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) SetUnknown(fields protoreflect.RawFields) {
|
||||
x.unknownFields = fields
|
||||
}
|
||||
|
||||
@ -9314,7 +9314,7 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) SetUnknown(fields protore
|
||||
// message type, but the details are implementation dependent.
|
||||
// Validity is not part of the protobuf data model, and may not
|
||||
// be preserved in marshaling or other operations.
|
||||
func (x *fastReflection_MsgReAssociateRecordsResponse) IsValid() bool {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) IsValid() bool {
|
||||
return x != nil
|
||||
}
|
||||
|
||||
@ -9324,9 +9324,9 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) 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_MsgReAssociateRecordsResponse) ProtoMethods() *protoiface.Methods {
|
||||
func (x *fastReflection_MsgReassociateRecordsResponse) ProtoMethods() *protoiface.Methods {
|
||||
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||||
x := input.Message.Interface().(*MsgReAssociateRecordsResponse)
|
||||
x := input.Message.Interface().(*MsgReassociateRecordsResponse)
|
||||
if x == nil {
|
||||
return protoiface.SizeOutput{
|
||||
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||||
@ -9348,7 +9348,7 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) ProtoMethods() *protoifac
|
||||
}
|
||||
|
||||
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
||||
x := input.Message.Interface().(*MsgReAssociateRecordsResponse)
|
||||
x := input.Message.Interface().(*MsgReassociateRecordsResponse)
|
||||
if x == nil {
|
||||
return protoiface.MarshalOutput{
|
||||
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||||
@ -9378,7 +9378,7 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) ProtoMethods() *protoifac
|
||||
}, nil
|
||||
}
|
||||
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
||||
x := input.Message.Interface().(*MsgReAssociateRecordsResponse)
|
||||
x := input.Message.Interface().(*MsgReassociateRecordsResponse)
|
||||
if x == nil {
|
||||
return protoiface.UnmarshalOutput{
|
||||
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||||
@ -9410,10 +9410,10 @@ func (x *fastReflection_MsgReAssociateRecordsResponse) ProtoMethods() *protoifac
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReAssociateRecordsResponse: wiretype end group for non-group")
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReassociateRecordsResponse: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReAssociateRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReassociateRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
default:
|
||||
@ -10197,8 +10197,8 @@ func (*MsgDissociateRecordsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{18}
|
||||
}
|
||||
|
||||
// MsgReAssociateRecords
|
||||
type MsgReAssociateRecords struct {
|
||||
// MsgReassociateRecords
|
||||
type MsgReassociateRecords struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -10208,8 +10208,8 @@ type MsgReAssociateRecords struct {
|
||||
Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MsgReAssociateRecords) Reset() {
|
||||
*x = MsgReAssociateRecords{}
|
||||
func (x *MsgReassociateRecords) Reset() {
|
||||
*x = MsgReassociateRecords{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_cerc_registry_v1_tx_proto_msgTypes[19]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -10217,47 +10217,47 @@ func (x *MsgReAssociateRecords) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MsgReAssociateRecords) String() string {
|
||||
func (x *MsgReassociateRecords) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MsgReAssociateRecords) ProtoMessage() {}
|
||||
func (*MsgReassociateRecords) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use MsgReAssociateRecords.ProtoReflect.Descriptor instead.
|
||||
func (*MsgReAssociateRecords) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use MsgReassociateRecords.ProtoReflect.Descriptor instead.
|
||||
func (*MsgReassociateRecords) Descriptor() ([]byte, []int) {
|
||||
return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{19}
|
||||
}
|
||||
|
||||
func (x *MsgReAssociateRecords) GetNewBondId() string {
|
||||
func (x *MsgReassociateRecords) GetNewBondId() string {
|
||||
if x != nil {
|
||||
return x.NewBondId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *MsgReAssociateRecords) GetOldBondId() string {
|
||||
func (x *MsgReassociateRecords) GetOldBondId() string {
|
||||
if x != nil {
|
||||
return x.OldBondId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *MsgReAssociateRecords) GetSigner() string {
|
||||
func (x *MsgReassociateRecords) GetSigner() string {
|
||||
if x != nil {
|
||||
return x.Signer
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// MsgReAssociateRecordsResponse
|
||||
type MsgReAssociateRecordsResponse struct {
|
||||
// MsgReassociateRecordsResponse
|
||||
type MsgReassociateRecordsResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MsgReAssociateRecordsResponse) Reset() {
|
||||
*x = MsgReAssociateRecordsResponse{}
|
||||
func (x *MsgReassociateRecordsResponse) Reset() {
|
||||
*x = MsgReassociateRecordsResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_cerc_registry_v1_tx_proto_msgTypes[20]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -10265,14 +10265,14 @@ func (x *MsgReAssociateRecordsResponse) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MsgReAssociateRecordsResponse) String() string {
|
||||
func (x *MsgReassociateRecordsResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MsgReAssociateRecordsResponse) ProtoMessage() {}
|
||||
func (*MsgReassociateRecordsResponse) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use MsgReAssociateRecordsResponse.ProtoReflect.Descriptor instead.
|
||||
func (*MsgReAssociateRecordsResponse) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use MsgReassociateRecordsResponse.ProtoReflect.Descriptor instead.
|
||||
func (*MsgReassociateRecordsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_cerc_registry_v1_tx_proto_rawDescGZIP(), []int{20}
|
||||
}
|
||||
|
||||
@ -10388,7 +10388,7 @@ var file_cerc_registry_v1_tx_proto_rawDesc = []byte{
|
||||
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, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72,
|
||||
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,
|
||||
@ -10401,7 +10401,7 @@ var file_cerc_registry_v1_tx_proto_rawDesc = []byte{
|
||||
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, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52,
|
||||
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,
|
||||
@ -10447,12 +10447,12 @@ var file_cerc_registry_v1_tx_proto_rawDesc = []byte{
|
||||
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, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63,
|
||||
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, 0x41, 0x73, 0x73,
|
||||
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, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x52,
|
||||
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,
|
||||
@ -10540,8 +10540,8 @@ var file_cerc_registry_v1_tx_proto_goTypes = []interface{}{
|
||||
(*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
|
||||
(*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
|
||||
}
|
||||
@ -10554,7 +10554,7 @@ var file_cerc_registry_v1_tx_proto_depIdxs = []int32{
|
||||
13, // 5: cerc.registry.v1.Msg.AssociateBond:input_type -> cerc.registry.v1.MsgAssociateBond
|
||||
15, // 6: cerc.registry.v1.Msg.DissociateBond:input_type -> cerc.registry.v1.MsgDissociateBond
|
||||
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
|
||||
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
|
||||
@ -10564,7 +10564,7 @@ var file_cerc_registry_v1_tx_proto_depIdxs = []int32{
|
||||
14, // 15: cerc.registry.v1.Msg.AssociateBond:output_type -> cerc.registry.v1.MsgAssociateBondResponse
|
||||
16, // 16: cerc.registry.v1.Msg.DissociateBond:output_type -> cerc.registry.v1.MsgDissociateBondResponse
|
||||
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
|
||||
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
|
||||
@ -10812,7 +10812,7 @@ func file_cerc_registry_v1_tx_proto_init() {
|
||||
}
|
||||
}
|
||||
file_cerc_registry_v1_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MsgReAssociateRecords); i {
|
||||
switch v := v.(*MsgReassociateRecords); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -10824,7 +10824,7 @@ func file_cerc_registry_v1_tx_proto_init() {
|
||||
}
|
||||
}
|
||||
file_cerc_registry_v1_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MsgReAssociateRecordsResponse); i {
|
||||
switch v := v.(*MsgReassociateRecordsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
@ -24,7 +24,7 @@ const (
|
||||
Msg_AssociateBond_FullMethodName = "/cerc.registry.v1.Msg/AssociateBond"
|
||||
Msg_DissociateBond_FullMethodName = "/cerc.registry.v1.Msg/DissociateBond"
|
||||
Msg_DissociateRecords_FullMethodName = "/cerc.registry.v1.Msg/DissociateRecords"
|
||||
Msg_ReAssociateRecords_FullMethodName = "/cerc.registry.v1.Msg/ReAssociateRecords"
|
||||
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"
|
||||
@ -45,8 +45,8 @@ type MsgClient interface {
|
||||
DissociateBond(ctx context.Context, in *MsgDissociateBond, opts ...grpc.CallOption) (*MsgDissociateBondResponse, error)
|
||||
// DissociateRecords
|
||||
DissociateRecords(ctx context.Context, in *MsgDissociateRecords, opts ...grpc.CallOption) (*MsgDissociateRecordsResponse, error)
|
||||
// ReAssociateRecords
|
||||
ReAssociateRecords(ctx context.Context, in *MsgReAssociateRecords, opts ...grpc.CallOption) (*MsgReAssociateRecordsResponse, error)
|
||||
// ReassociateRecords
|
||||
ReassociateRecords(ctx context.Context, in *MsgReassociateRecords, opts ...grpc.CallOption) (*MsgReassociateRecordsResponse, error)
|
||||
// SetName will store the name with given crn and name
|
||||
SetName(ctx context.Context, in *MsgSetName, opts ...grpc.CallOption) (*MsgSetNameResponse, error)
|
||||
// Reserve name
|
||||
@ -110,9 +110,9 @@ func (c *msgClient) DissociateRecords(ctx context.Context, in *MsgDissociateReco
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *msgClient) ReAssociateRecords(ctx context.Context, in *MsgReAssociateRecords, opts ...grpc.CallOption) (*MsgReAssociateRecordsResponse, error) {
|
||||
out := new(MsgReAssociateRecordsResponse)
|
||||
err := c.cc.Invoke(ctx, Msg_ReAssociateRecords_FullMethodName, in, out, opts...)
|
||||
func (c *msgClient) ReassociateRecords(ctx context.Context, in *MsgReassociateRecords, opts ...grpc.CallOption) (*MsgReassociateRecordsResponse, error) {
|
||||
out := new(MsgReassociateRecordsResponse)
|
||||
err := c.cc.Invoke(ctx, Msg_ReassociateRecords_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -169,8 +169,8 @@ type MsgServer interface {
|
||||
DissociateBond(context.Context, *MsgDissociateBond) (*MsgDissociateBondResponse, error)
|
||||
// DissociateRecords
|
||||
DissociateRecords(context.Context, *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error)
|
||||
// ReAssociateRecords
|
||||
ReAssociateRecords(context.Context, *MsgReAssociateRecords) (*MsgReAssociateRecordsResponse, error)
|
||||
// ReassociateRecords
|
||||
ReassociateRecords(context.Context, *MsgReassociateRecords) (*MsgReassociateRecordsResponse, error)
|
||||
// SetName will store the name with given crn and name
|
||||
SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error)
|
||||
// Reserve name
|
||||
@ -201,8 +201,8 @@ func (UnimplementedMsgServer) DissociateBond(context.Context, *MsgDissociateBond
|
||||
func (UnimplementedMsgServer) DissociateRecords(context.Context, *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DissociateRecords not implemented")
|
||||
}
|
||||
func (UnimplementedMsgServer) ReAssociateRecords(context.Context, *MsgReAssociateRecords) (*MsgReAssociateRecordsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ReAssociateRecords not implemented")
|
||||
func (UnimplementedMsgServer) ReassociateRecords(context.Context, *MsgReassociateRecords) (*MsgReassociateRecordsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ReassociateRecords not implemented")
|
||||
}
|
||||
func (UnimplementedMsgServer) SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SetName not implemented")
|
||||
@ -319,20 +319,20 @@ func _Msg_DissociateRecords_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Msg_ReAssociateRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(MsgReAssociateRecords)
|
||||
func _Msg_ReassociateRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(MsgReassociateRecords)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MsgServer).ReAssociateRecords(ctx, in)
|
||||
return srv.(MsgServer).ReassociateRecords(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Msg_ReAssociateRecords_FullMethodName,
|
||||
FullMethod: Msg_ReassociateRecords_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).ReAssociateRecords(ctx, req.(*MsgReAssociateRecords))
|
||||
return srv.(MsgServer).ReassociateRecords(ctx, req.(*MsgReassociateRecords))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@ -437,8 +437,8 @@ var Msg_ServiceDesc = grpc.ServiceDesc{
|
||||
Handler: _Msg_DissociateRecords_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ReAssociateRecords",
|
||||
Handler: _Msg_ReAssociateRecords_Handler,
|
||||
MethodName: "ReassociateRecords",
|
||||
Handler: _Msg_ReassociateRecords_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SetName",
|
||||
|
@ -38,8 +38,8 @@ service Msg {
|
||||
option (google.api.http).post = "/cerc/registry/v1/dissociate_records";
|
||||
}
|
||||
|
||||
// ReAssociateRecords
|
||||
rpc ReAssociateRecords(MsgReAssociateRecords) returns (MsgReAssociateRecordsResponse) {
|
||||
// ReassociateRecords
|
||||
rpc ReassociateRecords(MsgReassociateRecords) returns (MsgReassociateRecordsResponse) {
|
||||
option (google.api.http).post = "/cerc/registry/v1/reassociate_records";
|
||||
}
|
||||
|
||||
@ -181,8 +181,8 @@ message MsgDissociateRecords {
|
||||
// MsgDissociateRecordsResponse
|
||||
message MsgDissociateRecordsResponse {}
|
||||
|
||||
// MsgReAssociateRecords
|
||||
message MsgReAssociateRecords {
|
||||
// MsgReassociateRecords
|
||||
message MsgReassociateRecords {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string new_bond_id = 1 [(gogoproto.moretags) = "json:\"new_bond_id\" yaml:\"new_bond_id\""];
|
||||
@ -190,5 +190,5 @@ message MsgReAssociateRecords {
|
||||
string signer = 3;
|
||||
}
|
||||
|
||||
// MsgReAssociateRecordsResponse
|
||||
message MsgReAssociateRecordsResponse {}
|
||||
// MsgReassociateRecordsResponse
|
||||
message MsgReassociateRecordsResponse {}
|
||||
|
@ -25,15 +25,6 @@ func GetTxCmd() *cobra.Command {
|
||||
|
||||
registryTxCmd.AddCommand(
|
||||
GetCmdSetRecord(),
|
||||
// GetCmdRenewRecord(),
|
||||
// GetCmdAssociateBond(),
|
||||
// GetCmdDissociateBond(),
|
||||
// GetCmdDissociateRecords(),
|
||||
// GetCmdReAssociateRecords(),
|
||||
// GetCmdSetName(),
|
||||
// GetCmdReserveName(),
|
||||
// GetCmdSetAuthorityBond(),
|
||||
// GetCmdDeleteName(),
|
||||
)
|
||||
|
||||
return registryTxCmd
|
||||
|
@ -18,7 +18,7 @@ func RegisterInterfaces(registry types.InterfaceRegistry) {
|
||||
&MsgAssociateBond{},
|
||||
&MsgDissociateBond{},
|
||||
&MsgDissociateRecords{},
|
||||
&MsgReAssociateRecords{},
|
||||
&MsgReassociateRecords{},
|
||||
)
|
||||
|
||||
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
||||
|
@ -9,7 +9,7 @@ const (
|
||||
EventTypeAssociateBond = "associate-bond"
|
||||
EventTypeDissociateBond = "dissociate-bond"
|
||||
EventTypeDissociateRecords = "dissociate-record"
|
||||
EventTypeReAssociateRecords = "re-associate-records"
|
||||
EventTypeReassociateRecords = "re-associate-records"
|
||||
|
||||
AttributeKeySigner = "signer"
|
||||
AttributeKeyOwner = "owner"
|
||||
|
@ -120,10 +120,12 @@ func (ms msgServer) SetAuthorityBond(c context.Context, msg *registrytypes.MsgSe
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = ms.k.SetAuthorityBond(ctx, *msg)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
ctx.EventManager().EmitEvents(sdk.Events{
|
||||
sdk.NewEvent(
|
||||
registrytypes.EventTypeAuthorityBond,
|
||||
@ -137,6 +139,7 @@ func (ms msgServer) SetAuthorityBond(c context.Context, msg *registrytypes.MsgSe
|
||||
sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer),
|
||||
),
|
||||
})
|
||||
|
||||
return ®istrytypes.MsgSetAuthorityBondResponse{}, nil
|
||||
}
|
||||
|
||||
@ -147,6 +150,7 @@ func (ms msgServer) DeleteName(c context.Context, msg *registrytypes.MsgDeleteNa
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = ms.k.DeleteName(ctx, *msg)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -198,15 +202,17 @@ func (ms msgServer) RenewRecord(c context.Context, msg *registrytypes.MsgRenewRe
|
||||
// nolint: all
|
||||
func (ms msgServer) AssociateBond(c context.Context, msg *registrytypes.MsgAssociateBond) (*registrytypes.MsgAssociateBondResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
|
||||
_, err := sdk.AccAddressFromBech32(msg.Signer)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = ms.k.ProcessAssociateBond(ctx, *msg)
|
||||
err = ms.k.AssociateBond(ctx, *msg)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
ctx.EventManager().EmitEvents(sdk.Events{
|
||||
sdk.NewEvent(
|
||||
registrytypes.EventTypeAssociateBond,
|
||||
@ -220,19 +226,23 @@ func (ms msgServer) AssociateBond(c context.Context, msg *registrytypes.MsgAssoc
|
||||
sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer),
|
||||
),
|
||||
})
|
||||
|
||||
return ®istrytypes.MsgAssociateBondResponse{}, nil
|
||||
}
|
||||
|
||||
func (ms msgServer) DissociateBond(c context.Context, msg *registrytypes.MsgDissociateBond) (*registrytypes.MsgDissociateBondResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
|
||||
_, err := sdk.AccAddressFromBech32(msg.Signer)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
err = ms.k.ProcessDissociateBond(ctx, *msg)
|
||||
|
||||
err = ms.k.DissociateBond(ctx, *msg)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
ctx.EventManager().EmitEvents(sdk.Events{
|
||||
sdk.NewEvent(
|
||||
registrytypes.EventTypeDissociateBond,
|
||||
@ -245,19 +255,23 @@ func (ms msgServer) DissociateBond(c context.Context, msg *registrytypes.MsgDiss
|
||||
sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer),
|
||||
),
|
||||
})
|
||||
|
||||
return ®istrytypes.MsgDissociateBondResponse{}, nil
|
||||
}
|
||||
|
||||
func (ms msgServer) DissociateRecords(c context.Context, msg *registrytypes.MsgDissociateRecords) (*registrytypes.MsgDissociateRecordsResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
|
||||
_, err := sdk.AccAddressFromBech32(msg.Signer)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
err = ms.k.ProcessDissociateRecords(ctx, *msg)
|
||||
|
||||
err = ms.k.DissociateRecords(ctx, *msg)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
ctx.EventManager().EmitEvents(sdk.Events{
|
||||
sdk.NewEvent(
|
||||
registrytypes.EventTypeDissociateRecords,
|
||||
@ -270,22 +284,26 @@ func (ms msgServer) DissociateRecords(c context.Context, msg *registrytypes.MsgD
|
||||
sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer),
|
||||
),
|
||||
})
|
||||
|
||||
return ®istrytypes.MsgDissociateRecordsResponse{}, nil
|
||||
}
|
||||
|
||||
func (ms msgServer) ReAssociateRecords(c context.Context, msg *registrytypes.MsgReAssociateRecords) (*registrytypes.MsgReAssociateRecordsResponse, error) { //nolint: all
|
||||
func (ms msgServer) ReassociateRecords(c context.Context, msg *registrytypes.MsgReassociateRecords) (*registrytypes.MsgReassociateRecordsResponse, error) { //nolint: all
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
|
||||
_, err := sdk.AccAddressFromBech32(msg.Signer)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
err = ms.k.ProcessReAssociateRecords(ctx, *msg)
|
||||
|
||||
err = ms.k.ReassociateRecords(ctx, *msg)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
ctx.EventManager().EmitEvents(sdk.Events{
|
||||
sdk.NewEvent(
|
||||
registrytypes.EventTypeReAssociateRecords,
|
||||
registrytypes.EventTypeReassociateRecords,
|
||||
sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer),
|
||||
sdk.NewAttribute(registrytypes.AttributeKeyOldBondId, msg.OldBondId),
|
||||
sdk.NewAttribute(registrytypes.AttributeKeyNewBondId, msg.NewBondId),
|
||||
@ -296,5 +314,6 @@ func (ms msgServer) ReAssociateRecords(c context.Context, msg *registrytypes.Msg
|
||||
sdk.NewAttribute(registrytypes.AttributeKeySigner, msg.Signer),
|
||||
),
|
||||
})
|
||||
return ®istrytypes.MsgReAssociateRecordsResponse{}, nil
|
||||
|
||||
return ®istrytypes.MsgReassociateRecordsResponse{}, nil
|
||||
}
|
||||
|
@ -49,22 +49,176 @@ func (k Keeper) RenewRecord(ctx sdk.Context, msg registrytypes.MsgRenewRecord) e
|
||||
return k.processRecord(ctx, &readableRecord, true)
|
||||
}
|
||||
|
||||
// ProcessAssociateBond associates a record with a bond.
|
||||
func (k Keeper) ProcessAssociateBond(ctx sdk.Context, msg registrytypes.MsgAssociateBond) error {
|
||||
panic("unimplemented")
|
||||
// AssociateBond associates a record with a bond.
|
||||
func (k Keeper) AssociateBond(ctx sdk.Context, msg registrytypes.MsgAssociateBond) error {
|
||||
if has, err := k.HasRecord(ctx, msg.RecordId); !has {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Record not found.")
|
||||
}
|
||||
|
||||
if has, err := k.bondKeeper.HasBond(ctx, msg.BondId); !has {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Bond not found.")
|
||||
}
|
||||
|
||||
// Check if already associated with a bond.
|
||||
record, err := k.GetRecordById(ctx, msg.RecordId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(record.BondId) != 0 {
|
||||
return errorsmod.Wrap(sdkerrors.ErrUnauthorized, "Bond already exists.")
|
||||
}
|
||||
|
||||
// Only the bond owner can associate a record with the bond.
|
||||
bond, err := k.bondKeeper.GetBondById(ctx, msg.BondId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if msg.Signer != bond.Owner {
|
||||
return errorsmod.Wrap(sdkerrors.ErrUnauthorized, "Bond owner mismatch.")
|
||||
}
|
||||
|
||||
record.BondId = msg.BondId
|
||||
if err = k.SaveRecord(ctx, record); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Required so that renewal is triggered (with new bond ID) for expired records.
|
||||
if record.Deleted {
|
||||
return k.insertRecordExpiryQueue(ctx, record)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ProcessDissociateBond dissociates a record from its bond.
|
||||
func (k Keeper) ProcessDissociateBond(ctx sdk.Context, msg registrytypes.MsgDissociateBond) error {
|
||||
panic("unimplemented")
|
||||
// DissociateBond dissociates a record from its bond.
|
||||
func (k Keeper) DissociateBond(ctx sdk.Context, msg registrytypes.MsgDissociateBond) error {
|
||||
if has, err := k.HasRecord(ctx, msg.RecordId); !has {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Record not found.")
|
||||
}
|
||||
|
||||
record, err := k.GetRecordById(ctx, msg.RecordId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Check if record associated with a bond.
|
||||
bondId := record.BondId
|
||||
if len(bondId) == 0 {
|
||||
return errorsmod.Wrap(sdkerrors.ErrUnauthorized, "Bond not found.")
|
||||
}
|
||||
|
||||
// Only the bond owner can dissociate a record with the bond.
|
||||
bond, err := k.bondKeeper.GetBondById(ctx, bondId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if msg.Signer != bond.Owner {
|
||||
return errorsmod.Wrap(sdkerrors.ErrUnauthorized, "Bond owner mismatch.")
|
||||
}
|
||||
|
||||
// Clear bond Id.
|
||||
record.BondId = ""
|
||||
return k.SaveRecord(ctx, record)
|
||||
}
|
||||
|
||||
// ProcessDissociateRecords dissociates all records associated with a given bond.
|
||||
func (k Keeper) ProcessDissociateRecords(ctx sdk.Context, msg registrytypes.MsgDissociateRecords) error {
|
||||
panic("unimplemented")
|
||||
// DissociateRecords dissociates all records associated with a given bond.
|
||||
func (k Keeper) DissociateRecords(ctx sdk.Context, msg registrytypes.MsgDissociateRecords) error {
|
||||
if has, err := k.bondKeeper.HasBond(ctx, msg.BondId); !has {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Bond not found.")
|
||||
}
|
||||
|
||||
// Only the bond owner can dissociate all records from the bond.
|
||||
bond, err := k.bondKeeper.GetBondById(ctx, msg.BondId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if msg.Signer != bond.Owner {
|
||||
return errorsmod.Wrap(sdkerrors.ErrUnauthorized, "Bond owner mismatch.")
|
||||
}
|
||||
|
||||
// Dissociate all records from the bond.
|
||||
records, err := k.GetRecordsByBondId(ctx, msg.BondId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, record := range records {
|
||||
// Clear bond Id.
|
||||
record.BondId = ""
|
||||
if err = k.SaveRecord(ctx, record); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ProcessReAssociateRecords switches records from and old to new bond.
|
||||
func (k Keeper) ProcessReAssociateRecords(ctx sdk.Context, msg registrytypes.MsgReAssociateRecords) error {
|
||||
panic("unimplemented")
|
||||
// ReassociateRecords switches records from and old to new bond.
|
||||
func (k Keeper) ReassociateRecords(ctx sdk.Context, msg registrytypes.MsgReassociateRecords) error {
|
||||
if has, err := k.bondKeeper.HasBond(ctx, msg.OldBondId); !has {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Old bond not found.")
|
||||
}
|
||||
|
||||
if has, err := k.bondKeeper.HasBond(ctx, msg.NewBondId); !has {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "New bond not found.")
|
||||
}
|
||||
|
||||
// Only the bond owner can re-associate all records.
|
||||
oldBond, err := k.bondKeeper.GetBondById(ctx, msg.OldBondId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if msg.Signer != oldBond.Owner {
|
||||
return errorsmod.Wrap(sdkerrors.ErrUnauthorized, "Old bond owner mismatch.")
|
||||
}
|
||||
|
||||
newBond, err := k.bondKeeper.GetBondById(ctx, msg.NewBondId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if msg.Signer != newBond.Owner {
|
||||
return errorsmod.Wrap(sdkerrors.ErrUnauthorized, "New bond owner mismatch.")
|
||||
}
|
||||
|
||||
// Re-associate all records.
|
||||
records, err := k.GetRecordsByBondId(ctx, msg.OldBondId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, record := range records {
|
||||
// Switch bond ID.
|
||||
record.BondId = msg.NewBondId
|
||||
if err = k.SaveRecord(ctx, record); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Required so that renewal is triggered (with new bond ID) for expired records.
|
||||
if record.Deleted {
|
||||
if err = k.insertRecordExpiryQueue(ctx, record); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -127,6 +127,40 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
|
||||
{ProtoField: "crn"},
|
||||
},
|
||||
},
|
||||
{
|
||||
RpcMethod: "AssociateBond",
|
||||
Use: "associate-bond [record-id] [bond-id]",
|
||||
Short: "Associate record with a bond",
|
||||
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
|
||||
{ProtoField: "record_id"},
|
||||
{ProtoField: "bond_id"},
|
||||
},
|
||||
},
|
||||
{
|
||||
RpcMethod: "DissociateBond",
|
||||
Use: "dissociate-bond [record-id]",
|
||||
Short: "Dissociate record from (existing) bond",
|
||||
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
|
||||
{ProtoField: "record_id"},
|
||||
},
|
||||
},
|
||||
{
|
||||
RpcMethod: "DissociateRecords",
|
||||
Use: "dissociate-records [bond-id]",
|
||||
Short: "Dissociate all records from a bond",
|
||||
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
|
||||
{ProtoField: "bond_id"},
|
||||
},
|
||||
},
|
||||
{
|
||||
RpcMethod: "ReassociateRecords",
|
||||
Use: "reassociate-records [old-bond-id] [new-bond-id]",
|
||||
Short: "Re-associate all records from an old to a new bond",
|
||||
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
|
||||
{ProtoField: "old_bond_id"},
|
||||
{ProtoField: "new_bond_id"},
|
||||
},
|
||||
},
|
||||
},
|
||||
EnhanceCustomCommand: true, // Allow additional manual commands
|
||||
},
|
||||
|
@ -942,25 +942,25 @@ func (m *MsgDissociateRecordsResponse) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_MsgDissociateRecordsResponse proto.InternalMessageInfo
|
||||
|
||||
// MsgReAssociateRecords
|
||||
type MsgReAssociateRecords struct {
|
||||
// MsgReassociateRecords
|
||||
type MsgReassociateRecords struct {
|
||||
NewBondId string `protobuf:"bytes,1,opt,name=new_bond_id,json=newBondId,proto3" json:"new_bond_id,omitempty" json:"new_bond_id" yaml:"new_bond_id"`
|
||||
OldBondId string `protobuf:"bytes,2,opt,name=old_bond_id,json=oldBondId,proto3" json:"old_bond_id,omitempty" json:"old_bond_id" yaml:"old_bond_id"`
|
||||
Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecords) Reset() { *m = MsgReAssociateRecords{} }
|
||||
func (m *MsgReAssociateRecords) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgReAssociateRecords) ProtoMessage() {}
|
||||
func (*MsgReAssociateRecords) Descriptor() ([]byte, []int) {
|
||||
func (m *MsgReassociateRecords) Reset() { *m = MsgReassociateRecords{} }
|
||||
func (m *MsgReassociateRecords) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgReassociateRecords) ProtoMessage() {}
|
||||
func (*MsgReassociateRecords) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3c6eb2e5a4d8fa03, []int{19}
|
||||
}
|
||||
func (m *MsgReAssociateRecords) XXX_Unmarshal(b []byte) error {
|
||||
func (m *MsgReassociateRecords) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *MsgReAssociateRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
func (m *MsgReassociateRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_MsgReAssociateRecords.Marshal(b, m, deterministic)
|
||||
return xxx_messageInfo_MsgReassociateRecords.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
@ -970,55 +970,55 @@ func (m *MsgReAssociateRecords) XXX_Marshal(b []byte, deterministic bool) ([]byt
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *MsgReAssociateRecords) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MsgReAssociateRecords.Merge(m, src)
|
||||
func (m *MsgReassociateRecords) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MsgReassociateRecords.Merge(m, src)
|
||||
}
|
||||
func (m *MsgReAssociateRecords) XXX_Size() int {
|
||||
func (m *MsgReassociateRecords) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *MsgReAssociateRecords) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MsgReAssociateRecords.DiscardUnknown(m)
|
||||
func (m *MsgReassociateRecords) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MsgReassociateRecords.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MsgReAssociateRecords proto.InternalMessageInfo
|
||||
var xxx_messageInfo_MsgReassociateRecords proto.InternalMessageInfo
|
||||
|
||||
func (m *MsgReAssociateRecords) GetNewBondId() string {
|
||||
func (m *MsgReassociateRecords) GetNewBondId() string {
|
||||
if m != nil {
|
||||
return m.NewBondId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecords) GetOldBondId() string {
|
||||
func (m *MsgReassociateRecords) GetOldBondId() string {
|
||||
if m != nil {
|
||||
return m.OldBondId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecords) GetSigner() string {
|
||||
func (m *MsgReassociateRecords) GetSigner() string {
|
||||
if m != nil {
|
||||
return m.Signer
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// MsgReAssociateRecordsResponse
|
||||
type MsgReAssociateRecordsResponse struct {
|
||||
// MsgReassociateRecordsResponse
|
||||
type MsgReassociateRecordsResponse struct {
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecordsResponse) Reset() { *m = MsgReAssociateRecordsResponse{} }
|
||||
func (m *MsgReAssociateRecordsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgReAssociateRecordsResponse) ProtoMessage() {}
|
||||
func (*MsgReAssociateRecordsResponse) Descriptor() ([]byte, []int) {
|
||||
func (m *MsgReassociateRecordsResponse) Reset() { *m = MsgReassociateRecordsResponse{} }
|
||||
func (m *MsgReassociateRecordsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgReassociateRecordsResponse) ProtoMessage() {}
|
||||
func (*MsgReassociateRecordsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3c6eb2e5a4d8fa03, []int{20}
|
||||
}
|
||||
func (m *MsgReAssociateRecordsResponse) XXX_Unmarshal(b []byte) error {
|
||||
func (m *MsgReassociateRecordsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *MsgReAssociateRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
func (m *MsgReassociateRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_MsgReAssociateRecordsResponse.Marshal(b, m, deterministic)
|
||||
return xxx_messageInfo_MsgReassociateRecordsResponse.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
@ -1028,17 +1028,17 @@ func (m *MsgReAssociateRecordsResponse) XXX_Marshal(b []byte, deterministic bool
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *MsgReAssociateRecordsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MsgReAssociateRecordsResponse.Merge(m, src)
|
||||
func (m *MsgReassociateRecordsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MsgReassociateRecordsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *MsgReAssociateRecordsResponse) XXX_Size() int {
|
||||
func (m *MsgReassociateRecordsResponse) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *MsgReAssociateRecordsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MsgReAssociateRecordsResponse.DiscardUnknown(m)
|
||||
func (m *MsgReassociateRecordsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MsgReassociateRecordsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MsgReAssociateRecordsResponse proto.InternalMessageInfo
|
||||
var xxx_messageInfo_MsgReassociateRecordsResponse proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgSetRecord)(nil), "cerc.registry.v1.MsgSetRecord")
|
||||
@ -1060,14 +1060,14 @@ func init() {
|
||||
proto.RegisterType((*MsgDissociateBondResponse)(nil), "cerc.registry.v1.MsgDissociateBondResponse")
|
||||
proto.RegisterType((*MsgDissociateRecords)(nil), "cerc.registry.v1.MsgDissociateRecords")
|
||||
proto.RegisterType((*MsgDissociateRecordsResponse)(nil), "cerc.registry.v1.MsgDissociateRecordsResponse")
|
||||
proto.RegisterType((*MsgReAssociateRecords)(nil), "cerc.registry.v1.MsgReAssociateRecords")
|
||||
proto.RegisterType((*MsgReAssociateRecordsResponse)(nil), "cerc.registry.v1.MsgReAssociateRecordsResponse")
|
||||
proto.RegisterType((*MsgReassociateRecords)(nil), "cerc.registry.v1.MsgReassociateRecords")
|
||||
proto.RegisterType((*MsgReassociateRecordsResponse)(nil), "cerc.registry.v1.MsgReassociateRecordsResponse")
|
||||
}
|
||||
|
||||
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, 0xc9, 0x6e, 0x4b, 0x5e, 0xa0, 0xea, 0x9a, 0xb2, 0xa4, 0x6e, 0xea, 0xa4, 0xd3,
|
||||
0x26, 0xcd, 0x76, 0x69, 0xbc, 0x1b, 0x4e, 0xf4, 0xd6, 0x88, 0x4b, 0x0f, 0x01, 0xe4, 0x8a, 0x0b,
|
||||
@ -1106,33 +1106,33 @@ var fileDescriptor_3c6eb2e5a4d8fa03 = []byte{
|
||||
0x4b, 0x77, 0x09, 0x3f, 0xb0, 0xd7, 0xc1, 0x75, 0xe3, 0x07, 0x2c, 0x43, 0x65, 0x16, 0x5c, 0xec,
|
||||
0xea, 0x4b, 0xb8, 0xe3, 0x1d, 0x86, 0xf5, 0xda, 0x77, 0xb5, 0x50, 0xb6, 0x37, 0x61, 0x23, 0x15,
|
||||
0x5d, 0xa0, 0x8d, 0xf8, 0x67, 0x2e, 0x32, 0xfa, 0xe7, 0xc1, 0x6e, 0xe2, 0xd3, 0x9c, 0xa4, 0x52,
|
||||
0xa0, 0x9a, 0x15, 0x58, 0x80, 0xfd, 0x81, 0xe0, 0x1d, 0x5e, 0x24, 0x47, 0xb3, 0x68, 0xc7, 0x50,
|
||||
0xb6, 0xc9, 0xe8, 0x34, 0x89, 0x77, 0x6f, 0x3a, 0xa9, 0x35, 0x7c, 0xbc, 0x98, 0x31, 0x44, 0x8c,
|
||||
0x4f, 0x69, 0x25, 0x9b, 0x8c, 0xba, 0x3e, 0xe9, 0x31, 0x94, 0xe9, 0xc0, 0x38, 0x4d, 0x56, 0x46,
|
||||
0xcc, 0x55, 0xcc, 0x18, 0xba, 0x8a, 0x4f, 0x69, 0x25, 0x3a, 0x30, 0xba, 0xff, 0xa1, 0x48, 0x6a,
|
||||
0xb0, 0x95, 0xb9, 0xa7, 0x70, 0xd7, 0x9d, 0x67, 0x65, 0x28, 0xf6, 0x98, 0x29, 0x8d, 0xa1, 0x14,
|
||||
0x5d, 0x93, 0x4a, 0xfa, 0x42, 0x88, 0x5f, 0x4d, 0x72, 0x73, 0xbe, 0x5d, 0xa4, 0x74, 0xf7, 0xe9,
|
||||
0x9f, 0xff, 0xfc, 0x58, 0x50, 0x70, 0x55, 0x4d, 0xdd, 0xd4, 0x8c, 0xb8, 0xa7, 0xc1, 0x95, 0xf4,
|
||||
0x35, 0x82, 0x72, 0xfc, 0xab, 0x50, 0xcf, 0xf4, 0x1e, 0x53, 0xc8, 0xad, 0xeb, 0x14, 0x82, 0xa0,
|
||||
0xc9, 0x09, 0xea, 0x58, 0x51, 0x33, 0xde, 0x0a, 0xde, 0x21, 0x05, 0x0c, 0xdf, 0x20, 0x78, 0x2b,
|
||||
0xf9, 0x0d, 0xc0, 0x99, 0x31, 0x12, 0x1a, 0x79, 0xff, 0x7a, 0x8d, 0x20, 0x69, 0x71, 0x12, 0x8c,
|
||||
0xeb, 0x69, 0x12, 0x3d, 0x5c, 0xc0, 0xcf, 0x59, 0xfa, 0x1e, 0xc1, 0xea, 0x4c, 0xeb, 0xee, 0x64,
|
||||
0x06, 0x4a, 0x8a, 0xe4, 0xfb, 0x0b, 0x88, 0x04, 0xce, 0x3d, 0x8e, 0xb3, 0x83, 0xb7, 0xd3, 0x38,
|
||||
0x86, 0x95, 0xe4, 0xf9, 0x19, 0xc1, 0x9d, 0x74, 0xbf, 0x36, 0xaf, 0x89, 0x16, 0xe8, 0xe4, 0xf6,
|
||||
0x62, 0x3a, 0x01, 0xf6, 0x1e, 0x07, 0x6b, 0xe2, 0xdd, 0xb9, 0x60, 0x4e, 0x40, 0xf1, 0x0b, 0x02,
|
||||
0x29, 0xa3, 0x63, 0xf7, 0x72, 0x0a, 0x64, 0x56, 0x28, 0xab, 0x0b, 0x0a, 0x05, 0xde, 0x01, 0xc7,
|
||||
0xdb, 0xc3, 0x8d, 0xac, 0x82, 0xd2, 0x53, 0x7c, 0x5f, 0xc0, 0x4a, 0xf8, 0x02, 0xaa, 0xe6, 0x35,
|
||||
0x8d, 0x67, 0x95, 0x77, 0xe7, 0x59, 0x45, 0x74, 0xcc, 0xa3, 0x57, 0xb1, 0x9c, 0xdd, 0x50, 0xfc,
|
||||
0x65, 0xf1, 0x1d, 0x6f, 0x27, 0xfe, 0x44, 0xe1, 0x71, 0x1b, 0x39, 0x5b, 0x4c, 0x3e, 0x62, 0xe4,
|
||||
0x83, 0x85, 0x64, 0x8b, 0x35, 0x16, 0x5f, 0xe3, 0xd3, 0x3c, 0x43, 0x00, 0xd1, 0xa3, 0x40, 0xca,
|
||||
0xee, 0xdc, 0x8c, 0x57, 0x83, 0xfc, 0x60, 0x51, 0xa5, 0x40, 0x6a, 0x70, 0xa4, 0x1a, 0xde, 0xca,
|
||||
0xa8, 0x1c, 0xbe, 0xcc, 0x27, 0xfa, 0x09, 0xc1, 0x5a, 0xea, 0x89, 0xd6, 0xc8, 0x4b, 0x7f, 0x42,
|
||||
0x96, 0x93, 0xa4, 0xdc, 0x47, 0xd6, 0x9c, 0x5a, 0xf6, 0x8e, 0x4b, 0x0f, 0x17, 0xf1, 0x3e, 0x93,
|
||||
0x6f, 0x7f, 0xf5, 0xea, 0xf9, 0x3e, 0xea, 0x1e, 0xbd, 0xb8, 0x54, 0xd0, 0xcb, 0x4b, 0x05, 0xfd,
|
||||
0x7d, 0xa9, 0xa0, 0x1f, 0xae, 0x94, 0xa5, 0x97, 0x57, 0xca, 0xd2, 0x5f, 0x57, 0xca, 0xd2, 0x67,
|
||||
0x7b, 0xa6, 0xe5, 0xb6, 0x2f, 0x8c, 0xb3, 0xb6, 0x4b, 0xb9, 0xc3, 0x03, 0x8b, 0xaa, 0x03, 0xbd,
|
||||
0x4f, 0x6d, 0xab, 0xdf, 0x31, 0xd4, 0x27, 0xc2, 0xff, 0xd9, 0x32, 0xff, 0xfb, 0xf3, 0xfe, 0xbf,
|
||||
0x01, 0x00, 0x00, 0xff, 0xff, 0x91, 0x45, 0xb9, 0x1e, 0x9b, 0x0d, 0x00, 0x00,
|
||||
0xa0, 0x9a, 0x15, 0x58, 0x80, 0xfd, 0x81, 0xe0, 0x1d, 0x5e, 0x24, 0xfa, 0x2c, 0xda, 0x31, 0x94,
|
||||
0x6d, 0x32, 0x3a, 0x4d, 0xe2, 0xdd, 0x9b, 0x4e, 0x6a, 0x0d, 0x1f, 0x2f, 0x66, 0x0c, 0x11, 0xe3,
|
||||
0x53, 0x5a, 0xc9, 0x26, 0xa3, 0xae, 0x4f, 0x7a, 0x0c, 0x65, 0x3a, 0x30, 0x4e, 0x93, 0x95, 0x11,
|
||||
0x73, 0x15, 0x33, 0x86, 0xae, 0xe2, 0x53, 0x5a, 0x89, 0x0e, 0x8c, 0xee, 0x7f, 0x28, 0x92, 0x1a,
|
||||
0x6c, 0x65, 0xee, 0x29, 0xdc, 0x75, 0xe7, 0x59, 0x19, 0x8a, 0x3d, 0x66, 0x4a, 0x63, 0x28, 0x45,
|
||||
0xd7, 0xa4, 0x92, 0xbe, 0x10, 0xe2, 0x57, 0x93, 0xdc, 0x9c, 0x6f, 0x17, 0x29, 0xdd, 0x7d, 0xfa,
|
||||
0xe7, 0x3f, 0x3f, 0x16, 0x14, 0x5c, 0x55, 0x53, 0x37, 0x35, 0x23, 0xee, 0x69, 0x70, 0x25, 0x7d,
|
||||
0x8d, 0xa0, 0x1c, 0xff, 0x2a, 0xd4, 0x33, 0xbd, 0xc7, 0x14, 0x72, 0xeb, 0x3a, 0x85, 0x20, 0x68,
|
||||
0x72, 0x82, 0x3a, 0x56, 0xd4, 0x8c, 0xb7, 0x82, 0x77, 0x48, 0x01, 0xc3, 0x37, 0x08, 0xde, 0x4a,
|
||||
0x7e, 0x03, 0x70, 0x66, 0x8c, 0x84, 0x46, 0xde, 0xbf, 0x5e, 0x23, 0x48, 0x5a, 0x9c, 0x04, 0xe3,
|
||||
0x7a, 0x9a, 0x44, 0x1c, 0x0e, 0x3f, 0x67, 0xe9, 0x7b, 0x04, 0xab, 0x33, 0xad, 0xbb, 0x93, 0x19,
|
||||
0x28, 0x29, 0x92, 0xef, 0x2f, 0x20, 0x12, 0x38, 0xf7, 0x38, 0xce, 0x0e, 0xde, 0x4e, 0xe3, 0x18,
|
||||
0x56, 0x92, 0xe7, 0x67, 0x04, 0x77, 0xd2, 0xfd, 0xda, 0xbc, 0x26, 0x5a, 0xa0, 0x93, 0xdb, 0x8b,
|
||||
0xe9, 0x04, 0xd8, 0x7b, 0x1c, 0xac, 0x89, 0x77, 0xe7, 0x82, 0x39, 0x01, 0xc5, 0x2f, 0x08, 0xa4,
|
||||
0x8c, 0x8e, 0xdd, 0xcb, 0x29, 0x90, 0x59, 0xa1, 0xac, 0x2e, 0x28, 0x14, 0x78, 0x07, 0x1c, 0x6f,
|
||||
0x0f, 0x37, 0xb2, 0x0a, 0x4a, 0x4f, 0xf1, 0x7d, 0x01, 0x2b, 0xe1, 0x0b, 0xa8, 0x9a, 0xd7, 0x34,
|
||||
0x9e, 0x55, 0xde, 0x9d, 0x67, 0x15, 0xd1, 0x31, 0x8f, 0x5e, 0xc5, 0x72, 0x76, 0x43, 0xf1, 0x97,
|
||||
0xc5, 0x77, 0xbc, 0x9d, 0xf8, 0x13, 0x85, 0xc7, 0x6d, 0xe4, 0x6c, 0x31, 0xf9, 0x88, 0x91, 0x0f,
|
||||
0x16, 0x92, 0x2d, 0xd6, 0x58, 0x7c, 0x8d, 0x4f, 0xf3, 0x0c, 0x01, 0x44, 0x8f, 0x02, 0x29, 0xbb,
|
||||
0x73, 0x33, 0x5e, 0x0d, 0xf2, 0x83, 0x45, 0x95, 0x02, 0xa9, 0xc1, 0x91, 0x6a, 0x78, 0x2b, 0xa3,
|
||||
0x72, 0xf8, 0x32, 0x9f, 0xe8, 0x27, 0x04, 0x6b, 0xa9, 0x27, 0x5a, 0x23, 0x2f, 0xfd, 0x09, 0x59,
|
||||
0x4e, 0x92, 0x72, 0x1f, 0x59, 0x73, 0x6a, 0xd9, 0x3b, 0x2e, 0x3d, 0x5c, 0xc4, 0xfb, 0x4c, 0xbe,
|
||||
0xfd, 0xd5, 0xab, 0xe7, 0xfb, 0xa8, 0x7b, 0xf4, 0xe2, 0x52, 0x41, 0x2f, 0x2f, 0x15, 0xf4, 0xf7,
|
||||
0xa5, 0x82, 0x7e, 0xb8, 0x52, 0x96, 0x5e, 0x5e, 0x29, 0x4b, 0x7f, 0x5d, 0x29, 0x4b, 0x9f, 0xed,
|
||||
0x99, 0x96, 0xdb, 0xbe, 0x30, 0xce, 0xda, 0x2e, 0xe5, 0x0e, 0x0f, 0x2c, 0xaa, 0x0e, 0xf4, 0x3e,
|
||||
0xb5, 0xad, 0x7e, 0xc7, 0x50, 0x9f, 0x08, 0xff, 0x67, 0xcb, 0xfc, 0xef, 0xcf, 0xfb, 0xff, 0x06,
|
||||
0x00, 0x00, 0xff, 0xff, 0xb4, 0x03, 0xa6, 0xe5, 0x9b, 0x0d, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -1157,8 +1157,8 @@ type MsgClient interface {
|
||||
DissociateBond(ctx context.Context, in *MsgDissociateBond, opts ...grpc.CallOption) (*MsgDissociateBondResponse, error)
|
||||
// DissociateRecords
|
||||
DissociateRecords(ctx context.Context, in *MsgDissociateRecords, opts ...grpc.CallOption) (*MsgDissociateRecordsResponse, error)
|
||||
// ReAssociateRecords
|
||||
ReAssociateRecords(ctx context.Context, in *MsgReAssociateRecords, opts ...grpc.CallOption) (*MsgReAssociateRecordsResponse, error)
|
||||
// ReassociateRecords
|
||||
ReassociateRecords(ctx context.Context, in *MsgReassociateRecords, opts ...grpc.CallOption) (*MsgReassociateRecordsResponse, error)
|
||||
// SetName will store the name with given crn and name
|
||||
SetName(ctx context.Context, in *MsgSetName, opts ...grpc.CallOption) (*MsgSetNameResponse, error)
|
||||
// Reserve name
|
||||
@ -1222,9 +1222,9 @@ func (c *msgClient) DissociateRecords(ctx context.Context, in *MsgDissociateReco
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *msgClient) ReAssociateRecords(ctx context.Context, in *MsgReAssociateRecords, opts ...grpc.CallOption) (*MsgReAssociateRecordsResponse, error) {
|
||||
out := new(MsgReAssociateRecordsResponse)
|
||||
err := c.cc.Invoke(ctx, "/cerc.registry.v1.Msg/ReAssociateRecords", in, out, opts...)
|
||||
func (c *msgClient) ReassociateRecords(ctx context.Context, in *MsgReassociateRecords, opts ...grpc.CallOption) (*MsgReassociateRecordsResponse, error) {
|
||||
out := new(MsgReassociateRecordsResponse)
|
||||
err := c.cc.Invoke(ctx, "/cerc.registry.v1.Msg/ReassociateRecords", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1279,8 +1279,8 @@ type MsgServer interface {
|
||||
DissociateBond(context.Context, *MsgDissociateBond) (*MsgDissociateBondResponse, error)
|
||||
// DissociateRecords
|
||||
DissociateRecords(context.Context, *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error)
|
||||
// ReAssociateRecords
|
||||
ReAssociateRecords(context.Context, *MsgReAssociateRecords) (*MsgReAssociateRecordsResponse, error)
|
||||
// ReassociateRecords
|
||||
ReassociateRecords(context.Context, *MsgReassociateRecords) (*MsgReassociateRecordsResponse, error)
|
||||
// SetName will store the name with given crn and name
|
||||
SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error)
|
||||
// Reserve name
|
||||
@ -1310,8 +1310,8 @@ func (*UnimplementedMsgServer) DissociateBond(ctx context.Context, req *MsgDisso
|
||||
func (*UnimplementedMsgServer) DissociateRecords(ctx context.Context, req *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DissociateRecords not implemented")
|
||||
}
|
||||
func (*UnimplementedMsgServer) ReAssociateRecords(ctx context.Context, req *MsgReAssociateRecords) (*MsgReAssociateRecordsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ReAssociateRecords not implemented")
|
||||
func (*UnimplementedMsgServer) ReassociateRecords(ctx context.Context, req *MsgReassociateRecords) (*MsgReassociateRecordsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ReassociateRecords not implemented")
|
||||
}
|
||||
func (*UnimplementedMsgServer) SetName(ctx context.Context, req *MsgSetName) (*MsgSetNameResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SetName not implemented")
|
||||
@ -1420,20 +1420,20 @@ func _Msg_DissociateRecords_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Msg_ReAssociateRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(MsgReAssociateRecords)
|
||||
func _Msg_ReassociateRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(MsgReassociateRecords)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MsgServer).ReAssociateRecords(ctx, in)
|
||||
return srv.(MsgServer).ReassociateRecords(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cerc.registry.v1.Msg/ReAssociateRecords",
|
||||
FullMethod: "/cerc.registry.v1.Msg/ReassociateRecords",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).ReAssociateRecords(ctx, req.(*MsgReAssociateRecords))
|
||||
return srv.(MsgServer).ReassociateRecords(ctx, req.(*MsgReassociateRecords))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@ -1535,8 +1535,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
Handler: _Msg_DissociateRecords_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ReAssociateRecords",
|
||||
Handler: _Msg_ReAssociateRecords_Handler,
|
||||
MethodName: "ReassociateRecords",
|
||||
Handler: _Msg_ReassociateRecords_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SetName",
|
||||
@ -2193,7 +2193,7 @@ func (m *MsgDissociateRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, e
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecords) Marshal() (dAtA []byte, err error) {
|
||||
func (m *MsgReassociateRecords) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
@ -2203,12 +2203,12 @@ func (m *MsgReAssociateRecords) Marshal() (dAtA []byte, err error) {
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecords) MarshalTo(dAtA []byte) (int, error) {
|
||||
func (m *MsgReassociateRecords) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecords) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
func (m *MsgReassociateRecords) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
@ -2237,7 +2237,7 @@ func (m *MsgReAssociateRecords) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecordsResponse) Marshal() (dAtA []byte, err error) {
|
||||
func (m *MsgReassociateRecordsResponse) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
@ -2247,12 +2247,12 @@ func (m *MsgReAssociateRecordsResponse) Marshal() (dAtA []byte, err error) {
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecordsResponse) MarshalTo(dAtA []byte) (int, error) {
|
||||
func (m *MsgReassociateRecordsResponse) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
func (m *MsgReassociateRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
@ -2546,7 +2546,7 @@ func (m *MsgDissociateRecordsResponse) Size() (n int) {
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecords) Size() (n int) {
|
||||
func (m *MsgReassociateRecords) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
@ -2567,7 +2567,7 @@ func (m *MsgReAssociateRecords) Size() (n int) {
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *MsgReAssociateRecordsResponse) Size() (n int) {
|
||||
func (m *MsgReassociateRecordsResponse) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
@ -4371,7 +4371,7 @@ func (m *MsgDissociateRecordsResponse) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *MsgReAssociateRecords) Unmarshal(dAtA []byte) error {
|
||||
func (m *MsgReassociateRecords) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
@ -4394,10 +4394,10 @@ func (m *MsgReAssociateRecords) Unmarshal(dAtA []byte) error {
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: MsgReAssociateRecords: wiretype end group for non-group")
|
||||
return fmt.Errorf("proto: MsgReassociateRecords: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: MsgReAssociateRecords: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
return fmt.Errorf("proto: MsgReassociateRecords: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
@ -4517,7 +4517,7 @@ func (m *MsgReAssociateRecords) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *MsgReAssociateRecordsResponse) Unmarshal(dAtA []byte) error {
|
||||
func (m *MsgReassociateRecordsResponse) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
@ -4540,10 +4540,10 @@ func (m *MsgReAssociateRecordsResponse) Unmarshal(dAtA []byte) error {
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: MsgReAssociateRecordsResponse: wiretype end group for non-group")
|
||||
return fmt.Errorf("proto: MsgReassociateRecordsResponse: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: MsgReAssociateRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
return fmt.Errorf("proto: MsgReassociateRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
default:
|
||||
|
@ -214,37 +214,37 @@ func local_request_Msg_DissociateRecords_0(ctx context.Context, marshaler runtim
|
||||
}
|
||||
|
||||
var (
|
||||
filter_Msg_ReAssociateRecords_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
||||
filter_Msg_ReassociateRecords_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
||||
)
|
||||
|
||||
func request_Msg_ReAssociateRecords_0(ctx context.Context, marshaler runtime.Marshaler, client MsgClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq MsgReAssociateRecords
|
||||
func request_Msg_ReassociateRecords_0(ctx context.Context, marshaler runtime.Marshaler, client MsgClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq MsgReassociateRecords
|
||||
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_ReAssociateRecords_0); err != nil {
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Msg_ReassociateRecords_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
msg, err := client.ReAssociateRecords(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||
msg, err := client.ReassociateRecords(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||
return msg, metadata, err
|
||||
|
||||
}
|
||||
|
||||
func local_request_Msg_ReAssociateRecords_0(ctx context.Context, marshaler runtime.Marshaler, server MsgServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq MsgReAssociateRecords
|
||||
func local_request_Msg_ReassociateRecords_0(ctx context.Context, marshaler runtime.Marshaler, server MsgServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq MsgReassociateRecords
|
||||
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_ReAssociateRecords_0); err != nil {
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Msg_ReassociateRecords_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
msg, err := server.ReAssociateRecords(ctx, &protoReq)
|
||||
msg, err := server.ReassociateRecords(ctx, &protoReq)
|
||||
return msg, metadata, err
|
||||
|
||||
}
|
||||
@ -514,7 +514,7 @@ func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server
|
||||
|
||||
})
|
||||
|
||||
mux.Handle("POST", pattern_Msg_ReAssociateRecords_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
mux.Handle("POST", pattern_Msg_ReassociateRecords_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
@ -525,7 +525,7 @@ func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Msg_ReAssociateRecords_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
resp, md, err := local_request_Msg_ReassociateRecords_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 {
|
||||
@ -533,7 +533,7 @@ func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server
|
||||
return
|
||||
}
|
||||
|
||||
forward_Msg_ReAssociateRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
forward_Msg_ReassociateRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
|
||||
})
|
||||
|
||||
@ -770,7 +770,7 @@ func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client
|
||||
|
||||
})
|
||||
|
||||
mux.Handle("POST", pattern_Msg_ReAssociateRecords_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
mux.Handle("POST", pattern_Msg_ReassociateRecords_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)
|
||||
@ -779,14 +779,14 @@ func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
resp, md, err := request_Msg_ReAssociateRecords_0(rctx, inboundMarshaler, client, req, pathParams)
|
||||
resp, md, err := request_Msg_ReassociateRecords_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_ReAssociateRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
forward_Msg_ReassociateRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
|
||||
})
|
||||
|
||||
@ -884,7 +884,7 @@ var (
|
||||
|
||||
pattern_Msg_DissociateRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "dissociate_records"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Msg_ReAssociateRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "reassociate_records"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Msg_ReassociateRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "registry", "v1", "reassociate_records"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
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)))
|
||||
|
||||
@ -906,7 +906,7 @@ var (
|
||||
|
||||
forward_Msg_DissociateRecords_0 = runtime.ForwardResponseMessage
|
||||
|
||||
forward_Msg_ReAssociateRecords_0 = runtime.ForwardResponseMessage
|
||||
forward_Msg_ReassociateRecords_0 = runtime.ForwardResponseMessage
|
||||
|
||||
forward_Msg_SetName_0 = runtime.ForwardResponseMessage
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user