Documentation ¶
Index ¶
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) DistributeMintedCoins(ctx sdk.Context, mintedCoins sdk.Coins) error
- func (k Keeper) EpochProvisions(c context.Context, _ *types.QueryEpochProvisionsRequest) (*types.QueryEpochProvisionsResponse, error)
- func (k Keeper) GetEpochNum(ctx sdk.Context) int64
- func (k Keeper) GetLastEpochTime(ctx sdk.Context) time.Time
- func (k Keeper) GetLastHalvenEpochNum(ctx sdk.Context) int64
- func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetProportions(ctx sdk.Context, fees sdk.Coins, ratio sdk.Dec) sdk.Coin
- 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) SetEpochNum(ctx sdk.Context, epochNum int64)
- func (k *Keeper) SetHooks(h types.MintHooks) *Keeper
- func (k Keeper) SetLastEpochTime(ctx sdk.Context, epochTime time.Time)
- func (k Keeper) SetLastHalvenEpochNum(ctx sdk.Context, epochNum int64)
- func (k Keeper) SetMinter(ctx sdk.Context, minter types.Minter)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
NewQuerier returns a minting Querier handler.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the mint store
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryMarshaler, key sdk.StoreKey, paramSpace paramtypes.Subspace, ak types.AccountKeeper, bk types.BankKeeper, feeCollectorName string, ) Keeper
NewKeeper creates a new mint Keeper instance
func (Keeper) DistributeMintedCoins ¶
DistributeMintedCoins implements distribution of minted coins from mint to external modules.
func (Keeper) EpochProvisions ¶
func (k Keeper) EpochProvisions(c context.Context, _ *types.QueryEpochProvisionsRequest) (*types.QueryEpochProvisionsResponse, error)
EpochProvisions returns minter.EpochProvisions of the mint module.
func (Keeper) GetEpochNum ¶
GetEpochNum returns epoch number
func (Keeper) GetLastEpochTime ¶
GetLastEpochTime returns last epoch time
func (Keeper) GetLastHalvenEpochNum ¶
GetLastHalvenEpochNum returns last halven epoch number
func (Keeper) GetProportions ¶
GetPoolAllocatableAsset gets the balance of the `MintedDenom` from fees and returns coins according to the `AllocationRatio`
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) SetEpochNum ¶
SetEpochNum set epoch number
func (Keeper) SetLastEpochTime ¶
SetLastEpochTime set last epoch time
func (Keeper) SetLastHalvenEpochNum ¶
SetLastHalvenEpochNum set last halven epoch number