keeper

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServer added in v1.5.0

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

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

func NewQueryServer added in v1.5.0

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 added in v1.0.3

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

func (Keeper) GetLike added in v1.5.0

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

func (Keeper) GetParams added in v1.4.0

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

func (Keeper) GetPost added in v1.5.0

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

func (Keeper) HasPost added in v1.5.0

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

func (Keeper) IsFollowed added in v1.5.0

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

func (Keeper) IsModerator added in v1.5.0

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

func (Keeper) IterateFollowings added in v1.5.0

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

func (Keeper) IterateLikes added in v1.5.0

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

func (Keeper) IteratePosts added in v1.5.0

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

func (Keeper) ListFollowed added in v1.5.0

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 added in v1.5.0

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

func (Keeper) ResetAccount added in v1.3.4

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 added in v1.4.0

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

func (Keeper) SetPost added in v1.5.0

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

func (Keeper) Unfollow added in v1.0.3

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