keeper

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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 (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

func (Keeper) FundRewardPool added in v1.6.0

func (k Keeper) FundRewardPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error

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

func (k Keeper) GetAuthority() string

GetAuthority returns the x/reward module's authority.

func (Keeper) GetBlocksPerYear

func (k Keeper) GetBlocksPerYear(ctx sdk.Context) uint64

func (Keeper) GetParams

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

func (Keeper) GetReserveAccount

func (k Keeper) GetReserveAccount(ctx sdk.Context) (reserveAccount string)

func (Keeper) GetRewardAccount

func (k Keeper) GetRewardAccount(ctx sdk.Context) authtypes.ModuleAccountI

GetRewardAccount returns the reward ModuleAccount

func (Keeper) GetRewardDistributeAccount

func (k Keeper) GetRewardDistributeAccount(ctx sdk.Context) (rewardDistributeAccount string)

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) Params

Params queries params of reward module

func (Keeper) Pool

RewardPool queries the reward pool coins

func (Keeper) PoolBalances

func (k Keeper) PoolBalances(ctx sdk.Context) sdk.Coins

func (Keeper) SetParams

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

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

func NewMigrator(keeper Keeper, legacySubspace exported.Subspace) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2 added in v1.5.0

func (m Migrator) Migrate1to2(ctx sdk.Context) error

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.

Jump to

Keyboard shortcuts

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