keeper

package
v0.0.0-...-8c18622 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const FaucetStoreKey = "DefaultFaucetStoreKey"
View Source
const (
	QueryFaucetKey = "key"
)

query endpoints supported by the nameservice Querier

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

	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,
	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, minter sdk.AccAddress, mintTime int64) error

MintAndSend mint coins and send to minter.

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