From ba89b7610f020b6323e1487af8acdf49f0b6f38c Mon Sep 17 00:00:00 2001 From: John Letey Date: Tue, 14 May 2024 12:00:42 +0200 Subject: [PATCH] refactor: rename underlying address to owner --- api/noble/authority/v1/events.pulsar.go | 1206 ++++++++++++++++++++ api/noble/authority/v1/genesis.pulsar.go | 152 +-- api/noble/authority/v1/query.pulsar.go | 1324 +++++++++++++++++----- api/noble/authority/v1/query_grpc.pb.go | 67 +- api/noble/authority/v1/tx.pulsar.go | 718 ++++++------ api/noble/authority/v1/tx_grpc.pb.go | 60 +- proto/noble/authority/v1/events.proto | 25 + proto/noble/authority/v1/genesis.proto | 4 +- proto/noble/authority/v1/query.proto | 26 +- proto/noble/authority/v1/tx.proto | 19 +- x/authority/genesis.go | 40 +- x/authority/keeper/keeper.go | 33 +- x/authority/keeper/msg_server.go | 67 +- x/authority/keeper/msg_server_test.go | 142 +-- x/authority/keeper/query_server.go | 33 +- x/authority/keeper/query_server_test.go | 58 +- x/authority/module.go | 25 +- x/authority/spec/01_state.md | 22 +- x/authority/spec/02_messages.md | 40 +- x/authority/spec/03_events.md | 45 + x/authority/types/codec.go | 8 +- x/authority/types/errors.go | 9 +- x/authority/types/events.pb.go | 600 ++++++++++ x/authority/types/genesis.pb.go | 62 +- x/authority/types/keys.go | 4 +- x/authority/types/params_legacy.go | 2 + x/authority/types/query.pb.go | 475 ++++++-- x/authority/types/query.pb.gw.go | 93 +- x/authority/types/tx.pb.go | 314 ++--- 29 files changed, 4357 insertions(+), 1316 deletions(-) create mode 100644 api/noble/authority/v1/events.pulsar.go create mode 100644 proto/noble/authority/v1/events.proto create mode 100644 x/authority/spec/03_events.md create mode 100644 x/authority/types/events.pb.go diff --git a/api/noble/authority/v1/events.pulsar.go b/api/noble/authority/v1/events.pulsar.go new file mode 100644 index 0000000..97fdd8c --- /dev/null +++ b/api/noble/authority/v1/events.pulsar.go @@ -0,0 +1,1206 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package authorityv1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_OwnershipTransferStarted protoreflect.MessageDescriptor + fd_OwnershipTransferStarted_previous_owner protoreflect.FieldDescriptor + fd_OwnershipTransferStarted_new_owner protoreflect.FieldDescriptor +) + +func init() { + file_noble_authority_v1_events_proto_init() + md_OwnershipTransferStarted = File_noble_authority_v1_events_proto.Messages().ByName("OwnershipTransferStarted") + fd_OwnershipTransferStarted_previous_owner = md_OwnershipTransferStarted.Fields().ByName("previous_owner") + fd_OwnershipTransferStarted_new_owner = md_OwnershipTransferStarted.Fields().ByName("new_owner") +} + +var _ protoreflect.Message = (*fastReflection_OwnershipTransferStarted)(nil) + +type fastReflection_OwnershipTransferStarted OwnershipTransferStarted + +func (x *OwnershipTransferStarted) ProtoReflect() protoreflect.Message { + return (*fastReflection_OwnershipTransferStarted)(x) +} + +func (x *OwnershipTransferStarted) slowProtoReflect() protoreflect.Message { + mi := &file_noble_authority_v1_events_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_OwnershipTransferStarted_messageType fastReflection_OwnershipTransferStarted_messageType +var _ protoreflect.MessageType = fastReflection_OwnershipTransferStarted_messageType{} + +type fastReflection_OwnershipTransferStarted_messageType struct{} + +func (x fastReflection_OwnershipTransferStarted_messageType) Zero() protoreflect.Message { + return (*fastReflection_OwnershipTransferStarted)(nil) +} +func (x fastReflection_OwnershipTransferStarted_messageType) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferStarted) +} +func (x fastReflection_OwnershipTransferStarted_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferStarted +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OwnershipTransferStarted) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferStarted +} + +// 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_OwnershipTransferStarted) Type() protoreflect.MessageType { + return _fastReflection_OwnershipTransferStarted_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OwnershipTransferStarted) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferStarted) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OwnershipTransferStarted) Interface() protoreflect.ProtoMessage { + return (*OwnershipTransferStarted)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_OwnershipTransferStarted) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousOwner != "" { + value := protoreflect.ValueOfString(x.PreviousOwner) + if !f(fd_OwnershipTransferStarted_previous_owner, value) { + return + } + } + if x.NewOwner != "" { + value := protoreflect.ValueOfString(x.NewOwner) + if !f(fd_OwnershipTransferStarted_new_owner, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_OwnershipTransferStarted) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.authority.v1.OwnershipTransferStarted.previous_owner": + return x.PreviousOwner != "" + case "noble.authority.v1.OwnershipTransferStarted.new_owner": + return x.NewOwner != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferStarted does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferStarted) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.authority.v1.OwnershipTransferStarted.previous_owner": + x.PreviousOwner = "" + case "noble.authority.v1.OwnershipTransferStarted.new_owner": + x.NewOwner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferStarted does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_OwnershipTransferStarted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.authority.v1.OwnershipTransferStarted.previous_owner": + value := x.PreviousOwner + return protoreflect.ValueOfString(value) + case "noble.authority.v1.OwnershipTransferStarted.new_owner": + value := x.NewOwner + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferStarted does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferStarted) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.authority.v1.OwnershipTransferStarted.previous_owner": + x.PreviousOwner = value.Interface().(string) + case "noble.authority.v1.OwnershipTransferStarted.new_owner": + x.NewOwner = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferStarted does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferStarted) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.authority.v1.OwnershipTransferStarted.previous_owner": + panic(fmt.Errorf("field previous_owner of message noble.authority.v1.OwnershipTransferStarted is not mutable")) + case "noble.authority.v1.OwnershipTransferStarted.new_owner": + panic(fmt.Errorf("field new_owner of message noble.authority.v1.OwnershipTransferStarted is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.authority.v1.OwnershipTransferStarted.previous_owner": + return protoreflect.ValueOfString("") + case "noble.authority.v1.OwnershipTransferStarted.new_owner": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.OwnershipTransferStarted", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_OwnershipTransferStarted) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferStarted) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_OwnershipTransferStarted) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_OwnershipTransferStarted) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OwnershipTransferStarted) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.PreviousOwner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewOwner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*OwnershipTransferStarted) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.NewOwner) > 0 { + i -= len(x.NewOwner) + copy(dAtA[i:], x.NewOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousOwner) > 0 { + i -= len(x.PreviousOwner) + copy(dAtA[i:], x.PreviousOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousOwner))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*OwnershipTransferStarted) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnershipTransferStarted: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnershipTransferStarted: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_OwnershipTransferred protoreflect.MessageDescriptor + fd_OwnershipTransferred_previous_owner protoreflect.FieldDescriptor + fd_OwnershipTransferred_new_owner protoreflect.FieldDescriptor +) + +func init() { + file_noble_authority_v1_events_proto_init() + md_OwnershipTransferred = File_noble_authority_v1_events_proto.Messages().ByName("OwnershipTransferred") + fd_OwnershipTransferred_previous_owner = md_OwnershipTransferred.Fields().ByName("previous_owner") + fd_OwnershipTransferred_new_owner = md_OwnershipTransferred.Fields().ByName("new_owner") +} + +var _ protoreflect.Message = (*fastReflection_OwnershipTransferred)(nil) + +type fastReflection_OwnershipTransferred OwnershipTransferred + +func (x *OwnershipTransferred) ProtoReflect() protoreflect.Message { + return (*fastReflection_OwnershipTransferred)(x) +} + +func (x *OwnershipTransferred) slowProtoReflect() protoreflect.Message { + mi := &file_noble_authority_v1_events_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_OwnershipTransferred_messageType fastReflection_OwnershipTransferred_messageType +var _ protoreflect.MessageType = fastReflection_OwnershipTransferred_messageType{} + +type fastReflection_OwnershipTransferred_messageType struct{} + +func (x fastReflection_OwnershipTransferred_messageType) Zero() protoreflect.Message { + return (*fastReflection_OwnershipTransferred)(nil) +} +func (x fastReflection_OwnershipTransferred_messageType) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferred) +} +func (x fastReflection_OwnershipTransferred_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferred +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OwnershipTransferred) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferred +} + +// 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_OwnershipTransferred) Type() protoreflect.MessageType { + return _fastReflection_OwnershipTransferred_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OwnershipTransferred) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferred) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OwnershipTransferred) Interface() protoreflect.ProtoMessage { + return (*OwnershipTransferred)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_OwnershipTransferred) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousOwner != "" { + value := protoreflect.ValueOfString(x.PreviousOwner) + if !f(fd_OwnershipTransferred_previous_owner, value) { + return + } + } + if x.NewOwner != "" { + value := protoreflect.ValueOfString(x.NewOwner) + if !f(fd_OwnershipTransferred_new_owner, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_OwnershipTransferred) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.authority.v1.OwnershipTransferred.previous_owner": + return x.PreviousOwner != "" + case "noble.authority.v1.OwnershipTransferred.new_owner": + return x.NewOwner != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferred does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.authority.v1.OwnershipTransferred.previous_owner": + x.PreviousOwner = "" + case "noble.authority.v1.OwnershipTransferred.new_owner": + x.NewOwner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferred does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_OwnershipTransferred) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.authority.v1.OwnershipTransferred.previous_owner": + value := x.PreviousOwner + return protoreflect.ValueOfString(value) + case "noble.authority.v1.OwnershipTransferred.new_owner": + value := x.NewOwner + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferred does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.authority.v1.OwnershipTransferred.previous_owner": + x.PreviousOwner = value.Interface().(string) + case "noble.authority.v1.OwnershipTransferred.new_owner": + x.NewOwner = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferred does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.authority.v1.OwnershipTransferred.previous_owner": + panic(fmt.Errorf("field previous_owner of message noble.authority.v1.OwnershipTransferred is not mutable")) + case "noble.authority.v1.OwnershipTransferred.new_owner": + panic(fmt.Errorf("field new_owner of message noble.authority.v1.OwnershipTransferred is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferred 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_OwnershipTransferred) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.authority.v1.OwnershipTransferred.previous_owner": + return protoreflect.ValueOfString("") + case "noble.authority.v1.OwnershipTransferred.new_owner": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message noble.authority.v1.OwnershipTransferred 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_OwnershipTransferred) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.OwnershipTransferred", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_OwnershipTransferred) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_OwnershipTransferred) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_OwnershipTransferred) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OwnershipTransferred) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.PreviousOwner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewOwner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*OwnershipTransferred) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.NewOwner) > 0 { + i -= len(x.NewOwner) + copy(dAtA[i:], x.NewOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousOwner) > 0 { + i -= len(x.PreviousOwner) + copy(dAtA[i:], x.PreviousOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousOwner))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*OwnershipTransferred) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnershipTransferred: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnershipTransferred: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: noble/authority/v1/events.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// OwnershipTransferStarted is emitted whenever an ownership transfer is started. +type OwnershipTransferStarted struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (x *OwnershipTransferStarted) Reset() { + *x = OwnershipTransferStarted{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_authority_v1_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OwnershipTransferStarted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OwnershipTransferStarted) ProtoMessage() {} + +// Deprecated: Use OwnershipTransferStarted.ProtoReflect.Descriptor instead. +func (*OwnershipTransferStarted) Descriptor() ([]byte, []int) { + return file_noble_authority_v1_events_proto_rawDescGZIP(), []int{0} +} + +func (x *OwnershipTransferStarted) GetPreviousOwner() string { + if x != nil { + return x.PreviousOwner + } + return "" +} + +func (x *OwnershipTransferStarted) GetNewOwner() string { + if x != nil { + return x.NewOwner + } + return "" +} + +// OwnershipTransferStarted is emitted whenever an ownership transfer is finalized. +type OwnershipTransferred struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (x *OwnershipTransferred) Reset() { + *x = OwnershipTransferred{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_authority_v1_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OwnershipTransferred) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OwnershipTransferred) ProtoMessage() {} + +// Deprecated: Use OwnershipTransferred.ProtoReflect.Descriptor instead. +func (*OwnershipTransferred) Descriptor() ([]byte, []int) { + return file_noble_authority_v1_events_proto_rawDescGZIP(), []int{1} +} + +func (x *OwnershipTransferred) GetPreviousOwner() string { + if x != nil { + return x.PreviousOwner + } + return "" +} + +func (x *OwnershipTransferred) GetNewOwner() string { + if x != nil { + return x.NewOwner + } + return "" +} + +var File_noble_authority_v1_events_proto protoreflect.FileDescriptor + +var file_noble_authority_v1_events_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x12, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x92, 0x01, 0x0a, 0x18, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x3f, 0x0a, + 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x0d, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, + 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6e, 0x65, 0x77, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x8e, 0x01, 0x0a, 0x14, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, + 0x68, 0x69, 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x12, 0x3f, + 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, + 0x35, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6e, 0x65, + 0x77, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x42, 0xd5, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, + 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x41, 0x58, 0xaa, 0x02, 0x12, 0x4e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x12, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, + 0x3a, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_noble_authority_v1_events_proto_rawDescOnce sync.Once + file_noble_authority_v1_events_proto_rawDescData = file_noble_authority_v1_events_proto_rawDesc +) + +func file_noble_authority_v1_events_proto_rawDescGZIP() []byte { + file_noble_authority_v1_events_proto_rawDescOnce.Do(func() { + file_noble_authority_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_noble_authority_v1_events_proto_rawDescData) + }) + return file_noble_authority_v1_events_proto_rawDescData +} + +var file_noble_authority_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_noble_authority_v1_events_proto_goTypes = []interface{}{ + (*OwnershipTransferStarted)(nil), // 0: noble.authority.v1.OwnershipTransferStarted + (*OwnershipTransferred)(nil), // 1: noble.authority.v1.OwnershipTransferred +} +var file_noble_authority_v1_events_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_noble_authority_v1_events_proto_init() } +func file_noble_authority_v1_events_proto_init() { + if File_noble_authority_v1_events_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_noble_authority_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OwnershipTransferStarted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_authority_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OwnershipTransferred); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_noble_authority_v1_events_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_noble_authority_v1_events_proto_goTypes, + DependencyIndexes: file_noble_authority_v1_events_proto_depIdxs, + MessageInfos: file_noble_authority_v1_events_proto_msgTypes, + }.Build() + File_noble_authority_v1_events_proto = out.File + file_noble_authority_v1_events_proto_rawDesc = nil + file_noble_authority_v1_events_proto_goTypes = nil + file_noble_authority_v1_events_proto_depIdxs = nil +} diff --git a/api/noble/authority/v1/genesis.pulsar.go b/api/noble/authority/v1/genesis.pulsar.go index f8628ee..c702e60 100644 --- a/api/noble/authority/v1/genesis.pulsar.go +++ b/api/noble/authority/v1/genesis.pulsar.go @@ -14,16 +14,16 @@ import ( ) var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_address protoreflect.FieldDescriptor - fd_GenesisState_pending_address protoreflect.FieldDescriptor + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_owner protoreflect.FieldDescriptor + fd_GenesisState_pending_owner protoreflect.FieldDescriptor ) func init() { file_noble_authority_v1_genesis_proto_init() md_GenesisState = File_noble_authority_v1_genesis_proto.Messages().ByName("GenesisState") - fd_GenesisState_address = md_GenesisState.Fields().ByName("address") - fd_GenesisState_pending_address = md_GenesisState.Fields().ByName("pending_address") + fd_GenesisState_owner = md_GenesisState.Fields().ByName("owner") + fd_GenesisState_pending_owner = md_GenesisState.Fields().ByName("pending_owner") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -91,15 +91,15 @@ func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_GenesisState_address, value) { + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_GenesisState_owner, value) { return } } - if x.PendingAddress != "" { - value := protoreflect.ValueOfString(x.PendingAddress) - if !f(fd_GenesisState_pending_address, value) { + if x.PendingOwner != "" { + value := protoreflect.ValueOfString(x.PendingOwner) + if !f(fd_GenesisState_pending_owner, value) { return } } @@ -118,10 +118,10 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "noble.authority.v1.GenesisState.address": - return x.Address != "" - case "noble.authority.v1.GenesisState.pending_address": - return x.PendingAddress != "" + case "noble.authority.v1.GenesisState.owner": + return x.Owner != "" + case "noble.authority.v1.GenesisState.pending_owner": + return x.PendingOwner != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.GenesisState")) @@ -138,10 +138,10 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "noble.authority.v1.GenesisState.address": - x.Address = "" - case "noble.authority.v1.GenesisState.pending_address": - x.PendingAddress = "" + case "noble.authority.v1.GenesisState.owner": + x.Owner = "" + case "noble.authority.v1.GenesisState.pending_owner": + x.PendingOwner = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.GenesisState")) @@ -158,11 +158,11 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "noble.authority.v1.GenesisState.address": - value := x.Address + case "noble.authority.v1.GenesisState.owner": + value := x.Owner return protoreflect.ValueOfString(value) - case "noble.authority.v1.GenesisState.pending_address": - value := x.PendingAddress + case "noble.authority.v1.GenesisState.pending_owner": + value := x.PendingOwner return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { @@ -184,10 +184,10 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "noble.authority.v1.GenesisState.address": - x.Address = value.Interface().(string) - case "noble.authority.v1.GenesisState.pending_address": - x.PendingAddress = value.Interface().(string) + case "noble.authority.v1.GenesisState.owner": + x.Owner = value.Interface().(string) + case "noble.authority.v1.GenesisState.pending_owner": + x.PendingOwner = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.GenesisState")) @@ -208,10 +208,10 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "noble.authority.v1.GenesisState.address": - panic(fmt.Errorf("field address of message noble.authority.v1.GenesisState is not mutable")) - case "noble.authority.v1.GenesisState.pending_address": - panic(fmt.Errorf("field pending_address of message noble.authority.v1.GenesisState is not mutable")) + case "noble.authority.v1.GenesisState.owner": + panic(fmt.Errorf("field owner of message noble.authority.v1.GenesisState is not mutable")) + case "noble.authority.v1.GenesisState.pending_owner": + panic(fmt.Errorf("field pending_owner of message noble.authority.v1.GenesisState is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.GenesisState")) @@ -225,9 +225,9 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "noble.authority.v1.GenesisState.address": + case "noble.authority.v1.GenesisState.owner": return protoreflect.ValueOfString("") - case "noble.authority.v1.GenesisState.pending_address": + case "noble.authority.v1.GenesisState.pending_owner": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -298,11 +298,11 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Address) + l = len(x.Owner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.PendingAddress) + l = len(x.PendingOwner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -335,17 +335,17 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.PendingAddress) > 0 { - i -= len(x.PendingAddress) - copy(dAtA[i:], x.PendingAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PendingAddress))) + if len(x.PendingOwner) > 0 { + i -= len(x.PendingOwner) + copy(dAtA[i:], x.PendingOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PendingOwner))) i-- dAtA[i] = 0x12 } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + if len(x.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) i-- dAtA[i] = 0xa } @@ -400,7 +400,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -428,11 +428,11 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Address = string(dAtA[iNdEx:postIndex]) + x.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PendingAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PendingOwner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -460,7 +460,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.PendingAddress = string(dAtA[iNdEx:postIndex]) + x.PendingOwner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -515,8 +515,8 @@ type GenesisState struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - PendingAddress string `protobuf:"bytes,2,opt,name=pending_address,json=pendingAddress,proto3" json:"pending_address,omitempty"` + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + PendingOwner string `protobuf:"bytes,2,opt,name=pending_owner,json=pendingOwner,proto3" json:"pending_owner,omitempty"` } func (x *GenesisState) Reset() { @@ -539,16 +539,16 @@ func (*GenesisState) Descriptor() ([]byte, []int) { return file_noble_authority_v1_genesis_proto_rawDescGZIP(), []int{0} } -func (x *GenesisState) GetAddress() string { +func (x *GenesisState) GetOwner() string { if x != nil { - return x.Address + return x.Owner } return "" } -func (x *GenesisState) GetPendingAddress() string { +func (x *GenesisState) GetPendingOwner() string { if x != nil { - return x.PendingAddress + return x.PendingOwner } return "" } @@ -561,29 +561,29 @@ var file_noble_authority_v1_genesis_proto_rawDesc = []byte{ 0x74, 0x6f, 0x12, 0x12, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x85, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, - 0x67, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x70, 0x65, 0x6e, 0x64, 0x69, - 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0xd6, 0x01, 0x0a, 0x16, 0x63, 0x6f, - 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, - 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x41, 0x58, - 0xaa, 0x02, 0x12, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x4e, 0x6f, 0x62, - 0x6c, 0x65, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x4e, 0x6f, - 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x22, 0x7d, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x0c, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x77, 0x6e, 0x65, 0x72, + 0x42, 0xd6, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, + 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x61, 0x73, + 0x73, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x41, 0x58, 0xaa, 0x02, 0x12, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x4e, + 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x1e, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x14, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/api/noble/authority/v1/query.pulsar.go b/api/noble/authority/v1/query.pulsar.go index 045ff45..5e56c15 100644 --- a/api/noble/authority/v1/query.pulsar.go +++ b/api/noble/authority/v1/query.pulsar.go @@ -2,6 +2,7 @@ package authorityv1 import ( + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/query/v1" fmt "fmt" _ "github.com/cosmos/cosmos-proto" @@ -16,23 +17,23 @@ import ( ) var ( - md_QueryAddress protoreflect.MessageDescriptor + md_QueryOwner protoreflect.MessageDescriptor ) func init() { file_noble_authority_v1_query_proto_init() - md_QueryAddress = File_noble_authority_v1_query_proto.Messages().ByName("QueryAddress") + md_QueryOwner = File_noble_authority_v1_query_proto.Messages().ByName("QueryOwner") } -var _ protoreflect.Message = (*fastReflection_QueryAddress)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOwner)(nil) -type fastReflection_QueryAddress QueryAddress +type fastReflection_QueryOwner QueryOwner -func (x *QueryAddress) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAddress)(x) +func (x *QueryOwner) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOwner)(x) } -func (x *QueryAddress) slowProtoReflect() protoreflect.Message { +func (x *QueryOwner) slowProtoReflect() protoreflect.Message { mi := &file_noble_authority_v1_query_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -44,43 +45,43 @@ func (x *QueryAddress) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAddress_messageType fastReflection_QueryAddress_messageType -var _ protoreflect.MessageType = fastReflection_QueryAddress_messageType{} +var _fastReflection_QueryOwner_messageType fastReflection_QueryOwner_messageType +var _ protoreflect.MessageType = fastReflection_QueryOwner_messageType{} -type fastReflection_QueryAddress_messageType struct{} +type fastReflection_QueryOwner_messageType struct{} -func (x fastReflection_QueryAddress_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAddress)(nil) +func (x fastReflection_QueryOwner_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOwner)(nil) } -func (x fastReflection_QueryAddress_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAddress) +func (x fastReflection_QueryOwner_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOwner) } -func (x fastReflection_QueryAddress_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAddress +func (x fastReflection_QueryOwner_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOwner } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAddress) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAddress +func (x *fastReflection_QueryOwner) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOwner } // 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_QueryAddress) Type() protoreflect.MessageType { - return _fastReflection_QueryAddress_messageType +func (x *fastReflection_QueryOwner) Type() protoreflect.MessageType { + return _fastReflection_QueryOwner_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAddress) New() protoreflect.Message { - return new(fastReflection_QueryAddress) +func (x *fastReflection_QueryOwner) New() protoreflect.Message { + return new(fastReflection_QueryOwner) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAddress) Interface() protoreflect.ProtoMessage { - return (*QueryAddress)(x) +func (x *fastReflection_QueryOwner) Interface() protoreflect.ProtoMessage { + return (*QueryOwner)(x) } // Range iterates over every populated field in an undefined order, @@ -88,7 +89,7 @@ func (x *fastReflection_QueryAddress) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAddress) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryOwner) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -102,13 +103,13 @@ func (x *fastReflection_QueryAddress) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAddress) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryOwner) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwner")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddress does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryOwner does not contain field %s", fd.FullName())) } } @@ -118,13 +119,13 @@ func (x *fastReflection_QueryAddress) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAddress) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryOwner) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwner")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddress does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryOwner does not contain field %s", fd.FullName())) } } @@ -134,13 +135,13 @@ func (x *fastReflection_QueryAddress) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAddress) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOwner) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwner")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddress does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryOwner does not contain field %s", descriptor.FullName())) } } @@ -154,13 +155,13 @@ func (x *fastReflection_QueryAddress) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAddress) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryOwner) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwner")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddress does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryOwner does not contain field %s", fd.FullName())) } } @@ -174,36 +175,36 @@ func (x *fastReflection_QueryAddress) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAddress) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOwner) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwner")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddress does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryOwner 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_QueryAddress) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOwner) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwner")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddress does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryOwner 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_QueryAddress) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryOwner) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.QueryAddress", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.QueryOwner", d.FullName())) } panic("unreachable") } @@ -211,7 +212,7 @@ func (x *fastReflection_QueryAddress) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAddress) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOwner) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -222,7 +223,7 @@ func (x *fastReflection_QueryAddress) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAddress) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOwner) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -234,7 +235,7 @@ func (x *fastReflection_QueryAddress) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAddress) IsValid() bool { +func (x *fastReflection_QueryOwner) IsValid() bool { return x != nil } @@ -244,9 +245,9 @@ func (x *fastReflection_QueryAddress) 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_QueryAddress) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOwner) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAddress) + x := input.Message.Interface().(*QueryOwner) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -268,7 +269,7 @@ func (x *fastReflection_QueryAddress) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAddress) + x := input.Message.Interface().(*QueryOwner) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -298,7 +299,7 @@ func (x *fastReflection_QueryAddress) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAddress) + x := input.Message.Interface().(*QueryOwner) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -330,10 +331,10 @@ func (x *fastReflection_QueryAddress) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAddress: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOwner: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAddress: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOwner: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -372,27 +373,25 @@ func (x *fastReflection_QueryAddress) ProtoMethods() *protoiface.Methods { } var ( - md_QueryAddressResponse protoreflect.MessageDescriptor - fd_QueryAddressResponse_address protoreflect.FieldDescriptor - fd_QueryAddressResponse_pending_address protoreflect.FieldDescriptor + md_QueryOwnerResponse protoreflect.MessageDescriptor + fd_QueryOwnerResponse_owner protoreflect.FieldDescriptor ) func init() { file_noble_authority_v1_query_proto_init() - md_QueryAddressResponse = File_noble_authority_v1_query_proto.Messages().ByName("QueryAddressResponse") - fd_QueryAddressResponse_address = md_QueryAddressResponse.Fields().ByName("address") - fd_QueryAddressResponse_pending_address = md_QueryAddressResponse.Fields().ByName("pending_address") + md_QueryOwnerResponse = File_noble_authority_v1_query_proto.Messages().ByName("QueryOwnerResponse") + fd_QueryOwnerResponse_owner = md_QueryOwnerResponse.Fields().ByName("owner") } -var _ protoreflect.Message = (*fastReflection_QueryAddressResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOwnerResponse)(nil) -type fastReflection_QueryAddressResponse QueryAddressResponse +type fastReflection_QueryOwnerResponse QueryOwnerResponse -func (x *QueryAddressResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAddressResponse)(x) +func (x *QueryOwnerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOwnerResponse)(x) } -func (x *QueryAddressResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryOwnerResponse) slowProtoReflect() protoreflect.Message { mi := &file_noble_authority_v1_query_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -404,43 +403,43 @@ func (x *QueryAddressResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAddressResponse_messageType fastReflection_QueryAddressResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAddressResponse_messageType{} +var _fastReflection_QueryOwnerResponse_messageType fastReflection_QueryOwnerResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryOwnerResponse_messageType{} -type fastReflection_QueryAddressResponse_messageType struct{} +type fastReflection_QueryOwnerResponse_messageType struct{} -func (x fastReflection_QueryAddressResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAddressResponse)(nil) +func (x fastReflection_QueryOwnerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOwnerResponse)(nil) } -func (x fastReflection_QueryAddressResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAddressResponse) +func (x fastReflection_QueryOwnerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOwnerResponse) } -func (x fastReflection_QueryAddressResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAddressResponse +func (x fastReflection_QueryOwnerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOwnerResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAddressResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAddressResponse +func (x *fastReflection_QueryOwnerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOwnerResponse } // 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_QueryAddressResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAddressResponse_messageType +func (x *fastReflection_QueryOwnerResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryOwnerResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAddressResponse) New() protoreflect.Message { - return new(fastReflection_QueryAddressResponse) +func (x *fastReflection_QueryOwnerResponse) New() protoreflect.Message { + return new(fastReflection_QueryOwnerResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAddressResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAddressResponse)(x) +func (x *fastReflection_QueryOwnerResponse) Interface() protoreflect.ProtoMessage { + return (*QueryOwnerResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -448,16 +447,786 @@ func (x *fastReflection_QueryAddressResponse) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAddressResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryAddressResponse_address, value) { +func (x *fastReflection_QueryOwnerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_QueryOwnerResponse_owner, value) { return } } - if x.PendingAddress != "" { - value := protoreflect.ValueOfString(x.PendingAddress) - if !f(fd_QueryAddressResponse_pending_address, value) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryOwnerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.authority.v1.QueryOwnerResponse.owner": + return x.Owner != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwnerResponse")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryOwnerResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryOwnerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.authority.v1.QueryOwnerResponse.owner": + x.Owner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwnerResponse")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryOwnerResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryOwnerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.authority.v1.QueryOwnerResponse.owner": + value := x.Owner + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwnerResponse")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryOwnerResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryOwnerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.authority.v1.QueryOwnerResponse.owner": + x.Owner = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwnerResponse")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryOwnerResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryOwnerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.authority.v1.QueryOwnerResponse.owner": + panic(fmt.Errorf("field owner of message noble.authority.v1.QueryOwnerResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwnerResponse")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryOwnerResponse 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_QueryOwnerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.authority.v1.QueryOwnerResponse.owner": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryOwnerResponse")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryOwnerResponse 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_QueryOwnerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.QueryOwnerResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryOwnerResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryOwnerResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryOwnerResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryOwnerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryOwnerResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Owner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryOwnerResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryOwnerResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOwnerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryPendingOwner protoreflect.MessageDescriptor +) + +func init() { + file_noble_authority_v1_query_proto_init() + md_QueryPendingOwner = File_noble_authority_v1_query_proto.Messages().ByName("QueryPendingOwner") +} + +var _ protoreflect.Message = (*fastReflection_QueryPendingOwner)(nil) + +type fastReflection_QueryPendingOwner QueryPendingOwner + +func (x *QueryPendingOwner) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPendingOwner)(x) +} + +func (x *QueryPendingOwner) slowProtoReflect() protoreflect.Message { + mi := &file_noble_authority_v1_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryPendingOwner_messageType fastReflection_QueryPendingOwner_messageType +var _ protoreflect.MessageType = fastReflection_QueryPendingOwner_messageType{} + +type fastReflection_QueryPendingOwner_messageType struct{} + +func (x fastReflection_QueryPendingOwner_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPendingOwner)(nil) +} +func (x fastReflection_QueryPendingOwner_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPendingOwner) +} +func (x fastReflection_QueryPendingOwner_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPendingOwner +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryPendingOwner) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPendingOwner +} + +// 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_QueryPendingOwner) Type() protoreflect.MessageType { + return _fastReflection_QueryPendingOwner_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryPendingOwner) New() protoreflect.Message { + return new(fastReflection_QueryPendingOwner) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryPendingOwner) Interface() protoreflect.ProtoMessage { + return (*QueryPendingOwner)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryPendingOwner) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryPendingOwner) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwner")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwner does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryPendingOwner) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwner")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwner does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryPendingOwner) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwner")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwner does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryPendingOwner) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwner")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwner does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryPendingOwner) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwner")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwner 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_QueryPendingOwner) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwner")) + } + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwner 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_QueryPendingOwner) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.QueryPendingOwner", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryPendingOwner) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryPendingOwner) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryPendingOwner) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryPendingOwner) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryPendingOwner) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryPendingOwner) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryPendingOwner) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPendingOwner: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPendingOwner: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryPendingOwnerResponse protoreflect.MessageDescriptor + fd_QueryPendingOwnerResponse_pending_owner protoreflect.FieldDescriptor +) + +func init() { + file_noble_authority_v1_query_proto_init() + md_QueryPendingOwnerResponse = File_noble_authority_v1_query_proto.Messages().ByName("QueryPendingOwnerResponse") + fd_QueryPendingOwnerResponse_pending_owner = md_QueryPendingOwnerResponse.Fields().ByName("pending_owner") +} + +var _ protoreflect.Message = (*fastReflection_QueryPendingOwnerResponse)(nil) + +type fastReflection_QueryPendingOwnerResponse QueryPendingOwnerResponse + +func (x *QueryPendingOwnerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPendingOwnerResponse)(x) +} + +func (x *QueryPendingOwnerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_authority_v1_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryPendingOwnerResponse_messageType fastReflection_QueryPendingOwnerResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPendingOwnerResponse_messageType{} + +type fastReflection_QueryPendingOwnerResponse_messageType struct{} + +func (x fastReflection_QueryPendingOwnerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPendingOwnerResponse)(nil) +} +func (x fastReflection_QueryPendingOwnerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPendingOwnerResponse) +} +func (x fastReflection_QueryPendingOwnerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPendingOwnerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryPendingOwnerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPendingOwnerResponse +} + +// 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_QueryPendingOwnerResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPendingOwnerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryPendingOwnerResponse) New() protoreflect.Message { + return new(fastReflection_QueryPendingOwnerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryPendingOwnerResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPendingOwnerResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryPendingOwnerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PendingOwner != "" { + value := protoreflect.ValueOfString(x.PendingOwner) + if !f(fd_QueryPendingOwnerResponse_pending_owner, value) { return } } @@ -474,17 +1243,15 @@ func (x *fastReflection_QueryAddressResponse) Range(f func(protoreflect.FieldDes // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAddressResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPendingOwnerResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "noble.authority.v1.QueryAddressResponse.address": - return x.Address != "" - case "noble.authority.v1.QueryAddressResponse.pending_address": - return x.PendingAddress != "" + case "noble.authority.v1.QueryPendingOwnerResponse.pending_owner": + return x.PendingOwner != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwnerResponse")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwnerResponse does not contain field %s", fd.FullName())) } } @@ -494,17 +1261,15 @@ func (x *fastReflection_QueryAddressResponse) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAddressResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPendingOwnerResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "noble.authority.v1.QueryAddressResponse.address": - x.Address = "" - case "noble.authority.v1.QueryAddressResponse.pending_address": - x.PendingAddress = "" + case "noble.authority.v1.QueryPendingOwnerResponse.pending_owner": + x.PendingOwner = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwnerResponse")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwnerResponse does not contain field %s", fd.FullName())) } } @@ -514,19 +1279,16 @@ func (x *fastReflection_QueryAddressResponse) Clear(fd protoreflect.FieldDescrip // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAddressResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPendingOwnerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "noble.authority.v1.QueryAddressResponse.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "noble.authority.v1.QueryAddressResponse.pending_address": - value := x.PendingAddress + case "noble.authority.v1.QueryPendingOwnerResponse.pending_owner": + value := x.PendingOwner return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwnerResponse")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddressResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwnerResponse does not contain field %s", descriptor.FullName())) } } @@ -540,17 +1302,15 @@ func (x *fastReflection_QueryAddressResponse) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAddressResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPendingOwnerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "noble.authority.v1.QueryAddressResponse.address": - x.Address = value.Interface().(string) - case "noble.authority.v1.QueryAddressResponse.pending_address": - x.PendingAddress = value.Interface().(string) + case "noble.authority.v1.QueryPendingOwnerResponse.pending_owner": + x.PendingOwner = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwnerResponse")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwnerResponse does not contain field %s", fd.FullName())) } } @@ -564,44 +1324,40 @@ func (x *fastReflection_QueryAddressResponse) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAddressResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPendingOwnerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "noble.authority.v1.QueryAddressResponse.address": - panic(fmt.Errorf("field address of message noble.authority.v1.QueryAddressResponse is not mutable")) - case "noble.authority.v1.QueryAddressResponse.pending_address": - panic(fmt.Errorf("field pending_address of message noble.authority.v1.QueryAddressResponse is not mutable")) + case "noble.authority.v1.QueryPendingOwnerResponse.pending_owner": + panic(fmt.Errorf("field pending_owner of message noble.authority.v1.QueryPendingOwnerResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwnerResponse")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwnerResponse 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_QueryAddressResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPendingOwnerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "noble.authority.v1.QueryAddressResponse.address": - return protoreflect.ValueOfString("") - case "noble.authority.v1.QueryAddressResponse.pending_address": + case "noble.authority.v1.QueryPendingOwnerResponse.pending_owner": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.QueryPendingOwnerResponse")) } - panic(fmt.Errorf("message noble.authority.v1.QueryAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.QueryPendingOwnerResponse 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_QueryAddressResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPendingOwnerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.QueryAddressResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.QueryPendingOwnerResponse", d.FullName())) } panic("unreachable") } @@ -609,7 +1365,7 @@ func (x *fastReflection_QueryAddressResponse) WhichOneof(d protoreflect.OneofDes // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAddressResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPendingOwnerResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -620,7 +1376,7 @@ func (x *fastReflection_QueryAddressResponse) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAddressResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPendingOwnerResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -632,7 +1388,7 @@ func (x *fastReflection_QueryAddressResponse) SetUnknown(fields protoreflect.Raw // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAddressResponse) IsValid() bool { +func (x *fastReflection_QueryPendingOwnerResponse) IsValid() bool { return x != nil } @@ -642,9 +1398,9 @@ func (x *fastReflection_QueryAddressResponse) 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_QueryAddressResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPendingOwnerResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAddressResponse) + x := input.Message.Interface().(*QueryPendingOwnerResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -656,11 +1412,7 @@ func (x *fastReflection_QueryAddressResponse) ProtoMethods() *protoiface.Methods var n int var l int _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.PendingAddress) + l = len(x.PendingOwner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -674,7 +1426,7 @@ func (x *fastReflection_QueryAddressResponse) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAddressResponse) + x := input.Message.Interface().(*QueryPendingOwnerResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -693,17 +1445,10 @@ func (x *fastReflection_QueryAddressResponse) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.PendingAddress) > 0 { - i -= len(x.PendingAddress) - copy(dAtA[i:], x.PendingAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PendingAddress))) - i-- - dAtA[i] = 0x12 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + if len(x.PendingOwner) > 0 { + i -= len(x.PendingOwner) + copy(dAtA[i:], x.PendingOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PendingOwner))) i-- dAtA[i] = 0xa } @@ -718,7 +1463,7 @@ func (x *fastReflection_QueryAddressResponse) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAddressResponse) + x := input.Message.Interface().(*QueryPendingOwnerResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -750,47 +1495,15 @@ func (x *fastReflection_QueryAddressResponse) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAddressResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPendingOwnerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPendingOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PendingAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PendingOwner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -818,7 +1531,7 @@ func (x *fastReflection_QueryAddressResponse) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.PendingAddress = string(dAtA[iNdEx:postIndex]) + x.PendingOwner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -868,14 +1581,14 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type QueryAddress struct { +type QueryOwner struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *QueryAddress) Reset() { - *x = QueryAddress{} +func (x *QueryOwner) Reset() { + *x = QueryOwner{} if protoimpl.UnsafeEnabled { mi := &file_noble_authority_v1_query_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -883,28 +1596,27 @@ func (x *QueryAddress) Reset() { } } -func (x *QueryAddress) String() string { +func (x *QueryOwner) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAddress) ProtoMessage() {} +func (*QueryOwner) ProtoMessage() {} -// Deprecated: Use QueryAddress.ProtoReflect.Descriptor instead. -func (*QueryAddress) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryOwner.ProtoReflect.Descriptor instead. +func (*QueryOwner) Descriptor() ([]byte, []int) { return file_noble_authority_v1_query_proto_rawDescGZIP(), []int{0} } -type QueryAddressResponse struct { +type QueryOwnerResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - PendingAddress string `protobuf:"bytes,2,opt,name=pending_address,json=pendingAddress,proto3" json:"pending_address,omitempty"` + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` } -func (x *QueryAddressResponse) Reset() { - *x = QueryAddressResponse{} +func (x *QueryOwnerResponse) Reset() { + *x = QueryOwnerResponse{} if protoimpl.UnsafeEnabled { mi := &file_noble_authority_v1_query_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -912,27 +1624,81 @@ func (x *QueryAddressResponse) Reset() { } } -func (x *QueryAddressResponse) String() string { +func (x *QueryOwnerResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAddressResponse) ProtoMessage() {} +func (*QueryOwnerResponse) ProtoMessage() {} -// Deprecated: Use QueryAddressResponse.ProtoReflect.Descriptor instead. -func (*QueryAddressResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryOwnerResponse.ProtoReflect.Descriptor instead. +func (*QueryOwnerResponse) Descriptor() ([]byte, []int) { return file_noble_authority_v1_query_proto_rawDescGZIP(), []int{1} } -func (x *QueryAddressResponse) GetAddress() string { +func (x *QueryOwnerResponse) GetOwner() string { if x != nil { - return x.Address + return x.Owner } return "" } -func (x *QueryAddressResponse) GetPendingAddress() string { +type QueryPendingOwner struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryPendingOwner) Reset() { + *x = QueryPendingOwner{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_authority_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryPendingOwner) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryPendingOwner) ProtoMessage() {} + +// Deprecated: Use QueryPendingOwner.ProtoReflect.Descriptor instead. +func (*QueryPendingOwner) Descriptor() ([]byte, []int) { + return file_noble_authority_v1_query_proto_rawDescGZIP(), []int{2} +} + +type QueryPendingOwnerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PendingOwner string `protobuf:"bytes,1,opt,name=pending_owner,json=pendingOwner,proto3" json:"pending_owner,omitempty"` +} + +func (x *QueryPendingOwnerResponse) Reset() { + *x = QueryPendingOwnerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_authority_v1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryPendingOwnerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryPendingOwnerResponse) ProtoMessage() {} + +// Deprecated: Use QueryPendingOwnerResponse.ProtoReflect.Descriptor instead. +func (*QueryPendingOwnerResponse) Descriptor() ([]byte, []int) { + return file_noble_authority_v1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryPendingOwnerResponse) GetPendingOwner() string { if x != nil { - return x.PendingAddress + return x.PendingOwner } return "" } @@ -943,45 +1709,57 @@ var file_noble_authority_v1_query_proto_rawDesc = []byte{ 0x0a, 0x1e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0e, 0x0a, 0x0c, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x14, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0f, 0x70, 0x65, 0x6e, 0x64, 0x69, - 0x6e, 0x67, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, + 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0c, 0x0a, + 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x44, 0x0a, 0x12, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x70, 0x65, 0x6e, 0x64, - 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x32, 0x88, 0x01, 0x0a, 0x05, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x7f, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x20, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x1a, 0x28, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x88, 0xe7, 0xb0, - 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, - 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0xd4, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x22, 0x13, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x5f, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x70, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x32, 0x97, 0x02, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x77, 0x0a, 0x05, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x1a, 0x26, 0x2e, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x26, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, + 0x19, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x94, 0x01, 0x0a, 0x0c, 0x50, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, - 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, - 0x2d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x41, 0x58, 0xaa, 0x02, 0x12, 0x4e, 0x6f, 0x62, - 0x6c, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x12, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x41, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x77, 0x6e, + 0x65, 0x72, 0x1a, 0x2d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2e, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, + 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x42, 0xd4, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x4e, 0x41, 0x58, 0xaa, 0x02, 0x12, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x4e, 0x6f, + 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x1e, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x14, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -996,16 +1774,20 @@ func file_noble_authority_v1_query_proto_rawDescGZIP() []byte { return file_noble_authority_v1_query_proto_rawDescData } -var file_noble_authority_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_noble_authority_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_noble_authority_v1_query_proto_goTypes = []interface{}{ - (*QueryAddress)(nil), // 0: noble.authority.v1.QueryAddress - (*QueryAddressResponse)(nil), // 1: noble.authority.v1.QueryAddressResponse + (*QueryOwner)(nil), // 0: noble.authority.v1.QueryOwner + (*QueryOwnerResponse)(nil), // 1: noble.authority.v1.QueryOwnerResponse + (*QueryPendingOwner)(nil), // 2: noble.authority.v1.QueryPendingOwner + (*QueryPendingOwnerResponse)(nil), // 3: noble.authority.v1.QueryPendingOwnerResponse } var file_noble_authority_v1_query_proto_depIdxs = []int32{ - 0, // 0: noble.authority.v1.Query.Address:input_type -> noble.authority.v1.QueryAddress - 1, // 1: noble.authority.v1.Query.Address:output_type -> noble.authority.v1.QueryAddressResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type + 0, // 0: noble.authority.v1.Query.Owner:input_type -> noble.authority.v1.QueryOwner + 2, // 1: noble.authority.v1.Query.PendingOwner:input_type -> noble.authority.v1.QueryPendingOwner + 1, // 2: noble.authority.v1.Query.Owner:output_type -> noble.authority.v1.QueryOwnerResponse + 3, // 3: noble.authority.v1.Query.PendingOwner:output_type -> noble.authority.v1.QueryPendingOwnerResponse + 2, // [2:4] is the sub-list for method output_type + 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name @@ -1018,7 +1800,7 @@ func file_noble_authority_v1_query_proto_init() { } if !protoimpl.UnsafeEnabled { file_noble_authority_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAddress); i { + switch v := v.(*QueryOwner); i { case 0: return &v.state case 1: @@ -1030,7 +1812,31 @@ func file_noble_authority_v1_query_proto_init() { } } file_noble_authority_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAddressResponse); i { + switch v := v.(*QueryOwnerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_authority_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryPendingOwner); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_authority_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryPendingOwnerResponse); i { case 0: return &v.state case 1: @@ -1048,7 +1854,7 @@ func file_noble_authority_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_noble_authority_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 2, + NumMessages: 4, NumExtensions: 0, NumServices: 1, }, diff --git a/api/noble/authority/v1/query_grpc.pb.go b/api/noble/authority/v1/query_grpc.pb.go index 9d88bec..31c760f 100644 --- a/api/noble/authority/v1/query_grpc.pb.go +++ b/api/noble/authority/v1/query_grpc.pb.go @@ -19,14 +19,16 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Address_FullMethodName = "/noble.authority.v1.Query/Address" + Query_Owner_FullMethodName = "/noble.authority.v1.Query/Owner" + Query_PendingOwner_FullMethodName = "/noble.authority.v1.Query/PendingOwner" ) // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type QueryClient interface { - Address(ctx context.Context, in *QueryAddress, opts ...grpc.CallOption) (*QueryAddressResponse, error) + Owner(ctx context.Context, in *QueryOwner, opts ...grpc.CallOption) (*QueryOwnerResponse, error) + PendingOwner(ctx context.Context, in *QueryPendingOwner, opts ...grpc.CallOption) (*QueryPendingOwnerResponse, error) } type queryClient struct { @@ -37,9 +39,18 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { return &queryClient{cc} } -func (c *queryClient) Address(ctx context.Context, in *QueryAddress, opts ...grpc.CallOption) (*QueryAddressResponse, error) { - out := new(QueryAddressResponse) - err := c.cc.Invoke(ctx, Query_Address_FullMethodName, in, out, opts...) +func (c *queryClient) Owner(ctx context.Context, in *QueryOwner, opts ...grpc.CallOption) (*QueryOwnerResponse, error) { + out := new(QueryOwnerResponse) + err := c.cc.Invoke(ctx, Query_Owner_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PendingOwner(ctx context.Context, in *QueryPendingOwner, opts ...grpc.CallOption) (*QueryPendingOwnerResponse, error) { + out := new(QueryPendingOwnerResponse) + err := c.cc.Invoke(ctx, Query_PendingOwner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -50,7 +61,8 @@ func (c *queryClient) Address(ctx context.Context, in *QueryAddress, opts ...grp // All implementations must embed UnimplementedQueryServer // for forward compatibility type QueryServer interface { - Address(context.Context, *QueryAddress) (*QueryAddressResponse, error) + Owner(context.Context, *QueryOwner) (*QueryOwnerResponse, error) + PendingOwner(context.Context, *QueryPendingOwner) (*QueryPendingOwnerResponse, error) mustEmbedUnimplementedQueryServer() } @@ -58,8 +70,11 @@ type QueryServer interface { type UnimplementedQueryServer struct { } -func (UnimplementedQueryServer) Address(context.Context, *QueryAddress) (*QueryAddressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Address not implemented") +func (UnimplementedQueryServer) Owner(context.Context, *QueryOwner) (*QueryOwnerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Owner not implemented") +} +func (UnimplementedQueryServer) PendingOwner(context.Context, *QueryPendingOwner) (*QueryPendingOwnerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PendingOwner not implemented") } func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} @@ -74,20 +89,38 @@ func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { s.RegisterService(&Query_ServiceDesc, srv) } -func _Query_Address_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAddress) +func _Query_Owner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOwner) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Owner(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Owner_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Owner(ctx, req.(*QueryOwner)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PendingOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPendingOwner) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Address(ctx, in) + return srv.(QueryServer).PendingOwner(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_Address_FullMethodName, + FullMethod: Query_PendingOwner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Address(ctx, req.(*QueryAddress)) + return srv.(QueryServer).PendingOwner(ctx, req.(*QueryPendingOwner)) } return interceptor(ctx, in, info, handler) } @@ -100,8 +133,12 @@ var Query_ServiceDesc = grpc.ServiceDesc{ HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "Address", - Handler: _Query_Address_Handler, + MethodName: "Owner", + Handler: _Query_Owner_Handler, + }, + { + MethodName: "PendingOwner", + Handler: _Query_PendingOwner_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/api/noble/authority/v1/tx.pulsar.go b/api/noble/authority/v1/tx.pulsar.go index 1f6d5c1..a235472 100644 --- a/api/noble/authority/v1/tx.pulsar.go +++ b/api/noble/authority/v1/tx.pulsar.go @@ -1056,27 +1056,27 @@ func (x *fastReflection_MsgExecuteResponse) ProtoMethods() *protoiface.Methods { } var ( - md_MsgTransferAuthority protoreflect.MessageDescriptor - fd_MsgTransferAuthority_signer protoreflect.FieldDescriptor - fd_MsgTransferAuthority_new_authority protoreflect.FieldDescriptor + md_MsgTransferOwnership protoreflect.MessageDescriptor + fd_MsgTransferOwnership_signer protoreflect.FieldDescriptor + fd_MsgTransferOwnership_new_owner protoreflect.FieldDescriptor ) func init() { file_noble_authority_v1_tx_proto_init() - md_MsgTransferAuthority = File_noble_authority_v1_tx_proto.Messages().ByName("MsgTransferAuthority") - fd_MsgTransferAuthority_signer = md_MsgTransferAuthority.Fields().ByName("signer") - fd_MsgTransferAuthority_new_authority = md_MsgTransferAuthority.Fields().ByName("new_authority") + md_MsgTransferOwnership = File_noble_authority_v1_tx_proto.Messages().ByName("MsgTransferOwnership") + fd_MsgTransferOwnership_signer = md_MsgTransferOwnership.Fields().ByName("signer") + fd_MsgTransferOwnership_new_owner = md_MsgTransferOwnership.Fields().ByName("new_owner") } -var _ protoreflect.Message = (*fastReflection_MsgTransferAuthority)(nil) +var _ protoreflect.Message = (*fastReflection_MsgTransferOwnership)(nil) -type fastReflection_MsgTransferAuthority MsgTransferAuthority +type fastReflection_MsgTransferOwnership MsgTransferOwnership -func (x *MsgTransferAuthority) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgTransferAuthority)(x) +func (x *MsgTransferOwnership) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgTransferOwnership)(x) } -func (x *MsgTransferAuthority) slowProtoReflect() protoreflect.Message { +func (x *MsgTransferOwnership) slowProtoReflect() protoreflect.Message { mi := &file_noble_authority_v1_tx_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1088,43 +1088,43 @@ func (x *MsgTransferAuthority) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgTransferAuthority_messageType fastReflection_MsgTransferAuthority_messageType -var _ protoreflect.MessageType = fastReflection_MsgTransferAuthority_messageType{} +var _fastReflection_MsgTransferOwnership_messageType fastReflection_MsgTransferOwnership_messageType +var _ protoreflect.MessageType = fastReflection_MsgTransferOwnership_messageType{} -type fastReflection_MsgTransferAuthority_messageType struct{} +type fastReflection_MsgTransferOwnership_messageType struct{} -func (x fastReflection_MsgTransferAuthority_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgTransferAuthority)(nil) +func (x fastReflection_MsgTransferOwnership_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgTransferOwnership)(nil) } -func (x fastReflection_MsgTransferAuthority_messageType) New() protoreflect.Message { - return new(fastReflection_MsgTransferAuthority) +func (x fastReflection_MsgTransferOwnership_messageType) New() protoreflect.Message { + return new(fastReflection_MsgTransferOwnership) } -func (x fastReflection_MsgTransferAuthority_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTransferAuthority +func (x fastReflection_MsgTransferOwnership_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferOwnership } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgTransferAuthority) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTransferAuthority +func (x *fastReflection_MsgTransferOwnership) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferOwnership } // 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_MsgTransferAuthority) Type() protoreflect.MessageType { - return _fastReflection_MsgTransferAuthority_messageType +func (x *fastReflection_MsgTransferOwnership) Type() protoreflect.MessageType { + return _fastReflection_MsgTransferOwnership_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgTransferAuthority) New() protoreflect.Message { - return new(fastReflection_MsgTransferAuthority) +func (x *fastReflection_MsgTransferOwnership) New() protoreflect.Message { + return new(fastReflection_MsgTransferOwnership) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgTransferAuthority) Interface() protoreflect.ProtoMessage { - return (*MsgTransferAuthority)(x) +func (x *fastReflection_MsgTransferOwnership) Interface() protoreflect.ProtoMessage { + return (*MsgTransferOwnership)(x) } // Range iterates over every populated field in an undefined order, @@ -1132,16 +1132,16 @@ func (x *fastReflection_MsgTransferAuthority) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgTransferAuthority) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgTransferOwnership) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Signer != "" { value := protoreflect.ValueOfString(x.Signer) - if !f(fd_MsgTransferAuthority_signer, value) { + if !f(fd_MsgTransferOwnership_signer, value) { return } } - if x.NewAuthority != "" { - value := protoreflect.ValueOfString(x.NewAuthority) - if !f(fd_MsgTransferAuthority_new_authority, value) { + if x.NewOwner != "" { + value := protoreflect.ValueOfString(x.NewOwner) + if !f(fd_MsgTransferOwnership_new_owner, value) { return } } @@ -1158,17 +1158,17 @@ func (x *fastReflection_MsgTransferAuthority) Range(f func(protoreflect.FieldDes // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgTransferAuthority) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgTransferOwnership) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "noble.authority.v1.MsgTransferAuthority.signer": + case "noble.authority.v1.MsgTransferOwnership.signer": return x.Signer != "" - case "noble.authority.v1.MsgTransferAuthority.new_authority": - return x.NewAuthority != "" + case "noble.authority.v1.MsgTransferOwnership.new_owner": + return x.NewOwner != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnership does not contain field %s", fd.FullName())) } } @@ -1178,17 +1178,17 @@ func (x *fastReflection_MsgTransferAuthority) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferAuthority) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgTransferOwnership) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "noble.authority.v1.MsgTransferAuthority.signer": + case "noble.authority.v1.MsgTransferOwnership.signer": x.Signer = "" - case "noble.authority.v1.MsgTransferAuthority.new_authority": - x.NewAuthority = "" + case "noble.authority.v1.MsgTransferOwnership.new_owner": + x.NewOwner = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnership does not contain field %s", fd.FullName())) } } @@ -1198,19 +1198,19 @@ func (x *fastReflection_MsgTransferAuthority) Clear(fd protoreflect.FieldDescrip // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgTransferAuthority) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferOwnership) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "noble.authority.v1.MsgTransferAuthority.signer": + case "noble.authority.v1.MsgTransferOwnership.signer": value := x.Signer return protoreflect.ValueOfString(value) - case "noble.authority.v1.MsgTransferAuthority.new_authority": - value := x.NewAuthority + case "noble.authority.v1.MsgTransferOwnership.new_owner": + value := x.NewOwner return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthority does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnership does not contain field %s", descriptor.FullName())) } } @@ -1224,17 +1224,17 @@ func (x *fastReflection_MsgTransferAuthority) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferAuthority) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgTransferOwnership) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "noble.authority.v1.MsgTransferAuthority.signer": + case "noble.authority.v1.MsgTransferOwnership.signer": x.Signer = value.Interface().(string) - case "noble.authority.v1.MsgTransferAuthority.new_authority": - x.NewAuthority = value.Interface().(string) + case "noble.authority.v1.MsgTransferOwnership.new_owner": + x.NewOwner = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnership does not contain field %s", fd.FullName())) } } @@ -1248,44 +1248,44 @@ func (x *fastReflection_MsgTransferAuthority) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferAuthority) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferOwnership) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "noble.authority.v1.MsgTransferAuthority.signer": - panic(fmt.Errorf("field signer of message noble.authority.v1.MsgTransferAuthority is not mutable")) - case "noble.authority.v1.MsgTransferAuthority.new_authority": - panic(fmt.Errorf("field new_authority of message noble.authority.v1.MsgTransferAuthority is not mutable")) + case "noble.authority.v1.MsgTransferOwnership.signer": + panic(fmt.Errorf("field signer of message noble.authority.v1.MsgTransferOwnership is not mutable")) + case "noble.authority.v1.MsgTransferOwnership.new_owner": + panic(fmt.Errorf("field new_owner of message noble.authority.v1.MsgTransferOwnership is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnership 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_MsgTransferAuthority) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferOwnership) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "noble.authority.v1.MsgTransferAuthority.signer": + case "noble.authority.v1.MsgTransferOwnership.signer": return protoreflect.ValueOfString("") - case "noble.authority.v1.MsgTransferAuthority.new_authority": + case "noble.authority.v1.MsgTransferOwnership.new_owner": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnership 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_MsgTransferAuthority) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgTransferOwnership) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.MsgTransferAuthority", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.MsgTransferOwnership", d.FullName())) } panic("unreachable") } @@ -1293,7 +1293,7 @@ func (x *fastReflection_MsgTransferAuthority) WhichOneof(d protoreflect.OneofDes // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgTransferAuthority) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgTransferOwnership) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1304,7 +1304,7 @@ func (x *fastReflection_MsgTransferAuthority) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferAuthority) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgTransferOwnership) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1316,7 +1316,7 @@ func (x *fastReflection_MsgTransferAuthority) SetUnknown(fields protoreflect.Raw // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgTransferAuthority) IsValid() bool { +func (x *fastReflection_MsgTransferOwnership) IsValid() bool { return x != nil } @@ -1326,9 +1326,9 @@ func (x *fastReflection_MsgTransferAuthority) 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_MsgTransferAuthority) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgTransferOwnership) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgTransferAuthority) + x := input.Message.Interface().(*MsgTransferOwnership) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1344,7 +1344,7 @@ func (x *fastReflection_MsgTransferAuthority) ProtoMethods() *protoiface.Methods if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NewAuthority) + l = len(x.NewOwner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -1358,7 +1358,7 @@ func (x *fastReflection_MsgTransferAuthority) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgTransferAuthority) + x := input.Message.Interface().(*MsgTransferOwnership) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1377,10 +1377,10 @@ func (x *fastReflection_MsgTransferAuthority) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NewAuthority) > 0 { - i -= len(x.NewAuthority) - copy(dAtA[i:], x.NewAuthority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAuthority))) + if len(x.NewOwner) > 0 { + i -= len(x.NewOwner) + copy(dAtA[i:], x.NewOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewOwner))) i-- dAtA[i] = 0x12 } @@ -1402,7 +1402,7 @@ func (x *fastReflection_MsgTransferAuthority) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgTransferAuthority) + x := input.Message.Interface().(*MsgTransferOwnership) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1434,10 +1434,10 @@ func (x *fastReflection_MsgTransferAuthority) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferAuthority: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferOwnership: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferAuthority: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferOwnership: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1474,7 +1474,7 @@ func (x *fastReflection_MsgTransferAuthority) ProtoMethods() *protoiface.Methods iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewAuthority", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1502,7 +1502,7 @@ func (x *fastReflection_MsgTransferAuthority) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NewAuthority = string(dAtA[iNdEx:postIndex]) + x.NewOwner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1540,23 +1540,23 @@ func (x *fastReflection_MsgTransferAuthority) ProtoMethods() *protoiface.Methods } var ( - md_MsgTransferAuthorityResponse protoreflect.MessageDescriptor + md_MsgTransferOwnershipResponse protoreflect.MessageDescriptor ) func init() { file_noble_authority_v1_tx_proto_init() - md_MsgTransferAuthorityResponse = File_noble_authority_v1_tx_proto.Messages().ByName("MsgTransferAuthorityResponse") + md_MsgTransferOwnershipResponse = File_noble_authority_v1_tx_proto.Messages().ByName("MsgTransferOwnershipResponse") } -var _ protoreflect.Message = (*fastReflection_MsgTransferAuthorityResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgTransferOwnershipResponse)(nil) -type fastReflection_MsgTransferAuthorityResponse MsgTransferAuthorityResponse +type fastReflection_MsgTransferOwnershipResponse MsgTransferOwnershipResponse -func (x *MsgTransferAuthorityResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgTransferAuthorityResponse)(x) +func (x *MsgTransferOwnershipResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgTransferOwnershipResponse)(x) } -func (x *MsgTransferAuthorityResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgTransferOwnershipResponse) slowProtoReflect() protoreflect.Message { mi := &file_noble_authority_v1_tx_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1568,43 +1568,43 @@ func (x *MsgTransferAuthorityResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgTransferAuthorityResponse_messageType fastReflection_MsgTransferAuthorityResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgTransferAuthorityResponse_messageType{} +var _fastReflection_MsgTransferOwnershipResponse_messageType fastReflection_MsgTransferOwnershipResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgTransferOwnershipResponse_messageType{} -type fastReflection_MsgTransferAuthorityResponse_messageType struct{} +type fastReflection_MsgTransferOwnershipResponse_messageType struct{} -func (x fastReflection_MsgTransferAuthorityResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgTransferAuthorityResponse)(nil) +func (x fastReflection_MsgTransferOwnershipResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgTransferOwnershipResponse)(nil) } -func (x fastReflection_MsgTransferAuthorityResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgTransferAuthorityResponse) +func (x fastReflection_MsgTransferOwnershipResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgTransferOwnershipResponse) } -func (x fastReflection_MsgTransferAuthorityResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTransferAuthorityResponse +func (x fastReflection_MsgTransferOwnershipResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferOwnershipResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgTransferAuthorityResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTransferAuthorityResponse +func (x *fastReflection_MsgTransferOwnershipResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferOwnershipResponse } // 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_MsgTransferAuthorityResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgTransferAuthorityResponse_messageType +func (x *fastReflection_MsgTransferOwnershipResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgTransferOwnershipResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgTransferAuthorityResponse) New() protoreflect.Message { - return new(fastReflection_MsgTransferAuthorityResponse) +func (x *fastReflection_MsgTransferOwnershipResponse) New() protoreflect.Message { + return new(fastReflection_MsgTransferOwnershipResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgTransferAuthorityResponse) Interface() protoreflect.ProtoMessage { - return (*MsgTransferAuthorityResponse)(x) +func (x *fastReflection_MsgTransferOwnershipResponse) Interface() protoreflect.ProtoMessage { + return (*MsgTransferOwnershipResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -1612,7 +1612,7 @@ func (x *fastReflection_MsgTransferAuthorityResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgTransferAuthorityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgTransferOwnershipResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -1626,13 +1626,13 @@ func (x *fastReflection_MsgTransferAuthorityResponse) 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_MsgTransferAuthorityResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgTransferOwnershipResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -1642,13 +1642,13 @@ func (x *fastReflection_MsgTransferAuthorityResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferAuthorityResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgTransferOwnershipResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -1658,13 +1658,13 @@ func (x *fastReflection_MsgTransferAuthorityResponse) Clear(fd protoreflect.Fiel // 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_MsgTransferAuthorityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferOwnershipResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthorityResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnershipResponse does not contain field %s", descriptor.FullName())) } } @@ -1678,13 +1678,13 @@ func (x *fastReflection_MsgTransferAuthorityResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferAuthorityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgTransferOwnershipResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -1698,36 +1698,36 @@ func (x *fastReflection_MsgTransferAuthorityResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferAuthorityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferOwnershipResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnershipResponse 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_MsgTransferAuthorityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferOwnershipResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgTransferOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgTransferAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgTransferOwnershipResponse 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_MsgTransferAuthorityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgTransferOwnershipResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.MsgTransferAuthorityResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.MsgTransferOwnershipResponse", d.FullName())) } panic("unreachable") } @@ -1735,7 +1735,7 @@ func (x *fastReflection_MsgTransferAuthorityResponse) 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_MsgTransferAuthorityResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgTransferOwnershipResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1746,7 +1746,7 @@ func (x *fastReflection_MsgTransferAuthorityResponse) 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_MsgTransferAuthorityResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgTransferOwnershipResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1758,7 +1758,7 @@ func (x *fastReflection_MsgTransferAuthorityResponse) SetUnknown(fields protoref // 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_MsgTransferAuthorityResponse) IsValid() bool { +func (x *fastReflection_MsgTransferOwnershipResponse) IsValid() bool { return x != nil } @@ -1768,9 +1768,9 @@ func (x *fastReflection_MsgTransferAuthorityResponse) 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_MsgTransferAuthorityResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgTransferOwnershipResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgTransferAuthorityResponse) + x := input.Message.Interface().(*MsgTransferOwnershipResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1792,7 +1792,7 @@ func (x *fastReflection_MsgTransferAuthorityResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgTransferAuthorityResponse) + x := input.Message.Interface().(*MsgTransferOwnershipResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1822,7 +1822,7 @@ func (x *fastReflection_MsgTransferAuthorityResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgTransferAuthorityResponse) + x := input.Message.Interface().(*MsgTransferOwnershipResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1854,10 +1854,10 @@ func (x *fastReflection_MsgTransferAuthorityResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferAuthorityResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferOwnershipResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferAuthorityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -1896,25 +1896,25 @@ func (x *fastReflection_MsgTransferAuthorityResponse) ProtoMethods() *protoiface } var ( - md_MsgAcceptAuthority protoreflect.MessageDescriptor - fd_MsgAcceptAuthority_signer protoreflect.FieldDescriptor + md_MsgAcceptOwnership protoreflect.MessageDescriptor + fd_MsgAcceptOwnership_signer protoreflect.FieldDescriptor ) func init() { file_noble_authority_v1_tx_proto_init() - md_MsgAcceptAuthority = File_noble_authority_v1_tx_proto.Messages().ByName("MsgAcceptAuthority") - fd_MsgAcceptAuthority_signer = md_MsgAcceptAuthority.Fields().ByName("signer") + md_MsgAcceptOwnership = File_noble_authority_v1_tx_proto.Messages().ByName("MsgAcceptOwnership") + fd_MsgAcceptOwnership_signer = md_MsgAcceptOwnership.Fields().ByName("signer") } -var _ protoreflect.Message = (*fastReflection_MsgAcceptAuthority)(nil) +var _ protoreflect.Message = (*fastReflection_MsgAcceptOwnership)(nil) -type fastReflection_MsgAcceptAuthority MsgAcceptAuthority +type fastReflection_MsgAcceptOwnership MsgAcceptOwnership -func (x *MsgAcceptAuthority) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAcceptAuthority)(x) +func (x *MsgAcceptOwnership) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAcceptOwnership)(x) } -func (x *MsgAcceptAuthority) slowProtoReflect() protoreflect.Message { +func (x *MsgAcceptOwnership) slowProtoReflect() protoreflect.Message { mi := &file_noble_authority_v1_tx_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1926,43 +1926,43 @@ func (x *MsgAcceptAuthority) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgAcceptAuthority_messageType fastReflection_MsgAcceptAuthority_messageType -var _ protoreflect.MessageType = fastReflection_MsgAcceptAuthority_messageType{} +var _fastReflection_MsgAcceptOwnership_messageType fastReflection_MsgAcceptOwnership_messageType +var _ protoreflect.MessageType = fastReflection_MsgAcceptOwnership_messageType{} -type fastReflection_MsgAcceptAuthority_messageType struct{} +type fastReflection_MsgAcceptOwnership_messageType struct{} -func (x fastReflection_MsgAcceptAuthority_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAcceptAuthority)(nil) +func (x fastReflection_MsgAcceptOwnership_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAcceptOwnership)(nil) } -func (x fastReflection_MsgAcceptAuthority_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAcceptAuthority) +func (x fastReflection_MsgAcceptOwnership_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwnership) } -func (x fastReflection_MsgAcceptAuthority_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAcceptAuthority +func (x fastReflection_MsgAcceptOwnership_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwnership } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgAcceptAuthority) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAcceptAuthority +func (x *fastReflection_MsgAcceptOwnership) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwnership } // 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_MsgAcceptAuthority) Type() protoreflect.MessageType { - return _fastReflection_MsgAcceptAuthority_messageType +func (x *fastReflection_MsgAcceptOwnership) Type() protoreflect.MessageType { + return _fastReflection_MsgAcceptOwnership_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAcceptAuthority) New() protoreflect.Message { - return new(fastReflection_MsgAcceptAuthority) +func (x *fastReflection_MsgAcceptOwnership) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwnership) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAcceptAuthority) Interface() protoreflect.ProtoMessage { - return (*MsgAcceptAuthority)(x) +func (x *fastReflection_MsgAcceptOwnership) Interface() protoreflect.ProtoMessage { + return (*MsgAcceptOwnership)(x) } // Range iterates over every populated field in an undefined order, @@ -1970,10 +1970,10 @@ func (x *fastReflection_MsgAcceptAuthority) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgAcceptAuthority) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgAcceptOwnership) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Signer != "" { value := protoreflect.ValueOfString(x.Signer) - if !f(fd_MsgAcceptAuthority_signer, value) { + if !f(fd_MsgAcceptOwnership_signer, value) { return } } @@ -1990,15 +1990,15 @@ func (x *fastReflection_MsgAcceptAuthority) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgAcceptAuthority) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgAcceptOwnership) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "noble.authority.v1.MsgAcceptAuthority.signer": + case "noble.authority.v1.MsgAcceptOwnership.signer": return x.Signer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnership does not contain field %s", fd.FullName())) } } @@ -2008,15 +2008,15 @@ func (x *fastReflection_MsgAcceptAuthority) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAcceptAuthority) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgAcceptOwnership) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "noble.authority.v1.MsgAcceptAuthority.signer": + case "noble.authority.v1.MsgAcceptOwnership.signer": x.Signer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnership does not contain field %s", fd.FullName())) } } @@ -2026,16 +2026,16 @@ func (x *fastReflection_MsgAcceptAuthority) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgAcceptAuthority) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAcceptOwnership) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "noble.authority.v1.MsgAcceptAuthority.signer": + case "noble.authority.v1.MsgAcceptOwnership.signer": value := x.Signer return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthority does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnership does not contain field %s", descriptor.FullName())) } } @@ -2049,15 +2049,15 @@ func (x *fastReflection_MsgAcceptAuthority) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAcceptAuthority) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgAcceptOwnership) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "noble.authority.v1.MsgAcceptAuthority.signer": + case "noble.authority.v1.MsgAcceptOwnership.signer": x.Signer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnership does not contain field %s", fd.FullName())) } } @@ -2071,40 +2071,40 @@ func (x *fastReflection_MsgAcceptAuthority) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAcceptAuthority) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAcceptOwnership) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "noble.authority.v1.MsgAcceptAuthority.signer": - panic(fmt.Errorf("field signer of message noble.authority.v1.MsgAcceptAuthority is not mutable")) + case "noble.authority.v1.MsgAcceptOwnership.signer": + panic(fmt.Errorf("field signer of message noble.authority.v1.MsgAcceptOwnership is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnership 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_MsgAcceptAuthority) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAcceptOwnership) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "noble.authority.v1.MsgAcceptAuthority.signer": + case "noble.authority.v1.MsgAcceptOwnership.signer": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthority")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnership")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthority does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnership 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_MsgAcceptAuthority) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgAcceptOwnership) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.MsgAcceptAuthority", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.MsgAcceptOwnership", d.FullName())) } panic("unreachable") } @@ -2112,7 +2112,7 @@ func (x *fastReflection_MsgAcceptAuthority) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgAcceptAuthority) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgAcceptOwnership) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2123,7 +2123,7 @@ func (x *fastReflection_MsgAcceptAuthority) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAcceptAuthority) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgAcceptOwnership) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2135,7 +2135,7 @@ func (x *fastReflection_MsgAcceptAuthority) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgAcceptAuthority) IsValid() bool { +func (x *fastReflection_MsgAcceptOwnership) IsValid() bool { return x != nil } @@ -2145,9 +2145,9 @@ func (x *fastReflection_MsgAcceptAuthority) 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_MsgAcceptAuthority) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgAcceptOwnership) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAcceptAuthority) + x := input.Message.Interface().(*MsgAcceptOwnership) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2173,7 +2173,7 @@ func (x *fastReflection_MsgAcceptAuthority) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAcceptAuthority) + x := input.Message.Interface().(*MsgAcceptOwnership) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2210,7 +2210,7 @@ func (x *fastReflection_MsgAcceptAuthority) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAcceptAuthority) + x := input.Message.Interface().(*MsgAcceptOwnership) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2242,10 +2242,10 @@ func (x *fastReflection_MsgAcceptAuthority) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptAuthority: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptOwnership: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptAuthority: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptOwnership: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2316,23 +2316,23 @@ func (x *fastReflection_MsgAcceptAuthority) ProtoMethods() *protoiface.Methods { } var ( - md_MsgAcceptAuthorityResponse protoreflect.MessageDescriptor + md_MsgAcceptOwnershipResponse protoreflect.MessageDescriptor ) func init() { file_noble_authority_v1_tx_proto_init() - md_MsgAcceptAuthorityResponse = File_noble_authority_v1_tx_proto.Messages().ByName("MsgAcceptAuthorityResponse") + md_MsgAcceptOwnershipResponse = File_noble_authority_v1_tx_proto.Messages().ByName("MsgAcceptOwnershipResponse") } -var _ protoreflect.Message = (*fastReflection_MsgAcceptAuthorityResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgAcceptOwnershipResponse)(nil) -type fastReflection_MsgAcceptAuthorityResponse MsgAcceptAuthorityResponse +type fastReflection_MsgAcceptOwnershipResponse MsgAcceptOwnershipResponse -func (x *MsgAcceptAuthorityResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAcceptAuthorityResponse)(x) +func (x *MsgAcceptOwnershipResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAcceptOwnershipResponse)(x) } -func (x *MsgAcceptAuthorityResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgAcceptOwnershipResponse) slowProtoReflect() protoreflect.Message { mi := &file_noble_authority_v1_tx_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2344,43 +2344,43 @@ func (x *MsgAcceptAuthorityResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgAcceptAuthorityResponse_messageType fastReflection_MsgAcceptAuthorityResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgAcceptAuthorityResponse_messageType{} +var _fastReflection_MsgAcceptOwnershipResponse_messageType fastReflection_MsgAcceptOwnershipResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgAcceptOwnershipResponse_messageType{} -type fastReflection_MsgAcceptAuthorityResponse_messageType struct{} +type fastReflection_MsgAcceptOwnershipResponse_messageType struct{} -func (x fastReflection_MsgAcceptAuthorityResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAcceptAuthorityResponse)(nil) +func (x fastReflection_MsgAcceptOwnershipResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAcceptOwnershipResponse)(nil) } -func (x fastReflection_MsgAcceptAuthorityResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAcceptAuthorityResponse) +func (x fastReflection_MsgAcceptOwnershipResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwnershipResponse) } -func (x fastReflection_MsgAcceptAuthorityResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAcceptAuthorityResponse +func (x fastReflection_MsgAcceptOwnershipResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwnershipResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgAcceptAuthorityResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAcceptAuthorityResponse +func (x *fastReflection_MsgAcceptOwnershipResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwnershipResponse } // 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_MsgAcceptAuthorityResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgAcceptAuthorityResponse_messageType +func (x *fastReflection_MsgAcceptOwnershipResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgAcceptOwnershipResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAcceptAuthorityResponse) New() protoreflect.Message { - return new(fastReflection_MsgAcceptAuthorityResponse) +func (x *fastReflection_MsgAcceptOwnershipResponse) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwnershipResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAcceptAuthorityResponse) Interface() protoreflect.ProtoMessage { - return (*MsgAcceptAuthorityResponse)(x) +func (x *fastReflection_MsgAcceptOwnershipResponse) Interface() protoreflect.ProtoMessage { + return (*MsgAcceptOwnershipResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2388,7 +2388,7 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgAcceptAuthorityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgAcceptOwnershipResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -2402,13 +2402,13 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) Range(f func(protoreflect.Fi // 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_MsgAcceptAuthorityResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgAcceptOwnershipResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -2418,13 +2418,13 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAcceptAuthorityResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgAcceptOwnershipResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -2434,13 +2434,13 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) Clear(fd protoreflect.FieldD // 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_MsgAcceptAuthorityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAcceptOwnershipResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthorityResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnershipResponse does not contain field %s", descriptor.FullName())) } } @@ -2454,13 +2454,13 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAcceptAuthorityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgAcceptOwnershipResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -2474,36 +2474,36 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAcceptAuthorityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAcceptOwnershipResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnershipResponse 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_MsgAcceptAuthorityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAcceptOwnershipResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.authority.v1.MsgAcceptOwnershipResponse")) } - panic(fmt.Errorf("message noble.authority.v1.MsgAcceptAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message noble.authority.v1.MsgAcceptOwnershipResponse 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_MsgAcceptAuthorityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgAcceptOwnershipResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.MsgAcceptAuthorityResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in noble.authority.v1.MsgAcceptOwnershipResponse", d.FullName())) } panic("unreachable") } @@ -2511,7 +2511,7 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) WhichOneof(d protoreflect.On // 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_MsgAcceptAuthorityResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgAcceptOwnershipResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2522,7 +2522,7 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAcceptAuthorityResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgAcceptOwnershipResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2534,7 +2534,7 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) SetUnknown(fields protorefle // 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_MsgAcceptAuthorityResponse) IsValid() bool { +func (x *fastReflection_MsgAcceptOwnershipResponse) IsValid() bool { return x != nil } @@ -2544,9 +2544,9 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) 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_MsgAcceptAuthorityResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgAcceptOwnershipResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAcceptAuthorityResponse) + x := input.Message.Interface().(*MsgAcceptOwnershipResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2568,7 +2568,7 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAcceptAuthorityResponse) + x := input.Message.Interface().(*MsgAcceptOwnershipResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2598,7 +2598,7 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAcceptAuthorityResponse) + x := input.Message.Interface().(*MsgAcceptOwnershipResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2630,10 +2630,10 @@ func (x *fastReflection_MsgAcceptAuthorityResponse) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptAuthorityResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptOwnershipResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptAuthorityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -2762,17 +2762,17 @@ func (x *MsgExecuteResponse) GetResults() [][]byte { return nil } -type MsgTransferAuthority struct { +type MsgTransferOwnership struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` - NewAuthority string `protobuf:"bytes,2,opt,name=new_authority,json=newAuthority,proto3" json:"new_authority,omitempty"` + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` } -func (x *MsgTransferAuthority) Reset() { - *x = MsgTransferAuthority{} +func (x *MsgTransferOwnership) Reset() { + *x = MsgTransferOwnership{} if protoimpl.UnsafeEnabled { mi := &file_noble_authority_v1_tx_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2780,39 +2780,39 @@ func (x *MsgTransferAuthority) Reset() { } } -func (x *MsgTransferAuthority) String() string { +func (x *MsgTransferOwnership) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgTransferAuthority) ProtoMessage() {} +func (*MsgTransferOwnership) ProtoMessage() {} -// Deprecated: Use MsgTransferAuthority.ProtoReflect.Descriptor instead. -func (*MsgTransferAuthority) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgTransferOwnership.ProtoReflect.Descriptor instead. +func (*MsgTransferOwnership) Descriptor() ([]byte, []int) { return file_noble_authority_v1_tx_proto_rawDescGZIP(), []int{2} } -func (x *MsgTransferAuthority) GetSigner() string { +func (x *MsgTransferOwnership) GetSigner() string { if x != nil { return x.Signer } return "" } -func (x *MsgTransferAuthority) GetNewAuthority() string { +func (x *MsgTransferOwnership) GetNewOwner() string { if x != nil { - return x.NewAuthority + return x.NewOwner } return "" } -type MsgTransferAuthorityResponse struct { +type MsgTransferOwnershipResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgTransferAuthorityResponse) Reset() { - *x = MsgTransferAuthorityResponse{} +func (x *MsgTransferOwnershipResponse) Reset() { + *x = MsgTransferOwnershipResponse{} if protoimpl.UnsafeEnabled { mi := &file_noble_authority_v1_tx_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2820,18 +2820,18 @@ func (x *MsgTransferAuthorityResponse) Reset() { } } -func (x *MsgTransferAuthorityResponse) String() string { +func (x *MsgTransferOwnershipResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgTransferAuthorityResponse) ProtoMessage() {} +func (*MsgTransferOwnershipResponse) ProtoMessage() {} -// Deprecated: Use MsgTransferAuthorityResponse.ProtoReflect.Descriptor instead. -func (*MsgTransferAuthorityResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgTransferOwnershipResponse.ProtoReflect.Descriptor instead. +func (*MsgTransferOwnershipResponse) Descriptor() ([]byte, []int) { return file_noble_authority_v1_tx_proto_rawDescGZIP(), []int{3} } -type MsgAcceptAuthority struct { +type MsgAcceptOwnership struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -2839,8 +2839,8 @@ type MsgAcceptAuthority struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` } -func (x *MsgAcceptAuthority) Reset() { - *x = MsgAcceptAuthority{} +func (x *MsgAcceptOwnership) Reset() { + *x = MsgAcceptOwnership{} if protoimpl.UnsafeEnabled { mi := &file_noble_authority_v1_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2848,32 +2848,32 @@ func (x *MsgAcceptAuthority) Reset() { } } -func (x *MsgAcceptAuthority) String() string { +func (x *MsgAcceptOwnership) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgAcceptAuthority) ProtoMessage() {} +func (*MsgAcceptOwnership) ProtoMessage() {} -// Deprecated: Use MsgAcceptAuthority.ProtoReflect.Descriptor instead. -func (*MsgAcceptAuthority) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgAcceptOwnership.ProtoReflect.Descriptor instead. +func (*MsgAcceptOwnership) Descriptor() ([]byte, []int) { return file_noble_authority_v1_tx_proto_rawDescGZIP(), []int{4} } -func (x *MsgAcceptAuthority) GetSigner() string { +func (x *MsgAcceptOwnership) GetSigner() string { if x != nil { return x.Signer } return "" } -type MsgAcceptAuthorityResponse struct { +type MsgAcceptOwnershipResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgAcceptAuthorityResponse) Reset() { - *x = MsgAcceptAuthorityResponse{} +func (x *MsgAcceptOwnershipResponse) Reset() { + *x = MsgAcceptOwnershipResponse{} if protoimpl.UnsafeEnabled { mi := &file_noble_authority_v1_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2881,14 +2881,14 @@ func (x *MsgAcceptAuthorityResponse) Reset() { } } -func (x *MsgAcceptAuthorityResponse) String() string { +func (x *MsgAcceptOwnershipResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgAcceptAuthorityResponse) ProtoMessage() {} +func (*MsgAcceptOwnershipResponse) ProtoMessage() {} -// Deprecated: Use MsgAcceptAuthorityResponse.ProtoReflect.Descriptor instead. -func (*MsgAcceptAuthorityResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgAcceptOwnershipResponse.ProtoReflect.Descriptor instead. +func (*MsgAcceptOwnershipResponse) Descriptor() ([]byte, []int) { return file_noble_authority_v1_tx_proto_rawDescGZIP(), []int{5} } @@ -2918,63 +2918,63 @@ var file_noble_authority_v1_tx_proto_rawDesc = []byte{ 0x75, 0x74, 0x65, 0x22, 0x2e, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x30, 0x0a, 0x06, + 0x6c, 0x74, 0x73, 0x22, 0xb0, 0x01, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x3d, - 0x0a, 0x0d, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x0c, 0x6e, 0x65, 0x77, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x2f, 0x88, - 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, - 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x17, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1e, - 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x41, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, - 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, - 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x2d, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, - 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x15, - 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, - 0x70, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x32, 0xbb, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x51, 0x0a, 0x07, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, - 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x12, 0x28, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x1a, 0x30, 0x2e, - 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x69, 0x0a, 0x0f, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x12, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, - 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x1a, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x35, + 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6e, 0x65, 0x77, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x3a, 0x2f, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, + 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x17, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4f, 0x77, 0x6e, + 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, + 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x30, 0x0a, 0x06, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, + 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x3a, 0x2d, + 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x15, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x41, 0x63, + 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x22, 0x1c, 0x0a, + 0x1a, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, + 0x68, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xbb, 0x02, 0x0a, 0x03, + 0x4d, 0x73, 0x67, 0x12, 0x51, 0x0a, 0x07, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x1e, + 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x26, + 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, + 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x28, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, + 0x72, 0x73, 0x68, 0x69, 0x70, 0x1a, 0x30, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0f, 0x41, 0x63, 0x63, 0x65, 0x70, + 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, - 0x01, 0x42, 0xd1, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, - 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, - 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, - 0x31, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, - 0x4e, 0x41, 0x58, 0xaa, 0x02, 0x12, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x4e, 0x6f, 0x62, 0x6c, 0x65, - 0x5c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, - 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5c, - 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x14, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, + 0x69, 0x70, 0x1a, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, + 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xd1, 0x01, 0x0a, 0x16, 0x63, 0x6f, + 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x41, 0x58, 0xaa, 0x02, 0x12, 0x4e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x12, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x41, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, 0x3a, + 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2993,20 +2993,20 @@ var file_noble_authority_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_noble_authority_v1_tx_proto_goTypes = []interface{}{ (*MsgExecute)(nil), // 0: noble.authority.v1.MsgExecute (*MsgExecuteResponse)(nil), // 1: noble.authority.v1.MsgExecuteResponse - (*MsgTransferAuthority)(nil), // 2: noble.authority.v1.MsgTransferAuthority - (*MsgTransferAuthorityResponse)(nil), // 3: noble.authority.v1.MsgTransferAuthorityResponse - (*MsgAcceptAuthority)(nil), // 4: noble.authority.v1.MsgAcceptAuthority - (*MsgAcceptAuthorityResponse)(nil), // 5: noble.authority.v1.MsgAcceptAuthorityResponse + (*MsgTransferOwnership)(nil), // 2: noble.authority.v1.MsgTransferOwnership + (*MsgTransferOwnershipResponse)(nil), // 3: noble.authority.v1.MsgTransferOwnershipResponse + (*MsgAcceptOwnership)(nil), // 4: noble.authority.v1.MsgAcceptOwnership + (*MsgAcceptOwnershipResponse)(nil), // 5: noble.authority.v1.MsgAcceptOwnershipResponse (*anypb.Any)(nil), // 6: google.protobuf.Any } var file_noble_authority_v1_tx_proto_depIdxs = []int32{ 6, // 0: noble.authority.v1.MsgExecute.messages:type_name -> google.protobuf.Any 0, // 1: noble.authority.v1.Msg.Execute:input_type -> noble.authority.v1.MsgExecute - 2, // 2: noble.authority.v1.Msg.TransferAuthority:input_type -> noble.authority.v1.MsgTransferAuthority - 4, // 3: noble.authority.v1.Msg.AcceptAuthority:input_type -> noble.authority.v1.MsgAcceptAuthority + 2, // 2: noble.authority.v1.Msg.TransferOwnership:input_type -> noble.authority.v1.MsgTransferOwnership + 4, // 3: noble.authority.v1.Msg.AcceptOwnership:input_type -> noble.authority.v1.MsgAcceptOwnership 1, // 4: noble.authority.v1.Msg.Execute:output_type -> noble.authority.v1.MsgExecuteResponse - 3, // 5: noble.authority.v1.Msg.TransferAuthority:output_type -> noble.authority.v1.MsgTransferAuthorityResponse - 5, // 6: noble.authority.v1.Msg.AcceptAuthority:output_type -> noble.authority.v1.MsgAcceptAuthorityResponse + 3, // 5: noble.authority.v1.Msg.TransferOwnership:output_type -> noble.authority.v1.MsgTransferOwnershipResponse + 5, // 6: noble.authority.v1.Msg.AcceptOwnership:output_type -> noble.authority.v1.MsgAcceptOwnershipResponse 4, // [4:7] is the sub-list for method output_type 1, // [1:4] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -3045,7 +3045,7 @@ func file_noble_authority_v1_tx_proto_init() { } } file_noble_authority_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgTransferAuthority); i { + switch v := v.(*MsgTransferOwnership); i { case 0: return &v.state case 1: @@ -3057,7 +3057,7 @@ func file_noble_authority_v1_tx_proto_init() { } } file_noble_authority_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgTransferAuthorityResponse); i { + switch v := v.(*MsgTransferOwnershipResponse); i { case 0: return &v.state case 1: @@ -3069,7 +3069,7 @@ func file_noble_authority_v1_tx_proto_init() { } } file_noble_authority_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAcceptAuthority); i { + switch v := v.(*MsgAcceptOwnership); i { case 0: return &v.state case 1: @@ -3081,7 +3081,7 @@ func file_noble_authority_v1_tx_proto_init() { } } file_noble_authority_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAcceptAuthorityResponse); i { + switch v := v.(*MsgAcceptOwnershipResponse); i { case 0: return &v.state case 1: diff --git a/api/noble/authority/v1/tx_grpc.pb.go b/api/noble/authority/v1/tx_grpc.pb.go index a06b5c0..ba25d94 100644 --- a/api/noble/authority/v1/tx_grpc.pb.go +++ b/api/noble/authority/v1/tx_grpc.pb.go @@ -20,8 +20,8 @@ const _ = grpc.SupportPackageIsVersion7 const ( Msg_Execute_FullMethodName = "/noble.authority.v1.Msg/Execute" - Msg_TransferAuthority_FullMethodName = "/noble.authority.v1.Msg/TransferAuthority" - Msg_AcceptAuthority_FullMethodName = "/noble.authority.v1.Msg/AcceptAuthority" + Msg_TransferOwnership_FullMethodName = "/noble.authority.v1.Msg/TransferOwnership" + Msg_AcceptOwnership_FullMethodName = "/noble.authority.v1.Msg/AcceptOwnership" ) // MsgClient is the client API for Msg service. @@ -29,8 +29,8 @@ const ( // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type MsgClient interface { Execute(ctx context.Context, in *MsgExecute, opts ...grpc.CallOption) (*MsgExecuteResponse, error) - TransferAuthority(ctx context.Context, in *MsgTransferAuthority, opts ...grpc.CallOption) (*MsgTransferAuthorityResponse, error) - AcceptAuthority(ctx context.Context, in *MsgAcceptAuthority, opts ...grpc.CallOption) (*MsgAcceptAuthorityResponse, error) + TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, error) + AcceptOwnership(ctx context.Context, in *MsgAcceptOwnership, opts ...grpc.CallOption) (*MsgAcceptOwnershipResponse, error) } type msgClient struct { @@ -50,18 +50,18 @@ func (c *msgClient) Execute(ctx context.Context, in *MsgExecute, opts ...grpc.Ca return out, nil } -func (c *msgClient) TransferAuthority(ctx context.Context, in *MsgTransferAuthority, opts ...grpc.CallOption) (*MsgTransferAuthorityResponse, error) { - out := new(MsgTransferAuthorityResponse) - err := c.cc.Invoke(ctx, Msg_TransferAuthority_FullMethodName, in, out, opts...) +func (c *msgClient) TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, error) { + out := new(MsgTransferOwnershipResponse) + err := c.cc.Invoke(ctx, Msg_TransferOwnership_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) AcceptAuthority(ctx context.Context, in *MsgAcceptAuthority, opts ...grpc.CallOption) (*MsgAcceptAuthorityResponse, error) { - out := new(MsgAcceptAuthorityResponse) - err := c.cc.Invoke(ctx, Msg_AcceptAuthority_FullMethodName, in, out, opts...) +func (c *msgClient) AcceptOwnership(ctx context.Context, in *MsgAcceptOwnership, opts ...grpc.CallOption) (*MsgAcceptOwnershipResponse, error) { + out := new(MsgAcceptOwnershipResponse) + err := c.cc.Invoke(ctx, Msg_AcceptOwnership_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -73,8 +73,8 @@ func (c *msgClient) AcceptAuthority(ctx context.Context, in *MsgAcceptAuthority, // for forward compatibility type MsgServer interface { Execute(context.Context, *MsgExecute) (*MsgExecuteResponse, error) - TransferAuthority(context.Context, *MsgTransferAuthority) (*MsgTransferAuthorityResponse, error) - AcceptAuthority(context.Context, *MsgAcceptAuthority) (*MsgAcceptAuthorityResponse, error) + TransferOwnership(context.Context, *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error) + AcceptOwnership(context.Context, *MsgAcceptOwnership) (*MsgAcceptOwnershipResponse, error) mustEmbedUnimplementedMsgServer() } @@ -85,11 +85,11 @@ type UnimplementedMsgServer struct { func (UnimplementedMsgServer) Execute(context.Context, *MsgExecute) (*MsgExecuteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Execute not implemented") } -func (UnimplementedMsgServer) TransferAuthority(context.Context, *MsgTransferAuthority) (*MsgTransferAuthorityResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TransferAuthority not implemented") +func (UnimplementedMsgServer) TransferOwnership(context.Context, *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferOwnership not implemented") } -func (UnimplementedMsgServer) AcceptAuthority(context.Context, *MsgAcceptAuthority) (*MsgAcceptAuthorityResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AcceptAuthority not implemented") +func (UnimplementedMsgServer) AcceptOwnership(context.Context, *MsgAcceptOwnership) (*MsgAcceptOwnershipResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AcceptOwnership not implemented") } func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} @@ -122,38 +122,38 @@ func _Msg_Execute_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Msg_TransferAuthority_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgTransferAuthority) +func _Msg_TransferOwnership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferOwnership) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).TransferAuthority(ctx, in) + return srv.(MsgServer).TransferOwnership(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_TransferAuthority_FullMethodName, + FullMethod: Msg_TransferOwnership_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).TransferAuthority(ctx, req.(*MsgTransferAuthority)) + return srv.(MsgServer).TransferOwnership(ctx, req.(*MsgTransferOwnership)) } return interceptor(ctx, in, info, handler) } -func _Msg_AcceptAuthority_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAcceptAuthority) +func _Msg_AcceptOwnership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAcceptOwnership) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).AcceptAuthority(ctx, in) + return srv.(MsgServer).AcceptOwnership(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_AcceptAuthority_FullMethodName, + FullMethod: Msg_AcceptOwnership_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AcceptAuthority(ctx, req.(*MsgAcceptAuthority)) + return srv.(MsgServer).AcceptOwnership(ctx, req.(*MsgAcceptOwnership)) } return interceptor(ctx, in, info, handler) } @@ -170,12 +170,12 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ Handler: _Msg_Execute_Handler, }, { - MethodName: "TransferAuthority", - Handler: _Msg_TransferAuthority_Handler, + MethodName: "TransferOwnership", + Handler: _Msg_TransferOwnership_Handler, }, { - MethodName: "AcceptAuthority", - Handler: _Msg_AcceptAuthority_Handler, + MethodName: "AcceptOwnership", + Handler: _Msg_AcceptOwnership_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/proto/noble/authority/v1/events.proto b/proto/noble/authority/v1/events.proto new file mode 100644 index 0000000..1b12022 --- /dev/null +++ b/proto/noble/authority/v1/events.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +package noble.authority.v1; + +import "cosmos_proto/cosmos.proto"; + +option go_package = "github.com/noble-assets/authority/x/authority/types"; + +// OwnershipTransferStarted is emitted whenever an ownership transfer is started. +message OwnershipTransferStarted { + // previous_owner is the address of the previous owner. + string previous_owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // new_owner is the address of the new owner. + string new_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// OwnershipTransferStarted is emitted whenever an ownership transfer is finalized. +message OwnershipTransferred { + // previous_owner is the address of the previous owner. + string previous_owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // new_owner is the address of the new owner. + string new_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} diff --git a/proto/noble/authority/v1/genesis.proto b/proto/noble/authority/v1/genesis.proto index 03eba01..8ad270b 100644 --- a/proto/noble/authority/v1/genesis.proto +++ b/proto/noble/authority/v1/genesis.proto @@ -7,6 +7,6 @@ import "cosmos_proto/cosmos.proto"; option go_package = "github.com/noble-assets/authority/x/authority/types"; message GenesisState { - string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - string pending_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string pending_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } diff --git a/proto/noble/authority/v1/query.proto b/proto/noble/authority/v1/query.proto index 4c4c3fe..5727af5 100644 --- a/proto/noble/authority/v1/query.proto +++ b/proto/noble/authority/v1/query.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package noble.authority.v1; +import "amino/amino.proto"; import "cosmos/query/v1/query.proto"; import "cosmos_proto/cosmos.proto"; import "google/api/annotations.proto"; @@ -9,17 +10,30 @@ import "google/api/annotations.proto"; option go_package = "github.com/noble-assets/authority/x/authority/types"; service Query { - rpc Address(QueryAddress) returns (QueryAddressResponse) { + rpc Owner(QueryOwner) returns (QueryOwnerResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/noble/authority/v1/address"; + option (google.api.http).get = "/noble/authority/v1/owner"; + } + + rpc PendingOwner(QueryPendingOwner) returns (QueryPendingOwnerResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/noble/authority/v1/pending_owner"; } } // -message QueryAddress {} +message QueryOwner {} + +message QueryOwnerResponse { + string owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +message QueryPendingOwner {} -message QueryAddressResponse { - string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - string pending_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +message QueryPendingOwnerResponse { + string pending_owner = 1 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (amino.dont_omitempty) = true + ]; } diff --git a/proto/noble/authority/v1/tx.proto b/proto/noble/authority/v1/tx.proto index 3ec4434..2fe3120 100644 --- a/proto/noble/authority/v1/tx.proto +++ b/proto/noble/authority/v1/tx.proto @@ -14,8 +14,9 @@ service Msg { option (cosmos.msg.v1.service) = true; rpc Execute(MsgExecute) returns (MsgExecuteResponse); - rpc TransferAuthority(MsgTransferAuthority) returns (MsgTransferAuthorityResponse); - rpc AcceptAuthority(MsgAcceptAuthority) returns (MsgAcceptAuthorityResponse); + + rpc TransferOwnership(MsgTransferOwnership) returns (MsgTransferOwnershipResponse); + rpc AcceptOwnership(MsgAcceptOwnership) returns (MsgAcceptOwnershipResponse); } // @@ -35,22 +36,22 @@ message MsgExecuteResponse { repeated bytes results = 1; } -message MsgTransferAuthority { +message MsgTransferOwnership { option (cosmos.msg.v1.signer) = "signer"; - option (amino.name) = "noble/TransferAuthority"; + option (amino.name) = "noble/TransferOwnership"; option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - string new_authority = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string new_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } -message MsgTransferAuthorityResponse {} +message MsgTransferOwnershipResponse {} -message MsgAcceptAuthority { +message MsgAcceptOwnership { option (cosmos.msg.v1.signer) = "signer"; - option (amino.name) = "noble/AcceptAuthority"; + option (amino.name) = "noble/AcceptOwnership"; option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; @@ -58,4 +59,4 @@ message MsgAcceptAuthority { string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } -message MsgAcceptAuthorityResponse {} +message MsgAcceptOwnershipResponse {} diff --git a/x/authority/genesis.go b/x/authority/genesis.go index 49b20f5..b31af09 100644 --- a/x/authority/genesis.go +++ b/x/authority/genesis.go @@ -8,45 +8,33 @@ import ( ) func InitGenesis(ctx context.Context, k *keeper.Keeper, accountKeeper types.AccountKeeper, genesis types.GenesisState) { - authority, err := accountKeeper.AddressCodec().StringToBytes(genesis.Address) + _, err := accountKeeper.AddressCodec().StringToBytes(genesis.Owner) if err != nil { - panic("failed to decode authority address") + panic("failed to decode owner address") } - err = k.Authority.Set(ctx, authority) + err = k.Owner.Set(ctx, genesis.Owner) if err != nil { - panic("failed to set authority in state") + panic("failed to set owner in state") } - if genesis.PendingAddress != "" { - pendingAuthority, err := accountKeeper.AddressCodec().StringToBytes(genesis.PendingAddress) + if genesis.PendingOwner != "" { + _, err := accountKeeper.AddressCodec().StringToBytes(genesis.PendingOwner) if err != nil { - panic("failed to decode pending authority address") + panic("failed to decode pending owner address") } - err = k.PendingAuthority.Set(ctx, pendingAuthority) + err = k.PendingOwner.Set(ctx, genesis.PendingOwner) if err != nil { - panic("failed to set pending authority in state") + panic("failed to set pending owner in state") } } } func ExportGenesis(ctx context.Context, k *keeper.Keeper, accountKeeper types.AccountKeeper) *types.GenesisState { - authority, err := k.Authority.Get(ctx) - if err != nil { - panic("failed to get authority from state") - } - address, err := accountKeeper.AddressCodec().BytesToString(authority) - if err != nil { - panic("failed to encode authority address") - } + owner, _ := k.Owner.Get(ctx) + pendingOwner, _ := k.PendingOwner.Get(ctx) - pendingAddress := "" - pendingAuthority, err := k.PendingAuthority.Get(ctx) - if err == nil { - pendingAddress, err = accountKeeper.AddressCodec().BytesToString(pendingAuthority) - if err != nil { - panic("failed to encode pending authority address") - } + return &types.GenesisState{ + Owner: owner, + PendingOwner: pendingOwner, } - - return &types.GenesisState{Address: address, PendingAddress: pendingAddress} } diff --git a/x/authority/keeper/keeper.go b/x/authority/keeper/keeper.go index 50969b2..3266ee0 100644 --- a/x/authority/keeper/keeper.go +++ b/x/authority/keeper/keeper.go @@ -1,13 +1,9 @@ package keeper import ( - "bytes" - "context" - "cosmossdk.io/collections" "cosmossdk.io/core/event" "cosmossdk.io/core/store" - "cosmossdk.io/errors" "cosmossdk.io/log" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" @@ -20,9 +16,9 @@ type Keeper struct { storeService store.KVStoreService eventService event.Service - Schema collections.Schema - Authority collections.Item[[]byte] - PendingAuthority collections.Item[[]byte] + Schema collections.Schema + Owner collections.Item[string] + PendingOwner collections.Item[string] router baseapp.MessageRouter accountKeeper types.AccountKeeper @@ -44,8 +40,8 @@ func NewKeeper( storeService: storeService, eventService: eventService, - Authority: collections.NewItem(builder, types.AuthorityKey, "authority", collections.BytesValue), - PendingAuthority: collections.NewItem(builder, types.PendingAuthorityKey, "pending_authority", collections.BytesValue), + Owner: collections.NewItem(builder, types.OwnerKey, "owner", collections.StringValue), + PendingOwner: collections.NewItem(builder, types.PendingOwnerKey, "pending_owner", collections.StringValue), router: router, accountKeeper: accountKeeper, @@ -59,22 +55,3 @@ func NewKeeper( keeper.Schema = schema return keeper } - -// EnsureAuthoritySigner is helper function that checks that the signer of a -// message is the current authority. -func (k *Keeper) EnsureAuthoritySigner(ctx context.Context, signerAddress string) ([]byte, error) { - authority, err := k.Authority.Get(ctx) - if err != nil { - return nil, errors.Wrap(err, "unable to retrieve authority from state") - } - signer, err := k.accountKeeper.AddressCodec().StringToBytes(signerAddress) - if err != nil { - return nil, errors.Wrap(err, "failed to decode signer address") - } - if !bytes.Equal(signer, authority) { - address, _ := k.accountKeeper.AddressCodec().BytesToString(authority) - return nil, errors.Wrapf(types.ErrInvalidAuthority, "expected %s, got %s", address, signerAddress) - } - - return authority, nil -} diff --git a/x/authority/keeper/msg_server.go b/x/authority/keeper/msg_server.go index 18ad413..23a62e3 100644 --- a/x/authority/keeper/msg_server.go +++ b/x/authority/keeper/msg_server.go @@ -21,9 +21,9 @@ func NewMsgServer(keeper *Keeper) types.MsgServer { } func (k msgServer) Execute(ctx context.Context, msg *types.MsgExecute) (*types.MsgExecuteResponse, error) { - _, err := k.EnsureAuthoritySigner(ctx, msg.Signer) - if err != nil { - return nil, err + owner, _ := k.Owner.Get(ctx) + if msg.Signer != owner { + return nil, errors.Wrapf(types.ErrInvalidOwner, "expected %s, got %s", owner, msg.Signer) } msgs, err := msg.GetMessages(k.cdc) @@ -48,7 +48,7 @@ func (k msgServer) Execute(ctx context.Context, msg *types.MsgExecute) (*types.M if len(signers) != 1 || !bytes.Equal(types.ModuleAddress, signers[0]) { module, _ := k.accountKeeper.AddressCodec().BytesToString(types.ModuleAddress) signer, _ := k.accountKeeper.AddressCodec().BytesToString(signers[0]) - return nil, errors.Wrapf(types.ErrInvalidAuthority, "message %d; expected %s, got %s", i, module, signer) + return nil, errors.Wrapf(types.ErrInvalidOwner, "message %d; expected %s, got %s", i, module, signer) } handler := k.router.Handler(msg) @@ -70,48 +70,55 @@ func (k msgServer) Execute(ctx context.Context, msg *types.MsgExecute) (*types.M return &types.MsgExecuteResponse{Results: results}, nil } -func (k msgServer) TransferAuthority(ctx context.Context, msg *types.MsgTransferAuthority) (*types.MsgTransferAuthorityResponse, error) { - authority, err := k.EnsureAuthoritySigner(ctx, msg.Signer) - if err != nil { - return nil, err +func (k msgServer) TransferOwnership(ctx context.Context, msg *types.MsgTransferOwnership) (*types.MsgTransferOwnershipResponse, error) { + owner, _ := k.Owner.Get(ctx) + if msg.Signer != owner { + return nil, errors.Wrapf(types.ErrInvalidOwner, "expected %s, got %s", owner, msg.Signer) } - newAuthority, err := k.accountKeeper.AddressCodec().StringToBytes(msg.NewAuthority) + _, err := k.accountKeeper.AddressCodec().StringToBytes(msg.NewOwner) if err != nil { - return nil, errors.Wrap(err, "failed to decode new authority address") + return nil, errors.Wrap(err, "failed to decode new owner address") } - if bytes.Equal(newAuthority, authority) { - return nil, types.ErrSameAuthority + if msg.NewOwner == owner { + return nil, types.ErrSameOwner } - err = k.PendingAuthority.Set(ctx, newAuthority) - return &types.MsgTransferAuthorityResponse{}, err -} - -func (k msgServer) AcceptAuthority(ctx context.Context, msg *types.MsgAcceptAuthority) (*types.MsgAcceptAuthorityResponse, error) { - pendingAuthority, err := k.PendingAuthority.Get(ctx) + err = k.PendingOwner.Set(ctx, msg.NewOwner) if err != nil { - return nil, errors.Wrap(err, "unable to retrieve pending authority from state") + return nil, errors.Wrap(err, "failed to set pending owner in state") } - signer, err := k.accountKeeper.AddressCodec().StringToBytes(msg.Signer) - if err != nil { - return nil, errors.Wrap(err, "failed to decode signer address") + + return &types.MsgTransferOwnershipResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.OwnershipTransferStarted{ + PreviousOwner: owner, + NewOwner: msg.NewOwner, + }) +} + +func (k msgServer) AcceptOwnership(ctx context.Context, msg *types.MsgAcceptOwnership) (*types.MsgAcceptOwnershipResponse, error) { + pendingOwner, _ := k.PendingOwner.Get(ctx) + if pendingOwner == "" { + return nil, types.ErrNoPendingOwner } - if !bytes.Equal(signer, pendingAuthority) { - address, _ := k.accountKeeper.AddressCodec().BytesToString(pendingAuthority) - return nil, errors.Wrapf(types.ErrInvalidPendingAuthority, "expected %s, got %s", address, msg.Signer) + if msg.Signer != pendingOwner { + return nil, errors.Wrapf(types.ErrInvalidPendingOwner, "expected %s, got %s", pendingOwner, msg.Signer) } - err = k.Authority.Set(ctx, pendingAuthority) + owner, _ := k.Owner.Get(ctx) + + err := k.Owner.Set(ctx, pendingOwner) if err != nil { - return nil, errors.Wrap(err, "unable to set owner in state") + return nil, errors.Wrap(err, "failed to set owner in state") } - err = k.PendingAuthority.Remove(ctx) + err = k.PendingOwner.Remove(ctx) if err != nil { - return nil, errors.Wrap(err, "unable to remove pending owner from state") + return nil, errors.Wrap(err, "failed to remove pending owner from state") } - return &types.MsgAcceptAuthorityResponse{}, nil + return &types.MsgAcceptOwnershipResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.OwnershipTransferred{ + PreviousOwner: owner, + NewOwner: msg.Signer, + }) } // diff --git a/x/authority/keeper/msg_server_test.go b/x/authority/keeper/msg_server_test.go index 5b1f9bd..d9ec9d1 100644 --- a/x/authority/keeper/msg_server_test.go +++ b/x/authority/keeper/msg_server_test.go @@ -19,26 +19,19 @@ func TestExecute(t *testing.T) { k, ctx := mocks.AuthorityKeeper(t) server := keeper.NewMsgServer(k) - // ARRANGE: Set an authority in state. - authority := utils.TestAccount() - require.NoError(t, k.Authority.Set(ctx, authority.Bytes)) - - // ACT: Attempt to execute with invalid signer address. - _, err := server.Execute(ctx, &types.MsgExecute{ - Signer: "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn", - }) - // ASSERT: The action should've failed due to invalid signer address. - require.ErrorContains(t, err, "failed to decode signer address") + // ARRANGE: Set an owner in state. + owner := utils.TestAccount() + require.NoError(t, k.Owner.Set(ctx, owner.Address)) // ACT: Attempt to execute with invalid signer. - _, err = server.Execute(ctx, &types.MsgExecute{ + _, err := server.Execute(ctx, &types.MsgExecute{ Signer: utils.TestAccount().Address, }) // ASSERT: The action should've failed due to invalid signer. - require.ErrorContains(t, err, types.ErrInvalidAuthority.Error()) + require.ErrorContains(t, err, types.ErrInvalidOwner.Error()) // ACT: Attempt to execute with an invalid message signer address. - msg := types.NewMsgExecute(authority.Address, []sdk.Msg{ + msg := types.NewMsgExecute(owner.Address, []sdk.Msg{ &banktypes.MsgUpdateParams{ Authority: "", Params: banktypes.Params{}, @@ -49,7 +42,7 @@ func TestExecute(t *testing.T) { require.ErrorContains(t, err, "unable to extract signers") // ACT: Attempt to execute with an invalid message signer. - msg = types.NewMsgExecute(authority.Address, []sdk.Msg{ + msg = types.NewMsgExecute(owner.Address, []sdk.Msg{ &banktypes.MsgUpdateParams{ Authority: "noble10d07y265gmmuvt4z0w9aw880jnsr700jjpxdwa", Params: banktypes.Params{}, @@ -57,10 +50,10 @@ func TestExecute(t *testing.T) { }) _, err = server.Execute(ctx, msg) // ASSERT: The action should've failed due to invalid message signer. - require.ErrorContains(t, err, types.ErrInvalidAuthority.Error()) + require.ErrorContains(t, err, types.ErrInvalidOwner.Error()) // ACT: Attempt to execute an invalid message. - msg = types.NewMsgExecute(authority.Address, []sdk.Msg{ + msg = types.NewMsgExecute(owner.Address, []sdk.Msg{ &banktypes.MsgUpdateParams{ Authority: MODULE, Params: banktypes.Params{}, @@ -71,7 +64,7 @@ func TestExecute(t *testing.T) { require.ErrorContains(t, err, types.ErrInvalidMessage.Error()) // ACT: Attempt to execute a valid message that fails. - msg = types.NewMsgExecute(authority.Address, []sdk.Msg{ + msg = types.NewMsgExecute(owner.Address, []sdk.Msg{ &upgradetypes.MsgCancelUpgrade{ Authority: MODULE, }, @@ -81,7 +74,7 @@ func TestExecute(t *testing.T) { require.ErrorContains(t, err, "failed to execute message") // ACT: Attempt to execute. - msg = types.NewMsgExecute(authority.Address, []sdk.Msg{ + msg = types.NewMsgExecute(owner.Address, []sdk.Msg{ &upgradetypes.MsgSoftwareUpgrade{ Authority: MODULE, Plan: upgradetypes.Plan{}, @@ -92,104 +85,85 @@ func TestExecute(t *testing.T) { require.Nil(t, err) } -func TestTransferAuthority(t *testing.T) { +func TestTransferOwnership(t *testing.T) { k, ctx := mocks.AuthorityKeeper(t) server := keeper.NewMsgServer(k) - // ACT: Attempt to update authority with no state. - _, err := server.TransferAuthority(ctx, &types.MsgTransferAuthority{}) - // ASSERT: The action should've failed. - require.ErrorContains(t, err, "unable to retrieve authority from state") - - // ARRANGE: Set an authority in state. - authority := utils.TestAccount() - require.NoError(t, k.Authority.Set(ctx, authority.Bytes)) - - // ACT: Attempt to update authority with invalid signer address. - _, err = server.TransferAuthority(ctx, &types.MsgTransferAuthority{ - Signer: "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn", - }) - // ASSERT: The action should've failed due to invalid signer address. - require.ErrorContains(t, err, "failed to decode signer address") + // ARRANGE: Set an owner in state. + owner := utils.TestAccount() + require.NoError(t, k.Owner.Set(ctx, owner.Address)) - // ACT: Attempt to update authority with invalid signer. - _, err = server.TransferAuthority(ctx, &types.MsgTransferAuthority{ + // ACT: Attempt to tranfer ownership with invalid signer. + _, err := server.TransferOwnership(ctx, &types.MsgTransferOwnership{ Signer: utils.TestAccount().Address, }) // ASSERT: The action should've failed due to invalid signer. - require.ErrorContains(t, err, types.ErrInvalidAuthority.Error()) + require.ErrorContains(t, err, types.ErrInvalidOwner.Error()) - // ACT: Attempt to update authority with invalid new authority address. - _, err = server.TransferAuthority(ctx, &types.MsgTransferAuthority{ - Signer: authority.Address, - NewAuthority: "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn", + // ACT: Attempt to transfer ownership with invalid new owner address. + _, err = server.TransferOwnership(ctx, &types.MsgTransferOwnership{ + Signer: owner.Address, + NewOwner: "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn", }) - // ASSERT: The action should've failed due to invalid new authority address. - require.ErrorContains(t, err, "failed to decode new authority address") + // ASSERT: The action should've failed due to invalid new owner address. + require.ErrorContains(t, err, "failed to decode new owner address") - // ACT: Attempt to update authority with same authority. - _, err = server.TransferAuthority(ctx, &types.MsgTransferAuthority{ - Signer: authority.Address, - NewAuthority: authority.Address, + // ACT: Attempt to transfer ownership with same owner. + _, err = server.TransferOwnership(ctx, &types.MsgTransferOwnership{ + Signer: owner.Address, + NewOwner: owner.Address, }) - // ASSERT: The action should've failed due to same authority. - require.ErrorContains(t, err, types.ErrSameAuthority.Error()) + // ASSERT: The action should've failed due to same owner. + require.ErrorContains(t, err, types.ErrSameOwner.Error()) - // ARRANGE: Generate a new authority. - newAuthority := utils.TestAccount() + // ARRANGE: Generate a new owner. + newOwner := utils.TestAccount() - // ACT: Attempt to update authority. - _, err = server.TransferAuthority(ctx, &types.MsgTransferAuthority{ - Signer: authority.Address, - NewAuthority: newAuthority.Address, + // ACT: Attempt to transfer ownership. + _, err = server.TransferOwnership(ctx, &types.MsgTransferOwnership{ + Signer: owner.Address, + NewOwner: newOwner.Address, }) - // ASSERT: The action should've succeeded, and set a pending authority. + // ASSERT: The action should've succeeded, and set a pending owner. require.NoError(t, err) - res, err := k.Authority.Get(ctx) + res, err := k.Owner.Get(ctx) require.NoError(t, err) - require.Equal(t, authority.Bytes, res) - res, err = k.PendingAuthority.Get(ctx) + require.Equal(t, owner.Address, res) + res, err = k.PendingOwner.Get(ctx) require.NoError(t, err) - require.Equal(t, newAuthority.Bytes, res) + require.Equal(t, newOwner.Address, res) } -func TestAcceptAuthority(t *testing.T) { +func TestAcceptOwnership(t *testing.T) { k, ctx := mocks.AuthorityKeeper(t) server := keeper.NewMsgServer(k) - // ACT: Attempt to accept authority with no pending authority set. - _, err := server.AcceptAuthority(ctx, &types.MsgAcceptAuthority{}) + // ACT: Attempt to accept ownership with no pending owner set. + _, err := server.AcceptOwnership(ctx, &types.MsgAcceptOwnership{}) // ASSERT: The action should've failed. - require.ErrorContains(t, err, "unable to retrieve pending authority from state") + require.ErrorIs(t, err, types.ErrNoPendingOwner) - // ARRANGE: Set a pending authority in state. - pendingAuthority := utils.TestAccount() - require.NoError(t, k.PendingAuthority.Set(ctx, pendingAuthority.Bytes)) - - // ACT: Attempt to accept authority with invalid signer address. - _, err = server.AcceptAuthority(ctx, &types.MsgAcceptAuthority{ - Signer: "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn", - }) - // ASSERT: The action should've failed due to invalid signer address. - require.ErrorContains(t, err, "failed to decode signer address") + // ARRANGE: Set a pending owner in state. + pendingOwner := utils.TestAccount() + require.NoError(t, k.PendingOwner.Set(ctx, pendingOwner.Address)) - // ACT: Attempt to accept authority with invalid signer. - _, err = server.AcceptAuthority(ctx, &types.MsgAcceptAuthority{ + // ACT: Attempt to accept ownership with invalid signer. + _, err = server.AcceptOwnership(ctx, &types.MsgAcceptOwnership{ Signer: utils.TestAccount().Address, }) // ASSERT: The action should've failed due to invalid signer. - require.ErrorContains(t, err, types.ErrInvalidPendingAuthority.Error()) + require.ErrorContains(t, err, types.ErrInvalidPendingOwner.Error()) - // ACT: Attempt to accept authority. - _, err = server.AcceptAuthority(ctx, &types.MsgAcceptAuthority{ - Signer: pendingAuthority.Address, + // ACT: Attempt to accept ownership. + _, err = server.AcceptOwnership(ctx, &types.MsgAcceptOwnership{ + Signer: pendingOwner.Address, }) - // ASSERT: The action should've succeeded, and updated authority. + // ASSERT: The action should've succeeded, and updated owner. require.NoError(t, err) - has, err := k.PendingAuthority.Has(ctx) + has, err := k.PendingOwner.Has(ctx) require.NoError(t, err) require.False(t, has) - res, err := k.Authority.Get(ctx) + res, err := k.Owner.Get(ctx) require.NoError(t, err) - require.Equal(t, pendingAuthority.Bytes, res) + require.Equal(t, pendingOwner.Address, res) } diff --git a/x/authority/keeper/query_server.go b/x/authority/keeper/query_server.go index d80b2a7..96bfbdd 100644 --- a/x/authority/keeper/query_server.go +++ b/x/authority/keeper/query_server.go @@ -3,8 +3,7 @@ package keeper import ( "context" - "cosmossdk.io/errors" - errorstypes "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/cosmos/cosmos-sdk/types/errors" "github.com/noble-assets/authority/x/authority/types" ) @@ -18,28 +17,22 @@ func NewQueryServer(keeper *Keeper) types.QueryServer { return &queryServer{Keeper: keeper} } -func (k queryServer) Address(ctx context.Context, req *types.QueryAddress) (*types.QueryAddressResponse, error) { +func (k queryServer) Owner(ctx context.Context, req *types.QueryOwner) (*types.QueryOwnerResponse, error) { if req == nil { - return nil, errorstypes.ErrInvalidRequest + return nil, errors.ErrInvalidRequest } - authority, err := k.Authority.Get(ctx) - if err != nil { - return nil, errors.Wrap(err, "unable to retrieve authority from state") - } - address, err := k.accountKeeper.AddressCodec().BytesToString(authority) - if err != nil { - return nil, errors.Wrap(err, "failed to encode authority address") - } + owner, err := k.Keeper.Owner.Get(ctx) + + return &types.QueryOwnerResponse{Owner: owner}, err +} - pendingAddress := "" - pendingAuthority, err := k.PendingAuthority.Get(ctx) - if err == nil { - pendingAddress, err = k.accountKeeper.AddressCodec().BytesToString(pendingAuthority) - if err != nil { - return nil, errors.Wrap(err, "failed to encode pending authority address") - } +func (k queryServer) PendingOwner(ctx context.Context, req *types.QueryPendingOwner) (*types.QueryPendingOwnerResponse, error) { + if req == nil { + return nil, errors.ErrInvalidRequest } - return &types.QueryAddressResponse{Address: address, PendingAddress: pendingAddress}, nil + pendingOwner, _ := k.Keeper.PendingOwner.Get(ctx) + + return &types.QueryPendingOwnerResponse{PendingOwner: pendingOwner}, nil } diff --git a/x/authority/keeper/query_server_test.go b/x/authority/keeper/query_server_test.go index c6bc1ed..bacd3c9 100644 --- a/x/authority/keeper/query_server_test.go +++ b/x/authority/keeper/query_server_test.go @@ -3,6 +3,7 @@ package keeper_test import ( "testing" + "cosmossdk.io/collections" "github.com/cosmos/cosmos-sdk/types/errors" "github.com/noble-assets/authority/utils" "github.com/noble-assets/authority/utils/mocks" @@ -11,38 +12,53 @@ import ( "github.com/stretchr/testify/require" ) -func TestAddressQuery(t *testing.T) { +func TestOwnerQuery(t *testing.T) { k, ctx := mocks.AuthorityKeeper(t) server := keeper.NewQueryServer(k) - // ACT: Attempt to query address with invalid request. - _, err := server.Address(ctx, nil) + // ACT: Attempt to query owner with invalid request. + _, err := server.Owner(ctx, nil) // ASSERT: The query should've failed due to invalid request. require.ErrorContains(t, err, errors.ErrInvalidRequest.Error()) - // ACT: Attempt to query address with no state. - _, err = server.Address(ctx, &types.QueryAddress{}) + // ACT: Attempt to query owner with no state. + _, err = server.Owner(ctx, &types.QueryOwner{}) // ASSERT: The query should've failed. - require.ErrorContains(t, err, "unable to retrieve authority from state") + require.ErrorIs(t, err, collections.ErrNotFound) - // ARRANGE: Set an authority in state. - authority := utils.TestAccount() - require.NoError(t, k.Authority.Set(ctx, authority.Bytes)) + // ARRANGE: Set an owner in state. + owner := utils.TestAccount() + require.NoError(t, k.Owner.Set(ctx, owner.Address)) - // ACT: Attempt to query address. - res, err := server.Address(ctx, &types.QueryAddress{}) - // ASSERT: The query should've succeeded, and returned address. + // ACT: Attempt to query owner. + res, err := server.Owner(ctx, &types.QueryOwner{}) + // ASSERT: The query should've succeeded. require.NoError(t, err) - require.Equal(t, authority.Address, res.Address) + require.Equal(t, owner.Address, res.Owner) +} + +func TestPendingOwnerQuery(t *testing.T) { + k, ctx := mocks.AuthorityKeeper(t) + server := keeper.NewQueryServer(k) + + // ACT: Attempt to query pending owner with invalid request. + _, err := server.PendingOwner(ctx, nil) + // ASSERT: The query should've failed due to invalid request. + require.ErrorContains(t, err, errors.ErrInvalidRequest.Error()) + + // ACT: Attempt to query pending owner with no state. + res, err := server.PendingOwner(ctx, &types.QueryPendingOwner{}) + // ASSERT: The query should've succeeded. + require.NoError(t, err) + require.Empty(t, res.PendingOwner) - // ARRANGE: Set a pending authority in state. - pendingAuthority := utils.TestAccount() - require.NoError(t, k.PendingAuthority.Set(ctx, pendingAuthority.Bytes)) + // ARRANGE: Set a pending owner in state. + pendingOwner := utils.TestAccount() + require.NoError(t, k.PendingOwner.Set(ctx, pendingOwner.Address)) - // ACT: Attempt to query address. - res, err = server.Address(ctx, &types.QueryAddress{}) - // ASSERT: The query should've succeeded, and returned address and pending address. + // ACT: Attempt to query pending owner. + res, err = server.PendingOwner(ctx, &types.QueryPendingOwner{}) + // ASSERT: The query should've succeeded. require.NoError(t, err) - require.Equal(t, authority.Address, res.Address) - require.Equal(t, pendingAuthority.Address, res.PendingAddress) + require.Equal(t, pendingOwner.Address, res.PendingOwner) } diff --git a/x/authority/module.go b/x/authority/module.go index e68ba3e..ae8683f 100644 --- a/x/authority/module.go +++ b/x/authority/module.go @@ -124,15 +124,15 @@ func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { RpcCommandOptions: []*autocliv1.RpcCommandOptions{ // NOTE: Execute is handled via a custom CLI command. { - RpcMethod: "TransferAuthority", - Use: "transfer [new-authority]", - Short: "Transfer the underlying authority", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "new_authority"}}, + RpcMethod: "TransferOwnership", + Use: "transfer-ownership [new-owner]", + Short: "Transfer ownership of the module", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "new_owner"}}, }, { - RpcMethod: "AcceptAuthority", - Use: "accept", - Short: "Accept the underlying authority", + RpcMethod: "AcceptOwnership", + Use: "accept-ownership", + Short: "Accept ownership of the module", }, }, EnhanceCustomCommand: true, @@ -141,9 +141,14 @@ func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Service: authorityv1.Query_ServiceDesc.ServiceName, RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { - RpcMethod: "Address", - Use: "address", - Short: "Query underlying authority address", + RpcMethod: "Owner", + Use: "owner", + Short: "Query owner of the module", + }, + { + RpcMethod: "PendingOwner", + Use: "pending-owner", + Short: "Query pending owner of the module", }, }, }, diff --git a/x/authority/spec/01_state.md b/x/authority/spec/01_state.md index b325368..3ad3128 100644 --- a/x/authority/spec/01_state.md +++ b/x/authority/spec/01_state.md @@ -1,30 +1,30 @@ # State -## Authority +## Owner -The authority field is of type bytes, specifically a Noble address, stored via an [`collections.Item`][item]. -It is used to store the current underlying authority address of this module. +The owner field is of type string, specifically a Noble address, stored via an [`collections.Item`][item]. +It is used to store the current owner of this module. ```go -var AuthorityKey = []byte("authority") +var OwnerKey = []byte("owner") ``` It is updated by the following messages: -- [`noble.authority.v1.AcceptAuthority`](./02_messages.md#accept-authority) +- [`noble.authority.v1.AcceptOwnership`](./02_messages.md#accept-ownership) -## Pending Authority +## Pending Owner -The pending authority field is of type bytes, specifically a Noble address, stored via an [`collections.Item`][item]. -It is used to store the current pending underlying authority address of this module. +The pending owner field is of type string, specifically a Noble address, stored via an [`collections.Item`][item]. +It is used to store the current pending owner of this module. ```go -var PendingAuthorityKey = []byte("pending_authority") +var PendingOwnerKey = []byte("pending_owner") ``` It is updated by the following messages: -- [`noble.authority.v1.TransferAuthority`](./02_messages.md#transfer-authority) -- [`noble.authority.v1.AcceptAuthority`](./02_messages.md#accept-authority) +- [`noble.authority.v1.TransferOwnership`](./02_messages.md#transfer-ownerhsip) +- [`noble.authority.v1.AcceptOwnership`](./02_messages.md#accept-ownership) [item]: https://docs.cosmos.network/main/build/packages/collections#item diff --git a/x/authority/spec/02_messages.md b/x/authority/spec/02_messages.md index 2faf626..78dac13 100644 --- a/x/authority/spec/02_messages.md +++ b/x/authority/spec/02_messages.md @@ -23,7 +23,7 @@ body: messages: - '@type': /noble.authority.v1.MsgExecute messages: [...] - signer: noble1authority + signer: noble1owner non_critical_extension_options: [] timeout_height: "0" signatures: [] @@ -35,7 +35,7 @@ signatures: [] ### Requirements -- Signer must be the current underlying [`authority`](./01_state.md#authority). +- Signer must be the current [`owner`](./01_state.md#owner). ### State Changes @@ -47,11 +47,11 @@ However, the executed messages may contain state changes. This message emits no events. -## Transfer Authority +## Transfer Ownership -`noble.authority.v1.MsgTransferAuthority` +`noble.authority.v1.MsgTransferOwnership` -A message that initiates a transfer of the underlying authority of this module. +A message that initiates an ownership transfer of this module. ```shell auth_info: @@ -66,9 +66,9 @@ body: extension_options: [] memo: "" messages: - - '@type': /noble.authority.v1.MsgTransferAuthority - new_authority: noble1demo - signer: noble1authority + - '@type': /noble.authority.v1.MsgTransferOwnership + new_owner: noble1owner + signer: noble1signer non_critical_extension_options: [] timeout_height: "0" signatures: [] @@ -76,25 +76,25 @@ signatures: [] ### Arguments -- `new_authority` — The Noble address to transfer underlying authority to. +- `new_owner` — The Noble address to transfer ownership to. ### Requirements -- Signer must be the current underlying [`authority`](./01_state.md#authority). +- Signer must be the current [`owner`](./01_state.md#owner). ### State Changes -- [`pending_authority`](./01_state.md#pending-authority) +- [`pending_owner`](./01_state.md#pending-owner) ### Events Emitted -This message emits no events. +- [`noble.authority.v1.OwnershipTransferStarted`](./03_events.md#ownershiptransferstarted) -## Accept Authority +## Accept Ownership -`noble.authority.v1.MsgAcceptAuthority` +`noble.authority.v1.MsgAcceptOwnership` -A message that finalizes a transfer of the underlying authority of this module. +A message that finalizes an ownership transfer of this module. ```shell auth_info: @@ -109,7 +109,7 @@ body: extension_options: [] memo: "" messages: - - '@type': /noble.authority.v1.MsgAcceptAuthority + - '@type': /noble.authority.v1.MsgAcceptOwnership signer: noble1signer non_critical_extension_options: [] timeout_height: "0" @@ -122,13 +122,13 @@ This message takes no arguments. ### Requirements -- Signer must be the current underlying [`pending_authority`](./01_state.md#pending-authority). +- Signer must be the current [`pending_owner`](./01_state.md#pending-owner). ### State Changes -- [`authority`](./01_state.md#authority) -- [`pending_authority`](./01_state.md#pending-authority) +- [`owner`](./01_state.md#owner) +- [`pending_authority`](./01_state.md#pending-owner) ### Events Emitted -This message emits no events. +- [`noble.authority.v1.OwnershipTransferred`](./03_events.md#ownershiptransferred) diff --git a/x/authority/spec/03_events.md b/x/authority/spec/03_events.md new file mode 100644 index 0000000..7b11eda --- /dev/null +++ b/x/authority/spec/03_events.md @@ -0,0 +1,45 @@ +# Events + +## OwnershipTransferStarted + +This event is emitted when an ownership transfer is started. + +```shell +- attributes: + - index: true + key: previous_owner + value: '"noble1signer"' + - index: true + key: new_owner + value: '"noble1owner"' + - index: true + key: msg_index + value: "0" + type: noble.authority.v1.OwnershipTransferStarted +``` + +This event is emitted by the following transactions: + +- [`noble.authority.v1.MsgTransferOwnership`](./02_messages.md#transfer-ownership) + +## OwnershipTransferred + +This event is emitted when an ownership transfer is finalized. + +```shell +- attributes: + - index: true + key: previous_owner + value: '"noble1signer"' + - index: true + key: new_owner + value: '"noble1owner"' + - index: true + key: msg_index + value: "0" + type: noble.authority.v1.OwnershipTransferStarted +``` + +This event is emitted by the following transactions: + +- [`noble.authority.v1.MsgAcceptOwnership`](./02_messages.md#accept-ownership) diff --git a/x/authority/types/codec.go b/x/authority/types/codec.go index 1c25a1a..8a6f844 100644 --- a/x/authority/types/codec.go +++ b/x/authority/types/codec.go @@ -9,15 +9,15 @@ import ( func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgExecute{}, "noble/Execute", nil) - cdc.RegisterConcrete(&MsgTransferAuthority{}, "noble/TransferAuthority", nil) - cdc.RegisterConcrete(&MsgAcceptAuthority{}, "noble/AcceptAuthority", nil) + cdc.RegisterConcrete(&MsgTransferOwnership{}, "noble/TransferOwnership", nil) + cdc.RegisterConcrete(&MsgAcceptOwnership{}, "noble/AcceptOwnership", nil) } func RegisterInterfaces(registry codectypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgExecute{}, - &MsgTransferAuthority{}, - &MsgAcceptAuthority{}, + &MsgTransferOwnership{}, + &MsgAcceptOwnership{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) diff --git a/x/authority/types/errors.go b/x/authority/types/errors.go index 08b7ee2..b3ca76a 100644 --- a/x/authority/types/errors.go +++ b/x/authority/types/errors.go @@ -3,8 +3,9 @@ package types import "cosmossdk.io/errors" var ( - ErrInvalidAuthority = errors.Register(ModuleName, 1, "signer is not authority") - ErrSameAuthority = errors.Register(ModuleName, 2, "provided authority is the current authority") - ErrInvalidPendingAuthority = errors.Register(ModuleName, 3, "signer is not pending authority") - ErrInvalidMessage = errors.Register(ModuleName, 4, "message is invalid") + ErrInvalidOwner = errors.Register(ModuleName, 1, "signer is not authority") + ErrSameOwner = errors.Register(ModuleName, 2, "provided owner is the current owner") + ErrNoPendingOwner = errors.Register(ModuleName, 3, "no pending owner found") + ErrInvalidPendingOwner = errors.Register(ModuleName, 4, "signer is not pending owner") + ErrInvalidMessage = errors.Register(ModuleName, 5, "message is invalid") ) diff --git a/x/authority/types/events.pb.go b/x/authority/types/events.pb.go new file mode 100644 index 0000000..3a3f63a --- /dev/null +++ b/x/authority/types/events.pb.go @@ -0,0 +1,600 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: noble/authority/v1/events.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// OwnershipTransferStarted is emitted whenever an ownership transfer is started. +type OwnershipTransferStarted struct { + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (m *OwnershipTransferStarted) Reset() { *m = OwnershipTransferStarted{} } +func (m *OwnershipTransferStarted) String() string { return proto.CompactTextString(m) } +func (*OwnershipTransferStarted) ProtoMessage() {} +func (*OwnershipTransferStarted) Descriptor() ([]byte, []int) { + return fileDescriptor_eb5c9de9161bd05f, []int{0} +} +func (m *OwnershipTransferStarted) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OwnershipTransferStarted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OwnershipTransferStarted.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OwnershipTransferStarted) XXX_Merge(src proto.Message) { + xxx_messageInfo_OwnershipTransferStarted.Merge(m, src) +} +func (m *OwnershipTransferStarted) XXX_Size() int { + return m.Size() +} +func (m *OwnershipTransferStarted) XXX_DiscardUnknown() { + xxx_messageInfo_OwnershipTransferStarted.DiscardUnknown(m) +} + +var xxx_messageInfo_OwnershipTransferStarted proto.InternalMessageInfo + +func (m *OwnershipTransferStarted) GetPreviousOwner() string { + if m != nil { + return m.PreviousOwner + } + return "" +} + +func (m *OwnershipTransferStarted) GetNewOwner() string { + if m != nil { + return m.NewOwner + } + return "" +} + +// OwnershipTransferStarted is emitted whenever an ownership transfer is finalized. +type OwnershipTransferred struct { + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (m *OwnershipTransferred) Reset() { *m = OwnershipTransferred{} } +func (m *OwnershipTransferred) String() string { return proto.CompactTextString(m) } +func (*OwnershipTransferred) ProtoMessage() {} +func (*OwnershipTransferred) Descriptor() ([]byte, []int) { + return fileDescriptor_eb5c9de9161bd05f, []int{1} +} +func (m *OwnershipTransferred) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OwnershipTransferred) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OwnershipTransferred.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OwnershipTransferred) XXX_Merge(src proto.Message) { + xxx_messageInfo_OwnershipTransferred.Merge(m, src) +} +func (m *OwnershipTransferred) XXX_Size() int { + return m.Size() +} +func (m *OwnershipTransferred) XXX_DiscardUnknown() { + xxx_messageInfo_OwnershipTransferred.DiscardUnknown(m) +} + +var xxx_messageInfo_OwnershipTransferred proto.InternalMessageInfo + +func (m *OwnershipTransferred) GetPreviousOwner() string { + if m != nil { + return m.PreviousOwner + } + return "" +} + +func (m *OwnershipTransferred) GetNewOwner() string { + if m != nil { + return m.NewOwner + } + return "" +} + +func init() { + proto.RegisterType((*OwnershipTransferStarted)(nil), "noble.authority.v1.OwnershipTransferStarted") + proto.RegisterType((*OwnershipTransferred)(nil), "noble.authority.v1.OwnershipTransferred") +} + +func init() { proto.RegisterFile("noble/authority/v1/events.proto", fileDescriptor_eb5c9de9161bd05f) } + +var fileDescriptor_eb5c9de9161bd05f = []byte{ + // 257 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0xcb, 0x4f, 0xca, + 0x49, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0xc8, 0x2f, 0xca, 0x2c, 0xa9, 0xd4, 0x2f, 0x33, 0xd4, 0x4f, + 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x02, 0x2b, 0xd0, + 0x83, 0x2b, 0xd0, 0x2b, 0x33, 0x94, 0x92, 0x4c, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0x8e, 0x07, 0xab, + 0xd0, 0x87, 0x70, 0x20, 0xca, 0x95, 0x26, 0x31, 0x72, 0x49, 0xf8, 0x97, 0xe7, 0xa5, 0x16, 0x15, + 0x67, 0x64, 0x16, 0x84, 0x14, 0x25, 0xe6, 0x15, 0xa7, 0xa5, 0x16, 0x05, 0x97, 0x24, 0x16, 0x95, + 0xa4, 0xa6, 0x08, 0xd9, 0x73, 0xf1, 0x15, 0x14, 0xa5, 0x96, 0x65, 0xe6, 0x97, 0x16, 0xc7, 0xe7, + 0x83, 0x14, 0x49, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x3a, 0x49, 0x5c, 0xda, 0xa2, 0x2b, 0x02, 0x35, + 0xc6, 0x31, 0x25, 0xa5, 0x28, 0xb5, 0xb8, 0x38, 0xb8, 0xa4, 0x28, 0x33, 0x2f, 0x3d, 0x88, 0x17, + 0xa6, 0x1e, 0x6c, 0xa6, 0x90, 0x29, 0x17, 0x67, 0x5e, 0x6a, 0x39, 0x54, 0x2f, 0x13, 0x01, 0xbd, + 0x1c, 0x79, 0xa9, 0xe5, 0x60, 0x6d, 0x4a, 0x7d, 0x8c, 0x5c, 0x22, 0x18, 0x8e, 0x2a, 0x1a, 0x38, + 0x07, 0x39, 0xf9, 0x9e, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, + 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x71, 0x7a, + 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x38, 0xe4, 0x75, 0x13, 0x8b, 0x8b, + 0x53, 0x4b, 0x8a, 0x91, 0x62, 0xa8, 0x02, 0x89, 0x5d, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, + 0x0e, 0x7b, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd5, 0x7c, 0x88, 0x2d, 0xcd, 0x01, 0x00, + 0x00, +} + +func (m *OwnershipTransferStarted) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OwnershipTransferStarted) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OwnershipTransferStarted) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewOwner) > 0 { + i -= len(m.NewOwner) + copy(dAtA[i:], m.NewOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(m.PreviousOwner) > 0 { + i -= len(m.PreviousOwner) + copy(dAtA[i:], m.PreviousOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.PreviousOwner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OwnershipTransferred) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OwnershipTransferred) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OwnershipTransferred) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewOwner) > 0 { + i -= len(m.NewOwner) + copy(dAtA[i:], m.NewOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(m.PreviousOwner) > 0 { + i -= len(m.PreviousOwner) + copy(dAtA[i:], m.PreviousOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.PreviousOwner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { + offset -= sovEvents(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OwnershipTransferStarted) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PreviousOwner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewOwner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *OwnershipTransferred) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PreviousOwner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewOwner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func sovEvents(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEvents(x uint64) (n int) { + return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OwnershipTransferStarted) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OwnershipTransferStarted: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnershipTransferStarted: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OwnershipTransferred) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OwnershipTransferred: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnershipTransferred: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEvents(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthEvents + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEvents + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEvents + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/authority/types/genesis.pb.go b/x/authority/types/genesis.pb.go index 5e057b0..4c548a2 100644 --- a/x/authority/types/genesis.pb.go +++ b/x/authority/types/genesis.pb.go @@ -24,8 +24,8 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type GenesisState struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - PendingAddress string `protobuf:"bytes,2,opt,name=pending_address,json=pendingAddress,proto3" json:"pending_address,omitempty"` + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + PendingOwner string `protobuf:"bytes,2,opt,name=pending_owner,json=pendingOwner,proto3" json:"pending_owner,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -61,16 +61,16 @@ func (m *GenesisState) XXX_DiscardUnknown() { var xxx_messageInfo_GenesisState proto.InternalMessageInfo -func (m *GenesisState) GetAddress() string { +func (m *GenesisState) GetOwner() string { if m != nil { - return m.Address + return m.Owner } return "" } -func (m *GenesisState) GetPendingAddress() string { +func (m *GenesisState) GetPendingOwner() string { if m != nil { - return m.PendingAddress + return m.PendingOwner } return "" } @@ -82,21 +82,21 @@ func init() { func init() { proto.RegisterFile("noble/authority/v1/genesis.proto", fileDescriptor_209232b0d38db2f3) } var fileDescriptor_209232b0d38db2f3 = []byte{ - // 222 bytes of a gzipped FileDescriptorProto + // 224 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc8, 0xcb, 0x4f, 0xca, 0x49, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0xc8, 0x2f, 0xca, 0x2c, 0xa9, 0xd4, 0x2f, 0x33, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x02, 0xab, 0xd0, 0x83, 0xab, 0xd0, 0x2b, 0x33, 0x94, 0x92, 0x4c, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0x8e, 0x07, - 0xab, 0xd0, 0x87, 0x70, 0x20, 0xca, 0x95, 0x5a, 0x19, 0xb9, 0x78, 0xdc, 0x21, 0x06, 0x04, 0x97, - 0x24, 0x96, 0xa4, 0x0a, 0x19, 0x71, 0xb1, 0x27, 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x17, 0x4b, 0x30, - 0x2a, 0x30, 0x6a, 0x70, 0x3a, 0x49, 0x5c, 0xda, 0xa2, 0x2b, 0x02, 0xd5, 0xe3, 0x08, 0x91, 0x09, - 0x2e, 0x29, 0xca, 0xcc, 0x4b, 0x0f, 0x82, 0x29, 0x14, 0x72, 0xe4, 0xe2, 0x2f, 0x48, 0xcd, 0x4b, - 0xc9, 0xcc, 0x4b, 0x8f, 0x87, 0xe9, 0x65, 0x22, 0xa0, 0x97, 0x0f, 0xaa, 0x01, 0x2a, 0xea, 0xe4, - 0x7b, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, - 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xc6, 0xe9, 0x99, 0x25, 0x19, - 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x60, 0xbf, 0xe9, 0x26, 0x16, 0x17, 0xa7, 0x96, 0x14, - 0x23, 0x05, 0x42, 0x05, 0x12, 0xbb, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x3b, 0x63, - 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb4, 0x89, 0x08, 0x8c, 0x30, 0x01, 0x00, 0x00, + 0xab, 0xd0, 0x87, 0x70, 0x20, 0xca, 0x95, 0x6a, 0xb9, 0x78, 0xdc, 0x21, 0xfa, 0x83, 0x4b, 0x12, + 0x4b, 0x52, 0x85, 0xf4, 0xb8, 0x58, 0xf3, 0xcb, 0xf3, 0x52, 0x8b, 0x24, 0x18, 0x15, 0x18, 0x35, + 0x38, 0x9d, 0x24, 0x2e, 0x6d, 0xd1, 0x15, 0x81, 0x6a, 0x70, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, + 0x0e, 0x2e, 0x29, 0xca, 0xcc, 0x4b, 0x0f, 0x82, 0x28, 0x13, 0xb2, 0xe5, 0xe2, 0x2d, 0x48, 0xcd, + 0x4b, 0xc9, 0xcc, 0x4b, 0x8f, 0x87, 0xe8, 0x63, 0x22, 0xa0, 0x8f, 0x07, 0xaa, 0xdc, 0x1f, 0xa4, + 0xda, 0xc9, 0xf7, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, + 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x8c, 0xd3, 0x33, + 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xc1, 0x5e, 0xd2, 0x4d, 0x2c, 0x2e, 0x4e, + 0x2d, 0x29, 0x46, 0xf2, 0x7b, 0x05, 0x12, 0xbb, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, + 0x29, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x52, 0xf6, 0xb7, 0x0a, 0x27, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -119,17 +119,17 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.PendingAddress) > 0 { - i -= len(m.PendingAddress) - copy(dAtA[i:], m.PendingAddress) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.PendingAddress))) + if len(m.PendingOwner) > 0 { + i -= len(m.PendingOwner) + copy(dAtA[i:], m.PendingOwner) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.PendingOwner))) i-- dAtA[i] = 0x12 } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address))) + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Owner))) i-- dAtA[i] = 0xa } @@ -153,11 +153,11 @@ func (m *GenesisState) Size() (n int) { } var l int _ = l - l = len(m.Address) + l = len(m.Owner) if l > 0 { n += 1 + l + sovGenesis(uint64(l)) } - l = len(m.PendingAddress) + l = len(m.PendingOwner) if l > 0 { n += 1 + l + sovGenesis(uint64(l)) } @@ -201,7 +201,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -229,11 +229,11 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) + m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PendingOwner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -261,7 +261,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PendingAddress = string(dAtA[iNdEx:postIndex]) + m.PendingOwner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/authority/types/keys.go b/x/authority/types/keys.go index b06e1c1..bad2784 100644 --- a/x/authority/types/keys.go +++ b/x/authority/types/keys.go @@ -7,6 +7,6 @@ const ModuleName = "authority" var ModuleAddress = authtypes.NewModuleAddress(ModuleName) var ( - AuthorityKey = []byte("authority") - PendingAuthorityKey = []byte("pending_authority") + OwnerKey = []byte("owner") + PendingOwnerKey = []byte("pending_owner") ) diff --git a/x/authority/types/params_legacy.go b/x/authority/types/params_legacy.go index 70efce5..77e1a2c 100644 --- a/x/authority/types/params_legacy.go +++ b/x/authority/types/params_legacy.go @@ -11,6 +11,8 @@ import ( var _ paramstypes.ParamSet = &Params{} +var AuthorityKey = []byte("authority") + // Params is the legacy ParamAuthority interface. // https://github.com/strangelove-ventures/paramauthority/blob/v1.1.0/x/params/types/proposal/genesis.pb.go#L71-L74 type Params struct { diff --git a/x/authority/types/query.pb.go b/x/authority/types/query.pb.go index b658dda..6d101be 100644 --- a/x/authority/types/query.pb.go +++ b/x/authority/types/query.pb.go @@ -8,6 +8,7 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -30,21 +31,21 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type QueryAddress struct { +type QueryOwner struct { } -func (m *QueryAddress) Reset() { *m = QueryAddress{} } -func (m *QueryAddress) String() string { return proto.CompactTextString(m) } -func (*QueryAddress) ProtoMessage() {} -func (*QueryAddress) Descriptor() ([]byte, []int) { +func (m *QueryOwner) Reset() { *m = QueryOwner{} } +func (m *QueryOwner) String() string { return proto.CompactTextString(m) } +func (*QueryOwner) ProtoMessage() {} +func (*QueryOwner) Descriptor() ([]byte, []int) { return fileDescriptor_fe44ac131dc0ca31, []int{0} } -func (m *QueryAddress) XXX_Unmarshal(b []byte) error { +func (m *QueryOwner) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAddress.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOwner.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -54,35 +55,34 @@ func (m *QueryAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *QueryAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAddress.Merge(m, src) +func (m *QueryOwner) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOwner.Merge(m, src) } -func (m *QueryAddress) XXX_Size() int { +func (m *QueryOwner) XXX_Size() int { return m.Size() } -func (m *QueryAddress) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAddress.DiscardUnknown(m) +func (m *QueryOwner) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOwner.DiscardUnknown(m) } -var xxx_messageInfo_QueryAddress proto.InternalMessageInfo +var xxx_messageInfo_QueryOwner proto.InternalMessageInfo -type QueryAddressResponse struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - PendingAddress string `protobuf:"bytes,2,opt,name=pending_address,json=pendingAddress,proto3" json:"pending_address,omitempty"` +type QueryOwnerResponse struct { + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` } -func (m *QueryAddressResponse) Reset() { *m = QueryAddressResponse{} } -func (m *QueryAddressResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAddressResponse) ProtoMessage() {} -func (*QueryAddressResponse) Descriptor() ([]byte, []int) { +func (m *QueryOwnerResponse) Reset() { *m = QueryOwnerResponse{} } +func (m *QueryOwnerResponse) String() string { return proto.CompactTextString(m) } +func (*QueryOwnerResponse) ProtoMessage() {} +func (*QueryOwnerResponse) Descriptor() ([]byte, []int) { return fileDescriptor_fe44ac131dc0ca31, []int{1} } -func (m *QueryAddressResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryOwnerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAddressResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOwnerResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -92,61 +92,140 @@ func (m *QueryAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryAddressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAddressResponse.Merge(m, src) +func (m *QueryOwnerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOwnerResponse.Merge(m, src) } -func (m *QueryAddressResponse) XXX_Size() int { +func (m *QueryOwnerResponse) XXX_Size() int { return m.Size() } -func (m *QueryAddressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAddressResponse.DiscardUnknown(m) +func (m *QueryOwnerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOwnerResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAddressResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryOwnerResponse proto.InternalMessageInfo -func (m *QueryAddressResponse) GetAddress() string { +func (m *QueryOwnerResponse) GetOwner() string { if m != nil { - return m.Address + return m.Owner } return "" } -func (m *QueryAddressResponse) GetPendingAddress() string { +type QueryPendingOwner struct { +} + +func (m *QueryPendingOwner) Reset() { *m = QueryPendingOwner{} } +func (m *QueryPendingOwner) String() string { return proto.CompactTextString(m) } +func (*QueryPendingOwner) ProtoMessage() {} +func (*QueryPendingOwner) Descriptor() ([]byte, []int) { + return fileDescriptor_fe44ac131dc0ca31, []int{2} +} +func (m *QueryPendingOwner) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPendingOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPendingOwner.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryPendingOwner) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPendingOwner.Merge(m, src) +} +func (m *QueryPendingOwner) XXX_Size() int { + return m.Size() +} +func (m *QueryPendingOwner) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPendingOwner.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPendingOwner proto.InternalMessageInfo + +type QueryPendingOwnerResponse struct { + PendingOwner string `protobuf:"bytes,1,opt,name=pending_owner,json=pendingOwner,proto3" json:"pending_owner,omitempty"` +} + +func (m *QueryPendingOwnerResponse) Reset() { *m = QueryPendingOwnerResponse{} } +func (m *QueryPendingOwnerResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPendingOwnerResponse) ProtoMessage() {} +func (*QueryPendingOwnerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_fe44ac131dc0ca31, []int{3} +} +func (m *QueryPendingOwnerResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPendingOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPendingOwnerResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryPendingOwnerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPendingOwnerResponse.Merge(m, src) +} +func (m *QueryPendingOwnerResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryPendingOwnerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPendingOwnerResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPendingOwnerResponse proto.InternalMessageInfo + +func (m *QueryPendingOwnerResponse) GetPendingOwner() string { if m != nil { - return m.PendingAddress + return m.PendingOwner } return "" } func init() { - proto.RegisterType((*QueryAddress)(nil), "noble.authority.v1.QueryAddress") - proto.RegisterType((*QueryAddressResponse)(nil), "noble.authority.v1.QueryAddressResponse") + proto.RegisterType((*QueryOwner)(nil), "noble.authority.v1.QueryOwner") + proto.RegisterType((*QueryOwnerResponse)(nil), "noble.authority.v1.QueryOwnerResponse") + proto.RegisterType((*QueryPendingOwner)(nil), "noble.authority.v1.QueryPendingOwner") + proto.RegisterType((*QueryPendingOwnerResponse)(nil), "noble.authority.v1.QueryPendingOwnerResponse") } func init() { proto.RegisterFile("noble/authority/v1/query.proto", fileDescriptor_fe44ac131dc0ca31) } var fileDescriptor_fe44ac131dc0ca31 = []byte{ - // 309 bytes of a gzipped FileDescriptorProto + // 375 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0xcb, 0x4f, 0xca, 0x49, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0xc8, 0x2f, 0xca, 0x2c, 0xa9, 0xd4, 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x02, 0xcb, 0xeb, 0xc1, - 0xe5, 0xf5, 0xca, 0x0c, 0xa5, 0xa4, 0x93, 0xf3, 0x8b, 0x73, 0xf3, 0x8b, 0x21, 0xea, 0xd0, 0x34, - 0x48, 0x49, 0x42, 0x24, 0xe3, 0xc1, 0x3c, 0x7d, 0x08, 0x07, 0x2a, 0x25, 0x93, 0x9e, 0x9f, 0x9f, - 0x0e, 0xb2, 0xac, 0x20, 0x53, 0x3f, 0x31, 0x2f, 0x2f, 0xbf, 0x24, 0xb1, 0x24, 0x33, 0x3f, 0x0f, - 0x2a, 0xab, 0xc4, 0xc7, 0xc5, 0x13, 0x08, 0x32, 0xc7, 0x31, 0x25, 0xa5, 0x28, 0xb5, 0xb8, 0x58, - 0xa9, 0x97, 0x91, 0x4b, 0x04, 0x59, 0x20, 0x28, 0xb5, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0x55, 0xc8, - 0x88, 0x8b, 0x3d, 0x11, 0x22, 0x24, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0xe9, 0x24, 0x71, 0x69, 0x8b, - 0xae, 0x08, 0xd4, 0x26, 0xa8, 0xe2, 0xe0, 0x92, 0xa2, 0xcc, 0xbc, 0xf4, 0x20, 0x98, 0x42, 0x21, - 0x47, 0x2e, 0xfe, 0x82, 0xd4, 0xbc, 0x94, 0xcc, 0xbc, 0xf4, 0x78, 0x98, 0x5e, 0x26, 0x02, 0x7a, - 0xf9, 0xa0, 0x1a, 0xa0, 0xa2, 0x46, 0x1d, 0x8c, 0x5c, 0xac, 0x60, 0xf7, 0x08, 0xd5, 0x73, 0xb1, - 0x43, 0x05, 0x85, 0x14, 0xf4, 0x30, 0xc3, 0x47, 0x0f, 0xd9, 0xd5, 0x52, 0x1a, 0x84, 0x54, 0xc0, - 0xfc, 0xa5, 0xa4, 0xd1, 0xf1, 0x7c, 0x83, 0x16, 0x63, 0xd3, 0xe5, 0x27, 0x93, 0x99, 0x64, 0x85, - 0xa4, 0xf5, 0xb1, 0x44, 0x0c, 0xd4, 0xe9, 0x4e, 0xbe, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, - 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, - 0x2c, 0xc7, 0x10, 0x65, 0x9c, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0x0b, 0x31, - 0x40, 0x37, 0xb1, 0xb8, 0x38, 0xb5, 0xa4, 0x18, 0xc9, 0x9c, 0x0a, 0x24, 0x76, 0x49, 0x65, 0x41, - 0x6a, 0x71, 0x12, 0x1b, 0x38, 0x02, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x32, 0xcd, 0xb1, - 0x2d, 0x0c, 0x02, 0x00, 0x00, + 0xe5, 0xf5, 0xca, 0x0c, 0xa5, 0x04, 0x13, 0x73, 0x33, 0xf3, 0xf2, 0xf5, 0xc1, 0x24, 0x44, 0x99, + 0x94, 0x74, 0x72, 0x7e, 0x71, 0x6e, 0x7e, 0x31, 0x44, 0x2b, 0x9a, 0x19, 0x52, 0x92, 0x10, 0xc9, + 0x78, 0x30, 0x4f, 0x1f, 0xc2, 0x81, 0x4a, 0xc9, 0xa4, 0xe7, 0xe7, 0xa7, 0x83, 0xec, 0x2f, 0xc8, + 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x83, 0xca, 0x2a, 0xf1, 0x70, + 0x71, 0x05, 0x82, 0xcc, 0xf1, 0x2f, 0xcf, 0x4b, 0x2d, 0x52, 0x72, 0xe1, 0x12, 0x42, 0xf0, 0x82, + 0x52, 0x8b, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x85, 0xf4, 0xb8, 0x58, 0xf3, 0x41, 0x02, 0x12, 0x8c, + 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0x12, 0x97, 0xb6, 0xe8, 0x8a, 0x40, 0xad, 0x70, 0x4c, 0x49, 0x29, + 0x4a, 0x2d, 0x2e, 0x0e, 0x2e, 0x29, 0xca, 0xcc, 0x4b, 0x0f, 0x82, 0x28, 0x53, 0x12, 0xe6, 0x12, + 0x04, 0x9b, 0x12, 0x90, 0x9a, 0x97, 0x92, 0x99, 0x97, 0x0e, 0x31, 0x3a, 0x9e, 0x4b, 0x12, 0x43, + 0x10, 0x6e, 0x83, 0x13, 0x17, 0x6f, 0x01, 0x44, 0x3c, 0x1e, 0xd9, 0x26, 0x59, 0x5c, 0x36, 0xad, + 0x78, 0xbe, 0x41, 0x8b, 0x31, 0x88, 0xa7, 0x00, 0xc9, 0x2c, 0xa3, 0xe9, 0x4c, 0x5c, 0xac, 0x60, + 0x1b, 0x84, 0xca, 0xb9, 0x58, 0xc1, 0x42, 0x42, 0x72, 0x7a, 0x98, 0x41, 0xab, 0x87, 0xf0, 0xa0, + 0x94, 0x1a, 0x7e, 0x79, 0x98, 0xf3, 0x94, 0xd4, 0x3a, 0x40, 0xf6, 0x35, 0x5d, 0x7e, 0x32, 0x99, + 0x49, 0x5a, 0x48, 0x52, 0x1f, 0x4b, 0x7c, 0x82, 0x5d, 0x2d, 0x34, 0x85, 0x91, 0x8b, 0x07, 0xd9, + 0x7f, 0x42, 0xaa, 0x38, 0x2d, 0x40, 0x56, 0x26, 0xa5, 0x4b, 0x94, 0x32, 0xb8, 0x73, 0xf4, 0x10, + 0xce, 0x51, 0x16, 0x52, 0xc4, 0xe6, 0x1c, 0x94, 0xc0, 0x74, 0xf2, 0x3d, 0xf1, 0x48, 0x8e, 0xf1, + 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, + 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xe3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, + 0x5c, 0x88, 0x31, 0xba, 0x89, 0xc5, 0xc5, 0xa9, 0x25, 0xc5, 0x48, 0xa6, 0x55, 0x20, 0xb1, 0x4b, + 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x29, 0xc7, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xed, + 0x5d, 0xd7, 0x86, 0xd8, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -161,7 +240,8 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - Address(ctx context.Context, in *QueryAddress, opts ...grpc.CallOption) (*QueryAddressResponse, error) + Owner(ctx context.Context, in *QueryOwner, opts ...grpc.CallOption) (*QueryOwnerResponse, error) + PendingOwner(ctx context.Context, in *QueryPendingOwner, opts ...grpc.CallOption) (*QueryPendingOwnerResponse, error) } type queryClient struct { @@ -172,9 +252,18 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { return &queryClient{cc} } -func (c *queryClient) Address(ctx context.Context, in *QueryAddress, opts ...grpc.CallOption) (*QueryAddressResponse, error) { - out := new(QueryAddressResponse) - err := c.cc.Invoke(ctx, "/noble.authority.v1.Query/Address", in, out, opts...) +func (c *queryClient) Owner(ctx context.Context, in *QueryOwner, opts ...grpc.CallOption) (*QueryOwnerResponse, error) { + out := new(QueryOwnerResponse) + err := c.cc.Invoke(ctx, "/noble.authority.v1.Query/Owner", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PendingOwner(ctx context.Context, in *QueryPendingOwner, opts ...grpc.CallOption) (*QueryPendingOwnerResponse, error) { + out := new(QueryPendingOwnerResponse) + err := c.cc.Invoke(ctx, "/noble.authority.v1.Query/PendingOwner", in, out, opts...) if err != nil { return nil, err } @@ -183,35 +272,57 @@ func (c *queryClient) Address(ctx context.Context, in *QueryAddress, opts ...grp // QueryServer is the server API for Query service. type QueryServer interface { - Address(context.Context, *QueryAddress) (*QueryAddressResponse, error) + Owner(context.Context, *QueryOwner) (*QueryOwnerResponse, error) + PendingOwner(context.Context, *QueryPendingOwner) (*QueryPendingOwnerResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. type UnimplementedQueryServer struct { } -func (*UnimplementedQueryServer) Address(ctx context.Context, req *QueryAddress) (*QueryAddressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Address not implemented") +func (*UnimplementedQueryServer) Owner(ctx context.Context, req *QueryOwner) (*QueryOwnerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Owner not implemented") +} +func (*UnimplementedQueryServer) PendingOwner(ctx context.Context, req *QueryPendingOwner) (*QueryPendingOwnerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PendingOwner not implemented") } func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } -func _Query_Address_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAddress) +func _Query_Owner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOwner) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Address(ctx, in) + return srv.(QueryServer).Owner(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/noble.authority.v1.Query/Address", + FullMethod: "/noble.authority.v1.Query/Owner", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Address(ctx, req.(*QueryAddress)) + return srv.(QueryServer).Owner(ctx, req.(*QueryOwner)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PendingOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPendingOwner) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PendingOwner(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.authority.v1.Query/PendingOwner", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PendingOwner(ctx, req.(*QueryPendingOwner)) } return interceptor(ctx, in, info, handler) } @@ -221,15 +332,19 @@ var _Query_serviceDesc = grpc.ServiceDesc{ HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "Address", - Handler: _Query_Address_Handler, + MethodName: "Owner", + Handler: _Query_Owner_Handler, + }, + { + MethodName: "PendingOwner", + Handler: _Query_PendingOwner_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "noble/authority/v1/query.proto", } -func (m *QueryAddress) Marshal() (dAtA []byte, err error) { +func (m *QueryOwner) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -239,12 +354,12 @@ func (m *QueryAddress) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAddress) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOwner) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOwner) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -252,7 +367,7 @@ func (m *QueryAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryAddressResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryOwnerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -262,27 +377,73 @@ func (m *QueryAddressResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAddressResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOwnerResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.PendingAddress) > 0 { - i -= len(m.PendingAddress) - copy(dAtA[i:], m.PendingAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PendingAddress))) + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryPendingOwner) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryPendingOwner) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPendingOwner) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryPendingOwnerResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + return dAtA[:n], nil +} + +func (m *QueryPendingOwnerResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPendingOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PendingOwner) > 0 { + i -= len(m.PendingOwner) + copy(dAtA[i:], m.PendingOwner) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PendingOwner))) i-- dAtA[i] = 0xa } @@ -300,7 +461,7 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *QueryAddress) Size() (n int) { +func (m *QueryOwner) Size() (n int) { if m == nil { return 0 } @@ -309,17 +470,35 @@ func (m *QueryAddress) Size() (n int) { return n } -func (m *QueryAddressResponse) Size() (n int) { +func (m *QueryOwnerResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Address) + l = len(m.Owner) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.PendingAddress) + return n +} + +func (m *QueryPendingOwner) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryPendingOwnerResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PendingOwner) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -332,7 +511,7 @@ func sovQuery(x uint64) (n int) { func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *QueryAddress) Unmarshal(dAtA []byte) error { +func (m *QueryOwner) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -355,10 +534,10 @@ func (m *QueryAddress) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAddress: wiretype end group for non-group") + return fmt.Errorf("proto: QueryOwner: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAddress: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryOwner: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -382,7 +561,7 @@ func (m *QueryAddress) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAddressResponse) Unmarshal(dAtA []byte) error { +func (m *QueryOwnerResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -405,15 +584,15 @@ func (m *QueryAddressResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAddressResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryOwnerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -441,11 +620,111 @@ func (m *QueryAddressResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) + m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPendingOwner) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryPendingOwner: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPendingOwner: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPendingOwnerResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryPendingOwnerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPendingOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PendingOwner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -473,7 +752,7 @@ func (m *QueryAddressResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PendingAddress = string(dAtA[iNdEx:postIndex]) + m.PendingOwner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/authority/types/query.pb.gw.go b/x/authority/types/query.pb.gw.go index 219a1d0..75f671a 100644 --- a/x/authority/types/query.pb.gw.go +++ b/x/authority/types/query.pb.gw.go @@ -33,20 +33,38 @@ var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage var _ = metadata.Join -func request_Query_Address_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAddress +func request_Query_Owner_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOwner var metadata runtime.ServerMetadata - msg, err := client.Address(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Owner(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_Address_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAddress +func local_request_Query_Owner_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOwner var metadata runtime.ServerMetadata - msg, err := server.Address(ctx, &protoReq) + msg, err := server.Owner(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_PendingOwner_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPendingOwner + var metadata runtime.ServerMetadata + + msg, err := client.PendingOwner(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PendingOwner_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPendingOwner + var metadata runtime.ServerMetadata + + msg, err := server.PendingOwner(ctx, &protoReq) return msg, metadata, err } @@ -57,7 +75,7 @@ func local_request_Query_Address_0(ctx context.Context, marshaler runtime.Marsha // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - mux.Handle("GET", pattern_Query_Address_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Owner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -68,7 +86,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Address_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Owner_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 { @@ -76,7 +94,30 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Address_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Owner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PendingOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PendingOwner_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PendingOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -121,7 +162,7 @@ func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // "QueryClient" to call the correct interceptors. func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { - mux.Handle("GET", pattern_Query_Address_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Owner_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) @@ -130,14 +171,34 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_Address_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_Owner_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_Address_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Owner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PendingOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PendingOwner_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PendingOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -145,9 +206,13 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Address_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"noble", "authority", "v1", "address"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Owner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"noble", "authority", "v1", "owner"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PendingOwner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"noble", "authority", "v1", "pending_owner"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( - forward_Query_Address_0 = runtime.ForwardResponseMessage + forward_Query_Owner_0 = runtime.ForwardResponseMessage + + forward_Query_PendingOwner_0 = runtime.ForwardResponseMessage ) diff --git a/x/authority/types/tx.pb.go b/x/authority/types/tx.pb.go index 06b6a14..3c3457e 100644 --- a/x/authority/types/tx.pb.go +++ b/x/authority/types/tx.pb.go @@ -114,23 +114,23 @@ func (m *MsgExecuteResponse) GetResults() [][]byte { return nil } -type MsgTransferAuthority struct { - Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` - NewAuthority string `protobuf:"bytes,2,opt,name=new_authority,json=newAuthority,proto3" json:"new_authority,omitempty"` +type MsgTransferOwnership struct { + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` } -func (m *MsgTransferAuthority) Reset() { *m = MsgTransferAuthority{} } -func (m *MsgTransferAuthority) String() string { return proto.CompactTextString(m) } -func (*MsgTransferAuthority) ProtoMessage() {} -func (*MsgTransferAuthority) Descriptor() ([]byte, []int) { +func (m *MsgTransferOwnership) Reset() { *m = MsgTransferOwnership{} } +func (m *MsgTransferOwnership) String() string { return proto.CompactTextString(m) } +func (*MsgTransferOwnership) ProtoMessage() {} +func (*MsgTransferOwnership) Descriptor() ([]byte, []int) { return fileDescriptor_a7f9675ad166e349, []int{2} } -func (m *MsgTransferAuthority) XXX_Unmarshal(b []byte) error { +func (m *MsgTransferOwnership) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgTransferAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgTransferOwnership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgTransferAuthority.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgTransferOwnership.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -140,33 +140,33 @@ func (m *MsgTransferAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *MsgTransferAuthority) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgTransferAuthority.Merge(m, src) +func (m *MsgTransferOwnership) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferOwnership.Merge(m, src) } -func (m *MsgTransferAuthority) XXX_Size() int { +func (m *MsgTransferOwnership) XXX_Size() int { return m.Size() } -func (m *MsgTransferAuthority) XXX_DiscardUnknown() { - xxx_messageInfo_MsgTransferAuthority.DiscardUnknown(m) +func (m *MsgTransferOwnership) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferOwnership.DiscardUnknown(m) } -var xxx_messageInfo_MsgTransferAuthority proto.InternalMessageInfo +var xxx_messageInfo_MsgTransferOwnership proto.InternalMessageInfo -type MsgTransferAuthorityResponse struct { +type MsgTransferOwnershipResponse struct { } -func (m *MsgTransferAuthorityResponse) Reset() { *m = MsgTransferAuthorityResponse{} } -func (m *MsgTransferAuthorityResponse) String() string { return proto.CompactTextString(m) } -func (*MsgTransferAuthorityResponse) ProtoMessage() {} -func (*MsgTransferAuthorityResponse) Descriptor() ([]byte, []int) { +func (m *MsgTransferOwnershipResponse) Reset() { *m = MsgTransferOwnershipResponse{} } +func (m *MsgTransferOwnershipResponse) String() string { return proto.CompactTextString(m) } +func (*MsgTransferOwnershipResponse) ProtoMessage() {} +func (*MsgTransferOwnershipResponse) Descriptor() ([]byte, []int) { return fileDescriptor_a7f9675ad166e349, []int{3} } -func (m *MsgTransferAuthorityResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgTransferOwnershipResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgTransferAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgTransferOwnershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgTransferAuthorityResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgTransferOwnershipResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -176,34 +176,34 @@ func (m *MsgTransferAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgTransferAuthorityResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgTransferAuthorityResponse.Merge(m, src) +func (m *MsgTransferOwnershipResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferOwnershipResponse.Merge(m, src) } -func (m *MsgTransferAuthorityResponse) XXX_Size() int { +func (m *MsgTransferOwnershipResponse) XXX_Size() int { return m.Size() } -func (m *MsgTransferAuthorityResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgTransferAuthorityResponse.DiscardUnknown(m) +func (m *MsgTransferOwnershipResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferOwnershipResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgTransferAuthorityResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgTransferOwnershipResponse proto.InternalMessageInfo -type MsgAcceptAuthority struct { +type MsgAcceptOwnership struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` } -func (m *MsgAcceptAuthority) Reset() { *m = MsgAcceptAuthority{} } -func (m *MsgAcceptAuthority) String() string { return proto.CompactTextString(m) } -func (*MsgAcceptAuthority) ProtoMessage() {} -func (*MsgAcceptAuthority) Descriptor() ([]byte, []int) { +func (m *MsgAcceptOwnership) Reset() { *m = MsgAcceptOwnership{} } +func (m *MsgAcceptOwnership) String() string { return proto.CompactTextString(m) } +func (*MsgAcceptOwnership) ProtoMessage() {} +func (*MsgAcceptOwnership) Descriptor() ([]byte, []int) { return fileDescriptor_a7f9675ad166e349, []int{4} } -func (m *MsgAcceptAuthority) XXX_Unmarshal(b []byte) error { +func (m *MsgAcceptOwnership) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgAcceptAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgAcceptOwnership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgAcceptAuthority.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgAcceptOwnership.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -213,33 +213,33 @@ func (m *MsgAcceptAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *MsgAcceptAuthority) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAcceptAuthority.Merge(m, src) +func (m *MsgAcceptOwnership) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAcceptOwnership.Merge(m, src) } -func (m *MsgAcceptAuthority) XXX_Size() int { +func (m *MsgAcceptOwnership) XXX_Size() int { return m.Size() } -func (m *MsgAcceptAuthority) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAcceptAuthority.DiscardUnknown(m) +func (m *MsgAcceptOwnership) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAcceptOwnership.DiscardUnknown(m) } -var xxx_messageInfo_MsgAcceptAuthority proto.InternalMessageInfo +var xxx_messageInfo_MsgAcceptOwnership proto.InternalMessageInfo -type MsgAcceptAuthorityResponse struct { +type MsgAcceptOwnershipResponse struct { } -func (m *MsgAcceptAuthorityResponse) Reset() { *m = MsgAcceptAuthorityResponse{} } -func (m *MsgAcceptAuthorityResponse) String() string { return proto.CompactTextString(m) } -func (*MsgAcceptAuthorityResponse) ProtoMessage() {} -func (*MsgAcceptAuthorityResponse) Descriptor() ([]byte, []int) { +func (m *MsgAcceptOwnershipResponse) Reset() { *m = MsgAcceptOwnershipResponse{} } +func (m *MsgAcceptOwnershipResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAcceptOwnershipResponse) ProtoMessage() {} +func (*MsgAcceptOwnershipResponse) Descriptor() ([]byte, []int) { return fileDescriptor_a7f9675ad166e349, []int{5} } -func (m *MsgAcceptAuthorityResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgAcceptOwnershipResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgAcceptAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgAcceptOwnershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgAcceptAuthorityResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgAcceptOwnershipResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -249,63 +249,63 @@ func (m *MsgAcceptAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *MsgAcceptAuthorityResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAcceptAuthorityResponse.Merge(m, src) +func (m *MsgAcceptOwnershipResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAcceptOwnershipResponse.Merge(m, src) } -func (m *MsgAcceptAuthorityResponse) XXX_Size() int { +func (m *MsgAcceptOwnershipResponse) XXX_Size() int { return m.Size() } -func (m *MsgAcceptAuthorityResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAcceptAuthorityResponse.DiscardUnknown(m) +func (m *MsgAcceptOwnershipResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAcceptOwnershipResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgAcceptAuthorityResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgAcceptOwnershipResponse proto.InternalMessageInfo func init() { proto.RegisterType((*MsgExecute)(nil), "noble.authority.v1.MsgExecute") proto.RegisterType((*MsgExecuteResponse)(nil), "noble.authority.v1.MsgExecuteResponse") - proto.RegisterType((*MsgTransferAuthority)(nil), "noble.authority.v1.MsgTransferAuthority") - proto.RegisterType((*MsgTransferAuthorityResponse)(nil), "noble.authority.v1.MsgTransferAuthorityResponse") - proto.RegisterType((*MsgAcceptAuthority)(nil), "noble.authority.v1.MsgAcceptAuthority") - proto.RegisterType((*MsgAcceptAuthorityResponse)(nil), "noble.authority.v1.MsgAcceptAuthorityResponse") + proto.RegisterType((*MsgTransferOwnership)(nil), "noble.authority.v1.MsgTransferOwnership") + proto.RegisterType((*MsgTransferOwnershipResponse)(nil), "noble.authority.v1.MsgTransferOwnershipResponse") + proto.RegisterType((*MsgAcceptOwnership)(nil), "noble.authority.v1.MsgAcceptOwnership") + proto.RegisterType((*MsgAcceptOwnershipResponse)(nil), "noble.authority.v1.MsgAcceptOwnershipResponse") } func init() { proto.RegisterFile("noble/authority/v1/tx.proto", fileDescriptor_a7f9675ad166e349) } var fileDescriptor_a7f9675ad166e349 = []byte{ - // 500 bytes of a gzipped FileDescriptorProto + // 503 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xbf, 0x6f, 0xd3, 0x40, - 0x14, 0xb6, 0x13, 0xd1, 0xc2, 0xd1, 0x0a, 0xd5, 0x0a, 0xaa, 0x31, 0x95, 0x1b, 0x59, 0x02, 0x45, - 0x91, 0x72, 0x97, 0xb6, 0x5b, 0x24, 0x86, 0x54, 0x62, 0xcc, 0x40, 0x60, 0x62, 0xa9, 0x1c, 0xf7, - 0xf5, 0x6a, 0x29, 0xbe, 0x8b, 0xfc, 0xce, 0x6d, 0xb2, 0x21, 0x26, 0xc4, 0xc4, 0xc6, 0xda, 0x3f, - 0x21, 0x03, 0x03, 0x12, 0xff, 0x00, 0x63, 0xc5, 0xc4, 0x88, 0x92, 0x21, 0xfc, 0x19, 0xa8, 0x3e, - 0xdb, 0xad, 0x62, 0x02, 0x15, 0x2c, 0xd6, 0x3d, 0x7f, 0xdf, 0xbb, 0xef, 0x7b, 0x3f, 0x6c, 0xf2, - 0x58, 0xc8, 0xc1, 0x10, 0x98, 0x9f, 0xa8, 0x53, 0x19, 0x87, 0x6a, 0xc2, 0xce, 0xf6, 0x98, 0x1a, - 0xd3, 0x51, 0x2c, 0x95, 0xb4, 0xac, 0x14, 0xa4, 0x05, 0x48, 0xcf, 0xf6, 0x9c, 0x2d, 0x3f, 0x0a, - 0x85, 0x64, 0xe9, 0x53, 0xd3, 0x9c, 0xed, 0x40, 0x62, 0x24, 0x91, 0x45, 0xc8, 0xaf, 0xd2, 0x23, - 0xe4, 0x19, 0xf0, 0x48, 0x03, 0x47, 0x69, 0xc4, 0x74, 0x90, 0x41, 0x35, 0x2e, 0xb9, 0xd4, 0xef, - 0xaf, 0x4e, 0x79, 0x02, 0x97, 0x92, 0x0f, 0x81, 0xa5, 0xd1, 0x20, 0x39, 0x61, 0xbe, 0x98, 0x68, - 0xc8, 0xfb, 0x68, 0x12, 0xd2, 0x43, 0xfe, 0x7c, 0x0c, 0x41, 0xa2, 0xc0, 0x6a, 0x93, 0x35, 0x0c, - 0xb9, 0x80, 0xd8, 0x36, 0xeb, 0x66, 0xe3, 0xde, 0xa1, 0xfd, 0xed, 0x53, 0xab, 0x96, 0x29, 0x74, - 0x8f, 0x8f, 0x63, 0x40, 0x7c, 0xa9, 0xe2, 0x50, 0xf0, 0x7e, 0xc6, 0xb3, 0xda, 0xe4, 0x6e, 0x04, - 0x88, 0x3e, 0x07, 0xb4, 0x2b, 0xf5, 0x6a, 0xe3, 0xfe, 0x7e, 0x8d, 0x6a, 0x39, 0x9a, 0xcb, 0xd1, - 0xae, 0x98, 0xf4, 0x0b, 0x56, 0xe7, 0xc9, 0xbb, 0x8b, 0x5d, 0xe3, 0xe7, 0xc5, 0xae, 0xf1, 0x76, - 0x31, 0x6d, 0x66, 0xd7, 0xbc, 0x5f, 0x4c, 0x9b, 0x9b, 0xba, 0x67, 0x99, 0x15, 0x8f, 0x12, 0xeb, - 0xda, 0x58, 0x1f, 0x70, 0x24, 0x05, 0x82, 0x65, 0x93, 0xf5, 0x18, 0x30, 0x19, 0x2a, 0xb4, 0xcd, - 0x7a, 0xb5, 0xb1, 0xd1, 0xcf, 0x43, 0xef, 0xb3, 0x49, 0x6a, 0x3d, 0xe4, 0xaf, 0x62, 0x5f, 0xe0, - 0x09, 0xc4, 0xdd, 0xbc, 0xbb, 0xff, 0x50, 0xd3, 0x33, 0xb2, 0x29, 0xe0, 0xfc, 0xa8, 0x18, 0x90, - 0x5d, 0xf9, 0x4b, 0xe2, 0x86, 0x80, 0xf3, 0x42, 0xb0, 0xc3, 0x56, 0x14, 0xb8, 0xad, 0x0b, 0x2c, - 0x39, 0xf4, 0x5c, 0xb2, 0xf3, 0x3b, 0xe7, 0x79, 0xd1, 0x5e, 0x92, 0xb6, 0xa2, 0x1b, 0x04, 0x30, - 0x52, 0xff, 0x51, 0x57, 0xa7, 0xb5, 0xc2, 0xd8, 0x43, 0x6d, 0x6c, 0x49, 0xc0, 0xdb, 0x21, 0x4e, - 0x59, 0x36, 0x37, 0xb5, 0xff, 0xa5, 0x42, 0xaa, 0x3d, 0xe4, 0xd6, 0x0b, 0xb2, 0x9e, 0x6f, 0x8f, - 0x4b, 0xcb, 0x9b, 0x4d, 0xaf, 0x87, 0xe8, 0x3c, 0xfd, 0x33, 0x5e, 0x0c, 0x59, 0x92, 0xad, 0xf2, - 0x18, 0x1b, 0x2b, 0x92, 0x4b, 0x4c, 0xa7, 0x7d, 0x5b, 0x66, 0x21, 0x18, 0x92, 0x07, 0xcb, 0xdd, - 0x5d, 0xe5, 0x75, 0x89, 0xe7, 0xd0, 0xdb, 0xf1, 0x72, 0x29, 0xe7, 0xce, 0x9b, 0xc5, 0xb4, 0x69, - 0x1e, 0xf6, 0xbe, 0xce, 0x5c, 0xf3, 0x72, 0xe6, 0x9a, 0x3f, 0x66, 0xae, 0xf9, 0x61, 0xee, 0x1a, - 0x97, 0x73, 0xd7, 0xf8, 0x3e, 0x77, 0x8d, 0xd7, 0x07, 0x3c, 0x54, 0xa7, 0xc9, 0x80, 0x06, 0x32, - 0x62, 0xe9, 0xd5, 0x2d, 0x1f, 0x11, 0x14, 0xde, 0xf8, 0x99, 0x8c, 0x6f, 0x9c, 0xd5, 0x64, 0x04, - 0x38, 0x58, 0x4b, 0xbf, 0xb5, 0x83, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2a, 0x54, 0x52, 0x61, - 0x78, 0x04, 0x00, 0x00, + 0x14, 0xb6, 0x13, 0xd1, 0x1f, 0x07, 0x08, 0xd5, 0x0a, 0xaa, 0x31, 0x95, 0x1b, 0x59, 0x02, 0x45, + 0x91, 0x72, 0x97, 0xb6, 0x62, 0xc9, 0x96, 0x4a, 0x8c, 0x11, 0x22, 0x30, 0xb1, 0x54, 0x8e, 0xfb, + 0x7a, 0xb1, 0x14, 0xdf, 0x59, 0x7e, 0xe7, 0x26, 0xd9, 0x10, 0x13, 0x62, 0x62, 0x63, 0xed, 0x9f, + 0x90, 0x81, 0x8d, 0x7f, 0x80, 0xb1, 0x62, 0x62, 0x44, 0xc9, 0x10, 0xfe, 0x0c, 0x14, 0xff, 0x48, + 0xab, 0x98, 0x40, 0x04, 0x8b, 0x75, 0xcf, 0xdf, 0xf7, 0xde, 0xf7, 0xbd, 0xf7, 0xce, 0x26, 0x8f, + 0x85, 0xec, 0x0d, 0x80, 0xb9, 0xb1, 0xea, 0xcb, 0xc8, 0x57, 0x63, 0x76, 0x79, 0xc4, 0xd4, 0x88, + 0x86, 0x91, 0x54, 0xd2, 0x30, 0x12, 0x90, 0x2e, 0x41, 0x7a, 0x79, 0x64, 0xed, 0xb9, 0x81, 0x2f, + 0x24, 0x4b, 0x9e, 0x29, 0xcd, 0xda, 0xf7, 0x24, 0x06, 0x12, 0x59, 0x80, 0x7c, 0x91, 0x1e, 0x20, + 0xcf, 0x80, 0x47, 0x29, 0x70, 0x96, 0x44, 0x2c, 0x0d, 0x32, 0xa8, 0xc2, 0x25, 0x97, 0xe9, 0xfb, + 0xc5, 0x29, 0x4f, 0xe0, 0x52, 0xf2, 0x01, 0xb0, 0x24, 0xea, 0xc5, 0x17, 0xcc, 0x15, 0xe3, 0x14, + 0x72, 0x3e, 0xe9, 0x84, 0x74, 0x90, 0x3f, 0x1f, 0x81, 0x17, 0x2b, 0x30, 0x9a, 0x64, 0x0b, 0x7d, + 0x2e, 0x20, 0x32, 0xf5, 0xaa, 0x5e, 0xdb, 0x3d, 0x35, 0xbf, 0x7d, 0x6e, 0x54, 0x32, 0x85, 0xf6, + 0xf9, 0x79, 0x04, 0x88, 0xaf, 0x54, 0xe4, 0x0b, 0xde, 0xcd, 0x78, 0x46, 0x93, 0xec, 0x04, 0x80, + 0xe8, 0x72, 0x40, 0xb3, 0x54, 0x2d, 0xd7, 0xee, 0x1e, 0x57, 0x68, 0x2a, 0x47, 0x73, 0x39, 0xda, + 0x16, 0xe3, 0xee, 0x92, 0xd5, 0x7a, 0xf2, 0xfe, 0xea, 0x50, 0xfb, 0x79, 0x75, 0xa8, 0xbd, 0x9b, + 0x4f, 0xea, 0x59, 0x99, 0x0f, 0xf3, 0x49, 0xfd, 0x7e, 0x3a, 0xb3, 0xcc, 0x8a, 0x43, 0x89, 0x71, + 0x63, 0xac, 0x0b, 0x18, 0x4a, 0x81, 0x60, 0x98, 0x64, 0x3b, 0x02, 0x8c, 0x07, 0x0a, 0x4d, 0xbd, + 0x5a, 0xae, 0xdd, 0xeb, 0xe6, 0xa1, 0x33, 0xd1, 0x49, 0xa5, 0x83, 0xfc, 0x75, 0xe4, 0x0a, 0xbc, + 0x80, 0xe8, 0xc5, 0x50, 0x40, 0x84, 0x7d, 0x3f, 0xfc, 0x87, 0x9e, 0x9e, 0x91, 0x5d, 0x01, 0xc3, + 0x33, 0xb9, 0x28, 0x61, 0x96, 0xfe, 0x92, 0xb4, 0x23, 0x60, 0x98, 0x88, 0xb5, 0xd8, 0x9a, 0xc6, + 0xf6, 0xd3, 0xc6, 0x0a, 0xce, 0x1c, 0x9b, 0x1c, 0xfc, 0xce, 0x71, 0xde, 0xac, 0x13, 0x27, 0x23, + 0x68, 0x7b, 0x1e, 0x84, 0xea, 0x3f, 0xfa, 0x69, 0x35, 0xd6, 0x18, 0x7b, 0x98, 0x1a, 0x5b, 0x11, + 0x70, 0x0e, 0x88, 0x55, 0x94, 0xcd, 0x4d, 0x1d, 0x7f, 0x29, 0x91, 0x72, 0x07, 0xb9, 0xf1, 0x92, + 0x6c, 0xe7, 0xb7, 0xc6, 0xa6, 0xc5, 0x1b, 0x4d, 0x6f, 0x96, 0x67, 0x3d, 0xfd, 0x33, 0xbe, 0x5c, + 0xae, 0x24, 0x7b, 0xc5, 0xf5, 0xd5, 0xd6, 0x24, 0x17, 0x98, 0x56, 0x73, 0x53, 0xe6, 0x52, 0xd0, + 0x27, 0x0f, 0x56, 0xa7, 0xbb, 0xce, 0xeb, 0x0a, 0xcf, 0xa2, 0x9b, 0xf1, 0x72, 0x29, 0xeb, 0xce, + 0xdb, 0xf9, 0xa4, 0xae, 0x9f, 0x76, 0xbe, 0x4e, 0x6d, 0xfd, 0x7a, 0x6a, 0xeb, 0x3f, 0xa6, 0xb6, + 0xfe, 0x71, 0x66, 0x6b, 0xd7, 0x33, 0x5b, 0xfb, 0x3e, 0xb3, 0xb5, 0x37, 0x27, 0xdc, 0x57, 0xfd, + 0xb8, 0x47, 0x3d, 0x19, 0xb0, 0xa4, 0x74, 0xc3, 0x45, 0x04, 0x85, 0xb7, 0x7e, 0x22, 0xa3, 0x5b, + 0x67, 0x35, 0x0e, 0x01, 0x7b, 0x5b, 0xc9, 0x37, 0x76, 0xf2, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x16, + 0xc1, 0x13, 0x14, 0x70, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -321,8 +321,8 @@ const _ = grpc.SupportPackageIsVersion4 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { Execute(ctx context.Context, in *MsgExecute, opts ...grpc.CallOption) (*MsgExecuteResponse, error) - TransferAuthority(ctx context.Context, in *MsgTransferAuthority, opts ...grpc.CallOption) (*MsgTransferAuthorityResponse, error) - AcceptAuthority(ctx context.Context, in *MsgAcceptAuthority, opts ...grpc.CallOption) (*MsgAcceptAuthorityResponse, error) + TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, error) + AcceptOwnership(ctx context.Context, in *MsgAcceptOwnership, opts ...grpc.CallOption) (*MsgAcceptOwnershipResponse, error) } type msgClient struct { @@ -342,18 +342,18 @@ func (c *msgClient) Execute(ctx context.Context, in *MsgExecute, opts ...grpc.Ca return out, nil } -func (c *msgClient) TransferAuthority(ctx context.Context, in *MsgTransferAuthority, opts ...grpc.CallOption) (*MsgTransferAuthorityResponse, error) { - out := new(MsgTransferAuthorityResponse) - err := c.cc.Invoke(ctx, "/noble.authority.v1.Msg/TransferAuthority", in, out, opts...) +func (c *msgClient) TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, error) { + out := new(MsgTransferOwnershipResponse) + err := c.cc.Invoke(ctx, "/noble.authority.v1.Msg/TransferOwnership", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) AcceptAuthority(ctx context.Context, in *MsgAcceptAuthority, opts ...grpc.CallOption) (*MsgAcceptAuthorityResponse, error) { - out := new(MsgAcceptAuthorityResponse) - err := c.cc.Invoke(ctx, "/noble.authority.v1.Msg/AcceptAuthority", in, out, opts...) +func (c *msgClient) AcceptOwnership(ctx context.Context, in *MsgAcceptOwnership, opts ...grpc.CallOption) (*MsgAcceptOwnershipResponse, error) { + out := new(MsgAcceptOwnershipResponse) + err := c.cc.Invoke(ctx, "/noble.authority.v1.Msg/AcceptOwnership", in, out, opts...) if err != nil { return nil, err } @@ -363,8 +363,8 @@ func (c *msgClient) AcceptAuthority(ctx context.Context, in *MsgAcceptAuthority, // MsgServer is the server API for Msg service. type MsgServer interface { Execute(context.Context, *MsgExecute) (*MsgExecuteResponse, error) - TransferAuthority(context.Context, *MsgTransferAuthority) (*MsgTransferAuthorityResponse, error) - AcceptAuthority(context.Context, *MsgAcceptAuthority) (*MsgAcceptAuthorityResponse, error) + TransferOwnership(context.Context, *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error) + AcceptOwnership(context.Context, *MsgAcceptOwnership) (*MsgAcceptOwnershipResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -374,11 +374,11 @@ type UnimplementedMsgServer struct { func (*UnimplementedMsgServer) Execute(ctx context.Context, req *MsgExecute) (*MsgExecuteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Execute not implemented") } -func (*UnimplementedMsgServer) TransferAuthority(ctx context.Context, req *MsgTransferAuthority) (*MsgTransferAuthorityResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TransferAuthority not implemented") +func (*UnimplementedMsgServer) TransferOwnership(ctx context.Context, req *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferOwnership not implemented") } -func (*UnimplementedMsgServer) AcceptAuthority(ctx context.Context, req *MsgAcceptAuthority) (*MsgAcceptAuthorityResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AcceptAuthority not implemented") +func (*UnimplementedMsgServer) AcceptOwnership(ctx context.Context, req *MsgAcceptOwnership) (*MsgAcceptOwnershipResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AcceptOwnership not implemented") } func RegisterMsgServer(s grpc1.Server, srv MsgServer) { @@ -403,38 +403,38 @@ func _Msg_Execute_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Msg_TransferAuthority_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgTransferAuthority) +func _Msg_TransferOwnership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferOwnership) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).TransferAuthority(ctx, in) + return srv.(MsgServer).TransferOwnership(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/noble.authority.v1.Msg/TransferAuthority", + FullMethod: "/noble.authority.v1.Msg/TransferOwnership", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).TransferAuthority(ctx, req.(*MsgTransferAuthority)) + return srv.(MsgServer).TransferOwnership(ctx, req.(*MsgTransferOwnership)) } return interceptor(ctx, in, info, handler) } -func _Msg_AcceptAuthority_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAcceptAuthority) +func _Msg_AcceptOwnership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAcceptOwnership) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).AcceptAuthority(ctx, in) + return srv.(MsgServer).AcceptOwnership(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/noble.authority.v1.Msg/AcceptAuthority", + FullMethod: "/noble.authority.v1.Msg/AcceptOwnership", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AcceptAuthority(ctx, req.(*MsgAcceptAuthority)) + return srv.(MsgServer).AcceptOwnership(ctx, req.(*MsgAcceptOwnership)) } return interceptor(ctx, in, info, handler) } @@ -448,12 +448,12 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_Execute_Handler, }, { - MethodName: "TransferAuthority", - Handler: _Msg_TransferAuthority_Handler, + MethodName: "TransferOwnership", + Handler: _Msg_TransferOwnership_Handler, }, { - MethodName: "AcceptAuthority", - Handler: _Msg_AcceptAuthority_Handler, + MethodName: "AcceptOwnership", + Handler: _Msg_AcceptOwnership_Handler, }, }, Streams: []grpc.StreamDesc{}, @@ -536,7 +536,7 @@ func (m *MsgExecuteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgTransferAuthority) Marshal() (dAtA []byte, err error) { +func (m *MsgTransferOwnership) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -546,20 +546,20 @@ func (m *MsgTransferAuthority) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgTransferAuthority) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgTransferOwnership) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgTransferAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgTransferOwnership) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NewAuthority) > 0 { - i -= len(m.NewAuthority) - copy(dAtA[i:], m.NewAuthority) - i = encodeVarintTx(dAtA, i, uint64(len(m.NewAuthority))) + if len(m.NewOwner) > 0 { + i -= len(m.NewOwner) + copy(dAtA[i:], m.NewOwner) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewOwner))) i-- dAtA[i] = 0x12 } @@ -573,7 +573,7 @@ func (m *MsgTransferAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgTransferAuthorityResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgTransferOwnershipResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -583,12 +583,12 @@ func (m *MsgTransferAuthorityResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgTransferAuthorityResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgTransferOwnershipResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgTransferAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgTransferOwnershipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -596,7 +596,7 @@ func (m *MsgTransferAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *MsgAcceptAuthority) Marshal() (dAtA []byte, err error) { +func (m *MsgAcceptOwnership) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -606,12 +606,12 @@ func (m *MsgAcceptAuthority) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgAcceptAuthority) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgAcceptOwnership) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAcceptAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgAcceptOwnership) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -626,7 +626,7 @@ func (m *MsgAcceptAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgAcceptAuthorityResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgAcceptOwnershipResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -636,12 +636,12 @@ func (m *MsgAcceptAuthorityResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgAcceptAuthorityResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgAcceptOwnershipResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAcceptAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgAcceptOwnershipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -694,7 +694,7 @@ func (m *MsgExecuteResponse) Size() (n int) { return n } -func (m *MsgTransferAuthority) Size() (n int) { +func (m *MsgTransferOwnership) Size() (n int) { if m == nil { return 0 } @@ -704,14 +704,14 @@ func (m *MsgTransferAuthority) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.NewAuthority) + l = len(m.NewOwner) if l > 0 { n += 1 + l + sovTx(uint64(l)) } return n } -func (m *MsgTransferAuthorityResponse) Size() (n int) { +func (m *MsgTransferOwnershipResponse) Size() (n int) { if m == nil { return 0 } @@ -720,7 +720,7 @@ func (m *MsgTransferAuthorityResponse) Size() (n int) { return n } -func (m *MsgAcceptAuthority) Size() (n int) { +func (m *MsgAcceptOwnership) Size() (n int) { if m == nil { return 0 } @@ -733,7 +733,7 @@ func (m *MsgAcceptAuthority) Size() (n int) { return n } -func (m *MsgAcceptAuthorityResponse) Size() (n int) { +func (m *MsgAcceptOwnershipResponse) Size() (n int) { if m == nil { return 0 } @@ -946,7 +946,7 @@ func (m *MsgExecuteResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgTransferAuthority) Unmarshal(dAtA []byte) error { +func (m *MsgTransferOwnership) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -969,10 +969,10 @@ func (m *MsgTransferAuthority) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgTransferAuthority: wiretype end group for non-group") + return fmt.Errorf("proto: MsgTransferOwnership: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgTransferAuthority: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgTransferOwnership: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1009,7 +1009,7 @@ func (m *MsgTransferAuthority) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewAuthority", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1037,7 +1037,7 @@ func (m *MsgTransferAuthority) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NewAuthority = string(dAtA[iNdEx:postIndex]) + m.NewOwner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1060,7 +1060,7 @@ func (m *MsgTransferAuthority) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgTransferAuthorityResponse) Unmarshal(dAtA []byte) error { +func (m *MsgTransferOwnershipResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1083,10 +1083,10 @@ func (m *MsgTransferAuthorityResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgTransferAuthorityResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgTransferOwnershipResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgTransferAuthorityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgTransferOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -1110,7 +1110,7 @@ func (m *MsgTransferAuthorityResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAcceptAuthority) Unmarshal(dAtA []byte) error { +func (m *MsgAcceptOwnership) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1133,10 +1133,10 @@ func (m *MsgAcceptAuthority) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAcceptAuthority: wiretype end group for non-group") + return fmt.Errorf("proto: MsgAcceptOwnership: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAcceptAuthority: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgAcceptOwnership: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1192,7 +1192,7 @@ func (m *MsgAcceptAuthority) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAcceptAuthorityResponse) Unmarshal(dAtA []byte) error { +func (m *MsgAcceptOwnershipResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1215,10 +1215,10 @@ func (m *MsgAcceptAuthorityResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAcceptAuthorityResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgAcceptOwnershipResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAcceptAuthorityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgAcceptOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: