Documentation ¶
Index ¶
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) AnnualProvisions(c context.Context, _ *types.QueryAnnualProvisionsRequest) (*types.QueryAnnualProvisionsResponse, error)
- func (keeper Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GenesisTime(c context.Context, _ *types.QueryGenesisTimeRequest) (*types.QueryGenesisTimeResponse, error)
- func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter)
- func (k Keeper) InflationRate(c context.Context, _ *types.QueryInflationRateRequest) (*types.QueryInflationRateResponse, error)
- func (keeper 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) 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 ¶
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.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 (keeper Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func (Keeper) GenesisTime ¶
func (k Keeper) GenesisTime(c context.Context, _ *types.QueryGenesisTimeRequest) (*types.QueryGenesisTimeResponse, error)
GenesisTime returns minter.GensisTime of the mint module.
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 (keeper Keeper) InitGenesis(ctx sdk.Context, ak types.AccountKeeper, data *types.GenesisState)
InitGenesis new mint genesis
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.
Click to show internal directories.
Click to hide internal directories.