keeper

package
v0.0.0-...-d8b13bf Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const FaucetStoreKey = "DefaultFaucetStoreKey"

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	BankKeeper    bankkeeper.Keeper
	StakingKeeper stakingkeeper.Keeper
	AccountKeeper authkeeper.AccountKeeper

	Limit time.Duration // rate limiting for mint, etc 24 * time.Hours
	// 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(
	bankKeeper bankkeeper.Keeper,
	stakingKeeper stakingkeeper.Keeper,
	accountKeeper authkeeper.AccountKeeper,
	amount int64,
	rateLimit time.Duration,
	storeKey sdk.StoreKey,
	cdc codec.BinaryMarshaler) Keeper

NewKeeper creates new instances of the Faucet Keeper

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, msg *types.MsgMint) error

MintAndSend mint coins and send to receiver.

type MsgServer

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

func (MsgServer) Mint

type QueryServer

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

func (QueryServer) QueryWhenBrr

Jump to

Keyboard shortcuts

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