Documentation
¶
Index ¶
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) Fund(ctx sdk.Context, amount sdk.Coins, recipient sdk.AccAddress) error
- func (k Keeper) GetCap(ctx sdk.Context) sdk.Int
- func (k Keeper) GetFaucetAccount(ctx sdk.Context) supplyexported.ModuleAccountI
- func (k Keeper) GetFunded(ctx sdk.Context) sdk.Coins
- func (k Keeper) GetMaxPerRequest(ctx sdk.Context) sdk.Int
- func (k Keeper) GetTimeout(ctx sdk.Context) time.Duration
- func (k Keeper) IsEnabled(ctx sdk.Context) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetCap(ctx sdk.Context, cap sdk.Int)
- func (k Keeper) SetEnabled(ctx sdk.Context, enabled bool)
- func (k Keeper) SetFunded(ctx sdk.Context, funded sdk.Coins)
- func (k Keeper) SetMaxPerRequest(ctx sdk.Context, maxPerReq sdk.Int)
- func (k Keeper) SetTimout(ctx sdk.Context, timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier is the module level router for state queries
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper defines the faucet Keeper.
func (Keeper) Fund ¶
Fund checks for timeout and max thresholds and then mints coins and transfers coins to the recipient.
func (Keeper) GetFaucetAccount ¶
func (k Keeper) GetFaucetAccount(ctx sdk.Context) supplyexported.ModuleAccountI
GetFaucetAccount returns the faucet ModuleAccount
func (Keeper) SetMaxPerRequest ¶
Click to show internal directories.
Click to hide internal directories.