Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) AnnualProvisions(c context.Context, _ *types.QueryAnnualProvisionsRequest) (*types.QueryAnnualProvisionsResponse, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GenesisTime(c context.Context, _ *types.QueryGenesisTimeRequest) (*types.QueryGenesisTimeResponse, error)
- func (k Keeper) GetGenesisTime(ctx sdk.Context) (gt types.GenesisTime)
- func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter)
- func (k Keeper) InflationRate(c context.Context, _ *types.QueryInflationRateRequest) (*types.QueryInflationRateResponse, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, ak types.AccountKeeper, 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) SendCoinsToFeeCollector(ctx sdk.Context, coins sdk.Coins) error
- func (k Keeper) SetGenesisTime(ctx sdk.Context, gt types.GenesisTime)
- func (k Keeper) SetMinter(ctx sdk.Context, minter types.Minter)
- func (k Keeper) StakingTokenSupply(ctx sdk.Context) math.Int
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, storeKey storetypes.StoreKey, stakingKeeper types.StakingKeeper, ak types.AccountKeeper, bankKeeper types.BankKeeper, feeCollectorName string, ) Keeper
NewKeeper creates a new mint Keeper instance.
func (Keeper) AnnualProvisions ¶
func (k Keeper) AnnualProvisions(c context.Context, _ *types.QueryAnnualProvisionsRequest) (*types.QueryAnnualProvisionsResponse, error)
AnnualProvisions returns minter.AnnualProvisions of the mint module.
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns a x/mint GenesisState for the given context.
func (Keeper) GenesisTime ¶
func (k Keeper) GenesisTime(c context.Context, _ *types.QueryGenesisTimeRequest) (*types.QueryGenesisTimeResponse, error)
GenesisTime returns the GensisTime of the mint module.
func (Keeper) GetGenesisTime ¶
func (k Keeper) GetGenesisTime(ctx sdk.Context) (gt types.GenesisTime)
GetGenesisTime returns the genesis time.
func (Keeper) InflationRate ¶
func (k Keeper) InflationRate(c context.Context, _ *types.QueryInflationRateRequest) (*types.QueryInflationRateResponse, error)
InflationRate returns minter.InflationRate of the mint module.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, ak types.AccountKeeper, data *types.GenesisState)
InitGenesis initializes the x/mint store with data from the genesis state.
func (Keeper) MintCoins ¶
MintCoins implements an alias call to the underlying bank keeper's MintCoins.
func (Keeper) SendCoinsToFeeCollector ¶
SendCoinsToFeeCollector sends newly minted coins from the x/mint module to the x/auth fee collector module account.
func (Keeper) SetGenesisTime ¶
func (k Keeper) SetGenesisTime(ctx sdk.Context, gt types.GenesisTime)
SetGenesisTime sets the genesis time.