From f41511fc773b12e575b5b5797d7d3ce825c31e72 Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Sat, 23 Nov 2024 12:46:43 +0100 Subject: [PATCH] Add grpc bank balance queries withelist --- demo/app/wasm/grpc_whitelist.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/demo/app/wasm/grpc_whitelist.go b/demo/app/wasm/grpc_whitelist.go index 9b4b342..eb338bb 100644 --- a/demo/app/wasm/grpc_whitelist.go +++ b/demo/app/wasm/grpc_whitelist.go @@ -4,6 +4,7 @@ import ( wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" ) @@ -23,6 +24,9 @@ func RegisterGrpcQueries(bApp *baseapp.BaseApp, appCodec codec.Codec) []wasmkeep // WhitelistedGrpcQuery returns the whitelisted Grpc queries func WhitelistedGrpcQuery() wasmkeeper.AcceptedQueries { return wasmkeeper.AcceptedQueries{ + // bank + "/cosmos.bank.v1beta1.Query/AllBalances": &banktypes.QueryAllBalancesResponse{}, + "/cosmos.bank.v1beta1.Query/Balance": &banktypes.QueryBalanceResponse{}, // mint "/cosmos.mint.v1beta1.Query/Params": &minttypes.QueryParamsResponse{}, }