Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) DistributeInflation(ctx sdk.Context) error
- func (k Keeper) FundCommunityPool(ctx sdk.Context) error
- func (k Keeper) GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.AccountI
- func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetProportions(ctx sdk.Context, mintedCoin sdk.Coin, ratio sdk.Dec) sdk.Coin
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
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.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, stakingKeeper types.StakingKeeper, distrKeeper types.DistrKeeper, ps paramtypes.Subspace, ) *Keeper
func (Keeper) DistributeInflation ¶
DistributeInflation distributes module-specific inflation
func (Keeper) GetModuleAccount ¶
GetModuleAccountBalance gets the airdrop coin balance of module account
func (Keeper) GetModuleAccountAddress ¶
func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress
GetModuleAccountBalance gets the airdrop coin balance of module account
func (Keeper) GetProportions ¶
GetProportions gets the balance of the `MintedDenom` from minted coins and returns coins according to the `AllocationRatio`
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns params of the alloc module.
Click to show internal directories.
Click to hide internal directories.