post

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 9 Imported by: 4

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 DonateMsg

type DonateMsg = types.DonateMsg

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, cdc *codec.Codec, filepath string) error
}

type UpdatePostMsg

type UpdatePostMsg = types.UpdatePostMsg

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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