Documentation
¶
Index ¶
- func NewMsgServerImpl(k Keeper) types.MsgServer
- func NewQueryServerImpl(k Keeper) types.QueryServer
- type Keeper
- func (k Keeper) AddCollectedFees(ctx context.Context, fees sdk.Coins) error
- func (k Keeper) BondedRatio(ctx context.Context) sdkmath.LegacyDec
- func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState
- func (k Keeper) GetAccountKeeper() types.AccountKeeper
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetBalance(ctx context.Context, address sdk.AccAddress, denom string) sdkmath.Int
- func (k Keeper) GetMinter(ctx context.Context) (minter types.Minter, err error)
- func (k Keeper) GetParams(ctx context.Context) (p types.Params, err error)
- func (k Keeper) InitGenesis(ctx context.Context, ak types.AccountKeeper, data *types.GenesisState)
- func (k Keeper) Logger(ctx context.Context) log.Logger
- func (k Keeper) MintCoins(ctx context.Context, newCoins sdk.Coins) error
- func (k Keeper) ReduceTargetSupply(ctx context.Context, burnCoin sdk.Coin) error
- func (k Keeper) SetMinter(ctx context.Context, minter types.Minter) error
- func (k Keeper) SetParams(ctx context.Context, p types.Params) error
- func (k Keeper) StakingTokenSupply(ctx context.Context) sdkmath.Int
- func (k Keeper) TokenSupply(ctx context.Context, denom string) sdkmath.Int
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the x/mint MsgServer interface.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) types.QueryServer
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the mint store
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, ss storetypes.KVStoreService, 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) BondedRatio ¶
BondedRatio implements an alias call to the underlying staking keeper's BondedRatio to be used in BeginBlocker.
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func (Keeper) GetAccountKeeper ¶
func (k Keeper) GetAccountKeeper() types.AccountKeeper
func (Keeper) GetAuthority ¶
GetAuthority returns the x/mint module's authority.
func (Keeper) GetBalance ¶
GetBalance implements an alias call to the underlying bank keeper's GetBalance to be used in BeginBlocker.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx context.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) ReduceTargetSupply ¶
func (Keeper) StakingTokenSupply ¶
StakingTokenSupply implements an alias call to the underlying staking keeper's StakingTokenSupply to be used in BeginBlocker.