keeper

package
v0.1.0-furya.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServer

func NewMsgServer(
	keeper Keeper,
	tokenKeeper types.TokenKeeper,
) types.MsgServer

NewMsgServer returns an implementation of the MsgServer interface for the provided Keeper.

func NewQueryServer

func NewQueryServer(keeper Keeper) types.QueryServer

NewQueryServer returns an implementation of the QueryServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey sdk.StoreKey,
	paramSpace paramtypes.Subspace,
) *Keeper

func (Keeper) DeletePost

func (k Keeper) DeletePost(ctx sdk.Context, key []byte)

func (Keeper) Follow

func (k Keeper) Follow(ctx sdk.Context, who, whom sdk.AccAddress)

func (Keeper) GetLike

func (k Keeper) GetLike(ctx sdk.Context, key []byte) types.Like

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

func (Keeper) GetPost

func (k Keeper) GetPost(ctx sdk.Context, key []byte) types.Post

func (Keeper) HasPost

func (k Keeper) HasPost(ctx sdk.Context, key []byte) bool

func (Keeper) IsFollowed

func (k Keeper) IsFollowed(ctx sdk.Context, who, whom sdk.AccAddress) bool

func (Keeper) IsModerator

func (k Keeper) IsModerator(ctx sdk.Context, address sdk.AccAddress) bool

func (Keeper) IterateFollowings

func (k Keeper) IterateFollowings(ctx sdk.Context, handle func(who, whom sdk.AccAddress) (stop bool))

func (Keeper) IterateLikes

func (k Keeper) IterateLikes(ctx sdk.Context, handle func(l types.Like) (stop bool))

func (Keeper) IteratePosts

func (k Keeper) IteratePosts(ctx sdk.Context, handle func(p types.Post) (stop bool))

func (Keeper) ListFollowed

func (k Keeper) ListFollowed(
	ctx sdk.Context,
	owner sdk.AccAddress,
	p query.PageRequest,
) (followed []sdk.AccAddress, nextKey []byte, total uint64)

func (Keeper) ListUserPosts

func (k Keeper) ListUserPosts(
	ctx sdk.Context,
	owner sdk.AccAddress,
	p query.PageRequest,
) (posts []types.Post, nextKey []byte, total uint64)

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) ResetAccount

func (k Keeper) ResetAccount(ctx sdk.Context, owner sdk.AccAddress)

func (Keeper) SetLike

func (k Keeper) SetLike(ctx sdk.Context, l types.Like)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

func (Keeper) SetPost

func (k Keeper) SetPost(ctx sdk.Context, p types.Post)

func (Keeper) Unfollow

func (k Keeper) Unfollow(ctx sdk.Context, who, whom sdk.AccAddress)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL