Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) DistributeMintedCoins(ctx sdk.Context) error
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetModuleAccountAddress() sdk.AccAddress
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- 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) error
- type Migrator
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 storetypes.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, stakingKeeper types.StakingKeeper, distrKeeper types.DistrKeeper, authority string, ) *Keeper
func (Keeper) DistributeMintedCoins ¶
DistributeMintedCoins implements distribution of minted coins from mint to external modules.
func (Keeper) GetAuthority ¶
GetAuthority returns the x/alloc module's authority.
func (Keeper) GetModuleAccountAddress ¶
func (k Keeper) GetModuleAccountAddress() sdk.AccAddress
GetModuleAccountAddress gets the address of module account
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns params of the mint module.
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place state migrations.
func (Migrator) Migrate2to3 ¶
Migrate2to3 migrates the x/alloc module state from the consensus version 2 to version 3. Specifically, it takes the parameters that are currently stored and managed by the x/params modules and stores them directly into the x/alloc module state.
Click to show internal directories.
Click to hide internal directories.