mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 02:54:25 -08:00
scaffold locked-funds query
This commit is contained in:
23
x/colinearcore/keeper/grpc_query_locked_funds.go
Normal file
23
x/colinearcore/keeper/grpc_query_locked_funds.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package keeper
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"colinear/x/colinearcore/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
func (k Keeper) LockedFunds(goCtx context.Context, req *types.QueryLockedFundsRequest) (*types.QueryLockedFundsResponse, error) {
|
||||
if req == nil {
|
||||
return nil, status.Error(codes.InvalidArgument, "invalid request")
|
||||
}
|
||||
|
||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||
|
||||
// TODO: Process the query
|
||||
_ = ctx
|
||||
|
||||
return &types.QueryLockedFundsResponse{}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user