Documentation ¶
Index ¶
- func NewMsgServer(keeper Keeper, tokenKeeper types.TokenKeeper) types.MsgServer
- func NewQueryServer(keeper Keeper) types.QueryServer
- type Keeper
- func (k Keeper) DeletePost(ctx sdk.Context, key []byte)
- func (k Keeper) Follow(ctx sdk.Context, who, whom sdk.AccAddress)
- func (k Keeper) GetLike(ctx sdk.Context, key []byte) types.Like
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPost(ctx sdk.Context, key []byte) types.Post
- func (k Keeper) HasPost(ctx sdk.Context, key []byte) bool
- func (k Keeper) IsFollowed(ctx sdk.Context, who, whom sdk.AccAddress) bool
- func (k Keeper) IsModerator(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) IterateFollowings(ctx sdk.Context, handle func(who, whom sdk.AccAddress) (stop bool))
- func (k Keeper) IterateLikes(ctx sdk.Context, handle func(l types.Like) (stop bool))
- func (k Keeper) IteratePosts(ctx sdk.Context, handle func(p types.Post) (stop bool))
- func (k Keeper) ListFollowed(ctx sdk.Context, owner sdk.AccAddress, p query.PageRequest) (followed []sdk.AccAddress, nextKey []byte, total uint64)
- func (k Keeper) ListUserPosts(ctx sdk.Context, owner sdk.AccAddress, p query.PageRequest) (posts []types.Post, nextKey []byte, total uint64)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ResetAccount(ctx sdk.Context, owner sdk.AccAddress)
- func (k Keeper) SetLike(ctx sdk.Context, l types.Like)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPost(ctx sdk.Context, p types.Post)
- func (k Keeper) Unfollow(ctx sdk.Context, who, whom sdk.AccAddress)
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) Follow ¶ added in v1.0.3
func (k Keeper) Follow(ctx sdk.Context, who, whom sdk.AccAddress)
func (Keeper) IsFollowed ¶ added in v1.5.0
func (Keeper) IsModerator ¶ added in v1.5.0
func (Keeper) IterateFollowings ¶ added in v1.5.0
func (Keeper) IterateLikes ¶ added in v1.5.0
func (Keeper) IteratePosts ¶ added in v1.5.0
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 (Keeper) ResetAccount ¶ added in v1.3.4
func (k Keeper) ResetAccount(ctx sdk.Context, owner sdk.AccAddress)
Click to show internal directories.
Click to hide internal directories.