Documentation ¶
Index ¶
- func NewMsgServerImpl(k Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) AnnualInflation(c context.Context, _ *types.QueryAnnualInflationRequest) (*types.QueryAnnualInflationResponse, error)
- 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) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error
- func (k Keeper) MintState(c context.Context, _ *types.QueryMintStateRequest) (*types.QueryMintStateResponse, 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
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶ added in v0.5.0
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, 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) AnnualInflation ¶ added in v0.1.42
func (k Keeper) AnnualInflation(c context.Context, _ *types.QueryAnnualInflationRequest) (*types.QueryAnnualInflationResponse, error)
AnnualInflation returns minter.Inflation of the mint module.
func (Keeper) GetAuthority ¶ added in v0.5.0
GetAuthority returns the x/mint module's authority.
func (Keeper) MintCoins ¶
MintCoins implements an alias call to the underlying supply keeper's MintCoins to be used in BeginBlocker.
func (Keeper) MintState ¶
func (k Keeper) MintState(c context.Context, _ *types.QueryMintStateRequest) (*types.QueryMintStateResponse, error)
MintState returns the state minter of the mint module.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns params of the mint module.
type Migrator ¶ added in v0.5.0
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place state migrations.
func (Migrator) Migrate1to2 ¶ added in v0.5.0
Migrate1to2 migrates the x/mint module state from the consensus version 1 to version 2. Specifically, it takes the parameters that are currently stored and managed by the x/params modules and stores them directly into the x/mint module state.