Skip to content

Commit

Permalink
add query server
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed May 28, 2024
1 parent 17f2216 commit 415b36e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions x/ibchooks/keeper/query_server.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 415b36e

Please sign in to comment.