From 43222325d7f16138fcca28d1f5a9164d123388bd Mon Sep 17 00:00:00 2001 From: Techno Freak Date: Sat, 17 Jun 2023 00:53:35 +0300 Subject: [PATCH] feat: add query for getting all assigned keys --- .../ccv/provider/v1/query.proto | 27 + x/ccv/provider/client/cli/query.go | 44 + x/ccv/provider/keeper/grpc_query.go | 28 + x/ccv/provider/types/query.pb.go | 872 ++++++++++++++++-- x/ccv/provider/types/query.pb.gw.go | 83 ++ 5 files changed, 952 insertions(+), 102 deletions(-) diff --git a/proto/interchain_security/ccv/provider/v1/query.proto b/proto/interchain_security/ccv/provider/v1/query.proto index c98a8cba1e..a7aa2a7810 100644 --- a/proto/interchain_security/ccv/provider/v1/query.proto +++ b/proto/interchain_security/ccv/provider/v1/query.proto @@ -49,6 +49,13 @@ service Query { option (google.api.http).get = "/interchain_security/ccv/provider/validator_consumer_addr"; } + // QueryValidatorConsumerAddr queries the address + // assigned by a validator for a consumer chain. + rpc QueryAllValidatorsConsumerAddr(QueryAllValidatorsConsumerAddrRequest) + returns (QueryAllValidatorsConsumerAddrResponse) { + option (google.api.http).get = "/interchain_security/ccv/provider/all_validator_consumer_addr"; + } + // QueryProviderAddr returns the provider chain validator // given a consumer chain validator address rpc QueryValidatorProviderAddr(QueryValidatorProviderAddrRequest) @@ -119,6 +126,26 @@ message QueryValidatorConsumerAddrResponse { string consumer_address = 1; } +message QueryAllValidatorsConsumerAddrRequest { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + // The id of the consumer chain, optional + string chain_id = 1; +} + +message ValidatorWithConsumerAddr { + // The id of the consumer chain, optional + string chain_id = 1; + // The address of the validator on the consumer chain + string consumer_address = 2; + // The address of the validator on the provider chain + string provider_address = 3; +} + +message QueryAllValidatorsConsumerAddrResponse { + repeated ValidatorWithConsumerAddr validators = 1; +} + message QueryValidatorProviderAddrRequest { option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; diff --git a/x/ccv/provider/client/cli/query.go b/x/ccv/provider/client/cli/query.go index aa1a996f12..4c65151c49 100644 --- a/x/ccv/provider/client/cli/query.go +++ b/x/ccv/provider/client/cli/query.go @@ -203,6 +203,50 @@ $ %s query provider validator-consumer-key foochain %s1gghjut3ccd8ay0zduzj64hwre return cmd } +// TODO: fix naming +func CmdConsumerAllValidatorKeysAssignment() *cobra.Command { + cmd := &cobra.Command{ + Use: "validators-consumer-keys [chainid]", + Short: "Query all assigned validators consensus public keys", + Long: strings.TrimSpace( + fmt.Sprintf(`Returns the currently assigned validators consensus public keys for a +specified consumer chain (or all chains), if one has been assigned. +Example: +$ %s query provider validators-consumer-keys foochain +`, + version.AppName, + ), + ), + Args: cobra.MaximumNArgs(1), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + queryClient := types.NewQueryClient(clientCtx) + + consumerChainID := "" + if len(args) > 0 { + consumerChainID = args[0] + } + + req := &types.QueryAllValidatorsConsumerAddrRequest{ + ChainId: consumerChainID, + } + res, err := queryClient.QueryAllValidatorsConsumerAddr(cmd.Context(), req) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + // TODO: fix naming func CmdProviderValidatorKey() *cobra.Command { bech32PrefixConsAddr := sdk.GetConfig().GetBech32ConsensusAddrPrefix() diff --git a/x/ccv/provider/keeper/grpc_query.go b/x/ccv/provider/keeper/grpc_query.go index df7c28f758..1ecdcde04c 100644 --- a/x/ccv/provider/keeper/grpc_query.go +++ b/x/ccv/provider/keeper/grpc_query.go @@ -112,6 +112,34 @@ func (k Keeper) QueryValidatorConsumerAddr(goCtx context.Context, req *types.Que }, nil } +func (k Keeper) QueryAllValidatorsConsumerAddr(goCtx context.Context, req *types.QueryAllValidatorsConsumerAddrRequest) (*types.QueryAllValidatorsConsumerAddrResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + var chainID *string + if req.ChainId != "" { + chainID = &req.ChainId + } + + keys := k.GetAllValidatorConsumerPubKeys(ctx, chainID) + + validators := make([]*types.ValidatorWithConsumerAddr, len(keys)) + for index, validatorInfo := range validators { + validators[index] = &types.ValidatorWithConsumerAddr{ + ChainId: validatorInfo.ChainId, + ConsumerAddress: validatorInfo.ConsumerAddress, + ProviderAddress: validatorInfo.ProviderAddress, + } + } + + return &types.QueryAllValidatorsConsumerAddrResponse{ + Validators: validators, + }, nil +} + func (k Keeper) QueryValidatorProviderAddr(goCtx context.Context, req *types.QueryValidatorProviderAddrRequest) (*types.QueryValidatorProviderAddrResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "empty request") diff --git a/x/ccv/provider/types/query.pb.go b/x/ccv/provider/types/query.pb.go index b205b0a7ea..8f756ef392 100644 --- a/x/ccv/provider/types/query.pb.go +++ b/x/ccv/provider/types/query.pb.go @@ -508,6 +508,153 @@ func (m *QueryValidatorConsumerAddrResponse) GetConsumerAddress() string { return "" } +type QueryAllValidatorsConsumerAddrRequest struct { + // The id of the consumer chain, optional + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` +} + +func (m *QueryAllValidatorsConsumerAddrRequest) Reset() { *m = QueryAllValidatorsConsumerAddrRequest{} } +func (m *QueryAllValidatorsConsumerAddrRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllValidatorsConsumerAddrRequest) ProtoMessage() {} +func (*QueryAllValidatorsConsumerAddrRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_422512d7b7586cd7, []int{11} +} +func (m *QueryAllValidatorsConsumerAddrRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllValidatorsConsumerAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllValidatorsConsumerAddrRequest.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 *QueryAllValidatorsConsumerAddrRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllValidatorsConsumerAddrRequest.Merge(m, src) +} +func (m *QueryAllValidatorsConsumerAddrRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllValidatorsConsumerAddrRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllValidatorsConsumerAddrRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllValidatorsConsumerAddrRequest proto.InternalMessageInfo + +type ValidatorWithConsumerAddr struct { + // The id of the consumer chain, optional + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // The address of the validator on the consumer chain + ConsumerAddress string `protobuf:"bytes,2,opt,name=consumer_address,json=consumerAddress,proto3" json:"consumer_address,omitempty"` + // The address of the validator on the provider chain + ProviderAddress string `protobuf:"bytes,3,opt,name=provider_address,json=providerAddress,proto3" json:"provider_address,omitempty"` +} + +func (m *ValidatorWithConsumerAddr) Reset() { *m = ValidatorWithConsumerAddr{} } +func (m *ValidatorWithConsumerAddr) String() string { return proto.CompactTextString(m) } +func (*ValidatorWithConsumerAddr) ProtoMessage() {} +func (*ValidatorWithConsumerAddr) Descriptor() ([]byte, []int) { + return fileDescriptor_422512d7b7586cd7, []int{12} +} +func (m *ValidatorWithConsumerAddr) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorWithConsumerAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorWithConsumerAddr.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 *ValidatorWithConsumerAddr) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorWithConsumerAddr.Merge(m, src) +} +func (m *ValidatorWithConsumerAddr) XXX_Size() int { + return m.Size() +} +func (m *ValidatorWithConsumerAddr) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorWithConsumerAddr.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorWithConsumerAddr proto.InternalMessageInfo + +func (m *ValidatorWithConsumerAddr) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *ValidatorWithConsumerAddr) GetConsumerAddress() string { + if m != nil { + return m.ConsumerAddress + } + return "" +} + +func (m *ValidatorWithConsumerAddr) GetProviderAddress() string { + if m != nil { + return m.ProviderAddress + } + return "" +} + +type QueryAllValidatorsConsumerAddrResponse struct { + Validators []*ValidatorWithConsumerAddr `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` +} + +func (m *QueryAllValidatorsConsumerAddrResponse) Reset() { + *m = QueryAllValidatorsConsumerAddrResponse{} +} +func (m *QueryAllValidatorsConsumerAddrResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllValidatorsConsumerAddrResponse) ProtoMessage() {} +func (*QueryAllValidatorsConsumerAddrResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_422512d7b7586cd7, []int{13} +} +func (m *QueryAllValidatorsConsumerAddrResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllValidatorsConsumerAddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllValidatorsConsumerAddrResponse.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 *QueryAllValidatorsConsumerAddrResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllValidatorsConsumerAddrResponse.Merge(m, src) +} +func (m *QueryAllValidatorsConsumerAddrResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllValidatorsConsumerAddrResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllValidatorsConsumerAddrResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllValidatorsConsumerAddrResponse proto.InternalMessageInfo + +func (m *QueryAllValidatorsConsumerAddrResponse) GetValidators() []*ValidatorWithConsumerAddr { + if m != nil { + return m.Validators + } + return nil +} + type QueryValidatorProviderAddrRequest struct { // The id of the provider chain ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` @@ -519,7 +666,7 @@ func (m *QueryValidatorProviderAddrRequest) Reset() { *m = QueryValidato func (m *QueryValidatorProviderAddrRequest) String() string { return proto.CompactTextString(m) } func (*QueryValidatorProviderAddrRequest) ProtoMessage() {} func (*QueryValidatorProviderAddrRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_422512d7b7586cd7, []int{11} + return fileDescriptor_422512d7b7586cd7, []int{14} } func (m *QueryValidatorProviderAddrRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -557,7 +704,7 @@ func (m *QueryValidatorProviderAddrResponse) Reset() { *m = QueryValidat func (m *QueryValidatorProviderAddrResponse) String() string { return proto.CompactTextString(m) } func (*QueryValidatorProviderAddrResponse) ProtoMessage() {} func (*QueryValidatorProviderAddrResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_422512d7b7586cd7, []int{12} + return fileDescriptor_422512d7b7586cd7, []int{15} } func (m *QueryValidatorProviderAddrResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -600,7 +747,7 @@ func (m *QueryThrottleStateRequest) Reset() { *m = QueryThrottleStateReq func (m *QueryThrottleStateRequest) String() string { return proto.CompactTextString(m) } func (*QueryThrottleStateRequest) ProtoMessage() {} func (*QueryThrottleStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_422512d7b7586cd7, []int{13} + return fileDescriptor_422512d7b7586cd7, []int{16} } func (m *QueryThrottleStateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -645,7 +792,7 @@ func (m *QueryThrottleStateResponse) Reset() { *m = QueryThrottleStateRe func (m *QueryThrottleStateResponse) String() string { return proto.CompactTextString(m) } func (*QueryThrottleStateResponse) ProtoMessage() {} func (*QueryThrottleStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_422512d7b7586cd7, []int{14} + return fileDescriptor_422512d7b7586cd7, []int{17} } func (m *QueryThrottleStateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -712,7 +859,7 @@ func (m *QueryThrottledConsumerPacketDataRequest) Reset() { func (m *QueryThrottledConsumerPacketDataRequest) String() string { return proto.CompactTextString(m) } func (*QueryThrottledConsumerPacketDataRequest) ProtoMessage() {} func (*QueryThrottledConsumerPacketDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_422512d7b7586cd7, []int{15} + return fileDescriptor_422512d7b7586cd7, []int{18} } func (m *QueryThrottledConsumerPacketDataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -760,7 +907,7 @@ func (m *QueryThrottledConsumerPacketDataResponse) Reset() { func (m *QueryThrottledConsumerPacketDataResponse) String() string { return proto.CompactTextString(m) } func (*QueryThrottledConsumerPacketDataResponse) ProtoMessage() {} func (*QueryThrottledConsumerPacketDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_422512d7b7586cd7, []int{16} + return fileDescriptor_422512d7b7586cd7, []int{19} } func (m *QueryThrottledConsumerPacketDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -820,7 +967,7 @@ func (m *ThrottledSlashPacket) Reset() { *m = ThrottledSlashPacket{} } func (m *ThrottledSlashPacket) String() string { return proto.CompactTextString(m) } func (*ThrottledSlashPacket) ProtoMessage() {} func (*ThrottledSlashPacket) Descriptor() ([]byte, []int) { - return fileDescriptor_422512d7b7586cd7, []int{17} + return fileDescriptor_422512d7b7586cd7, []int{20} } func (m *ThrottledSlashPacket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -875,7 +1022,7 @@ func (m *ThrottledPacketDataWrapper) Reset() { *m = ThrottledPacketDataW func (m *ThrottledPacketDataWrapper) String() string { return proto.CompactTextString(m) } func (*ThrottledPacketDataWrapper) ProtoMessage() {} func (*ThrottledPacketDataWrapper) Descriptor() ([]byte, []int) { - return fileDescriptor_422512d7b7586cd7, []int{18} + return fileDescriptor_422512d7b7586cd7, []int{21} } func (m *ThrottledPacketDataWrapper) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -960,7 +1107,7 @@ func (m *QueryRegisteredConsumerRewardDenomsRequest) String() string { } func (*QueryRegisteredConsumerRewardDenomsRequest) ProtoMessage() {} func (*QueryRegisteredConsumerRewardDenomsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_422512d7b7586cd7, []int{19} + return fileDescriptor_422512d7b7586cd7, []int{22} } func (m *QueryRegisteredConsumerRewardDenomsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1001,7 +1148,7 @@ func (m *QueryRegisteredConsumerRewardDenomsResponse) String() string { } func (*QueryRegisteredConsumerRewardDenomsResponse) ProtoMessage() {} func (*QueryRegisteredConsumerRewardDenomsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_422512d7b7586cd7, []int{20} + return fileDescriptor_422512d7b7586cd7, []int{23} } func (m *QueryRegisteredConsumerRewardDenomsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1049,6 +1196,9 @@ func init() { proto.RegisterType((*Chain)(nil), "interchain_security.ccv.provider.v1.Chain") proto.RegisterType((*QueryValidatorConsumerAddrRequest)(nil), "interchain_security.ccv.provider.v1.QueryValidatorConsumerAddrRequest") proto.RegisterType((*QueryValidatorConsumerAddrResponse)(nil), "interchain_security.ccv.provider.v1.QueryValidatorConsumerAddrResponse") + proto.RegisterType((*QueryAllValidatorsConsumerAddrRequest)(nil), "interchain_security.ccv.provider.v1.QueryAllValidatorsConsumerAddrRequest") + proto.RegisterType((*ValidatorWithConsumerAddr)(nil), "interchain_security.ccv.provider.v1.ValidatorWithConsumerAddr") + proto.RegisterType((*QueryAllValidatorsConsumerAddrResponse)(nil), "interchain_security.ccv.provider.v1.QueryAllValidatorsConsumerAddrResponse") proto.RegisterType((*QueryValidatorProviderAddrRequest)(nil), "interchain_security.ccv.provider.v1.QueryValidatorProviderAddrRequest") proto.RegisterType((*QueryValidatorProviderAddrResponse)(nil), "interchain_security.ccv.provider.v1.QueryValidatorProviderAddrResponse") proto.RegisterType((*QueryThrottleStateRequest)(nil), "interchain_security.ccv.provider.v1.QueryThrottleStateRequest") @@ -1066,90 +1216,96 @@ func init() { } var fileDescriptor_422512d7b7586cd7 = []byte{ - // 1322 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcf, 0x6f, 0xdc, 0x44, - 0x18, 0x5d, 0x6f, 0xd2, 0x34, 0x99, 0x14, 0x5a, 0xa6, 0xa5, 0x6c, 0xdd, 0x6a, 0xb7, 0xb8, 0x08, - 0xd2, 0x16, 0xec, 0xee, 0x56, 0x48, 0x4d, 0x20, 0xdd, 0xec, 0x26, 0x21, 0x8d, 0xda, 0xa8, 0xc1, - 0xa9, 0x5a, 0x09, 0x50, 0xcd, 0xc4, 0x1e, 0x36, 0x16, 0x5e, 0x8f, 0xeb, 0x99, 0x75, 0x1a, 0x7e, - 0x1c, 0x00, 0x09, 0x7a, 0xac, 0x84, 0xb8, 0x71, 0xe8, 0x89, 0xff, 0x82, 0x7b, 0x6f, 0x54, 0xf4, - 0xd2, 0x53, 0x41, 0x09, 0x07, 0x8e, 0x88, 0x3b, 0x12, 0xf2, 0x78, 0xbc, 0x3f, 0xb2, 0xde, 0x5d, - 0xef, 0x36, 0xb7, 0xdd, 0xf1, 0x7c, 0xef, 0x7b, 0xef, 0xe9, 0x9b, 0xf1, 0x33, 0xd0, 0x6c, 0x97, - 0x61, 0xdf, 0xdc, 0x42, 0xb6, 0x6b, 0x50, 0x6c, 0x36, 0x7c, 0x9b, 0xed, 0x68, 0xa6, 0x19, 0x68, - 0x9e, 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, 0x23, 0xe4, 0xf5, 0x83, 0x03, 0x14, 0x76, 0x5c, 0xe7, 0x76, - 0x2c, 0xc3, 0xc5, 0xc1, 0x76, 0xf8, 0x4d, 0xc4, 0x96, 0x23, 0x3e, 0xc7, 0x34, 0xa2, 0x78, 0x52, - 0xbd, 0xf3, 0x78, 0x37, 0x2f, 0x3d, 0xd9, 0xcd, 0x4b, 0x7f, 0xee, 0xe6, 0xa5, 0x87, 0x7b, 0xf9, - 0xcc, 0x93, 0xbd, 0x7c, 0xe6, 0xd9, 0x5e, 0x3e, 0xf3, 0xd1, 0x7c, 0xcd, 0x66, 0x5b, 0x8d, 0x4d, - 0xd5, 0x24, 0x75, 0xcd, 0x24, 0xb4, 0x4e, 0x68, 0x5b, 0xbf, 0x77, 0x9a, 0xfd, 0x82, 0x92, 0x76, - 0x7f, 0xdf, 0xfc, 0xed, 0x78, 0x98, 0x6e, 0x4e, 0xf0, 0xaf, 0x95, 0xcb, 0xff, 0x07, 0x00, 0x00, - 0xff, 0xff, 0xb7, 0x37, 0x44, 0xeb, 0x42, 0x13, 0x00, 0x00, + // 1419 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcd, 0x6f, 0xd4, 0x46, + 0x1c, 0x5d, 0x6f, 0x42, 0x48, 0x26, 0xb4, 0xa0, 0x09, 0xa5, 0xc1, 0xa0, 0x5d, 0x6a, 0x5a, 0x1a, + 0xa0, 0xb5, 0xd9, 0x45, 0x95, 0x80, 0x36, 0x84, 0xdd, 0x90, 0x06, 0x0a, 0x88, 0xd4, 0x41, 0x20, + 0xb5, 0x15, 0xee, 0xc4, 0x9e, 0x6e, 0xac, 0x7a, 0x3d, 0xc6, 0x33, 0x6b, 0x48, 0x3f, 0xa4, 0x7e, + 0x48, 0x2d, 0x87, 0x1e, 0x90, 0xaa, 0x9e, 0xcb, 0xa9, 0xff, 0x45, 0xef, 0xdc, 0x8a, 0xca, 0x85, + 0x13, 0xad, 0x92, 0x1e, 0x7a, 0xac, 0x7a, 0xaf, 0x54, 0x79, 0x3c, 0xf6, 0x7a, 0xb3, 0xde, 0x5d, + 0xef, 0x92, 0xdb, 0xee, 0xf8, 0x37, 0x6f, 0xde, 0x7b, 0xfe, 0xcd, 0xcc, 0xdb, 0x05, 0x9a, 0xed, + 0x32, 0xec, 0x9b, 0xeb, 0xc8, 0x76, 0x0d, 0x8a, 0xcd, 0x96, 0x6f, 0xb3, 0x0d, 0xcd, 0x34, 0x03, + 0xcd, 0xf3, 0x49, 0x60, 0x5b, 0xd8, 0xd7, 0x82, 0x8a, 0x76, 0xa7, 0x85, 0xfd, 0x0d, 0xd5, 0xf3, + 0x09, 0x23, 0xf0, 0x68, 0xc6, 0x04, 0xd5, 0x34, 0x03, 0x35, 0x9e, 0xa0, 0x06, 0x15, 0xf9, 0x70, + 0x83, 0x90, 0x86, 0x83, 0x35, 0xe4, 0xd9, 0x1a, 0x72, 0x5d, 0xc2, 0x10, 0xb3, 0x89, 0x4b, 0x23, + 0x08, 0x79, 0x7f, 0x83, 0x34, 0x08, 0xff, 0xa8, 0x85, 0x9f, 0xc4, 0x68, 0x59, 0xcc, 0xe1, 0xdf, + 0xd6, 0x5a, 0x9f, 0x68, 0xcc, 0x6e, 0x62, 0xca, 0x50, 0xd3, 0x13, 0x05, 0xaf, 0xf6, 0xa2, 0x1a, + 0x54, 0x34, 0x41, 0x80, 0x11, 0xb9, 0xd2, 0xab, 0xca, 0x24, 0x2e, 0x6d, 0x35, 0x23, 0x41, 0x0d, + 0xec, 0x62, 0x6a, 0xc7, 0x7c, 0xaa, 0x79, 0x3c, 0x48, 0xe4, 0xf1, 0x39, 0xca, 0x19, 0x70, 0xe8, + 0xfd, 0xd0, 0x95, 0x45, 0x81, 0xba, 0x1c, 0x21, 0xea, 0xf8, 0x4e, 0x0b, 0x53, 0x06, 0x0f, 0x82, + 0xc9, 0x08, 0xcf, 0xb6, 0x66, 0x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e5, 0xb2, 0x94, 0xed, 0xf2, 0x21, 0x70, 0x90, 0x03, 0xde, 0x58, 0xf7, 0x09, 0x63, + 0x0e, 0xe6, 0xc7, 0x6b, 0x7c, 0x08, 0xfc, 0x52, 0x14, 0xc7, 0xec, 0xb6, 0xa7, 0x62, 0x99, 0x32, + 0x98, 0xa6, 0x0e, 0xa2, 0xeb, 0x46, 0x13, 0x33, 0xec, 0xf3, 0x15, 0xc6, 0x74, 0xc0, 0x87, 0xae, + 0x85, 0x23, 0xb0, 0x0a, 0x5e, 0x4a, 0x15, 0x18, 0xc8, 0x71, 0xc8, 0x5d, 0xe4, 0x9a, 0x98, 0x6b, + 0x1f, 0xd3, 0x67, 0xda, 0xa5, 0xb5, 0xf8, 0x11, 0xbc, 0x0d, 0x66, 0x5d, 0x7c, 0x8f, 0x19, 0x3e, + 0xf6, 0x1c, 0xec, 0xda, 0x74, 0xdd, 0x30, 0x91, 0x6b, 0x85, 0x62, 0x31, 0xef, 0x94, 0xe9, 0xaa, + 0xac, 0x46, 0x57, 0xac, 0x1a, 0x5f, 0xb1, 0xea, 0x8d, 0xf8, 0x8a, 0xad, 0x4f, 0x86, 0x77, 0xc5, + 0x83, 0x3f, 0xca, 0x92, 0x7e, 0x20, 0x44, 0xd1, 0x63, 0x90, 0xc5, 0x18, 0x03, 0xae, 0x82, 0xdd, + 0x1e, 0x32, 0x3f, 0xc5, 0x8c, 0xce, 0x8e, 0xf3, 0x46, 0x39, 0x9b, 0xab, 0x51, 0x62, 0x07, 0xac, + 0xd5, 0x90, 0xf3, 0x0a, 0x47, 0xd0, 0x63, 0x24, 0xe5, 0xa2, 0x38, 0x2c, 0x93, 0xaa, 0xb8, 0x95, + 0xa2, 0xc2, 0x8b, 0x88, 0xa1, 0x1c, 0x57, 0xea, 0xef, 0xf1, 0x45, 0xd1, 0x17, 0x46, 0x98, 0xdf, + 0xa7, 0xdb, 0x20, 0x18, 0xa7, 0xf6, 0x67, 0x91, 0xcb, 0xe3, 0x3a,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 0x49, 0x7a, 0xb0, 0x55, + 0x2a, 0x3c, 0xde, 0x2a, 0x15, 0x9e, 0x6e, 0x95, 0x0a, 0x1f, 0xcc, 0x37, 0x6c, 0xb6, 0xde, 0x5a, + 0x53, 0x4d, 0xd2, 0xd4, 0x4c, 0x42, 0x9b, 0x84, 0xa6, 0xd6, 0x7b, 0x33, 0x59, 0x2f, 0xa8, 0x6a, + 0xf7, 0xb6, 0xf5, 0xdf, 0x86, 0x87, 0xe9, 0xda, 0x04, 0xff, 0xc1, 0x76, 0xfa, 0xff, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xe3, 0x4d, 0xf8, 0xb7, 0xad, 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1177,6 +1333,9 @@ type QueryClient interface { // QueryValidatorConsumerAddr queries the address // assigned by a validator for a consumer chain. QueryValidatorConsumerAddr(ctx context.Context, in *QueryValidatorConsumerAddrRequest, opts ...grpc.CallOption) (*QueryValidatorConsumerAddrResponse, error) + // QueryValidatorConsumerAddr queries the address + // assigned by a validator for a consumer chain. + QueryAllValidatorsConsumerAddr(ctx context.Context, in *QueryAllValidatorsConsumerAddrRequest, opts ...grpc.CallOption) (*QueryAllValidatorsConsumerAddrResponse, error) // QueryProviderAddr returns the provider chain validator // given a consumer chain validator address QueryValidatorProviderAddr(ctx context.Context, in *QueryValidatorProviderAddrRequest, opts ...grpc.CallOption) (*QueryValidatorProviderAddrResponse, error) @@ -1242,6 +1401,15 @@ func (c *queryClient) QueryValidatorConsumerAddr(ctx context.Context, in *QueryV return out, nil } +func (c *queryClient) QueryAllValidatorsConsumerAddr(ctx context.Context, in *QueryAllValidatorsConsumerAddrRequest, opts ...grpc.CallOption) (*QueryAllValidatorsConsumerAddrResponse, error) { + out := new(QueryAllValidatorsConsumerAddrResponse) + err := c.cc.Invoke(ctx, "/interchain_security.ccv.provider.v1.Query/QueryAllValidatorsConsumerAddr", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) QueryValidatorProviderAddr(ctx context.Context, in *QueryValidatorProviderAddrRequest, opts ...grpc.CallOption) (*QueryValidatorProviderAddrResponse, error) { out := new(QueryValidatorProviderAddrResponse) err := c.cc.Invoke(ctx, "/interchain_security.ccv.provider.v1.Query/QueryValidatorProviderAddr", in, out, opts...) @@ -1293,6 +1461,9 @@ type QueryServer interface { // QueryValidatorConsumerAddr queries the address // assigned by a validator for a consumer chain. QueryValidatorConsumerAddr(context.Context, *QueryValidatorConsumerAddrRequest) (*QueryValidatorConsumerAddrResponse, error) + // QueryValidatorConsumerAddr queries the address + // assigned by a validator for a consumer chain. + QueryAllValidatorsConsumerAddr(context.Context, *QueryAllValidatorsConsumerAddrRequest) (*QueryAllValidatorsConsumerAddrResponse, error) // QueryProviderAddr returns the provider chain validator // given a consumer chain validator address QueryValidatorProviderAddr(context.Context, *QueryValidatorProviderAddrRequest) (*QueryValidatorProviderAddrResponse, error) @@ -1324,6 +1495,9 @@ func (*UnimplementedQueryServer) QueryConsumerChainStops(ctx context.Context, re func (*UnimplementedQueryServer) QueryValidatorConsumerAddr(ctx context.Context, req *QueryValidatorConsumerAddrRequest) (*QueryValidatorConsumerAddrResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryValidatorConsumerAddr not implemented") } +func (*UnimplementedQueryServer) QueryAllValidatorsConsumerAddr(ctx context.Context, req *QueryAllValidatorsConsumerAddrRequest) (*QueryAllValidatorsConsumerAddrResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAllValidatorsConsumerAddr not implemented") +} func (*UnimplementedQueryServer) QueryValidatorProviderAddr(ctx context.Context, req *QueryValidatorProviderAddrRequest) (*QueryValidatorProviderAddrResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryValidatorProviderAddr not implemented") } @@ -1431,6 +1605,24 @@ func _Query_QueryValidatorConsumerAddr_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } +func _Query_QueryAllValidatorsConsumerAddr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllValidatorsConsumerAddrRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).QueryAllValidatorsConsumerAddr(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/interchain_security.ccv.provider.v1.Query/QueryAllValidatorsConsumerAddr", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryAllValidatorsConsumerAddr(ctx, req.(*QueryAllValidatorsConsumerAddrRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_QueryValidatorProviderAddr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryValidatorProviderAddrRequest) if err := dec(in); err != nil { @@ -1527,6 +1719,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "QueryValidatorConsumerAddr", Handler: _Query_QueryValidatorConsumerAddr_Handler, }, + { + MethodName: "QueryAllValidatorsConsumerAddr", + Handler: _Query_QueryAllValidatorsConsumerAddr_Handler, + }, { MethodName: "QueryValidatorProviderAddr", Handler: _Query_QueryValidatorProviderAddr_Handler, @@ -1891,6 +2087,117 @@ func (m *QueryValidatorConsumerAddrResponse) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } +func (m *QueryAllValidatorsConsumerAddrRequest) 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 *QueryAllValidatorsConsumerAddrRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllValidatorsConsumerAddrRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ValidatorWithConsumerAddr) 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 *ValidatorWithConsumerAddr) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorWithConsumerAddr) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ProviderAddress) > 0 { + i -= len(m.ProviderAddress) + copy(dAtA[i:], m.ProviderAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ProviderAddress))) + i-- + dAtA[i] = 0x1a + } + if len(m.ConsumerAddress) > 0 { + i -= len(m.ConsumerAddress) + copy(dAtA[i:], m.ConsumerAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ConsumerAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllValidatorsConsumerAddrResponse) 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 *QueryAllValidatorsConsumerAddrResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllValidatorsConsumerAddrResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Validators) > 0 { + for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Validators[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 *QueryValidatorProviderAddrRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2437,7 +2744,7 @@ func (m *QueryValidatorConsumerAddrResponse) Size() (n int) { return n } -func (m *QueryValidatorProviderAddrRequest) Size() (n int) { +func (m *QueryAllValidatorsConsumerAddrRequest) Size() (n int) { if m == nil { return 0 } @@ -2447,19 +2754,23 @@ func (m *QueryValidatorProviderAddrRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.ConsumerAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } return n } -func (m *QueryValidatorProviderAddrResponse) Size() (n int) { +func (m *ValidatorWithConsumerAddr) Size() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ConsumerAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } l = len(m.ProviderAddress) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -2467,16 +2778,61 @@ func (m *QueryValidatorProviderAddrResponse) Size() (n int) { return n } -func (m *QueryThrottleStateRequest) Size() (n int) { +func (m *QueryAllValidatorsConsumerAddrResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l + if len(m.Validators) > 0 { + for _, e := range m.Validators { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } return n } -func (m *QueryThrottleStateResponse) Size() (n int) { +func (m *QueryValidatorProviderAddrRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ConsumerAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryValidatorProviderAddrResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ProviderAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryThrottleStateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryThrottleStateResponse) Size() (n int) { if m == nil { return 0 } @@ -3494,6 +3850,318 @@ func (m *QueryValidatorConsumerAddrResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryAllValidatorsConsumerAddrRequest) 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: QueryAllValidatorsConsumerAddrRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllValidatorsConsumerAddrRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", 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.ChainId = 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 (m *ValidatorWithConsumerAddr) 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: ValidatorWithConsumerAddr: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorWithConsumerAddr: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", 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.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumerAddress", 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.ConsumerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProviderAddress", 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.ProviderAddress = 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 (m *QueryAllValidatorsConsumerAddrResponse) 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: QueryAllValidatorsConsumerAddrResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllValidatorsConsumerAddrResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validators", 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.Validators = append(m.Validators, &ValidatorWithConsumerAddr{}) + if err := m.Validators[len(m.Validators)-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 *QueryValidatorProviderAddrRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/ccv/provider/types/query.pb.gw.go b/x/ccv/provider/types/query.pb.gw.go index 6a249ca2a2..9c2adc3ad4 100644 --- a/x/ccv/provider/types/query.pb.gw.go +++ b/x/ccv/provider/types/query.pb.gw.go @@ -177,6 +177,42 @@ func local_request_Query_QueryValidatorConsumerAddr_0(ctx context.Context, marsh } +var ( + filter_Query_QueryAllValidatorsConsumerAddr_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QueryAllValidatorsConsumerAddr_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllValidatorsConsumerAddrRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryAllValidatorsConsumerAddr_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryAllValidatorsConsumerAddr(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryAllValidatorsConsumerAddr_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllValidatorsConsumerAddrRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryAllValidatorsConsumerAddr_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryAllValidatorsConsumerAddr(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_Query_QueryValidatorProviderAddr_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -406,6 +442,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_QueryAllValidatorsConsumerAddr_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_QueryAllValidatorsConsumerAddr_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_QueryAllValidatorsConsumerAddr_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_QueryValidatorProviderAddr_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -639,6 +698,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_QueryAllValidatorsConsumerAddr_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_QueryAllValidatorsConsumerAddr_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_QueryAllValidatorsConsumerAddr_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_QueryValidatorProviderAddr_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -733,6 +812,8 @@ var ( pattern_Query_QueryValidatorConsumerAddr_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"interchain_security", "ccv", "provider", "validator_consumer_addr"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAllValidatorsConsumerAddr_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"interchain_security", "ccv", "provider", "all_validator_consumer_addr"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryValidatorProviderAddr_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"interchain_security", "ccv", "provider", "validator_provider_addr"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryThrottleState_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"interchain_security", "ccv", "provider", "throttle_state"}, "", runtime.AssumeColonVerbOpt(false))) @@ -753,6 +834,8 @@ var ( forward_Query_QueryValidatorConsumerAddr_0 = runtime.ForwardResponseMessage + forward_Query_QueryAllValidatorsConsumerAddr_0 = runtime.ForwardResponseMessage + forward_Query_QueryValidatorProviderAddr_0 = runtime.ForwardResponseMessage forward_Query_QueryThrottleState_0 = runtime.ForwardResponseMessage