keepers

package
v0.2.5-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type CommentCountKeeper

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

func NewCommentCountKeeper

func NewCommentCountKeeper(key sdk.StoreKey) *CommentCountKeeper

func (*CommentCountKeeper) GetAllCommentCount

func (keeper *CommentCountKeeper) GetAllCommentCount(ctx sdk.Context) map[string]uint64

func (*CommentCountKeeper) GetCommentCount

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

func (*CommentCountKeeper) IncrCommentCount

func (keeper *CommentCountKeeper) IncrCommentCount(ctx sdk.Context, denom string) uint64

func (*CommentCountKeeper) SetCommentCount

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

type Keeper

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

func (*Keeper) DonateToCommunityPool

func (k *Keeper) DonateToCommunityPool(ctx sdk.Context, fromAddr sdk.AccAddress, amt sdk.Coins) sdk.Error

func (*Keeper) GetAccount

func (k *Keeper) GetAccount(ctx sdk.Context, addr sdk.AccAddress) auth.Account

func (*Keeper) GetAllCommentCount

func (k *Keeper) GetAllCommentCount(ctx sdk.Context) map[string]uint64

func (*Keeper) GetCommentCount

func (k *Keeper) GetCommentCount(ctx sdk.Context, denom string) uint64

func (*Keeper) GetEventTypeMsgQueue

func (k *Keeper) GetEventTypeMsgQueue() string

func (*Keeper) IncrCommentCount

func (k *Keeper) IncrCommentCount(ctx sdk.Context, denom string) uint64

func (*Keeper) IsTokenExists

func (k *Keeper) IsTokenExists(ctx sdk.Context, denom string) bool

func (*Keeper) SendCoins

func (k *Keeper) SendCoins(ctx sdk.Context, from sdk.AccAddress, to sdk.AccAddress, amt sdk.Coins) sdk.Error

func (*Keeper) SetCommentCount

func (k *Keeper) SetCommentCount(ctx sdk.Context, denom string, count uint64)

Jump to

Keyboard shortcuts

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