Documentation ¶
Index ¶
- func GetMigrationHandler(keeper Keeper, paramStoreKey sdk.StoreKey, paramTStoreKey sdk.StoreKey) func(ctx sdk.Context) error
- func NewMsgServerImpl(k types.Refunder, b types.Banker, m *baseapp.MsgServiceRouter, r sdk.Router) types.MsgServiceServer
- type Keeper
- func (k Keeper) DeletePendingRefund(ctx sdk.Context, req types.RefundMsgRequest)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPendingRefund(ctx sdk.Context, req types.RefundMsgRequest) (types.Refund, bool)
- func (k Keeper) GetPool(ctx sdk.Context, name string) exported.RewardPool
- func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPendingRefund(ctx sdk.Context, req types.RefundMsgRequest, refund types.Refund) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMigrationHandler ¶ added in v0.21.0
func GetMigrationHandler(keeper Keeper, paramStoreKey sdk.StoreKey, paramTStoreKey sdk.StoreKey) func(ctx sdk.Context) error
GetMigrationHandler returns the migration handler for the reward module - migrating params key TssRelativeInflationRate to KeyMgmtRelativeInflationRate - migrate tss rewards pool to multisig
func NewMsgServerImpl ¶ added in v0.9.0
func NewMsgServerImpl(k types.Refunder, b types.Banker, m *baseapp.MsgServiceRouter, r sdk.Router) types.MsgServiceServer
NewMsgServerImpl returns a new msg server instance
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper provides access to all state changes regarding the reward module
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, paramSpace paramtypes.Subspace, banker types.Banker, distributor types.Distributor, staker types.Staker) Keeper
NewKeeper returns a new reward keeper
func (Keeper) DeletePendingRefund ¶ added in v0.9.0
func (k Keeper) DeletePendingRefund(ctx sdk.Context, req types.RefundMsgRequest)
DeletePendingRefund retrieves a pending refundable message
func (Keeper) ExportGenesis ¶ added in v0.9.0
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the reward module's genesis state.
func (Keeper) GetPendingRefund ¶ added in v0.9.0
GetPendingRefund retrieves a pending refundable message
func (Keeper) GetPool ¶
GetPool returns the reward pool of the given name, or returns an empty reward pool if not found
func (Keeper) InitGenesis ¶ added in v0.9.0
func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
InitGenesis initializes the reward module's state from a given genesis state.
func (Keeper) SetPendingRefund ¶ added in v0.9.0
func (k Keeper) SetPendingRefund(ctx sdk.Context, req types.RefundMsgRequest, refund types.Refund) error
SetPendingRefund saves pending refundable message