Documentation ¶
Index ¶
- func NewMsgServerImpl(k Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) AnnualProvisions(c context.Context, _ *types.QueryAnnualProvisionsRequest) (*types.QueryAnnualProvisionsResponse, error)
- func (k Keeper) BondedRatio(ctx sdk.Context) math.LegacyDec
- func (k Keeper) BondedTokenSupply(ctx sdk.Context) math.Int
- func (k Keeper) BurnFees(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) CountCollectedFees(ctx sdk.Context, denom string) sdk.Coin
- func (keeper Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter)
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) Inflation(c context.Context, _ *types.QueryInflationRequest) (*types.QueryInflationResponse, 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) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetMinter(ctx sdk.Context, minter types.Minter)
- func (k Keeper) SetParams(ctx sdk.Context, p types.Params) error
- func (k Keeper) StakingTokenSupply(ctx sdk.Context) math.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the x/mint MsgServer interface.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the mint store
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key storetypes.StoreKey, sk types.StakingKeeper, ak types.AccountKeeper, bk types.BankKeeper, feeCollectorName string, authority 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) AnnualProvisions ¶
func (k Keeper) AnnualProvisions(c context.Context, _ *types.QueryAnnualProvisionsRequest) (*types.QueryAnnualProvisionsResponse, error)
AnnualProvisions returns minter.AnnualProvisions of the mint module.
func (Keeper) BondedRatio ¶
BondedRatio implements an alias call to the underlying staking keeper's BondedRatio to be used in BeginBlocker.
func (Keeper) BondedTokenSupply ¶
BondedTokenSupply implements an alian call to the underlying staking keeper's BondedTokenSupply to be used in BeginBlocker
func (Keeper) BurnFees ¶
BurnFees implements an alias call to the underlying supply keeper's BurnFees to be used in BeginBlocker.
func (Keeper) CountCollectedFees ¶
CountCollectedFees implements an alias call to the underlying supply keeper's CountCollectedFees to be used in BeginBlocker.
func (Keeper) ExportGenesis ¶
func (keeper Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func (Keeper) GetAuthority ¶
GetAuthority returns the x/mint module's authority.
func (Keeper) Inflation ¶
func (k Keeper) Inflation(c context.Context, _ *types.QueryInflationRequest) (*types.QueryInflationResponse, error)
Inflation returns minter.Inflation 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 supply keeper's MintCoins to be used in BeginBlocker.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns params of the mint module.