keeper

package
v0.0.0-...-606b92f Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryFaucetKey = "key"
	QueryWhenBrrr  = "whenBrr"
)

query endpoints supported by the nameservice Querier

View Source
const FaucetStoreKey = "DefaultFaucetStoreKey"

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

NewQuerier is the module level router for state queries

Types

type Keeper

type Keeper struct {
	SupplyKeeper  types.SupplyKeeper
	StakingKeeper types.StakingKeeper
	AccountKeeper auth.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(
	supplyKeeper types.SupplyKeeper,
	stakingKeeper types.StakingKeeper,
	accountKeeper auth.AccountKeeper,
	amount int64,
	rateLimit time.Duration,
	storeKey sdk.StoreKey,
	cdc *codec.Codec) Keeper

NewKeeper creates new instances of the Faucet Keeper

func (Keeper) GetFaucetKey

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

func (Keeper) HasFaucetKey

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

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, sender sdk.AccAddress, receiver sdk.AccAddress, mintTime int64, denom string) error

MintAndSend mint coins and send to receiver.

func (Keeper) SetFaucetKey

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

Jump to

Keyboard shortcuts

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