Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQueryServerImpl(k Keeper) types.QueryServer
- type Keeper
- func (k Keeper) BeginBlocker(ctx context.Context) error
- func (k Keeper) BondedRatio(ctx context.Context) (math.LegacyDec, error)
- func (k Keeper) DistributeMintedCoin(ctx context.Context, mintedCoin sdk.Coin) error
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetProportion(_ context.Context, mintedCoin sdk.Coin, ratio math.LegacyDec) sdk.Coin
- func (k Keeper) Logger() log.Logger
- func (k Keeper) MintCoin(ctx context.Context, coin sdk.Coin) error
- func (k Keeper) StakingTokenSupply(ctx context.Context) (math.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) types.QueryServer
NewQueryServerImpl returns an implementation of the QueryServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { Schema collections.Schema Params collections.Item[types.Params] Minter collections.Item[types.Minter] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, addressCodec address.Codec, storeService store.KVStoreService, logger log.Logger, authority string, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, stakingKeeper types.StakingKeeper, distrKeeper types.DistrKeeper, feeCollectorName string, ) Keeper
func (Keeper) BeginBlocker ¶
BeginBlocker mints new coins for the previous block.
func (Keeper) BondedRatio ¶
BondedRatio implements an alias call to the underlying staking keeper's BondedRatio to be used in BeginBlocker.
func (Keeper) DistributeMintedCoin ¶
DistributeMintedCoin implements distribution of minted coins from mint to be used in BeginBlocker.
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (Keeper) GetProportion ¶
func (k Keeper) GetProportion(_ context.Context, mintedCoin sdk.Coin, ratio math.LegacyDec) sdk.Coin
GetProportion gets the balance of the `MintedDenom` from minted coins and returns coins according to the `AllocationRatio`.
Click to show internal directories.
Click to hide internal directories.