keepers

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryCommentCount = "get-count"
)

Variables

View Source
var (
	CommentCountKey = []byte{0x10}
)

Functions

func NewQuerier added in v0.0.10

func NewQuerier(mk Keeper, cdc *codec.Codec) sdk.Querier

creates a querier for asset REST endpoints

Types

type CommentCountInfo added in v0.0.10

type CommentCountInfo struct {
	CommentCount uint64 `json:"comment_count"`
}

type CommentCountKeeper

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

func NewCommentCountKeeper

func NewCommentCountKeeper(key sdk.StoreKey) *CommentCountKeeper

func (*CommentCountKeeper) GetCommentCount

func (keeper *CommentCountKeeper) GetCommentCount(ctx sdk.Context) uint64

func (*CommentCountKeeper) IncrCommentCount

func (keeper *CommentCountKeeper) IncrCommentCount(ctx sdk.Context)

func (*CommentCountKeeper) SetCommentCount

func (keeper *CommentCountKeeper) SetCommentCount(ctx sdk.Context, count uint64)

type Keeper

type Keeper struct {
	Cck         *CommentCountKeeper
	Bxk         types.ExpectedBankxKeeper
	Axk         types.ExpectedAssetStatusKeeper
	Dk          types.ExpectedDistributionxKeeper
	MsgSendFunc func(key string, v interface{}) error
}

func NewKeeper

func NewKeeper(cck *CommentCountKeeper,
	bxk types.ExpectedBankxKeeper,
	axk types.ExpectedAssetStatusKeeper,
	dk types.ExpectedDistributionxKeeper,
	msgSendFunc func(key string, v interface{}) error) *Keeper

Jump to

Keyboard shortcuts

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