From 5914f1db854f28ed8d2d6645c333d7673e001752 Mon Sep 17 00:00:00 2001 From: Draco Date: Mon, 12 Feb 2024 12:49:49 -0500 Subject: [PATCH] Update Kava grpc client with consensus client (#1828) * Add consensus client to kava grpc client * Update kvtool to latest version This version includes the v25 kava template --- client/grpc/query/query.go | 3 +++ client/grpc/query/query_test.go | 1 + tests/e2e/kvtool | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/grpc/query/query.go b/client/grpc/query/query.go index 190e7c24..8466c5d6 100644 --- a/client/grpc/query/query.go +++ b/client/grpc/query/query.go @@ -8,6 +8,7 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" authz "github.com/cosmos/cosmos-sdk/x/authz" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types" disttypes "github.com/cosmos/cosmos-sdk/x/distribution/types" evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" govv1types "github.com/cosmos/cosmos-sdk/x/gov/types/v1" @@ -58,6 +59,7 @@ type QueryClient struct { Slashing slashingtypes.QueryClient Staking stakingtypes.QueryClient Upgrade upgradetypes.QueryClient + Consensus consensustypes.QueryClient // 3rd party query clients @@ -106,6 +108,7 @@ func NewQueryClient(grpcEndpoint string) (*QueryClient, error) { Slashing: slashingtypes.NewQueryClient(conn), Staking: stakingtypes.NewQueryClient(conn), Upgrade: upgradetypes.NewQueryClient(conn), + Consensus: consensustypes.NewQueryClient(conn), Evm: evmtypes.NewQueryClient(conn), Feemarket: feemarkettypes.NewQueryClient(conn), diff --git a/client/grpc/query/query_test.go b/client/grpc/query/query_test.go index 5e754f2d..86ed9dbc 100644 --- a/client/grpc/query/query_test.go +++ b/client/grpc/query/query_test.go @@ -46,6 +46,7 @@ func TestNewQueryClient_ValidClient(t *testing.T) { require.NotNil(t, client.Slashing) require.NotNil(t, client.Staking) require.NotNil(t, client.Upgrade) + require.NotNil(t, client.Consensus) // validate 3rd party clients require.NotNil(t, client.Evm) diff --git a/tests/e2e/kvtool b/tests/e2e/kvtool index 99214e8b..79bb25f4 160000 --- a/tests/e2e/kvtool +++ b/tests/e2e/kvtool @@ -1 +1 @@ -Subproject commit 99214e8b5196b9ab16fa9902f956858c178921a5 +Subproject commit 79bb25f47d20c10e70f0539c519240fba82b3302