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, sender sdk.AccAddress, receiver sdk.AccAddress, ...) error
- func (k Keeper) SetFaucetKey(ctx sdk.Context, armor string)
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 ¶
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) 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.
Click to show internal directories.
Click to hide internal directories.