diff --git a/proto/pubsub/v1/query.proto b/proto/pubsub/v1/query.proto index ab0c97a7..02ebfd8f 100644 --- a/proto/pubsub/v1/query.proto +++ b/proto/pubsub/v1/query.proto @@ -30,6 +30,10 @@ service Query { option (google.api.http).get = "/sommelier/pubsub/v1/subscribers"; } + rpc QueryValidatorSubscribers(QueryValidatorSubscribersRequest) returns (QueryValidatorSubscribersResponse) { + option (google.api.http).get = "/sommelier/pubsub/v1/validator_subscribers"; + } + rpc QueryPublisherIntent(QueryPublisherIntentRequest) returns (QueryPublisherIntentResponse) { option (google.api.http).get = "/sommelier/pubsub/v1/publisher_intents/{publisher_domain}/{subscription_id}"; } @@ -109,6 +113,12 @@ message QuerySubscribersResponse { repeated Subscriber subscribers = 1; } +message QueryValidatorSubscribersRequest {} + +message QueryValidatorSubscribersResponse { + repeated Subscriber subscribers = 1; +} + message QueryPublisherIntentRequest { string publisher_domain = 1; string subscription_id = 2; diff --git a/somm_proto/src/prost/pubsub.v1.rs b/somm_proto/src/prost/pubsub.v1.rs index 5c7e9771..c002d481 100644 --- a/somm_proto/src/prost/pubsub.v1.rs +++ b/somm_proto/src/prost/pubsub.v1.rs @@ -459,6 +459,13 @@ pub struct QuerySubscribersResponse { pub subscribers: ::prost::alloc::vec::Vec, } #[derive(Clone, PartialEq, ::prost::Message)] +pub struct QueryValidatorSubscribersRequest {} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct QueryValidatorSubscribersResponse { + #[prost(message, repeated, tag = "1")] + pub subscribers: ::prost::alloc::vec::Vec, +} +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherIntentRequest { #[prost(string, tag = "1")] pub publisher_domain: ::prost::alloc::string::String, @@ -666,6 +673,22 @@ pub mod query_client { let path = http::uri::PathAndQuery::from_static("/pubsub.v1.Query/QuerySubscribers"); self.inner.unary(request.into_request(), path, codec).await } + pub async fn query_validator_subscribers( + &mut self, + request: impl tonic::IntoRequest, + ) -> Result, tonic::Status> + { + self.inner.ready().await.map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = + http::uri::PathAndQuery::from_static("/pubsub.v1.Query/QueryValidatorSubscribers"); + self.inner.unary(request.into_request(), path, codec).await + } pub async fn query_publisher_intent( &mut self, request: impl tonic::IntoRequest, diff --git a/x/pubsub/client/cli/query.go b/x/pubsub/client/cli/query.go index 38f467c0..d178501d 100644 --- a/x/pubsub/client/cli/query.go +++ b/x/pubsub/client/cli/query.go @@ -26,6 +26,7 @@ func GetQueryCmd(queryRoute string) *cobra.Command { CmdQueryPublishers(), CmdQuerySubscriber(), CmdQuerySubscribers(), + CmdQueryValidatorSubscribers(), CmdQueryPublisherIntent(), CmdQueryPublisherIntents(), CmdQueryPublisherIntentsByPublisherDomain(), @@ -186,6 +187,34 @@ func CmdQuerySubscribers() *cobra.Command { return cmd } +func CmdQueryValidatorSubscribers() *cobra.Command { + cmd := &cobra.Command{ + Use: "validator-subscribers", + Args: cobra.NoArgs, + Short: "Query subscribers who are validators", + RunE: func(cmd *cobra.Command, args []string) error { + ctx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(ctx) + req := &types.QueryValidatorSubscribersRequest{} + + res, err := queryClient.QueryValidatorSubscribers(cmd.Context(), req) + if err != nil { + return err + } + + return ctx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + func CmdQueryPublisherIntent() *cobra.Command { cmd := &cobra.Command{ Use: "publisher-intent", diff --git a/x/pubsub/keeper/keeper.go b/x/pubsub/keeper/keeper.go index 5215552f..c3a0a488 100644 --- a/x/pubsub/keeper/keeper.go +++ b/x/pubsub/keeper/keeper.go @@ -11,6 +11,7 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/peggyjv/sommelier/v7/x/pubsub/types" ) @@ -164,6 +165,29 @@ func (k Keeper) GetSubscribers(ctx sdk.Context) (subscribers []*types.Subscriber return } +func (k Keeper) GetValidatorSubscribers(ctx sdk.Context) (subscribers []*types.Subscriber) { + allSubscribers := k.GetSubscribers(ctx) + for _, subscriber := range allSubscribers { + subscriberAddress, err := sdk.AccAddressFromBech32(subscriber.Address) + if err != nil { + ctx.Logger().Error("subscriber address %s not valid bech32 but in state", subscriber.Address) + continue + } + var validatorI stakingtypes.ValidatorI + if validator := k.gravityKeeper.GetOrchestratorValidatorAddress(ctx, subscriberAddress); validator == nil { + validatorI = k.stakingKeeper.Validator(ctx, sdk.ValAddress(subscriberAddress)) + } else { + validatorI = k.stakingKeeper.Validator(ctx, validator) + } + + if validatorI != nil { + subscribers = append(subscribers, subscriber) + } + } + + return +} + func (k Keeper) DeleteSubscriber(ctx sdk.Context, subscriberAddress sdk.AccAddress) { ctx.KVStore(k.storeKey).Delete(types.GetSubscriberKey(subscriberAddress)) diff --git a/x/pubsub/keeper/proposal_handler.go b/x/pubsub/keeper/proposal_handler.go index 42382b85..fc70e6a5 100644 --- a/x/pubsub/keeper/proposal_handler.go +++ b/x/pubsub/keeper/proposal_handler.go @@ -9,11 +9,6 @@ import ( // HandleAddPublisherProposal is a handler for executing a passed community publisher addition proposal func HandleAddPublisherProposal(ctx sdk.Context, k Keeper, p types.AddPublisherProposal) error { - _, found := k.GetPublisher(ctx, p.Domain) - if found { - return errorsmod.Wrapf(types.ErrAlreadyExists, "publisher already exists with domain: %s", p.Domain) - } - publisher := types.Publisher{ Domain: p.Domain, Address: p.Address, diff --git a/x/pubsub/keeper/query_server.go b/x/pubsub/keeper/query_server.go index 33c6d968..21dbcbad 100644 --- a/x/pubsub/keeper/query_server.go +++ b/x/pubsub/keeper/query_server.go @@ -73,6 +73,12 @@ func (k Keeper) QuerySubscribers(c context.Context, _ *types.QuerySubscribersReq }, nil } +func (k Keeper) QueryValidatorSubscribers(c context.Context, _ *types.QueryValidatorSubscribersRequest) (*types.QueryValidatorSubscribersResponse, error) { + return &types.QueryValidatorSubscribersResponse{ + Subscribers: k.GetValidatorSubscribers(sdk.UnwrapSDKContext(c)), + }, nil +} + func (k Keeper) QueryPublisherIntent(c context.Context, req *types.QueryPublisherIntentRequest) (*types.QueryPublisherIntentResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "empty request") diff --git a/x/pubsub/types/query.pb.go b/x/pubsub/types/query.pb.go index 0d720002..d3d51941 100644 --- a/x/pubsub/types/query.pb.go +++ b/x/pubsub/types/query.pb.go @@ -446,6 +446,86 @@ func (m *QuerySubscribersResponse) GetSubscribers() []*Subscriber { return nil } +type QueryValidatorSubscribersRequest struct { +} + +func (m *QueryValidatorSubscribersRequest) Reset() { *m = QueryValidatorSubscribersRequest{} } +func (m *QueryValidatorSubscribersRequest) String() string { return proto.CompactTextString(m) } +func (*QueryValidatorSubscribersRequest) ProtoMessage() {} +func (*QueryValidatorSubscribersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1eae429cdae9f3b6, []int{10} +} +func (m *QueryValidatorSubscribersRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryValidatorSubscribersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryValidatorSubscribersRequest.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 *QueryValidatorSubscribersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryValidatorSubscribersRequest.Merge(m, src) +} +func (m *QueryValidatorSubscribersRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryValidatorSubscribersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryValidatorSubscribersRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryValidatorSubscribersRequest proto.InternalMessageInfo + +type QueryValidatorSubscribersResponse struct { + Subscribers []*Subscriber `protobuf:"bytes,1,rep,name=subscribers,proto3" json:"subscribers,omitempty"` +} + +func (m *QueryValidatorSubscribersResponse) Reset() { *m = QueryValidatorSubscribersResponse{} } +func (m *QueryValidatorSubscribersResponse) String() string { return proto.CompactTextString(m) } +func (*QueryValidatorSubscribersResponse) ProtoMessage() {} +func (*QueryValidatorSubscribersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1eae429cdae9f3b6, []int{11} +} +func (m *QueryValidatorSubscribersResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryValidatorSubscribersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryValidatorSubscribersResponse.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 *QueryValidatorSubscribersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryValidatorSubscribersResponse.Merge(m, src) +} +func (m *QueryValidatorSubscribersResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryValidatorSubscribersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryValidatorSubscribersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryValidatorSubscribersResponse proto.InternalMessageInfo + +func (m *QueryValidatorSubscribersResponse) GetSubscribers() []*Subscriber { + if m != nil { + return m.Subscribers + } + return nil +} + type QueryPublisherIntentRequest struct { PublisherDomain string `protobuf:"bytes,1,opt,name=publisher_domain,json=publisherDomain,proto3" json:"publisher_domain,omitempty"` SubscriptionId string `protobuf:"bytes,2,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` @@ -455,7 +535,7 @@ func (m *QueryPublisherIntentRequest) Reset() { *m = QueryPublisherInten func (m *QueryPublisherIntentRequest) String() string { return proto.CompactTextString(m) } func (*QueryPublisherIntentRequest) ProtoMessage() {} func (*QueryPublisherIntentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{10} + return fileDescriptor_1eae429cdae9f3b6, []int{12} } func (m *QueryPublisherIntentRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -506,7 +586,7 @@ func (m *QueryPublisherIntentResponse) Reset() { *m = QueryPublisherInte func (m *QueryPublisherIntentResponse) String() string { return proto.CompactTextString(m) } func (*QueryPublisherIntentResponse) ProtoMessage() {} func (*QueryPublisherIntentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{11} + return fileDescriptor_1eae429cdae9f3b6, []int{13} } func (m *QueryPublisherIntentResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -549,7 +629,7 @@ func (m *QueryPublisherIntentsRequest) Reset() { *m = QueryPublisherInte func (m *QueryPublisherIntentsRequest) String() string { return proto.CompactTextString(m) } func (*QueryPublisherIntentsRequest) ProtoMessage() {} func (*QueryPublisherIntentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{12} + return fileDescriptor_1eae429cdae9f3b6, []int{14} } func (m *QueryPublisherIntentsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -586,7 +666,7 @@ func (m *QueryPublisherIntentsResponse) Reset() { *m = QueryPublisherInt func (m *QueryPublisherIntentsResponse) String() string { return proto.CompactTextString(m) } func (*QueryPublisherIntentsResponse) ProtoMessage() {} func (*QueryPublisherIntentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{13} + return fileDescriptor_1eae429cdae9f3b6, []int{15} } func (m *QueryPublisherIntentsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -634,7 +714,7 @@ func (m *QueryPublisherIntentsByPublisherDomainRequest) String() string { } func (*QueryPublisherIntentsByPublisherDomainRequest) ProtoMessage() {} func (*QueryPublisherIntentsByPublisherDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{14} + return fileDescriptor_1eae429cdae9f3b6, []int{16} } func (m *QueryPublisherIntentsByPublisherDomainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -682,7 +762,7 @@ func (m *QueryPublisherIntentsByPublisherDomainResponse) String() string { } func (*QueryPublisherIntentsByPublisherDomainResponse) ProtoMessage() {} func (*QueryPublisherIntentsByPublisherDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{15} + return fileDescriptor_1eae429cdae9f3b6, []int{17} } func (m *QueryPublisherIntentsByPublisherDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -730,7 +810,7 @@ func (m *QueryPublisherIntentsBySubscriptionIDRequest) String() string { } func (*QueryPublisherIntentsBySubscriptionIDRequest) ProtoMessage() {} func (*QueryPublisherIntentsBySubscriptionIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{16} + return fileDescriptor_1eae429cdae9f3b6, []int{18} } func (m *QueryPublisherIntentsBySubscriptionIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -778,7 +858,7 @@ func (m *QueryPublisherIntentsBySubscriptionIDResponse) String() string { } func (*QueryPublisherIntentsBySubscriptionIDResponse) ProtoMessage() {} func (*QueryPublisherIntentsBySubscriptionIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{17} + return fileDescriptor_1eae429cdae9f3b6, []int{19} } func (m *QueryPublisherIntentsBySubscriptionIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -823,7 +903,7 @@ func (m *QuerySubscriberIntentRequest) Reset() { *m = QuerySubscriberInt func (m *QuerySubscriberIntentRequest) String() string { return proto.CompactTextString(m) } func (*QuerySubscriberIntentRequest) ProtoMessage() {} func (*QuerySubscriberIntentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{18} + return fileDescriptor_1eae429cdae9f3b6, []int{20} } func (m *QuerySubscriberIntentRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -874,7 +954,7 @@ func (m *QuerySubscriberIntentResponse) Reset() { *m = QuerySubscriberIn func (m *QuerySubscriberIntentResponse) String() string { return proto.CompactTextString(m) } func (*QuerySubscriberIntentResponse) ProtoMessage() {} func (*QuerySubscriberIntentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{19} + return fileDescriptor_1eae429cdae9f3b6, []int{21} } func (m *QuerySubscriberIntentResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -917,7 +997,7 @@ func (m *QuerySubscriberIntentsRequest) Reset() { *m = QuerySubscriberIn func (m *QuerySubscriberIntentsRequest) String() string { return proto.CompactTextString(m) } func (*QuerySubscriberIntentsRequest) ProtoMessage() {} func (*QuerySubscriberIntentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{20} + return fileDescriptor_1eae429cdae9f3b6, []int{22} } func (m *QuerySubscriberIntentsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -954,7 +1034,7 @@ func (m *QuerySubscriberIntentsResponse) Reset() { *m = QuerySubscriberI func (m *QuerySubscriberIntentsResponse) String() string { return proto.CompactTextString(m) } func (*QuerySubscriberIntentsResponse) ProtoMessage() {} func (*QuerySubscriberIntentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{21} + return fileDescriptor_1eae429cdae9f3b6, []int{23} } func (m *QuerySubscriberIntentsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1002,7 +1082,7 @@ func (m *QuerySubscriberIntentsBySubscriberAddressRequest) String() string { } func (*QuerySubscriberIntentsBySubscriberAddressRequest) ProtoMessage() {} func (*QuerySubscriberIntentsBySubscriberAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{22} + return fileDescriptor_1eae429cdae9f3b6, []int{24} } func (m *QuerySubscriberIntentsBySubscriberAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1050,7 +1130,7 @@ func (m *QuerySubscriberIntentsBySubscriberAddressResponse) String() string { } func (*QuerySubscriberIntentsBySubscriberAddressResponse) ProtoMessage() {} func (*QuerySubscriberIntentsBySubscriberAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{23} + return fileDescriptor_1eae429cdae9f3b6, []int{25} } func (m *QuerySubscriberIntentsBySubscriberAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1098,7 +1178,7 @@ func (m *QuerySubscriberIntentsBySubscriptionIDRequest) String() string { } func (*QuerySubscriberIntentsBySubscriptionIDRequest) ProtoMessage() {} func (*QuerySubscriberIntentsBySubscriptionIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{24} + return fileDescriptor_1eae429cdae9f3b6, []int{26} } func (m *QuerySubscriberIntentsBySubscriptionIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1146,7 +1226,7 @@ func (m *QuerySubscriberIntentsBySubscriptionIDResponse) String() string { } func (*QuerySubscriberIntentsBySubscriptionIDResponse) ProtoMessage() {} func (*QuerySubscriberIntentsBySubscriptionIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{25} + return fileDescriptor_1eae429cdae9f3b6, []int{27} } func (m *QuerySubscriberIntentsBySubscriptionIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1194,7 +1274,7 @@ func (m *QuerySubscriberIntentsByPublisherDomainRequest) String() string { } func (*QuerySubscriberIntentsByPublisherDomainRequest) ProtoMessage() {} func (*QuerySubscriberIntentsByPublisherDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{26} + return fileDescriptor_1eae429cdae9f3b6, []int{28} } func (m *QuerySubscriberIntentsByPublisherDomainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1242,7 +1322,7 @@ func (m *QuerySubscriberIntentsByPublisherDomainResponse) String() string { } func (*QuerySubscriberIntentsByPublisherDomainResponse) ProtoMessage() {} func (*QuerySubscriberIntentsByPublisherDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{27} + return fileDescriptor_1eae429cdae9f3b6, []int{29} } func (m *QuerySubscriberIntentsByPublisherDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1286,7 +1366,7 @@ func (m *QueryDefaultSubscriptionRequest) Reset() { *m = QueryDefaultSub func (m *QueryDefaultSubscriptionRequest) String() string { return proto.CompactTextString(m) } func (*QueryDefaultSubscriptionRequest) ProtoMessage() {} func (*QueryDefaultSubscriptionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{28} + return fileDescriptor_1eae429cdae9f3b6, []int{30} } func (m *QueryDefaultSubscriptionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1330,7 +1410,7 @@ func (m *QueryDefaultSubscriptionResponse) Reset() { *m = QueryDefaultSu func (m *QueryDefaultSubscriptionResponse) String() string { return proto.CompactTextString(m) } func (*QueryDefaultSubscriptionResponse) ProtoMessage() {} func (*QueryDefaultSubscriptionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{29} + return fileDescriptor_1eae429cdae9f3b6, []int{31} } func (m *QueryDefaultSubscriptionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1373,7 +1453,7 @@ func (m *QueryDefaultSubscriptionsRequest) Reset() { *m = QueryDefaultSu func (m *QueryDefaultSubscriptionsRequest) String() string { return proto.CompactTextString(m) } func (*QueryDefaultSubscriptionsRequest) ProtoMessage() {} func (*QueryDefaultSubscriptionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{30} + return fileDescriptor_1eae429cdae9f3b6, []int{32} } func (m *QueryDefaultSubscriptionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1410,7 +1490,7 @@ func (m *QueryDefaultSubscriptionsResponse) Reset() { *m = QueryDefaultS func (m *QueryDefaultSubscriptionsResponse) String() string { return proto.CompactTextString(m) } func (*QueryDefaultSubscriptionsResponse) ProtoMessage() {} func (*QueryDefaultSubscriptionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1eae429cdae9f3b6, []int{31} + return fileDescriptor_1eae429cdae9f3b6, []int{33} } func (m *QueryDefaultSubscriptionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1457,6 +1537,8 @@ func init() { proto.RegisterType((*QuerySubscriberResponse)(nil), "pubsub.v1.QuerySubscriberResponse") proto.RegisterType((*QuerySubscribersRequest)(nil), "pubsub.v1.QuerySubscribersRequest") proto.RegisterType((*QuerySubscribersResponse)(nil), "pubsub.v1.QuerySubscribersResponse") + proto.RegisterType((*QueryValidatorSubscribersRequest)(nil), "pubsub.v1.QueryValidatorSubscribersRequest") + proto.RegisterType((*QueryValidatorSubscribersResponse)(nil), "pubsub.v1.QueryValidatorSubscribersResponse") proto.RegisterType((*QueryPublisherIntentRequest)(nil), "pubsub.v1.QueryPublisherIntentRequest") proto.RegisterType((*QueryPublisherIntentResponse)(nil), "pubsub.v1.QueryPublisherIntentResponse") proto.RegisterType((*QueryPublisherIntentsRequest)(nil), "pubsub.v1.QueryPublisherIntentsRequest") @@ -1484,85 +1566,88 @@ func init() { func init() { proto.RegisterFile("pubsub/v1/query.proto", fileDescriptor_1eae429cdae9f3b6) } var fileDescriptor_1eae429cdae9f3b6 = []byte{ - // 1233 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x6f, 0x1c, 0x45, - 0x10, 0xf6, 0x04, 0x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9, - 0xf9, 0x4c, 0xc4, 0xa8, 0x0c, 0x9b, 0x30, 0x96, 0x3d, 0xe2, 0xd9, 0x56, 0xe0, 0x54, 0x1c, 0x24, - 0x2c, 0x84, 0x24, 0x5d, 0xd2, 0x93, 0xec, 0xc0, 0x78, 0x67, 0x6d, 0xef, 0x36, 0x7c, 0xbb, 0xe1, - 0xf7, 0xde, 0x0d, 0x38, 0x0b, 0x43, 0x3c, 0xb0, 0x77, 0xd4, 0xf5, 0x65, 0xa7, 0x32, 0x76, 0x82, - 0x79, 0x9e, 0x4e, 0x9a, 0xef, 0x56, 0x88, 0x0d, 0x17, 0xc4, 0x29, 0x39, 0x97, 0xb7, 0x93, 0x39, - 0x1d, 0x76, 0xc6, 0xeb, 0x57, 0x14, 0xbd, 0x2c, 0xbf, 0x1d, 0xe3, 0x09, 0x0c, 0x44, 0x17, 0xa7, - 0x89, 0xca, 0xb9, 0x0d, 0x13, 0x92, 0x73, 0x8e, 0xe3, 0x36, 0x8c, 0xa4, 0x71, 0x84, 0x95, 0xed, - 0x06, 0x64, 0x38, 0x05, 0x84, 0x92, 0x47, 0x70, 0x49, 0x98, 0x69, 0x35, 0xb6, 0x04, 0x35, 0xec, - 0x63, 0x06, 0xf7, 0xa0, 0xa4, 0x1a, 0xfb, 0x45, 0xd3, 0xfa, 0x08, 0x16, 0x25, 0xa9, 0x37, 0x93, - 0x0f, 0xbe, 0x16, 0xb2, 0x12, 0x34, 0x88, 0x26, 0x6c, 0x90, 0x5d, 0x69, 0xbd, 0xd2, 0x81, 0x5f, - 0x34, 0xa5, 0x36, 0xef, 0x99, 0x78, 0x5a, 0x3a, 0xc7, 0xa1, 0xb7, 0xf5, 0xa0, 0x3e, 0x12, 0x0e, - 0xef, 0xc5, 0x6c, 0x5e, 0xce, 0xf0, 0x0e, 0x24, 0xc2, 0x77, 0x0e, 0xc5, 0xb8, 0x70, 0xca, 0x43, - 0x8a, 0x34, 0x65, 0x21, 0x93, 0x92, 0x54, 0xd1, 0x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c, 0xbb, 0x97, 0x40, 0x5b, 0xe2, 0x42, - 0x1a, 0xb0, 0x5c, 0xaf, 0x17, 0x5f, 0x53, 0xf2, 0x55, 0x6a, 0x56, 0xa1, 0x1c, 0x16, 0x3c, 0xdb, - 0xcf, 0x1a, 0x9c, 0x97, 0xea, 0x6b, 0x54, 0x01, 0x14, 0xcd, 0xde, 0xa2, 0x9a, 0x33, 0x87, 0xbf, - 0xcc, 0xe0, 0x2f, 0xe2, 0x82, 0x3a, 0xfc, 0xd5, 0x3b, 0x4f, 0x0e, 0x74, 0xed, 0xe9, 0x81, 0xae, - 0x3d, 0x3b, 0xd0, 0xb5, 0x6f, 0x0f, 0xf5, 0x81, 0xa7, 0x87, 0xfa, 0xc0, 0x1f, 0x87, 0xfa, 0xc0, - 0xa3, 0x52, 0xd5, 0xf1, 0xb7, 0x5b, 0x56, 0x69, 0xcb, 0xad, 0x1b, 0x9e, 0x5d, 0xad, 0xee, 0x7d, - 0xd6, 0x4e, 0xc4, 0x6d, 0xaf, 0x18, 0xbb, 0x61, 0x70, 0x7f, 0xcf, 0xb3, 0xa9, 0x75, 0x92, 0x7d, - 0xc1, 0x7e, 0xe3, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3a, 0xe8, 0x70, 0xa7, 0x75, 0x17, 0x00, - 0x00, + // 1285 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0x16, 0xa8, 0x94, 0x57, 0xa9, 0x49, 0x5e, 0x9d, 0x92, 0x6e, 0x1a, 0x27, 0x99, 0x8a, + 0x7c, 0x35, 0xf5, 0x92, 0xd0, 0x2a, 0xfd, 0x02, 0xa9, 0x51, 0xa0, 0x1f, 0x94, 0x92, 0x26, 0xa8, + 0xa0, 0x82, 0x64, 0xad, 0xe3, 0xc5, 0x59, 0x64, 0x7b, 0x1d,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x47, 0x7b, 0x6c, 0xc0, 0x03, 0xe2, 0xc9, 0x29, 0x29, 0x9a, 0x9b, 0xbf, + 0x6a, 0xf4, 0x37, 0xa1, 0x40, 0x08, 0xe3, 0x5c, 0x12, 0xb0, 0xfc, 0x71, 0xa1, 0x5f, 0x54, 0xb2, + 0x55, 0x2a, 0x56, 0xa1, 0x76, 0x17, 0x5c, 0x5b, 0xa8, 0x6f, 0x44, 0x8f, 0x01, 0x54, 0x01, 0x24, + 0xd7, 0x37, 0xdd, 0xde, 0x17, 0x19, 0xfa, 0x46, 0x08, 0x7f, 0xf9, 0xce, 0xb3, 0xbd, 0xbc, 0xf6, + 0x7c, 0x2f, 0xaf, 0xbd, 0xd8, 0xcb, 0x6b, 0xdf, 0xed, 0xe7, 0xfb, 0x9e, 0xef, 0xe7, 0xfb, 0xfe, + 0xd8, 0xcf, 0xf7, 0x3d, 0x2e, 0x54, 0x6c, 0x6f, 0xb3, 0x55, 0x2a, 0x6c, 0x38, 0x35, 0xa3, 0x61, + 0x55, 0x2a, 0x3b, 0x5f, 0xb4, 0x63, 0x7e, 0xdb, 0x4b, 0xc6, 0x76, 0xe0, 0xdc, 0xdb, 0x69, 0x58, + 0x6e, 0xe9, 0x24, 0xff, 0xc3, 0xff, 0xad, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x86, 0x16, 0x16, + 0x32, 0xa4, 0x18, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1582,6 +1667,7 @@ type QueryClient interface { QueryPublishers(ctx context.Context, in *QueryPublishersRequest, opts ...grpc.CallOption) (*QueryPublishersResponse, error) QuerySubscriber(ctx context.Context, in *QuerySubscriberRequest, opts ...grpc.CallOption) (*QuerySubscriberResponse, error) QuerySubscribers(ctx context.Context, in *QuerySubscribersRequest, opts ...grpc.CallOption) (*QuerySubscribersResponse, error) + QueryValidatorSubscribers(ctx context.Context, in *QueryValidatorSubscribersRequest, opts ...grpc.CallOption) (*QueryValidatorSubscribersResponse, error) QueryPublisherIntent(ctx context.Context, in *QueryPublisherIntentRequest, opts ...grpc.CallOption) (*QueryPublisherIntentResponse, error) QueryPublisherIntents(ctx context.Context, in *QueryPublisherIntentsRequest, opts ...grpc.CallOption) (*QueryPublisherIntentsResponse, error) QueryPublisherIntentsByPublisherDomain(ctx context.Context, in *QueryPublisherIntentsByPublisherDomainRequest, opts ...grpc.CallOption) (*QueryPublisherIntentsByPublisherDomainResponse, error) @@ -1648,6 +1734,15 @@ func (c *queryClient) QuerySubscribers(ctx context.Context, in *QuerySubscribers return out, nil } +func (c *queryClient) QueryValidatorSubscribers(ctx context.Context, in *QueryValidatorSubscribersRequest, opts ...grpc.CallOption) (*QueryValidatorSubscribersResponse, error) { + out := new(QueryValidatorSubscribersResponse) + err := c.cc.Invoke(ctx, "/pubsub.v1.Query/QueryValidatorSubscribers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) QueryPublisherIntent(ctx context.Context, in *QueryPublisherIntentRequest, opts ...grpc.CallOption) (*QueryPublisherIntentResponse, error) { out := new(QueryPublisherIntentResponse) err := c.cc.Invoke(ctx, "/pubsub.v1.Query/QueryPublisherIntent", in, out, opts...) @@ -1754,6 +1849,7 @@ type QueryServer interface { QueryPublishers(context.Context, *QueryPublishersRequest) (*QueryPublishersResponse, error) QuerySubscriber(context.Context, *QuerySubscriberRequest) (*QuerySubscriberResponse, error) QuerySubscribers(context.Context, *QuerySubscribersRequest) (*QuerySubscribersResponse, error) + QueryValidatorSubscribers(context.Context, *QueryValidatorSubscribersRequest) (*QueryValidatorSubscribersResponse, error) QueryPublisherIntent(context.Context, *QueryPublisherIntentRequest) (*QueryPublisherIntentResponse, error) QueryPublisherIntents(context.Context, *QueryPublisherIntentsRequest) (*QueryPublisherIntentsResponse, error) QueryPublisherIntentsByPublisherDomain(context.Context, *QueryPublisherIntentsByPublisherDomainRequest) (*QueryPublisherIntentsByPublisherDomainResponse, error) @@ -1786,6 +1882,9 @@ func (*UnimplementedQueryServer) QuerySubscriber(ctx context.Context, req *Query func (*UnimplementedQueryServer) QuerySubscribers(ctx context.Context, req *QuerySubscribersRequest) (*QuerySubscribersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QuerySubscribers not implemented") } +func (*UnimplementedQueryServer) QueryValidatorSubscribers(ctx context.Context, req *QueryValidatorSubscribersRequest) (*QueryValidatorSubscribersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryValidatorSubscribers not implemented") +} func (*UnimplementedQueryServer) QueryPublisherIntent(ctx context.Context, req *QueryPublisherIntentRequest) (*QueryPublisherIntentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryPublisherIntent not implemented") } @@ -1914,6 +2013,24 @@ func _Query_QuerySubscribers_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } +func _Query_QueryValidatorSubscribers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryValidatorSubscribersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).QueryValidatorSubscribers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pubsub.v1.Query/QueryValidatorSubscribers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryValidatorSubscribers(ctx, req.(*QueryValidatorSubscribersRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_QueryPublisherIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryPublisherIntentRequest) if err := dec(in); err != nil { @@ -2136,6 +2253,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "QuerySubscribers", Handler: _Query_QuerySubscribers_Handler, }, + { + MethodName: "QueryValidatorSubscribers", + Handler: _Query_QueryValidatorSubscribers_Handler, + }, { MethodName: "QueryPublisherIntent", Handler: _Query_QueryPublisherIntent_Handler, @@ -2491,6 +2612,66 @@ func (m *QuerySubscribersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } +func (m *QueryValidatorSubscribersRequest) 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 *QueryValidatorSubscribersRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryValidatorSubscribersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryValidatorSubscribersResponse) 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 *QueryValidatorSubscribersResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryValidatorSubscribersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Subscribers) > 0 { + for iNdEx := len(m.Subscribers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subscribers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func (m *QueryPublisherIntentRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3346,6 +3527,30 @@ func (m *QuerySubscribersResponse) Size() (n int) { return n } +func (m *QueryValidatorSubscribersRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryValidatorSubscribersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subscribers) > 0 { + for _, e := range m.Subscribers { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + func (m *QueryPublisherIntentRequest) Size() (n int) { if m == nil { return 0 @@ -4387,6 +4592,140 @@ func (m *QuerySubscribersResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryValidatorSubscribersRequest) 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: QueryValidatorSubscribersRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryValidatorSubscribersRequest: 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 *QueryValidatorSubscribersResponse) 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: QueryValidatorSubscribersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryValidatorSubscribersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subscribers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subscribers = append(m.Subscribers, &Subscriber{}) + if err := m.Subscribers[len(m.Subscribers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + 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 (m *QueryPublisherIntentRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/pubsub/types/query.pb.gw.go b/x/pubsub/types/query.pb.gw.go index 133e021d..f44fb92b 100644 --- a/x/pubsub/types/query.pb.gw.go +++ b/x/pubsub/types/query.pb.gw.go @@ -195,6 +195,24 @@ func local_request_Query_QuerySubscribers_0(ctx context.Context, marshaler runti } +func request_Query_QueryValidatorSubscribers_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryValidatorSubscribersRequest + var metadata runtime.ServerMetadata + + msg, err := client.QueryValidatorSubscribers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryValidatorSubscribers_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryValidatorSubscribersRequest + var metadata runtime.ServerMetadata + + msg, err := server.QueryValidatorSubscribers(ctx, &protoReq) + return msg, metadata, err + +} + func request_Query_QueryPublisherIntent_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryPublisherIntentRequest var metadata runtime.ServerMetadata @@ -846,6 +864,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_QueryValidatorSubscribers_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_QueryValidatorSubscribers_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_QueryValidatorSubscribers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_QueryPublisherIntent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1240,6 +1281,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_QueryValidatorSubscribers_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_QueryValidatorSubscribers_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_QueryValidatorSubscribers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_QueryPublisherIntent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1474,6 +1535,8 @@ var ( pattern_Query_QuerySubscribers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"sommelier", "pubsub", "v1", "subscribers"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryValidatorSubscribers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"sommelier", "pubsub", "v1", "validator_subscribers"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryPublisherIntent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"sommelier", "pubsub", "v1", "publisher_intents", "publisher_domain", "subscription_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryPublisherIntents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"sommelier", "pubsub", "v1", "publisher_intents"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1508,6 +1571,8 @@ var ( forward_Query_QuerySubscribers_0 = runtime.ForwardResponseMessage + forward_Query_QueryValidatorSubscribers_0 = runtime.ForwardResponseMessage + forward_Query_QueryPublisherIntent_0 = runtime.ForwardResponseMessage forward_Query_QueryPublisherIntents_0 = runtime.ForwardResponseMessage