Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) FaucetKey(c context.Context, req *types.QueryFaucetKeyRequest) (*types.QueryFaucetKeyResponse, error)
- func (k Keeper) GetFaucetKey(ctx sdk.Context) types.FaucetKey
- func (k Keeper) HasFaucetKey(ctx sdk.Context) bool
- func (k Keeper) Limit() time.Duration
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintAndSend(ctx sdk.Context, minter sdk.AccAddress, mintTime int64, denom string) error
- func (k Keeper) SetFaucetKey(ctx sdk.Context, armor string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the curating MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// 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( cdc codec.BinaryMarshaler, key sdk.StoreKey, bankKeeper types.BankKeeper, stakingKeeper types.StakingKeeper, defaultAmount int64, denomConfig map[string]types.DenomConfig, limit time.Duration) Keeper
NewKeeper creates a new staking Keeper instance
func (Keeper) FaucetKey ¶
func (k Keeper) FaucetKey(c context.Context, req *types.QueryFaucetKeyRequest) (*types.QueryFaucetKeyResponse, error)
FaucetKey returns the stored faucet key
func (Keeper) GetFaucetKey ¶
GetFaucetKey retrieves the faucet key from the store
func (Keeper) HasFaucetKey ¶
HasFaucetKey checks if faucet key is already stored.
func (Keeper) MintAndSend ¶
func (k Keeper) MintAndSend(ctx sdk.Context, minter sdk.AccAddress, mintTime int64, denom string) error
MintAndSend mint coins and send to minter.
Click to show internal directories.
Click to hide internal directories.