Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(pm PostKeeper) sdk.Handler
NewHandler - Handle all "post" type messages.
func NewQuerier ¶ added in v0.2.0
func NewQuerier(pm PostKeeper) sdk.Querier
creates a querier for post REST endpoints
Types ¶
type CreatePostMsg ¶
type CreatePostMsg = types.CreatePostMsg
type DeletePostMsg ¶
type DeletePostMsg = types.DeletePostMsg
type IDADonateMsg ¶ added in v0.3.0
type IDADonateMsg = types.IDADonateMsg
type PostKeeper ¶ added in v0.3.0
type PostKeeper interface {
DoesPostExist(ctx sdk.Context, permlink linotypes.Permlink) bool
GetPost(ctx sdk.Context, permlink linotypes.Permlink) (model.Post, sdk.Error)
CreatePost(ctx sdk.Context, author linotypes.AccountKey, postID string, createdBy linotypes.AccountKey, content string, title string) sdk.Error
UpdatePost(ctx sdk.Context, author linotypes.AccountKey, postID, title, content string) sdk.Error
DeletePost(ctx sdk.Context, permlink linotypes.Permlink) sdk.Error
LinoDonate(ctx sdk.Context, from linotypes.AccountKey, amount linotypes.Coin, author linotypes.AccountKey, postID string, app linotypes.AccountKey) sdk.Error
IDADonate(ctx sdk.Context, from linotypes.AccountKey, n linotypes.MiniIDA, author linotypes.AccountKey, postID string, app, signer linotypes.AccountKey) sdk.Error
ExecRewardEvent(ctx sdk.Context, reward types.RewardEvent) sdk.Error
ImportFromFile(ctx sdk.Context, cdc *codec.Codec, filepath string) error
ExportToFile(ctx sdk.Context, filepath string) error
}
type UpdatePostMsg ¶
type UpdatePostMsg = types.UpdatePostMsg
Click to show internal directories.
Click to hide internal directories.