Documentation
¶
Index ¶
Constants ¶
View Source
const (
QueryCommentCount = "get-count"
)
Variables ¶
View Source
var (
CommentCountKey = []byte{0x10}
)
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.