Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) AddInflationToCommunityTax(ctx sdk.Context, amount sdk.Coins) error
- func (k Keeper) AddInflationToFeeCollector(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetSupply(ctx sdk.Context, denom string) sdk.Coin
- 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) SendTeamRewards(ctx sdk.Context, amount sdk.Coins) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the mint store
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key sdk.StoreKey, paramSpace paramtypes.Subspace, ak types.AccountKeeper, bk types.BankKeeper, dk types.DistributionKeeper, feeCollectorName string, ) Keeper
NewKeeper creates a new mint Keeper instance
func (Keeper) AddInflationToCommunityTax ¶
AddInflationToCommunityTax sends the given amount of tokens to fund the community pool AddInflationToCommunityTax is to be used in BeginBlocker to distribute inflation as community tax
func (Keeper) AddInflationToFeeCollector ¶
AddInflationToFeeCollector implements an alias call to send the given amount to the fee collector AddInflationToFeeCollector is to be used in BeginBlocker to distribute inflation as staking rewards.
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.
func (Keeper) SendTeamRewards ¶
SendTeamRewards sends the given amount of tokens to the developer team address which is set in the params SendTeamRewards is to be used in BeginBlocker to distribute inflation to team
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func (Migrator) Migrate1to2 ¶
Migrate1to2 migrates from version 1 to 2.