keeper

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

Types

type Keeper

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

Keeper maintains the link to storage and exposes getter/setter methods for the various parts of the state machine

func NewKeeper

func NewKeeper(
	cdc codec.BinaryMarshaler,
	key sdk.StoreKey,
	bankKeeper types.BankKeeper,
	stakingKeeper types.StakingKeeper,
	defaultAmount int64,
	denomConfig map[string]types.DenomConfig,
	limit time.Duration) Keeper

NewKeeper creates a new staking Keeper instance

func (Keeper) FaucetKey

FaucetKey returns the stored faucet key

func (Keeper) GetFaucetKey

func (k Keeper) GetFaucetKey(ctx sdk.Context) types.FaucetKey

GetFaucetKey retrieves the faucet key from the store

func (Keeper) HasFaucetKey

func (k Keeper) HasFaucetKey(ctx sdk.Context) bool

HasFaucetKey checks if faucet key is already stored.

func (Keeper) Limit

func (k Keeper) Limit() time.Duration

Limit returns the configured limit

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) MintAndSend

func (k Keeper) MintAndSend(ctx sdk.Context, minter sdk.AccAddress, mintTime int64, denom string) error

MintAndSend mint coins and send to minter.

func (Keeper) SetFaucetKey

func (k Keeper) SetFaucetKey(ctx sdk.Context, armor string)

SetFaucetKey sets the faucet key

Jump to

Keyboard shortcuts

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