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) (math.LegacyDec, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAuthority() string
- func (k Keeper) InitGenesis(ctx sdk.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) StakingTokenSupply(ctx context.Context) (math.Int, error)
- func (k Keeper) TokenSupply(ctx context.Context, denom string) 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.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) types.QueryServer
Types ¶
type Keeper ¶
type Keeper struct { Schema collections.Schema Params collections.Item[types.Params] Minter collections.Item[types.Minter] // contains filtered or unexported fields }
Keeper of the mint store.
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeService 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 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) InitGenesis ¶
func (k 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) StakingTokenSupply ¶
StakingTokenSupply implements an alias call to the underlying staking keeper's StakingTokenSupply to be used in BeginBlocker.