Documentation ¶
Index ¶
- func GetNextScheduledTokenRelease(epoch epochTypes.Epoch, tokenReleaseSchedule []types.ScheduledTokenRelease, ...) *types.ScheduledTokenRelease
- type Hooks
- type Keeper
- func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) AfterEpochEnd(ctx sdk.Context, epoch epochTypes.Epoch)
- func (k Keeper) BeforeEpochStart(ctx sdk.Context, epoch epochTypes.Epoch)
- func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetCdc() codec.BinaryCodec
- func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter)
- func (k Keeper) GetOrUpdateLatestMinter(ctx sdk.Context, epoch epochTypes.Epoch) types.Minter
- func (k Keeper) GetParamSpace() paramtypes.Subspace
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetProportions(ctx sdk.Context, mintedCoin sdk.Coin, ratio sdk.Dec) sdk.Coin
- func (k Keeper) GetStoreKey() sdk.StoreKey
- func (k Keeper) Hooks() Hooks
- 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) SetParamSpace(subspace paramtypes.Subspace)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) StakingTokenSupply(ctx sdk.Context) sdk.Int
- type Migrator
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNextScheduledTokenRelease ¶
func GetNextScheduledTokenRelease( epoch epochTypes.Epoch, tokenReleaseSchedule []types.ScheduledTokenRelease, currentMinter types.Minter, ) *types.ScheduledTokenRelease
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
func (Hooks) AfterEpochEnd ¶
func (h Hooks) AfterEpochEnd(ctx sdk.Context, epoch epochTypes.Epoch)
func (Hooks) BeforeEpochStart ¶
func (h Hooks) BeforeEpochStart(ctx sdk.Context, epoch epochTypes.Epoch)
epochs hooks.
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, sk types.StakingKeeper, ak types.AccountKeeper, bk types.BankKeeper, ek types.EpochKeeper, feeCollectorName string, ) Keeper
NewKeeper creates a new mint Keeper instance
func (Keeper) AddCollectedFees ¶
AddCollectedFees implements an alias call to the underlying supply keeper's AddCollectedFees to be used in BeginBlocker.
func (Keeper) AfterEpochEnd ¶
func (k Keeper) AfterEpochEnd(ctx sdk.Context, epoch epochTypes.Epoch)
func (Keeper) BeforeEpochStart ¶
func (k Keeper) BeforeEpochStart(ctx sdk.Context, epoch epochTypes.Epoch)
func (Keeper) BondedRatio ¶
BondedRatio implements an alias call to the underlying staking keeper's
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func (Keeper) GetCdc ¶
func (k Keeper) GetCdc() codec.BinaryCodec
func (Keeper) GetOrUpdateLatestMinter ¶
GetProportions gets the balance of the `MintedDenom` from minted coins and returns coins according to the `AllocationRatio`.
func (Keeper) GetParamSpace ¶
func (k Keeper) GetParamSpace() paramtypes.Subspace
func (Keeper) GetProportions ¶
GetProportions gets the balance of the `MintedDenom` from minted coins and returns coins according to the `AllocationRatio`.
func (Keeper) GetStoreKey ¶
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) SetParamSpace ¶
func (k *Keeper) SetParamSpace(subspace paramtypes.Subspace)
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
type Querier ¶
type Querier struct {
Keeper
}
Querier defines a wrapper around the x/mint keeper providing gRPC method handlers.
func NewQuerier ¶
func (Querier) Minter ¶
func (q Querier) Minter(c context.Context, _ *types.QueryMinterRequest) (*types.QueryMinterResponse, error)
Returns the most last mint state
func (Querier) Params ¶
func (q Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns params of the mint module.