keeper

package
v0.26.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

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) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams returns the total set of reward parameters.

func (Keeper) GetPendingRefund added in v0.9.0

func (k Keeper) GetPendingRefund(ctx sdk.Context, req types.RefundMsgRequest) (types.Refund, bool)

GetPendingRefund retrieves a pending refundable message

func (Keeper) GetPool

func (k Keeper) GetPool(ctx sdk.Context, name string) exported.RewardPool

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) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the total set of reward parameters.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL