diff --git a/api/v1/query.pulsar.go b/api/v1/query.pulsar.go index 928ec5a..db5f336 100644 --- a/api/v1/query.pulsar.go +++ b/api/v1/query.pulsar.go @@ -1688,6 +1688,782 @@ func (x *fastReflection_QueryConsensusPowerResponse) ProtoMethods() *protoiface. } } +var ( + md_QueryPoaAuthorityRequest protoreflect.MessageDescriptor +) + +func init() { + file_strangelove_ventures_poa_v1_query_proto_init() + md_QueryPoaAuthorityRequest = File_strangelove_ventures_poa_v1_query_proto.Messages().ByName("QueryPoaAuthorityRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryPoaAuthorityRequest)(nil) + +type fastReflection_QueryPoaAuthorityRequest QueryPoaAuthorityRequest + +func (x *QueryPoaAuthorityRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPoaAuthorityRequest)(x) +} + +func (x *QueryPoaAuthorityRequest) slowProtoReflect() protoreflect.Message { + mi := &file_strangelove_ventures_poa_v1_query_proto_msgTypes[4] + 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_QueryPoaAuthorityRequest_messageType fastReflection_QueryPoaAuthorityRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPoaAuthorityRequest_messageType{} + +type fastReflection_QueryPoaAuthorityRequest_messageType struct{} + +func (x fastReflection_QueryPoaAuthorityRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPoaAuthorityRequest)(nil) +} +func (x fastReflection_QueryPoaAuthorityRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPoaAuthorityRequest) +} +func (x fastReflection_QueryPoaAuthorityRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPoaAuthorityRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryPoaAuthorityRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPoaAuthorityRequest +} + +// 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_QueryPoaAuthorityRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPoaAuthorityRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryPoaAuthorityRequest) New() protoreflect.Message { + return new(fastReflection_QueryPoaAuthorityRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryPoaAuthorityRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPoaAuthorityRequest)(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_QueryPoaAuthorityRequest) 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_QueryPoaAuthorityRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityRequest")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityRequest 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_QueryPoaAuthorityRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityRequest")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityRequest 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_QueryPoaAuthorityRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityRequest")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityRequest 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_QueryPoaAuthorityRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityRequest")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityRequest 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_QueryPoaAuthorityRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityRequest")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityRequest 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_QueryPoaAuthorityRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityRequest")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityRequest 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_QueryPoaAuthorityRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in strangelove_ventures.poa.v1.QueryPoaAuthorityRequest", 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_QueryPoaAuthorityRequest) 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_QueryPoaAuthorityRequest) 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_QueryPoaAuthorityRequest) 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_QueryPoaAuthorityRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryPoaAuthorityRequest) + 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().(*QueryPoaAuthorityRequest) + 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().(*QueryPoaAuthorityRequest) + 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: QueryPoaAuthorityRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPoaAuthorityRequest: 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_QueryPoaAuthorityResponse protoreflect.MessageDescriptor + fd_QueryPoaAuthorityResponse_authority protoreflect.FieldDescriptor +) + +func init() { + file_strangelove_ventures_poa_v1_query_proto_init() + md_QueryPoaAuthorityResponse = File_strangelove_ventures_poa_v1_query_proto.Messages().ByName("QueryPoaAuthorityResponse") + fd_QueryPoaAuthorityResponse_authority = md_QueryPoaAuthorityResponse.Fields().ByName("authority") +} + +var _ protoreflect.Message = (*fastReflection_QueryPoaAuthorityResponse)(nil) + +type fastReflection_QueryPoaAuthorityResponse QueryPoaAuthorityResponse + +func (x *QueryPoaAuthorityResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPoaAuthorityResponse)(x) +} + +func (x *QueryPoaAuthorityResponse) slowProtoReflect() protoreflect.Message { + mi := &file_strangelove_ventures_poa_v1_query_proto_msgTypes[5] + 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_QueryPoaAuthorityResponse_messageType fastReflection_QueryPoaAuthorityResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPoaAuthorityResponse_messageType{} + +type fastReflection_QueryPoaAuthorityResponse_messageType struct{} + +func (x fastReflection_QueryPoaAuthorityResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPoaAuthorityResponse)(nil) +} +func (x fastReflection_QueryPoaAuthorityResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPoaAuthorityResponse) +} +func (x fastReflection_QueryPoaAuthorityResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPoaAuthorityResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryPoaAuthorityResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPoaAuthorityResponse +} + +// 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_QueryPoaAuthorityResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPoaAuthorityResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryPoaAuthorityResponse) New() protoreflect.Message { + return new(fastReflection_QueryPoaAuthorityResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryPoaAuthorityResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPoaAuthorityResponse)(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_QueryPoaAuthorityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_QueryPoaAuthorityResponse_authority, 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_QueryPoaAuthorityResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "strangelove_ventures.poa.v1.QueryPoaAuthorityResponse.authority": + return x.Authority != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityResponse")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityResponse 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_QueryPoaAuthorityResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "strangelove_ventures.poa.v1.QueryPoaAuthorityResponse.authority": + x.Authority = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityResponse")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityResponse 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_QueryPoaAuthorityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "strangelove_ventures.poa.v1.QueryPoaAuthorityResponse.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityResponse")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityResponse 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_QueryPoaAuthorityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "strangelove_ventures.poa.v1.QueryPoaAuthorityResponse.authority": + x.Authority = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityResponse")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityResponse 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_QueryPoaAuthorityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "strangelove_ventures.poa.v1.QueryPoaAuthorityResponse.authority": + panic(fmt.Errorf("field authority of message strangelove_ventures.poa.v1.QueryPoaAuthorityResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityResponse")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityResponse 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_QueryPoaAuthorityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "strangelove_ventures.poa.v1.QueryPoaAuthorityResponse.authority": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: strangelove_ventures.poa.v1.QueryPoaAuthorityResponse")) + } + panic(fmt.Errorf("message strangelove_ventures.poa.v1.QueryPoaAuthorityResponse 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_QueryPoaAuthorityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in strangelove_ventures.poa.v1.QueryPoaAuthorityResponse", 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_QueryPoaAuthorityResponse) 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_QueryPoaAuthorityResponse) 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_QueryPoaAuthorityResponse) 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_QueryPoaAuthorityResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryPoaAuthorityResponse) + 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.Authority) + 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().(*QueryPoaAuthorityResponse) + 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.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*QueryPoaAuthorityResponse) + 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: QueryPoaAuthorityResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPoaAuthorityResponse: 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 Authority", 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.Authority = 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 @@ -1839,6 +2615,70 @@ func (x *QueryConsensusPowerResponse) GetConsensusPower() int64 { return 0 } +// QueryPoaAuthorityRequest is the request type for the Query/PoaAuthority RPC method. +type QueryPoaAuthorityRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryPoaAuthorityRequest) Reset() { + *x = QueryPoaAuthorityRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_strangelove_ventures_poa_v1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryPoaAuthorityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryPoaAuthorityRequest) ProtoMessage() {} + +// Deprecated: Use QueryPoaAuthorityRequest.ProtoReflect.Descriptor instead. +func (*QueryPoaAuthorityRequest) Descriptor() ([]byte, []int) { + return file_strangelove_ventures_poa_v1_query_proto_rawDescGZIP(), []int{4} +} + +// QueryPoaAuthorityResponse is the response type for the Query/QueryPoaAuthorityRequest RPC method. +type QueryPoaAuthorityResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // authority is the module authority address + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` +} + +func (x *QueryPoaAuthorityResponse) Reset() { + *x = QueryPoaAuthorityResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_strangelove_ventures_poa_v1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryPoaAuthorityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryPoaAuthorityResponse) ProtoMessage() {} + +// Deprecated: Use QueryPoaAuthorityResponse.ProtoReflect.Descriptor instead. +func (*QueryPoaAuthorityResponse) Descriptor() ([]byte, []int) { + return file_strangelove_ventures_poa_v1_query_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryPoaAuthorityResponse) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + var File_strangelove_ventures_poa_v1_query_proto protoreflect.FileDescriptor var file_strangelove_ventures_poa_v1_query_proto_rawDesc = []byte{ @@ -1872,46 +2712,61 @@ var file_strangelove_ventures_poa_v1_query_proto_rawDesc = []byte{ 0x6e, 0x73, 0x75, 0x73, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x73, - 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x32, 0xdc, 0x02, 0x0a, 0x05, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x12, 0xab, 0x01, 0x0a, 0x11, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x3a, 0x2e, 0x73, 0x74, 0x72, - 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x5f, 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, - 0x73, 0x2e, 0x70, 0x6f, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, - 0x6c, 0x6f, 0x76, 0x65, 0x5f, 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x6f, - 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x70, 0x6f, 0x61, 0x2f, 0x76, 0x31, 0x2f, - 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x73, 0x12, 0xa4, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, - 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, + 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x6f, 0x61, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x39, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x6f, 0x61, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x32, 0xf7, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0xab, 0x01, 0x0a, 0x11, + 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x73, 0x12, 0x3a, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x5f, + 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x6f, 0x61, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, + 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x5f, 0x76, 0x65, 0x6e, 0x74, + 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x6f, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, + 0x70, 0x6f, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0xa4, 0x01, 0x0a, 0x0e, 0x43, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x37, 0x2e, 0x73, + 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x5f, 0x76, 0x65, 0x6e, 0x74, 0x75, + 0x72, 0x65, 0x73, 0x2e, 0x70, 0x6f, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x5f, 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x6f, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, - 0x75, 0x73, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, - 0x2e, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x5f, 0x76, 0x65, 0x6e, - 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x6f, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x6f, 0x77, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, - 0x12, 0x17, 0x2f, 0x70, 0x6f, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, - 0x73, 0x75, 0x73, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x42, 0x82, 0x02, 0x0a, 0x1f, 0x63, 0x6f, - 0x6d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x5f, 0x76, 0x65, - 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x6f, 0x61, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, - 0x6f, 0x76, 0x65, 0x2d, 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2f, 0x70, 0x6f, 0x61, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, - 0x5f, 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2f, 0x70, 0x6f, 0x61, 0x2f, 0x76, 0x31, - 0x3b, 0x70, 0x6f, 0x61, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x58, 0xaa, 0x02, 0x1a, 0x53, - 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x56, 0x65, 0x6e, 0x74, 0x75, 0x72, - 0x65, 0x73, 0x2e, 0x50, 0x6f, 0x61, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x53, 0x74, 0x72, 0x61, - 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x56, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x5c, - 0x50, 0x6f, 0x61, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x26, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, - 0x6c, 0x6f, 0x76, 0x65, 0x56, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x5c, 0x50, 0x6f, 0x61, - 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x1c, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x56, 0x65, 0x6e, - 0x74, 0x75, 0x72, 0x65, 0x73, 0x3a, 0x3a, 0x50, 0x6f, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x75, 0x73, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x70, 0x6f, 0x61, 0x2f, 0x76, 0x31, + 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, + 0x12, 0x98, 0x01, 0x0a, 0x0c, 0x50, 0x6f, 0x61, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x12, 0x35, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x5f, + 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x6f, 0x61, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x61, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x6e, + 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x5f, 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, + 0x70, 0x6f, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x61, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x70, 0x6f, 0x61, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x82, 0x02, 0x0a, 0x1f, + 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x5f, + 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x6f, 0x61, 0x2e, 0x76, 0x31, 0x42, + 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, + 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x2d, 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2f, 0x70, + 0x6f, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, + 0x76, 0x65, 0x5f, 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2f, 0x70, 0x6f, 0x61, 0x2f, + 0x76, 0x31, 0x3b, 0x70, 0x6f, 0x61, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x58, 0xaa, 0x02, + 0x1a, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x56, 0x65, 0x6e, 0x74, + 0x75, 0x72, 0x65, 0x73, 0x2e, 0x50, 0x6f, 0x61, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x53, 0x74, + 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x56, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, + 0x73, 0x5c, 0x50, 0x6f, 0x61, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x26, 0x53, 0x74, 0x72, 0x61, 0x6e, + 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x56, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x5c, 0x50, + 0x6f, 0x61, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x1c, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x76, 0x65, 0x56, + 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x73, 0x3a, 0x3a, 0x50, 0x6f, 0x61, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1926,22 +2781,26 @@ func file_strangelove_ventures_poa_v1_query_proto_rawDescGZIP() []byte { return file_strangelove_ventures_poa_v1_query_proto_rawDescData } -var file_strangelove_ventures_poa_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_strangelove_ventures_poa_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_strangelove_ventures_poa_v1_query_proto_goTypes = []interface{}{ (*QueryPendingValidatorsRequest)(nil), // 0: strangelove_ventures.poa.v1.QueryPendingValidatorsRequest (*PendingValidatorsResponse)(nil), // 1: strangelove_ventures.poa.v1.PendingValidatorsResponse (*QueryConsensusPowerRequest)(nil), // 2: strangelove_ventures.poa.v1.QueryConsensusPowerRequest (*QueryConsensusPowerResponse)(nil), // 3: strangelove_ventures.poa.v1.QueryConsensusPowerResponse - (*Validator)(nil), // 4: strangelove_ventures.poa.v1.Validator + (*QueryPoaAuthorityRequest)(nil), // 4: strangelove_ventures.poa.v1.QueryPoaAuthorityRequest + (*QueryPoaAuthorityResponse)(nil), // 5: strangelove_ventures.poa.v1.QueryPoaAuthorityResponse + (*Validator)(nil), // 6: strangelove_ventures.poa.v1.Validator } var file_strangelove_ventures_poa_v1_query_proto_depIdxs = []int32{ - 4, // 0: strangelove_ventures.poa.v1.PendingValidatorsResponse.pending:type_name -> strangelove_ventures.poa.v1.Validator + 6, // 0: strangelove_ventures.poa.v1.PendingValidatorsResponse.pending:type_name -> strangelove_ventures.poa.v1.Validator 0, // 1: strangelove_ventures.poa.v1.Query.PendingValidators:input_type -> strangelove_ventures.poa.v1.QueryPendingValidatorsRequest 2, // 2: strangelove_ventures.poa.v1.Query.ConsensusPower:input_type -> strangelove_ventures.poa.v1.QueryConsensusPowerRequest - 1, // 3: strangelove_ventures.poa.v1.Query.PendingValidators:output_type -> strangelove_ventures.poa.v1.PendingValidatorsResponse - 3, // 4: strangelove_ventures.poa.v1.Query.ConsensusPower:output_type -> strangelove_ventures.poa.v1.QueryConsensusPowerResponse - 3, // [3:5] is the sub-list for method output_type - 1, // [1:3] is the sub-list for method input_type + 4, // 3: strangelove_ventures.poa.v1.Query.PoaAuthority:input_type -> strangelove_ventures.poa.v1.QueryPoaAuthorityRequest + 1, // 4: strangelove_ventures.poa.v1.Query.PendingValidators:output_type -> strangelove_ventures.poa.v1.PendingValidatorsResponse + 3, // 5: strangelove_ventures.poa.v1.Query.ConsensusPower:output_type -> strangelove_ventures.poa.v1.QueryConsensusPowerResponse + 5, // 6: strangelove_ventures.poa.v1.Query.PoaAuthority:output_type -> strangelove_ventures.poa.v1.QueryPoaAuthorityResponse + 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 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name @@ -2003,6 +2862,30 @@ func file_strangelove_ventures_poa_v1_query_proto_init() { return nil } } + file_strangelove_ventures_poa_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryPoaAuthorityRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_strangelove_ventures_poa_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryPoaAuthorityResponse); 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{ @@ -2010,7 +2893,7 @@ func file_strangelove_ventures_poa_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_strangelove_ventures_poa_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 6, NumExtensions: 0, NumServices: 1, }, diff --git a/api/v1/query_grpc.pb.go b/api/v1/query_grpc.pb.go index c148f43..73ba69a 100644 --- a/api/v1/query_grpc.pb.go +++ b/api/v1/query_grpc.pb.go @@ -21,6 +21,7 @@ const _ = grpc.SupportPackageIsVersion7 const ( Query_PendingValidators_FullMethodName = "/strangelove_ventures.poa.v1.Query/PendingValidators" Query_ConsensusPower_FullMethodName = "/strangelove_ventures.poa.v1.Query/ConsensusPower" + Query_PoaAuthority_FullMethodName = "/strangelove_ventures.poa.v1.Query/PoaAuthority" ) // QueryClient is the client API for Query service. @@ -31,6 +32,8 @@ type QueryClient interface { PendingValidators(ctx context.Context, in *QueryPendingValidatorsRequest, opts ...grpc.CallOption) (*PendingValidatorsResponse, error) // ConsensusPower returns the current consensus power of a validator. ConsensusPower(ctx context.Context, in *QueryConsensusPowerRequest, opts ...grpc.CallOption) (*QueryConsensusPowerResponse, error) + // POA Authority + PoaAuthority(ctx context.Context, in *QueryPoaAuthorityRequest, opts ...grpc.CallOption) (*QueryPoaAuthorityResponse, error) } type queryClient struct { @@ -59,6 +62,15 @@ func (c *queryClient) ConsensusPower(ctx context.Context, in *QueryConsensusPowe return out, nil } +func (c *queryClient) PoaAuthority(ctx context.Context, in *QueryPoaAuthorityRequest, opts ...grpc.CallOption) (*QueryPoaAuthorityResponse, error) { + out := new(QueryPoaAuthorityResponse) + err := c.cc.Invoke(ctx, Query_PoaAuthority_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. // All implementations must embed UnimplementedQueryServer // for forward compatibility @@ -67,6 +79,8 @@ type QueryServer interface { PendingValidators(context.Context, *QueryPendingValidatorsRequest) (*PendingValidatorsResponse, error) // ConsensusPower returns the current consensus power of a validator. ConsensusPower(context.Context, *QueryConsensusPowerRequest) (*QueryConsensusPowerResponse, error) + // POA Authority + PoaAuthority(context.Context, *QueryPoaAuthorityRequest) (*QueryPoaAuthorityResponse, error) mustEmbedUnimplementedQueryServer() } @@ -80,6 +94,9 @@ func (UnimplementedQueryServer) PendingValidators(context.Context, *QueryPending func (UnimplementedQueryServer) ConsensusPower(context.Context, *QueryConsensusPowerRequest) (*QueryConsensusPowerResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ConsensusPower not implemented") } +func (UnimplementedQueryServer) PoaAuthority(context.Context, *QueryPoaAuthorityRequest) (*QueryPoaAuthorityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoaAuthority not implemented") +} func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} // UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. @@ -129,6 +146,24 @@ func _Query_ConsensusPower_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _Query_PoaAuthority_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPoaAuthorityRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PoaAuthority(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_PoaAuthority_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PoaAuthority(ctx, req.(*QueryPoaAuthorityRequest)) + } + return interceptor(ctx, in, info, handler) +} + // Query_ServiceDesc is the grpc.ServiceDesc for Query service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -144,6 +179,10 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "ConsensusPower", Handler: _Query_ConsensusPower_Handler, }, + { + MethodName: "PoaAuthority", + Handler: _Query_PoaAuthority_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "strangelove_ventures/poa/v1/query.proto", diff --git a/keeper/query_server.go b/keeper/query_server.go index 332627f..07e4e3e 100644 --- a/keeper/query_server.go +++ b/keeper/query_server.go @@ -48,3 +48,8 @@ func (qs queryServer) PendingValidators(ctx context.Context, _ *poa.QueryPending return &poa.PendingValidatorsResponse{Pending: pending.Validators}, nil } + +// PoaAuthority implements poa.QueryServer. +func (qs queryServer) PoaAuthority(ctx context.Context, _ *poa.QueryPoaAuthorityRequest) (*poa.QueryPoaAuthorityResponse, error) { + return &poa.QueryPoaAuthorityResponse{Authority: qs.k.GetAdmin(ctx)}, nil +} diff --git a/keeper/query_server_test.go b/keeper/query_server_test.go index b5a5f73..211629a 100644 --- a/keeper/query_server_test.go +++ b/keeper/query_server_test.go @@ -49,3 +49,17 @@ func TestPendingValidatorsQuery(t *testing.T) { require.NotEqual(valAddr, val.OperatorAddress) } } + +func TestPOAAuthorityQuery(t *testing.T) { + f := SetupTest(t, 1_000_000) + require := require.New(t) + + currAdmin := f.k.GetAdmin(f.ctx) + require.NotEmpty(currAdmin) + + r, err := f.queryServer.PoaAuthority(f.ctx, &poa.QueryPoaAuthorityRequest{}) + require.NoError(err) + + require.NotEmpty(r.Authority) + require.Equal(currAdmin, r.Authority) +} diff --git a/proto/strangelove_ventures/poa/v1/query.proto b/proto/strangelove_ventures/poa/v1/query.proto index 50bff4c..a1bef0a 100644 --- a/proto/strangelove_ventures/poa/v1/query.proto +++ b/proto/strangelove_ventures/poa/v1/query.proto @@ -20,6 +20,11 @@ service Query { returns (QueryConsensusPowerResponse) { option (google.api.http).get = "/poa/v1/consensus_power"; } + // POA Authority + rpc PoaAuthority(QueryPoaAuthorityRequest) + returns (QueryPoaAuthorityResponse) { + option (google.api.http).get = "/poa/v1/authority"; + } } // QueryPendingValidatorsRequest is the request type for the Query/PendingValidators RPC method. @@ -42,3 +47,12 @@ message QueryConsensusPowerResponse { // consensus_power is the returned consensus power from the BFT consensus mechanism int64 consensus_power = 1; } + +// QueryPoaAuthorityRequest is the request type for the Query/PoaAuthority RPC method. +message QueryPoaAuthorityRequest {} + +// QueryPoaAuthorityResponse is the response type for the Query/QueryPoaAuthorityRequest RPC method. +message QueryPoaAuthorityResponse { + // authority is the module authority address + string authority = 1; +} diff --git a/query.pb.go b/query.pb.go index 3b519ab..e18f66c 100644 --- a/query.pb.go +++ b/query.pb.go @@ -204,11 +204,96 @@ func (m *QueryConsensusPowerResponse) GetConsensusPower() int64 { return 0 } +// QueryPoaAuthorityRequest is the request type for the Query/PoaAuthority RPC method. +type QueryPoaAuthorityRequest struct { +} + +func (m *QueryPoaAuthorityRequest) Reset() { *m = QueryPoaAuthorityRequest{} } +func (m *QueryPoaAuthorityRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPoaAuthorityRequest) ProtoMessage() {} +func (*QueryPoaAuthorityRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_676fcce3868e4c52, []int{4} +} +func (m *QueryPoaAuthorityRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPoaAuthorityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPoaAuthorityRequest.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 *QueryPoaAuthorityRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPoaAuthorityRequest.Merge(m, src) +} +func (m *QueryPoaAuthorityRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryPoaAuthorityRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPoaAuthorityRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPoaAuthorityRequest proto.InternalMessageInfo + +// QueryPoaAuthorityResponse is the response type for the Query/QueryPoaAuthorityRequest RPC method. +type QueryPoaAuthorityResponse struct { + // authority is the module authority address + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` +} + +func (m *QueryPoaAuthorityResponse) Reset() { *m = QueryPoaAuthorityResponse{} } +func (m *QueryPoaAuthorityResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPoaAuthorityResponse) ProtoMessage() {} +func (*QueryPoaAuthorityResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_676fcce3868e4c52, []int{5} +} +func (m *QueryPoaAuthorityResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPoaAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPoaAuthorityResponse.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 *QueryPoaAuthorityResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPoaAuthorityResponse.Merge(m, src) +} +func (m *QueryPoaAuthorityResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryPoaAuthorityResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPoaAuthorityResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPoaAuthorityResponse proto.InternalMessageInfo + +func (m *QueryPoaAuthorityResponse) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + func init() { proto.RegisterType((*QueryPendingValidatorsRequest)(nil), "strangelove_ventures.poa.v1.QueryPendingValidatorsRequest") proto.RegisterType((*PendingValidatorsResponse)(nil), "strangelove_ventures.poa.v1.PendingValidatorsResponse") proto.RegisterType((*QueryConsensusPowerRequest)(nil), "strangelove_ventures.poa.v1.QueryConsensusPowerRequest") proto.RegisterType((*QueryConsensusPowerResponse)(nil), "strangelove_ventures.poa.v1.QueryConsensusPowerResponse") + proto.RegisterType((*QueryPoaAuthorityRequest)(nil), "strangelove_ventures.poa.v1.QueryPoaAuthorityRequest") + proto.RegisterType((*QueryPoaAuthorityResponse)(nil), "strangelove_ventures.poa.v1.QueryPoaAuthorityResponse") } func init() { @@ -216,33 +301,37 @@ func init() { } var fileDescriptor_676fcce3868e4c52 = []byte{ - // 411 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0xeb, 0xd3, 0x30, - 0x1c, 0xc6, 0x9b, 0xcd, 0x3f, 0x18, 0x61, 0xba, 0x20, 0xb8, 0x75, 0xb3, 0x1b, 0x15, 0xdc, 0x60, - 0xd8, 0xb2, 0x09, 0x2a, 0x82, 0x07, 0x27, 0x0c, 0xbc, 0xcd, 0x1e, 0x3c, 0x78, 0x29, 0x59, 0x1b, - 0x6a, 0x61, 0x4b, 0xb2, 0x24, 0xad, 0x78, 0xf5, 0x15, 0x08, 0xbe, 0x05, 0x6f, 0xbe, 0x91, 0x1d, - 0x07, 0x5e, 0x3c, 0x88, 0xc8, 0xe6, 0x0b, 0x91, 0xfe, 0x75, 0xd3, 0x5a, 0xf9, 0xdd, 0x4a, 0x9f, - 0xe7, 0xfb, 0xe4, 0xf3, 0x7d, 0x12, 0x38, 0x92, 0x4a, 0x60, 0x1a, 0x90, 0x35, 0x8b, 0x89, 0x1b, - 0x13, 0xaa, 0x22, 0x41, 0xa4, 0xcd, 0x19, 0xb6, 0xe3, 0xa9, 0xbd, 0x8d, 0x88, 0x78, 0x67, 0x71, - 0xc1, 0x14, 0x43, 0xbd, 0x2a, 0xa3, 0xc5, 0x19, 0xb6, 0xe2, 0xa9, 0x7e, 0x2b, 0x60, 0x01, 0x4b, - 0x7d, 0x76, 0xf2, 0x95, 0x8d, 0xe8, 0xfd, 0x80, 0xb1, 0x60, 0x4d, 0x6c, 0xcc, 0x43, 0x1b, 0x53, - 0xca, 0x14, 0x56, 0x21, 0xa3, 0x32, 0x57, 0xc7, 0x75, 0x27, 0x73, 0x2c, 0xf0, 0xa6, 0x70, 0x4e, - 0xea, 0x9c, 0x31, 0x5e, 0x87, 0x3e, 0x56, 0x4c, 0x64, 0x66, 0x73, 0x00, 0xef, 0xbc, 0x4c, 0xb0, - 0x97, 0x84, 0xfa, 0x21, 0x0d, 0x5e, 0x15, 0xb2, 0x74, 0xc8, 0x36, 0x22, 0x52, 0x99, 0x1e, 0xec, - 0x56, 0x68, 0x92, 0x33, 0x2a, 0x09, 0x5a, 0xc0, 0xab, 0x3c, 0x13, 0x3b, 0x60, 0xd8, 0x1c, 0x5f, - 0x9f, 0xdd, 0xb3, 0x6a, 0xf6, 0xb6, 0xca, 0x84, 0xf9, 0xa5, 0xdd, 0xf7, 0x81, 0xe6, 0x14, 0xc3, - 0xe6, 0x0b, 0xa8, 0xa7, 0x14, 0xcf, 0x93, 0x54, 0x2a, 0x23, 0xb9, 0x64, 0x6f, 0x89, 0xc8, 0x11, - 0xd0, 0x04, 0xb6, 0x4b, 0x6c, 0x17, 0xfb, 0xbe, 0x20, 0x52, 0x76, 0xc0, 0x10, 0x8c, 0xaf, 0x39, - 0x37, 0x4b, 0xe1, 0x59, 0xf6, 0xdf, 0x5c, 0xc0, 0x5e, 0x65, 0x54, 0x4e, 0x3c, 0x82, 0x37, 0xbc, - 0x42, 0x71, 0x79, 0x22, 0xa5, 0x49, 0x4d, 0xa7, 0xe5, 0x9d, 0x0d, 0xcc, 0xbe, 0x35, 0xe0, 0xe5, - 0x34, 0x08, 0x7d, 0x06, 0xb0, 0xfd, 0x57, 0x05, 0xe8, 0x49, 0xed, 0xa6, 0xb5, 0x9d, 0xea, 0x0f, - 0x6b, 0x67, 0xff, 0x59, 0xb7, 0x69, 0xbe, 0xff, 0xf2, 0xf3, 0x63, 0xa3, 0x8f, 0xf4, 0xf2, 0xde, - 0x33, 0xab, 0x1b, 0xff, 0xe6, 0xfa, 0x04, 0x60, 0xeb, 0x7c, 0x77, 0xf4, 0xe8, 0xff, 0xa8, 0x95, - 0xc5, 0xeb, 0x8f, 0x2f, 0x3e, 0x98, 0x93, 0x0e, 0x52, 0xd2, 0x2e, 0xba, 0x5d, 0x90, 0xfe, 0x51, - 0xfa, 0xfc, 0xe9, 0xee, 0x60, 0x80, 0xfd, 0xc1, 0x00, 0x3f, 0x0e, 0x06, 0xf8, 0x70, 0x34, 0xb4, - 0xfd, 0xd1, 0xd0, 0xbe, 0x1e, 0x0d, 0xed, 0xf5, 0xdd, 0x20, 0x54, 0x6f, 0xa2, 0x95, 0xe5, 0xb1, - 0x8d, 0x7d, 0x72, 0xfc, 0xfd, 0xd3, 0x97, 0xbc, 0xba, 0x92, 0xbe, 0xde, 0x07, 0xbf, 0x02, 0x00, - 0x00, 0xff, 0xff, 0x2c, 0xb8, 0x2b, 0x91, 0x90, 0x03, 0x00, 0x00, + // 478 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x4d, 0x6b, 0x13, 0x41, + 0x1c, 0xc6, 0x33, 0xc6, 0x17, 0x3a, 0x4a, 0x35, 0xa3, 0x60, 0xb2, 0x8d, 0x9b, 0x32, 0x82, 0x0d, + 0x14, 0x77, 0x69, 0xc5, 0x57, 0xf0, 0xd0, 0x0a, 0x05, 0x6f, 0x35, 0x07, 0x0f, 0x5e, 0xc2, 0x74, + 0x77, 0xd8, 0x2e, 0xa4, 0xf3, 0x9f, 0xce, 0xcc, 0xae, 0xf4, 0xea, 0x27, 0x10, 0xbc, 0xf8, 0x01, + 0xbc, 0xf9, 0x45, 0x7a, 0x2c, 0x78, 0xf1, 0x24, 0x92, 0xf8, 0x1d, 0xbc, 0xca, 0xbe, 0xcc, 0x36, + 0xb5, 0xdb, 0x8d, 0xde, 0xc2, 0x3c, 0xff, 0xe7, 0x3f, 0xbf, 0x3c, 0xcf, 0x0e, 0x5e, 0xd3, 0x46, + 0x31, 0x11, 0xf1, 0x09, 0xa4, 0x7c, 0x9c, 0x72, 0x61, 0x12, 0xc5, 0xb5, 0x2f, 0x81, 0xf9, 0xe9, + 0x86, 0x7f, 0x98, 0x70, 0x75, 0xe4, 0x49, 0x05, 0x06, 0xc8, 0x4a, 0xdd, 0xa0, 0x27, 0x81, 0x79, + 0xe9, 0x86, 0x73, 0x27, 0x82, 0x08, 0xf2, 0x39, 0x3f, 0xfb, 0x55, 0x58, 0x9c, 0x7e, 0x04, 0x10, + 0x4d, 0xb8, 0xcf, 0x64, 0xec, 0x33, 0x21, 0xc0, 0x30, 0x13, 0x83, 0xd0, 0xa5, 0x3a, 0x6c, 0xba, + 0x59, 0x32, 0xc5, 0x0e, 0xec, 0xe4, 0x7a, 0xd3, 0x64, 0xca, 0x26, 0x71, 0xc8, 0x0c, 0xa8, 0x62, + 0x98, 0x0e, 0xf0, 0xbd, 0x37, 0x19, 0xf6, 0x2e, 0x17, 0x61, 0x2c, 0xa2, 0xb7, 0x56, 0xd6, 0x23, + 0x7e, 0x98, 0x70, 0x6d, 0x68, 0x80, 0x7b, 0x35, 0x9a, 0x96, 0x20, 0x34, 0x27, 0x3b, 0xf8, 0x9a, + 0x2c, 0xc4, 0x2e, 0x5a, 0x6d, 0x0f, 0xaf, 0x6f, 0x3e, 0xf0, 0x1a, 0xfe, 0xb7, 0x57, 0x6d, 0xd8, + 0xbe, 0x7c, 0xfc, 0x63, 0xd0, 0x1a, 0x59, 0x33, 0x7d, 0x8d, 0x9d, 0x9c, 0xe2, 0x55, 0xb6, 0x55, + 0xe8, 0x44, 0xef, 0xc2, 0x7b, 0xae, 0x4a, 0x04, 0xb2, 0x8e, 0x3b, 0x15, 0xf6, 0x98, 0x85, 0xa1, + 0xe2, 0x5a, 0x77, 0xd1, 0x2a, 0x1a, 0x2e, 0x8d, 0x6e, 0x55, 0xc2, 0x56, 0x71, 0x4e, 0x77, 0xf0, + 0x4a, 0xed, 0xaa, 0x92, 0x78, 0x0d, 0xdf, 0x0c, 0xac, 0x32, 0x96, 0x99, 0x94, 0x6f, 0x6a, 0x8f, + 0x96, 0x83, 0x33, 0x06, 0xea, 0xe0, 0x6e, 0x11, 0x0c, 0xb0, 0xad, 0xc4, 0xec, 0x83, 0x8a, 0xcd, + 0x91, 0xcd, 0xe4, 0x39, 0xee, 0xd5, 0x68, 0xe5, 0x0d, 0x7d, 0xbc, 0xc4, 0xec, 0x61, 0x49, 0x79, + 0x7a, 0xb0, 0xf9, 0xbb, 0x8d, 0xaf, 0xe4, 0x5e, 0xf2, 0x15, 0xe1, 0xce, 0xb9, 0x64, 0xc9, 0x8b, + 0xc6, 0x00, 0x1b, 0xab, 0x72, 0x9e, 0x34, 0x7a, 0x2f, 0x6c, 0x91, 0xd2, 0x0f, 0xdf, 0x7e, 0x7d, + 0xba, 0xd4, 0x27, 0x4e, 0xf5, 0x39, 0x15, 0xa3, 0xe3, 0xf4, 0x94, 0xeb, 0x0b, 0xc2, 0xcb, 0x67, + 0x23, 0x25, 0x4f, 0x17, 0xa3, 0xd6, 0xf6, 0xe9, 0x3c, 0xfb, 0x7f, 0x63, 0x49, 0x3a, 0xc8, 0x49, + 0x7b, 0xe4, 0xae, 0x25, 0xfd, 0xab, 0x4b, 0xf2, 0x19, 0xe1, 0x1b, 0xf3, 0xad, 0x90, 0xc7, 0xff, + 0x90, 0xe7, 0xf9, 0x86, 0x17, 0x44, 0x79, 0x61, 0xf9, 0xb4, 0x97, 0x03, 0xde, 0x26, 0x1d, 0x0b, + 0x58, 0x35, 0xbf, 0xfd, 0xf2, 0x78, 0xea, 0xa2, 0x93, 0xa9, 0x8b, 0x7e, 0x4e, 0x5d, 0xf4, 0x71, + 0xe6, 0xb6, 0x4e, 0x66, 0x6e, 0xeb, 0xfb, 0xcc, 0x6d, 0xbd, 0xbb, 0x1f, 0xc5, 0x66, 0x3f, 0xd9, + 0xf3, 0x02, 0x38, 0xf0, 0xe7, 0xae, 0x7d, 0x38, 0xff, 0x76, 0xf7, 0xae, 0xe6, 0xef, 0xf5, 0xd1, + 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x54, 0x0a, 0xb4, 0xfe, 0x82, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -261,6 +350,8 @@ type QueryClient interface { PendingValidators(ctx context.Context, in *QueryPendingValidatorsRequest, opts ...grpc.CallOption) (*PendingValidatorsResponse, error) // ConsensusPower returns the current consensus power of a validator. ConsensusPower(ctx context.Context, in *QueryConsensusPowerRequest, opts ...grpc.CallOption) (*QueryConsensusPowerResponse, error) + // POA Authority + PoaAuthority(ctx context.Context, in *QueryPoaAuthorityRequest, opts ...grpc.CallOption) (*QueryPoaAuthorityResponse, error) } type queryClient struct { @@ -289,12 +380,23 @@ func (c *queryClient) ConsensusPower(ctx context.Context, in *QueryConsensusPowe return out, nil } +func (c *queryClient) PoaAuthority(ctx context.Context, in *QueryPoaAuthorityRequest, opts ...grpc.CallOption) (*QueryPoaAuthorityResponse, error) { + out := new(QueryPoaAuthorityResponse) + err := c.cc.Invoke(ctx, "/strangelove_ventures.poa.v1.Query/PoaAuthority", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // PendingValidators returns currently pending validators of the module. PendingValidators(context.Context, *QueryPendingValidatorsRequest) (*PendingValidatorsResponse, error) // ConsensusPower returns the current consensus power of a validator. ConsensusPower(context.Context, *QueryConsensusPowerRequest) (*QueryConsensusPowerResponse, error) + // POA Authority + PoaAuthority(context.Context, *QueryPoaAuthorityRequest) (*QueryPoaAuthorityResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -307,6 +409,9 @@ func (*UnimplementedQueryServer) PendingValidators(ctx context.Context, req *Que func (*UnimplementedQueryServer) ConsensusPower(ctx context.Context, req *QueryConsensusPowerRequest) (*QueryConsensusPowerResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ConsensusPower not implemented") } +func (*UnimplementedQueryServer) PoaAuthority(ctx context.Context, req *QueryPoaAuthorityRequest) (*QueryPoaAuthorityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoaAuthority not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -348,6 +453,24 @@ func _Query_ConsensusPower_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _Query_PoaAuthority_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPoaAuthorityRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PoaAuthority(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/strangelove_ventures.poa.v1.Query/PoaAuthority", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PoaAuthority(ctx, req.(*QueryPoaAuthorityRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "strangelove_ventures.poa.v1.Query", HandlerType: (*QueryServer)(nil), @@ -360,6 +483,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "ConsensusPower", Handler: _Query_ConsensusPower_Handler, }, + { + MethodName: "PoaAuthority", + Handler: _Query_PoaAuthority_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "strangelove_ventures/poa/v1/query.proto", @@ -483,6 +610,59 @@ func (m *QueryConsensusPowerResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } +func (m *QueryPoaAuthorityRequest) 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 *QueryPoaAuthorityRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPoaAuthorityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryPoaAuthorityResponse) 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 *QueryPoaAuthorityResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPoaAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -543,6 +723,28 @@ func (m *QueryConsensusPowerResponse) Size() (n int) { return n } +func (m *QueryPoaAuthorityRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryPoaAuthorityResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -834,6 +1036,138 @@ func (m *QueryConsensusPowerResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryPoaAuthorityRequest) 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: QueryPoaAuthorityRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPoaAuthorityRequest: 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 *QueryPoaAuthorityResponse) 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: QueryPoaAuthorityResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPoaAuthorityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/query.pb.gw.go b/query.pb.gw.go index de123ed..6b95ad6 100644 --- a/query.pb.gw.go +++ b/query.pb.gw.go @@ -87,6 +87,24 @@ func local_request_Query_ConsensusPower_0(ctx context.Context, marshaler runtime } +func request_Query_PoaAuthority_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPoaAuthorityRequest + var metadata runtime.ServerMetadata + + msg, err := client.PoaAuthority(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PoaAuthority_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPoaAuthorityRequest + var metadata runtime.ServerMetadata + + msg, err := server.PoaAuthority(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -139,6 +157,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_PoaAuthority_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_PoaAuthority_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_PoaAuthority_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -220,6 +261,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_PoaAuthority_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_PoaAuthority_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_PoaAuthority_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -227,10 +288,14 @@ var ( pattern_Query_PendingValidators_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"poa", "v1", "pending_validators"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_ConsensusPower_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"poa", "v1", "consensus_power"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PoaAuthority_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"poa", "v1", "authority"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( forward_Query_PendingValidators_0 = runtime.ForwardResponseMessage forward_Query_ConsensusPower_0 = runtime.ForwardResponseMessage + + forward_Query_PoaAuthority_0 = runtime.ForwardResponseMessage )