Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) DistributeMintedCoin(ctx sdk.Context, mintedCoin sdk.Coin) error
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter)
- func (k Keeper) GetNextReductionTime(ctx sdk.Context) int64
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) InitGenesis(ctx sdk.Context, data *types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error
- func (k *Keeper) SetHooks(h types.MintHooks) *Keeper
- func (k Keeper) SetMinter(ctx sdk.Context, minter types.Minter)
- func (k Keeper) SetNextReductionTime(ctx sdk.Context, time int64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type Querier
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, ck types.CommunityPoolKeeper, feeCollectorName string, ) Keeper
NewKeeper creates a new mint Keeper instance.
func (Keeper) DistributeMintedCoin ¶
DistributeMintedCoins implements distribution of minted coins from mint to external modules.
func (Keeper) EndBlocker ¶
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func (Keeper) GetNextReductionTime ¶
GetNextReductionTime returns next reduction time.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, data *types.GenesisState)
InitGenesis new mint genesis.
func (Keeper) MintCoins ¶
MintCoins implements an alias call to the underlying supply keeper's MintCoins to be used in BeginBlocker.
func (Keeper) SetNextReductionTime ¶
SetNextReductionTime set next reduction time.
type Querier ¶
type Querier struct {
Keeper
}
Querier defines a wrapper around the x/mint keeper providing gRPC method handlers.
func NewQuerier ¶
func (Querier) DailyProvisions ¶
func (q Querier) DailyProvisions(c context.Context, _ *types.QueryDailyProvisionsRequest) (*types.QueryDailyProvisionsResponse, error)
DailyProvisions returns minter.DailyProvisions of the mint module.
func (Querier) Params ¶
func (q Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns params of the mint module.