Versions in this module Expand all Collapse all v0 v0.34.7 Oct 3, 2019 Changes in this version + const DefaultParamspace + const ModuleName + const QuerierRoute + const QueryAnnualProvisions + const QueryInflation + const QueryParameters + const StoreKey + var ParamStoreKeyParams = []byte("params") + func BeginBlocker(ctx sdk.Context, k Keeper) + func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) + func NewQuerier(k Keeper) sdk.Querier + func ParamKeyTable() params.KeyTable + func ValidateGenesis(data GenesisState) error + type FeeCollectionKeeper interface + AddCollectedFees func(sdk.Context, sdk.Coins) sdk.Coins + type GenesisState struct + Minter Minter + Params Params + func DefaultGenesisState() GenesisState + func ExportGenesis(ctx sdk.Context, keeper Keeper) GenesisState + func NewGenesisState(minter Minter, params Params) GenesisState + type Keeper struct + func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, paramSpace params.Subspace, ...) Keeper + func (k Keeper) GetMinter(ctx sdk.Context) (minter Minter) + func (k Keeper) GetParams(ctx sdk.Context) Params + func (k Keeper) SetMinter(ctx sdk.Context, minter Minter) + func (k Keeper) SetParams(ctx sdk.Context, params Params) + type Minter struct + AnnualProvisions sdk.Dec + Inflation sdk.Dec + func DefaultInitialMinter() Minter + func InitialMinter(inflation sdk.Dec) Minter + func NewMinter(inflation, annualProvisions sdk.Dec) Minter + func (m Minter) BlockProvision(params Params) sdk.Coin + func (m Minter) NextAnnualProvisions(_ Params, totalSupply sdk.Int) sdk.Dec + func (m Minter) NextInflationRate(params Params, bondedRatio sdk.Dec) sdk.Dec + type Params struct + BlocksPerYear uint64 + GoalBonded sdk.Dec + InflationMax sdk.Dec + InflationMin sdk.Dec + InflationRateChange sdk.Dec + MintDenom string + func DefaultParams() Params + func NewParams(mintDenom string, ...) Params + func (p Params) String() string + type StakingKeeper interface + BondedRatio func(ctx sdk.Context) sdk.Dec + InflateSupply func(ctx sdk.Context, newTokens sdk.Int) + TotalTokens func(ctx sdk.Context) sdk.Int