keeper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AdvancedTypeValidator

func AdvancedTypeValidator(protoFile []byte) error

func GetAccount

func GetAccount(addr string) sdk.AccAddress

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,

	bankKeeper types.BankKeeper,
) *Keeper

func (Keeper) GetAllCtype

func (k Keeper) GetAllCtype(ctx sdk.Context) (list []types.Ctype)

GetAllCtype returns all ctype

func (Keeper) GetCtype

func (k Keeper) GetCtype(ctx sdk.Context, index string) (val types.Ctype, found bool)

GetCtype returns a ctype from its index

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) RemoveCtype

func (k Keeper) RemoveCtype(ctx sdk.Context, index string)

RemoveCtype removes a ctype from the store

func (Keeper) SetCtype

func (k Keeper) SetCtype(ctx sdk.Context, ctype types.Ctype)

SetCtype set a specific ctype in the store from its index

Jump to

Keyboard shortcuts

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