Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) FundRewardPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetBlocksPerYear(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetReserveAccount(ctx sdk.Context) (reserveAccount string)
- func (k Keeper) GetRewardAccount(ctx sdk.Context) authtypes.ModuleAccountI
- func (k Keeper) GetRewardDistributeAccount(ctx sdk.Context) (rewardDistributeAccount string)
- func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Pool(c context.Context, req *types.QueryPoolRequest) (*types.QueryPoolResponse, error)
- func (k Keeper) PoolBalances(ctx sdk.Context) sdk.Coins
- 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 reward MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key storetypes.StoreKey, ak types.AccountKeeper, bk types.BankKeeper, sk types.StakingKeeper, dk types.DistributionKeeper, mk types.MintKeeper, authority string, ) Keeper
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) FundRewardPool ¶ added in v1.6.0
FundRewardPool allows an account to directly fund the reward pool fund. The amount is added to the reward pool account An error is returned if the amount cannot be sent to the module account.
func (Keeper) GetAuthority ¶ added in v1.5.0
GetAuthority returns the x/reward module's authority.
func (Keeper) GetReserveAccount ¶
func (Keeper) GetRewardAccount ¶
func (k Keeper) GetRewardAccount(ctx sdk.Context) authtypes.ModuleAccountI
GetRewardAccount returns the reward ModuleAccount
func (Keeper) GetRewardDistributeAccount ¶
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params queries params of reward module
func (Keeper) Pool ¶
func (k Keeper) Pool(c context.Context, req *types.QueryPoolRequest) (*types.QueryPoolResponse, error)
RewardPool queries the reward pool coins
type Migrator ¶ added in v1.5.0
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶ added in v1.5.0
NewMigrator returns a new Migrator.
func (Migrator) Migrate1to2 ¶ added in v1.5.0
Migrate1to2 migrates the x/reward module state from the consensus version 1 to version 2. Specifically, it takes the parameters that are currently stored and managed by the x/params module and stores them directly into the x/reward module state.