Documentation ¶
Index ¶
- Constants
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) GetFaucetKey(ctx sdk.Context) types.FaucetKey
- func (k Keeper) HasFaucetKey(ctx sdk.Context) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintAndSend(ctx sdk.Context, minter sdk.AccAddress, mintTime int64) error
- func (k Keeper) SetFaucetKey(ctx sdk.Context, armor string)
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 ¶
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) MintAndSend ¶
MintAndSend mint coins and send to minter.
Click to show internal directories.
Click to hide internal directories.