From 415b36ec339f525c9a9f2a460be596db355a9f1b Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Tue, 28 May 2024 08:21:00 -0600 Subject: [PATCH] add query server --- x/ibchooks/keeper/query_server.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 x/ibchooks/keeper/query_server.go diff --git a/x/ibchooks/keeper/query_server.go b/x/ibchooks/keeper/query_server.go new file mode 100644 index 000000000..b496c52a9 --- /dev/null +++ b/x/ibchooks/keeper/query_server.go @@ -0,0 +1,16 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/provenance-io/provenance/x/ibchooks/types" +) + +var _ types.QueryServer = Keeper{} + +func (k Keeper) Params(ctx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { + c := sdk.UnwrapSDKContext(ctx) + return &types.QueryParamsResponse{Params: k.GetParams(c)}, nil +}