keeper

package
v0.0.0-...-782c84e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBytesFromUInt64

func GetBytesFromUInt64(id uint64) []byte

GetBytesFromUInt64 returns the byte representation of the Uint64

func GetUInt64FromBytes

func GetUInt64FromBytes(bz []byte) uint64

GetUInt64FromBytes returns uint64 format from a byte array

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) CheckCommonError

func (k Keeper) CheckCommonError(tokenID string, symbol string, name string, totalSupply uint64) error

func (Keeper) GetAllTokenData

func (k Keeper) GetAllTokenData(ctx sdk.Context) (list []types.TokenData)

GetAllTokenData returns all tokenData

func (Keeper) GetTokenData

func (k Keeper) GetTokenData(
	ctx sdk.Context,
	tokenID string,

) (val types.TokenData, found bool)

GetTokenData returns a tokenData from its index

func (Keeper) Logger

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

func (Keeper) RemoveTokenData

func (k Keeper) RemoveTokenData(
	ctx sdk.Context,
	tokenID string,

)

RemoveTokenData removes a tokenData from the store

func (Keeper) SetTokenData

func (k Keeper) SetTokenData(ctx sdk.Context, tokenData types.TokenData)

SetTokenData set a specific tokenData in the store from its index

func (Keeper) SetTokenDataToAccount

func (k Keeper) SetTokenDataToAccount(ctx sdk.Context, tokenData types.TokenData)

Jump to

Keyboard shortcuts

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