package keeper
import (
"context"
//"sort"
//"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
//"github.com/cosmos/cosmos-sdk/types/query"
//"google.golang.org/grpc/codes"
//"google.golang.org/grpc/status"
"github.com/joinresistance/space-pussy/x/graph/types"
)
var _ types.QueryServer = GraphKeeper{}
func (gk GraphKeeper) GraphStats(goCtx context.Context, _ *types.QueryGraphStatsRequest) (*types.QueryGraphStatsResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
links := gk.GetLinksCount(ctx)
cids := gk.GetCidsCount(ctx)
return &types.QueryGraphStatsResponse{links, cids}, nil
}
package keeper