Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) GetInflationSchedules(ctx sdk.Context) (res []types.InflationSchedule)
- func (k Keeper) GetLastBlockTime(ctx sdk.Context) *time.Time
- func (k Keeper) GetMintPoolAddress(ctx sdk.Context) (acc sdk.AccAddress)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) LastBlockTime(c context.Context, _ *types.QueryLastBlockTimeRequest) (*types.QueryLastBlockTimeResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error
- func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SendInflationToMintPool(ctx sdk.Context, inflation sdk.Coins) error
- func (k Keeper) SetLastBlockTime(ctx sdk.Context, blockTime time.Time)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the mint store
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key sdk.StoreKey, paramSpace paramtypes.Subspace, ak types.AccountKeeper, bk types.BankKeeper, feeCollectorName string, ) Keeper
NewKeeper creates a new mint Keeper instance
func (Keeper) GetInflationSchedules ¶
func (k Keeper) GetInflationSchedules(ctx sdk.Context) (res []types.InflationSchedule)
GetInflationSchedules return inflation schedules set on app
func (Keeper) GetLastBlockTime ¶
GetLastBlockTime returns the last block time.
func (Keeper) GetMintPoolAddress ¶
func (k Keeper) GetMintPoolAddress(ctx sdk.Context) (acc sdk.AccAddress)
GetMintPoolAddress return mint pool address on app
func (Keeper) LastBlockTime ¶
func (k Keeper) LastBlockTime(c context.Context, _ *types.QueryLastBlockTimeRequest) (*types.QueryLastBlockTimeResponse, error)
LastBlockTime returns last block time.
func (Keeper) MintCoins ¶
MintCoins implements an alias call to the underlying supply keeper's MintCoins to be used in BeginBlocker.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns params of the mint module.
func (Keeper) SendInflationToMintPool ¶
SendInflationToMintPool sends inflation to params.MintPoolAddress, It to be used in BeginBlocker.
func (Keeper) SetLastBlockTime ¶
SetLastBlockTime stores the last block time.
Click to show internal directories.
Click to hide internal directories.