Versions in this module Expand all Collapse all v6 v6.0.0 Feb 24, 2023 Changes in this version + type Hooks struct + func (h Hooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) + func (h Hooks) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) + type Keeper struct + func NewKeeper(storeKey sdk.StoreKey, cdc codec.BinaryCodec, ps paramtypes.Subspace, ...) Keeper + func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) + func (k Keeper) AllocateExponentialInflation(ctx sdk.Context, mintedCoin sdk.Coin) (staking, communityPool sdk.Coins, err error) + func (k Keeper) BeforeEpochStart(_ sdk.Context, _ string, _ int64) + func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec + func (k Keeper) CirculatingSupply(c context.Context, _ *types.QueryCirculatingSupplyRequest) (*types.QueryCirculatingSupplyResponse, error) + func (k Keeper) EpochMintProvision(c context.Context, _ *types.QueryEpochMintProvisionRequest) (*types.QueryEpochMintProvisionResponse, error) + func (k Keeper) GetCirculatingSupply(ctx sdk.Context) sdk.Dec + func (k Keeper) GetComPool(ctx sdk.Context) sdk.DecCoins + func (k Keeper) GetEpochIdentifier(ctx sdk.Context) string + func (k Keeper) GetEpochMintProvision(ctx sdk.Context) (sdk.Dec, bool) + func (k Keeper) GetEpochsPerPeriod(ctx sdk.Context) int64 + func (k Keeper) GetInflationRate(ctx sdk.Context) sdk.Dec + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetPeriod(ctx sdk.Context) uint64 + func (k Keeper) GetProportions(ctx sdk.Context, coin sdk.Coin, distribution sdk.Dec) sdk.Coin + func (k Keeper) GetSkippedEpochs(ctx sdk.Context) uint64 + func (k Keeper) Hooks() Hooks + func (k Keeper) InflationRate(c context.Context, _ *types.QueryInflationRateRequest) (*types.QueryInflationRateResponse, error) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MintAndAllocateInflation(ctx sdk.Context, coin sdk.Coin) (staking, communityPool sdk.Coins, err error) + func (k Keeper) MintCoins(ctx sdk.Context, coin sdk.Coin) error + func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Keeper) Period(c context.Context, _ *types.QueryPeriodRequest) (*types.QueryPeriodResponse, error) + func (k Keeper) SetEpochIdentifier(ctx sdk.Context, epochIdentifier string) + func (k Keeper) SetEpochMintProvision(ctx sdk.Context, epochMintProvision sdk.Dec) + func (k Keeper) SetEpochsPerPeriod(ctx sdk.Context, epochsPerPeriod int64) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetPeriod(ctx sdk.Context, period uint64) + func (k Keeper) SetSkippedEpochs(ctx sdk.Context, skippedEpochs uint64) + func (k Keeper) SkippedEpochs(c context.Context, _ *types.QuerySkippedEpochsRequest) (*types.QuerySkippedEpochsResponse, error) + type Migrator struct + func NewMigrator(keeper Keeper) Migrator + func (m Migrator) Migrate1to2(ctx sdk.Context) error Other modules containing this package github.com/Canto-Network/Canto/v2 github.com/Canto-Network/Canto/v7 github.com/Canto-Network/Canto/v8