diff --git a/proto/interchain_security/ccv/provider/v1/query.proto b/proto/interchain_security/ccv/provider/v1/query.proto index 3b1e6b20ee..d1c474b693 100644 --- a/proto/interchain_security/ccv/provider/v1/query.proto +++ b/proto/interchain_security/ccv/provider/v1/query.proto @@ -10,6 +10,7 @@ import "interchain_security/ccv/provider/v1/provider.proto"; import "interchain_security/ccv/v1/shared_consumer.proto"; import "interchain_security/ccv/v1/wire.proto"; import "tendermint/crypto/keys.proto"; +import "cosmos_proto/cosmos.proto"; service Query { // ConsumerGenesis queries the genesis state needed to start a consumer chain @@ -117,6 +118,15 @@ service Query { option (google.api.http).get = "/interchain_security/ccv/provider/consumer_chains_per_validator"; } + + // QueryValidatorConsumerCommissionRate returns the commission rate a given + // validator charges on a given consumer chain + rpc QueryValidatorConsumerCommissionRate( + QueryValidatorConsumerCommissionRateRequest) + returns (QueryValidatorConsumerCommissionRateResponse) { + option (google.api.http).get = + "/interchain_security/ccv/provider/consumer_commission_rate"; + } } message QueryConsumerGenesisRequest { string chain_id = 1; } @@ -251,4 +261,20 @@ message QueryConsumerChainsByValidatorAddressRequest { message QueryConsumerChainsByValidatorAddressResponse { repeated string validator_consumer_chains = 1; -} \ No newline at end of file +} + +message QueryValidatorConsumerCommissionRateRequest { + string chain_id = 1; + // The consensus address of the validator on the provider chain + string provider_address = 2 [ (gogoproto.moretags) = "yaml:\"address\"" ]; +} + +message QueryValidatorConsumerCommissionRateResponse { + // The rate to charge delegators on the consumer chain, as a fraction + string rate = 1 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.nullable) = false + ]; +} + diff --git a/x/ccv/provider/client/cli/query.go b/x/ccv/provider/client/cli/query.go index a868ded70b..1e1b5feb8d 100644 --- a/x/ccv/provider/client/cli/query.go +++ b/x/ccv/provider/client/cli/query.go @@ -37,6 +37,7 @@ func NewQueryCmd() *cobra.Command { cmd.AddCommand(CmdProviderParameters()) cmd.AddCommand(CmdOptedInValidatorsByConsumerChainID()) cmd.AddCommand(CmdConsumerChainsByValidatorAddress()) + cmd.AddCommand(CmdValidatorConsumerCommissionRate()) return cmd } @@ -415,7 +416,7 @@ $ %s query provider params // Command to query opted-in validators by consumer chain ID func CmdOptedInValidatorsByConsumerChainID() *cobra.Command { cmd := &cobra.Command{ - Use: "opted-in-validators", + Use: "opted-in-validators [chainid]", Short: "Query opted-in validators for a given consumer chain", Long: strings.TrimSpace( fmt.Sprintf(`Query opted-in validators for a given consumer chain. @@ -450,7 +451,7 @@ $ %s opted-in-validators foochain func CmdConsumerChainsByValidatorAddress() *cobra.Command { bech32PrefixConsAddr := sdk.GetConfig().GetBech32ConsensusAddrPrefix() cmd := &cobra.Command{ - Use: "has-to-validate", + Use: "has-to-validate [provider-validator-address]", Short: "Query the consumer chains list a given validator has to validate", Long: strings.TrimSpace( fmt.Sprintf(`Query the consumer chains list a given validator has to validate. @@ -487,3 +488,47 @@ $ %s has-to-validate %s1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj return cmd } + +// Command to query the consumer commission rate a validator charges +// on a consumer chain +func CmdValidatorConsumerCommissionRate() *cobra.Command { + bech32PrefixConsAddr := sdk.GetConfig().GetBech32ConsensusAddrPrefix() + cmd := &cobra.Command{ + Use: "validator-consumer-commission-rate [chainid] [provider-validator-address]", + Short: "Query the consumer commission rate a validator charges on a consumer chain", + Long: strings.TrimSpace( + fmt.Sprintf(`Query the consumer commission rate a validator charges on a consumer chain. +Example: +$ %s validator-consumer-commission-rate foochain %s1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj + `, version.AppName, bech32PrefixConsAddr), + ), + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + queryClient := types.NewQueryClient(clientCtx) + + addr, err := sdk.ConsAddressFromBech32(args[1]) + if err != nil { + return err + } + + res, err := queryClient.QueryValidatorConsumerCommissionRate(cmd.Context(), + &types.QueryValidatorConsumerCommissionRateRequest{ + ChainId: args[0], + ProviderAddress: addr.String(), + }) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/ccv/provider/keeper/grpc_query.go b/x/ccv/provider/keeper/grpc_query.go index 8852245979..85d1107917 100644 --- a/x/ccv/provider/keeper/grpc_query.go +++ b/x/ccv/provider/keeper/grpc_query.go @@ -280,3 +280,42 @@ func (k Keeper) QueryConsumerChainsByValidatorAddress(goCtx context.Context, req ValidatorConsumerChains: consumersToValidate, }, nil } + +// QueryValidatorConsumerCommissionRate returns the commission rate a given +// validator charges on a given consumer chain +func (k Keeper) QueryValidatorConsumerCommissionRate(goCtx context.Context, req *types.QueryValidatorConsumerCommissionRateRequest) (*types.QueryValidatorConsumerCommissionRateResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + + consumerChainID := req.ChainId + if consumerChainID == "" { + return nil, status.Error(codes.InvalidArgument, "empty chainId") + } + + consAddr, err := sdk.ConsAddressFromBech32(req.ProviderAddress) + if err != nil { + return nil, status.Error(codes.InvalidArgument, "invalid provider address") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + if !k.IsConsumerProposedOrRegistered(ctx, consumerChainID) { + return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("unknown consumer chain: %s", consumerChainID)) + } + + res := &types.QueryValidatorConsumerCommissionRateResponse{} + + consumerRate, found := k.GetConsumerCommissionRate(ctx, consumerChainID, types.NewProviderConsAddress(consAddr)) + if found { + res.Rate = consumerRate + } else { + v, ok := k.stakingKeeper.GetValidatorByConsAddr(ctx, consAddr) + if !ok { + return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("unknown validator: %s", consAddr.String())) + } + res.Rate = v.Commission.Rate + } + + return res, nil +} diff --git a/x/ccv/provider/types/query.pb.go b/x/ccv/provider/types/query.pb.go index 21647bb30c..86ccfb7e19 100644 --- a/x/ccv/provider/types/query.pb.go +++ b/x/ccv/provider/types/query.pb.go @@ -7,6 +7,8 @@ import ( context "context" fmt "fmt" crypto "github.com/cometbft/cometbft/proto/tendermint/crypto" + _ "github.com/cosmos/cosmos-proto" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" @@ -1364,6 +1366,105 @@ func (m *QueryConsumerChainsByValidatorAddressResponse) GetValidatorConsumerChai return nil } +type QueryValidatorConsumerCommissionRateRequest struct { + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // The consensus address of the validator on the provider chain + ProviderAddress string `protobuf:"bytes,2,opt,name=provider_address,json=providerAddress,proto3" json:"provider_address,omitempty" yaml:"address"` +} + +func (m *QueryValidatorConsumerCommissionRateRequest) Reset() { + *m = QueryValidatorConsumerCommissionRateRequest{} +} +func (m *QueryValidatorConsumerCommissionRateRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryValidatorConsumerCommissionRateRequest) ProtoMessage() {} +func (*QueryValidatorConsumerCommissionRateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_422512d7b7586cd7, []int{29} +} +func (m *QueryValidatorConsumerCommissionRateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryValidatorConsumerCommissionRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryValidatorConsumerCommissionRateRequest.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 *QueryValidatorConsumerCommissionRateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryValidatorConsumerCommissionRateRequest.Merge(m, src) +} +func (m *QueryValidatorConsumerCommissionRateRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryValidatorConsumerCommissionRateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryValidatorConsumerCommissionRateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryValidatorConsumerCommissionRateRequest proto.InternalMessageInfo + +func (m *QueryValidatorConsumerCommissionRateRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *QueryValidatorConsumerCommissionRateRequest) GetProviderAddress() string { + if m != nil { + return m.ProviderAddress + } + return "" +} + +type QueryValidatorConsumerCommissionRateResponse struct { + // The rate to charge delegators on the consumer chain, as a fraction + Rate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"rate"` +} + +func (m *QueryValidatorConsumerCommissionRateResponse) Reset() { + *m = QueryValidatorConsumerCommissionRateResponse{} +} +func (m *QueryValidatorConsumerCommissionRateResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryValidatorConsumerCommissionRateResponse) ProtoMessage() {} +func (*QueryValidatorConsumerCommissionRateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_422512d7b7586cd7, []int{30} +} +func (m *QueryValidatorConsumerCommissionRateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryValidatorConsumerCommissionRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryValidatorConsumerCommissionRateResponse.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 *QueryValidatorConsumerCommissionRateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryValidatorConsumerCommissionRateResponse.Merge(m, src) +} +func (m *QueryValidatorConsumerCommissionRateResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryValidatorConsumerCommissionRateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryValidatorConsumerCommissionRateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryValidatorConsumerCommissionRateResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*QueryConsumerGenesisRequest)(nil), "interchain_security.ccv.provider.v1.QueryConsumerGenesisRequest") proto.RegisterType((*QueryConsumerGenesisResponse)(nil), "interchain_security.ccv.provider.v1.QueryConsumerGenesisResponse") @@ -1394,6 +1495,8 @@ func init() { proto.RegisterType((*QueryOptedInValidatorsByConsumerChainIDResponse)(nil), "interchain_security.ccv.provider.v1.QueryOptedInValidatorsByConsumerChainIDResponse") proto.RegisterType((*QueryConsumerChainsByValidatorAddressRequest)(nil), "interchain_security.ccv.provider.v1.QueryConsumerChainsByValidatorAddressRequest") proto.RegisterType((*QueryConsumerChainsByValidatorAddressResponse)(nil), "interchain_security.ccv.provider.v1.QueryConsumerChainsByValidatorAddressResponse") + proto.RegisterType((*QueryValidatorConsumerCommissionRateRequest)(nil), "interchain_security.ccv.provider.v1.QueryValidatorConsumerCommissionRateRequest") + proto.RegisterType((*QueryValidatorConsumerCommissionRateResponse)(nil), "interchain_security.ccv.provider.v1.QueryValidatorConsumerCommissionRateResponse") } func init() { @@ -1401,107 +1504,114 @@ func init() { } var fileDescriptor_422512d7b7586cd7 = []byte{ - // 1595 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcd, 0x73, 0xd4, 0xc6, - 0x12, 0xb7, 0xfc, 0xf5, 0xec, 0x31, 0x5f, 0x6f, 0xf8, 0x5a, 0x64, 0xbf, 0xb5, 0x11, 0xc5, 0x7b, - 0xe6, 0x4b, 0xb2, 0x97, 0x47, 0x01, 0x26, 0xc6, 0x78, 0x6d, 0x20, 0x5b, 0xe6, 0xc3, 0x08, 0x87, - 0x54, 0x25, 0xa9, 0x08, 0x59, 0x9a, 0xac, 0x55, 0xd6, 0x6a, 0x64, 0xcd, 0x78, 0x61, 0x8b, 0xca, - 0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xdd, - 0xd3, 0xe3, 0x6b, 0xf2, 0x10, 0x1c, 0x4c, 0xac, 0xf2, 0x43, 0x28, 0x81, 0x41, 0x97, 0xad, 0xf0, - 0x97, 0xed, 0x4c, 0xc6, 0xc8, 0xfb, 0x2a, 0x3c, 0x4b, 0x39, 0x80, 0xb4, 0x04, 0x64, 0x66, 0xe1, - 0xae, 0x4b, 0x91, 0x59, 0x72, 0xa2, 0xfa, 0x47, 0xba, 0xc9, 0xa8, 0x0d, 0x9e, 0x9f, 0x59, 0xc0, - 0x38, 0x95, 0xab, 0x60, 0xb4, 0x1a, 0x89, 0x69, 0x29, 0x27, 0xe8, 0x5f, 0xf7, 0x63, 0xb1, 0xc8, - 0x72, 0x43, 0x9d, 0xad, 0x80, 0xb3, 0x29, 0x6d, 0x55, 0x31, 0x2e, 0xe4, 0x5c, 0x30, 0xf4, 0x7e, - 0x67, 0x69, 0x22, 0xad, 0x83, 0x73, 0x19, 0xcd, 0x71, 0x7e, 0x33, 0x20, 0x76, 0x3e, 0x6a, 0x96, - 0xb5, 0xba, 0x56, 0x6f, 0x58, 0x3d, 0x5a, 0x6d, 0x7c, 0x4f, 0x03, 0xd4, 0xc2, 0xdf, 0x39, 0x30, - 0xc0, 0xac, 0xc1, 0x2d, 0x01, 0x1c, 0x4a, 0x6b, 0x6c, 0xe1, 0xb5, 0x4c, 0x27, 0xdf, 0xa2, 0x9b, - 0x16, 0xe7, 0x77, 0x80, 0x10, 0x70, 0x94, 0xae, 0x7f, 0xf1, 0xe6, 0xd7, 0x17, 0xbd, 0x73, 0x70, - 0xb6, 0xfd, 0x38, 0x14, 0x45, 0x80, 0x77, 0xce, 0xca, 0x93, 0x30, 0x97, 0x3e, 0x87, 0x6f, 0x04, - 0x9e, 0xed, 0xc9, 0x30, 0xc0, 0xb9, 0xce, 0x3d, 0x4c, 0xb4, 0xde, 0xe2, 0xb5, 0xee, 0x01, 0x38, - 0xc3, 0xcb, 0x8c, 0xe1, 0x79, 0x38, 0xdd, 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xda, 0xca, 0x0b, 0xaf, 0xb7, 0xf2, 0xc2, 0x2f, 0x5b, 0x79, 0xe1, 0xf9, 0xbb, 0x7c, - 0xcf, 0xeb, 0x77, 0xf9, 0x9e, 0x9f, 0xde, 0xe5, 0x7b, 0x3e, 0x9a, 0x2d, 0x5b, 0x74, 0x6d, 0x73, - 0x55, 0x36, 0x70, 0x45, 0x31, 0x30, 0xa9, 0x60, 0x52, 0x67, 0xeb, 0x5c, 0x64, 0xab, 0xfa, 0x7f, - 0xe5, 0x71, 0xc3, 0x13, 0x53, 0x73, 0x11, 0x59, 0x1d, 0x64, 0xdf, 0x98, 0xce, 0xff, 0x13, 0x00, - 0x00, 0xff, 0xff, 0x8b, 0x1e, 0xc4, 0xbd, 0x41, 0x19, 0x00, 0x00, + // 1710 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcb, 0x6f, 0xdc, 0xd4, + 0x17, 0x8e, 0x27, 0x8f, 0x5f, 0x72, 0xd3, 0xd7, 0xef, 0xf6, 0x95, 0x38, 0x61, 0x26, 0x75, 0x69, + 0x49, 0x1f, 0xb1, 0x93, 0x29, 0x55, 0xdb, 0xb4, 0x69, 0x9a, 0xc9, 0xb4, 0x65, 0x94, 0x3e, 0xa6, + 0x6e, 0x28, 0x12, 0x20, 0x5c, 0xc7, 0xbe, 0x4c, 0xac, 0x78, 0x7c, 0x1d, 0xfb, 0x66, 0xda, 0x51, + 0x85, 0x44, 0x59, 0xd0, 0xee, 0x28, 0x2a, 0x88, 0x6d, 0x37, 0xfc, 0x03, 0x88, 0x3f, 0xa2, 0x3b, + 0x0a, 0xdd, 0x20, 0x16, 0x05, 0xa5, 0x2c, 0x10, 0x2b, 0xc4, 0x1e, 0x09, 0xf9, 0xfa, 0xda, 0x9e, + 0x87, 0x93, 0xf1, 0x4c, 0xc2, 0x2a, 0x99, 0xeb, 0x7b, 0xbe, 0x73, 0xbe, 0xe3, 0x73, 0xcf, 0x3d, + 0x9f, 0x81, 0x64, 0x58, 0x04, 0x39, 0xda, 0xb2, 0x6a, 0x58, 0x8a, 0x8b, 0xb4, 0x35, 0xc7, 0x20, + 0x55, 0x49, 0xd3, 0x2a, 0x92, 0xed, 0xe0, 0x8a, 0xa1, 0x23, 0x47, 0xaa, 0x4c, 0x49, 0xab, 0x6b, + 0xc8, 0xa9, 0x8a, 0xb6, 0x83, 0x09, 0x86, 0x87, 0x63, 0x0c, 0x44, 0x4d, 0xab, 0x88, 0x81, 0x81, + 0x58, 0x99, 0xe2, 0x47, 0x4b, 0x18, 0x97, 0x4c, 0x24, 0xa9, 0xb6, 0x21, 0xa9, 0x96, 0x85, 0x89, + 0x4a, 0x0c, 0x6c, 0xb9, 0x3e, 0x04, 0xbf, 0xaf, 0x84, 0x4b, 0x98, 0xfe, 0x2b, 0x79, 0xff, 0xb1, + 0xd5, 0x0c, 0xb3, 0xa1, 0xbf, 0x96, 0xd6, 0x3e, 0x96, 0x88, 0x51, 0x46, 0x2e, 0x51, 0xcb, 0x36, + 0xdb, 0x90, 0x4d, 0x12, 0x6a, 0x18, 0x85, 0x6f, 0x33, 0xb9, 0x91, 0x4d, 0x65, 0x4a, 0x72, 0x97, + 0x55, 0x07, 0xe9, 0x8a, 0x86, 0x2d, 0x77, 0xad, 0x1c, 0x5a, 0x1c, 0xd9, 0xc4, 0xe2, 0x9e, 0xe1, + 0x20, 0xb6, 0x6d, 0x94, 0x20, 0x4b, 0x47, 0x4e, 0xd9, 0xb0, 0x88, 0xa4, 0x39, 0x55, 0x9b, 0x60, + 0x69, 0x05, 0x55, 0x03, 0x86, 0xc3, 0x1a, 0x76, 0xcb, 0xd8, 0x55, 0x7c, 0x92, 0xfe, 0x0f, 0xff, + 0x91, 0x70, 0x16, 0x8c, 0xdc, 0xf2, 0xd2, 0x39, 0xcf, 0xdc, 0x5e, 0x45, 0x16, 0x72, 0x0d, 0x57, + 0x46, 0xab, 0x6b,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x7b, 0x41, 0x59, 0x22, 0x66, 0x68, 0x22, 0xce, 0xc0, 0xd3, 0xad, 0x13, 0x81, 0x3d, 0x54, 0xc5, + 0xb0, 0x94, 0x48, 0x5f, 0xc1, 0x6f, 0x52, 0xe0, 0x48, 0x22, 0x89, 0x03, 0x6f, 0x75, 0x3a, 0x49, + 0x6e, 0xa8, 0xce, 0x78, 0x79, 0x3b, 0x21, 0xb7, 0x3a, 0xb8, 0xb8, 0x8a, 0x8d, 0x9c, 0x28, 0x35, + 0xf0, 0x8b, 0x14, 0x78, 0x33, 0x89, 0x08, 0x82, 0xc5, 0x2d, 0x8c, 0x1e, 0xb1, 0xca, 0x8e, 0xbf, + 0xb5, 0x8d, 0x88, 0xed, 0x77, 0xc3, 0x28, 0x2d, 0x21, 0x94, 0xe2, 0x69, 0xb2, 0xdc, 0x7b, 0xcf, + 0xd7, 0xd3, 0xdc, 0x8b, 0xf5, 0x34, 0xf7, 0xdb, 0x7a, 0x9a, 0x7b, 0xf2, 0x3a, 0xdd, 0xf5, 0xe2, + 0x75, 0xba, 0xeb, 0xe7, 0xd7, 0xe9, 0xae, 0xf7, 0x67, 0x9a, 0x95, 0x5e, 0xe4, 0x66, 0x22, 0x74, + 0x53, 0x79, 0x5b, 0xba, 0xdf, 0x70, 0xe9, 0x7a, 0x22, 0x70, 0xa9, 0x8f, 0x7e, 0x82, 0x3c, 0xf5, + 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x27, 0x16, 0x7e, 0xa7, 0x7b, 0x1b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1552,6 +1662,9 @@ type QueryClient interface { // QueryConsumerChainsByValidatorAddress returns a list of consumer chains // that a validator must validate QueryConsumerChainsByValidatorAddress(ctx context.Context, in *QueryConsumerChainsByValidatorAddressRequest, opts ...grpc.CallOption) (*QueryConsumerChainsByValidatorAddressResponse, error) + // QueryValidatorConsumerCommissionRate returns the commission rate a given + // validator charges on a given consumer chain + QueryValidatorConsumerCommissionRate(ctx context.Context, in *QueryValidatorConsumerCommissionRateRequest, opts ...grpc.CallOption) (*QueryValidatorConsumerCommissionRateResponse, error) } type queryClient struct { @@ -1679,6 +1792,15 @@ func (c *queryClient) QueryConsumerChainsByValidatorAddress(ctx context.Context, return out, nil } +func (c *queryClient) QueryValidatorConsumerCommissionRate(ctx context.Context, in *QueryValidatorConsumerCommissionRateRequest, opts ...grpc.CallOption) (*QueryValidatorConsumerCommissionRateResponse, error) { + out := new(QueryValidatorConsumerCommissionRateResponse) + err := c.cc.Invoke(ctx, "/interchain_security.ccv.provider.v1.Query/QueryValidatorConsumerCommissionRate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // ConsumerGenesis queries the genesis state needed to start a consumer chain @@ -1717,6 +1839,9 @@ type QueryServer interface { // QueryConsumerChainsByValidatorAddress returns a list of consumer chains // that a validator must validate QueryConsumerChainsByValidatorAddress(context.Context, *QueryConsumerChainsByValidatorAddressRequest) (*QueryConsumerChainsByValidatorAddressResponse, error) + // QueryValidatorConsumerCommissionRate returns the commission rate a given + // validator charges on a given consumer chain + QueryValidatorConsumerCommissionRate(context.Context, *QueryValidatorConsumerCommissionRateRequest) (*QueryValidatorConsumerCommissionRateResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1762,6 +1887,9 @@ func (*UnimplementedQueryServer) QueryOptedInValidatorsByConsumerChainID(ctx con func (*UnimplementedQueryServer) QueryConsumerChainsByValidatorAddress(ctx context.Context, req *QueryConsumerChainsByValidatorAddressRequest) (*QueryConsumerChainsByValidatorAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryConsumerChainsByValidatorAddress not implemented") } +func (*UnimplementedQueryServer) QueryValidatorConsumerCommissionRate(ctx context.Context, req *QueryValidatorConsumerCommissionRateRequest) (*QueryValidatorConsumerCommissionRateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryValidatorConsumerCommissionRate not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -2001,6 +2129,24 @@ func _Query_QueryConsumerChainsByValidatorAddress_Handler(srv interface{}, ctx c return interceptor(ctx, in, info, handler) } +func _Query_QueryValidatorConsumerCommissionRate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryValidatorConsumerCommissionRateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).QueryValidatorConsumerCommissionRate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/interchain_security.ccv.provider.v1.Query/QueryValidatorConsumerCommissionRate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryValidatorConsumerCommissionRate(ctx, req.(*QueryValidatorConsumerCommissionRateRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "interchain_security.ccv.provider.v1.Query", HandlerType: (*QueryServer)(nil), @@ -2057,6 +2203,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "QueryConsumerChainsByValidatorAddress", Handler: _Query_QueryConsumerChainsByValidatorAddress_Handler, }, + { + MethodName: "QueryValidatorConsumerCommissionRate", + Handler: _Query_QueryValidatorConsumerCommissionRate_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "interchain_security/ccv/provider/v1/query.proto", @@ -2997,6 +3147,76 @@ func (m *QueryConsumerChainsByValidatorAddressResponse) MarshalToSizedBuffer(dAt return len(dAtA) - i, nil } +func (m *QueryValidatorConsumerCommissionRateRequest) 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 *QueryValidatorConsumerCommissionRateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryValidatorConsumerCommissionRateRequest) 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] = 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 *QueryValidatorConsumerCommissionRateResponse) 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 *QueryValidatorConsumerCommissionRateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryValidatorConsumerCommissionRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Rate.Size() + i -= size + if _, err := m.Rate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -3398,6 +3618,34 @@ func (m *QueryConsumerChainsByValidatorAddressResponse) Size() (n int) { return n } +func (m *QueryValidatorConsumerCommissionRateRequest) 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.ProviderAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryValidatorConsumerCommissionRateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Rate.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -5835,6 +6083,204 @@ func (m *QueryConsumerChainsByValidatorAddressResponse) Unmarshal(dAtA []byte) e } return nil } +func (m *QueryValidatorConsumerCommissionRateRequest) 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: QueryValidatorConsumerCommissionRateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryValidatorConsumerCommissionRateRequest: 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 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 *QueryValidatorConsumerCommissionRateResponse) 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: QueryValidatorConsumerCommissionRateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryValidatorConsumerCommissionRateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rate", 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 + } + if err := m.Rate.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 skipQuery(dAtA []byte) (n int, err 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 618772e54e..fb8a2f3bfa 100644 --- a/x/ccv/provider/types/query.pb.gw.go +++ b/x/ccv/provider/types/query.pb.gw.go @@ -393,6 +393,42 @@ func local_request_Query_QueryConsumerChainsByValidatorAddress_0(ctx context.Con } +var ( + filter_Query_QueryValidatorConsumerCommissionRate_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QueryValidatorConsumerCommissionRate_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryValidatorConsumerCommissionRateRequest + 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_QueryValidatorConsumerCommissionRate_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryValidatorConsumerCommissionRate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryValidatorConsumerCommissionRate_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryValidatorConsumerCommissionRateRequest + 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_QueryValidatorConsumerCommissionRate_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryValidatorConsumerCommissionRate(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. @@ -698,6 +734,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_QueryValidatorConsumerCommissionRate_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_QueryValidatorConsumerCommissionRate_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_QueryValidatorConsumerCommissionRate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -999,6 +1058,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_QueryValidatorConsumerCommissionRate_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_QueryValidatorConsumerCommissionRate_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_QueryValidatorConsumerCommissionRate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1028,6 +1107,8 @@ var ( pattern_Query_QueryOptedInValidatorsByConsumerChainID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"interchain_security", "ccv", "provider", "opted_in_validators"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryConsumerChainsByValidatorAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"interchain_security", "ccv", "provider", "consumer_chains_per_validator"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_QueryValidatorConsumerCommissionRate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"interchain_security", "ccv", "provider", "consumer_commission_rate"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1056,4 +1137,6 @@ var ( forward_Query_QueryOptedInValidatorsByConsumerChainID_0 = runtime.ForwardResponseMessage forward_Query_QueryConsumerChainsByValidatorAddress_0 = runtime.ForwardResponseMessage + + forward_Query_QueryValidatorConsumerCommissionRate_0 = runtime.ForwardResponseMessage )