mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 19:44:25 -08:00
scaffold generalized ongoing auction info query
This commit is contained in:
23
x/colinearcore/keeper/grpc_query_auction_info.go
Normal file
23
x/colinearcore/keeper/grpc_query_auction_info.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) AuctionInfo(goCtx context.Context, req *types.QueryAuctionInfoRequest) (*types.QueryAuctionInfoResponse, error) {
|
||||
if req == nil {
|
||||
return nil, status.Error(codes.InvalidArgument, "invalid request")
|
||||
}
|
||||
|
||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||
|
||||
// TODO: Process the query
|
||||
_ = ctx
|
||||
|
||||
return &types.QueryAuctionInfoResponse{}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user