keeper

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BurnStateKey = "burn_state_key"

Variables

This section is empty.

Functions

func GetStateKey

func GetStateKey(state types.State) string

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,
	ps paramtypes.Subspace,
	bankKeeper types.BankKeeper,
	accountKeeper types.AccountKeeper,

) *Keeper

func (Keeper) BurnCoinsForSpecifiedModuleAccount

func (k Keeper) BurnCoinsForSpecifiedModuleAccount(ctx sdk.Context, coins sdk.Coins, moduleAccountName string) error

func (Keeper) GetAccountAddressModuleAccount

func (k Keeper) GetAccountAddressModuleAccount(ctx sdk.Context, accountName string) sdk.AccAddress

func (Keeper) GetAccountCoins

func (k Keeper) GetAccountCoins(ctx sdk.Context, account sdk.AccAddress) sdk.Coins

func (Keeper) GetAccountCoinsForModuleAccount

func (k Keeper) GetAccountCoinsForModuleAccount(ctx sdk.Context, accountName string) sdk.Coins

func (Keeper) GetAllStates

func (k Keeper) GetAllStates(ctx sdk.Context) (list []types.State)

GetAllStates returns all States

func (Keeper) GetBurnState

func (k Keeper) GetBurnState(ctx sdk.Context) (remains types.State, found bool)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetState

func (k Keeper) GetState(ctx sdk.Context, stateKey string) (remains types.State, found bool)

GetState return state by key

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) SendCoinsFromModuleAccount

func (k Keeper) SendCoinsFromModuleAccount(ctx sdk.Context, coins sdk.Coins, moduleFrom string, account sdk.AccAddress) error

func (Keeper) SendCoinsFromModuleToModule

func (k Keeper) SendCoinsFromModuleToModule(ctx sdk.Context, coins sdk.Coins, moduleFrom string, moduleTo string) error

func (Keeper) SendCoinsToModuleAccount

func (k Keeper) SendCoinsToModuleAccount(ctx sdk.Context, coins sdk.Coins, account sdk.AccAddress, moduleTo string) error

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetState

func (k Keeper) SetState(ctx sdk.Context, state types.State)

SetState Set the state

func (Keeper) States

func (Keeper) SubDistributors

func (k Keeper) SubDistributors(ctx sdk.Context) (res []types.SubDistributor)

SubDistributors returns the SubDistributors param

Jump to

Keyboard shortcuts

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