keeper

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERIES_ONE = 1
)

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	GovKeeper govkeeper.Keeper
	// contains filtered or unexported fields
}

func (Keeper) BeginBlocker

func (k Keeper) BeginBlocker(ctx sdk.Context)

func (Keeper) CreateRewardsModuleAccount

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

func (Keeper) GetAllRewards

func (k Keeper) GetAllRewards(ctx sdk.Context) (list []types.Reward)

GetAllRewards returns all rewards

func (Keeper) GetDecayedRewardAmount

func (k Keeper) GetDecayedRewardAmount(ctx sdk.Context, totalReward sdk.Coin) (sdk.Coin, error)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetReward

func (k Keeper) GetReward(
	ctx sdk.Context,
	recipient string,

) (val types.Reward, found bool)

GetReward returns a rewards from its index

func (Keeper) GetTotalClaimableAmount

func (k Keeper) GetTotalClaimableAmount(ctx sdk.Context, addr string, totalReward sdk.Coin) (sdk.Coin, error)

func (Keeper) Logger

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

func (Keeper) MintRewardsModuleAccount

func (k Keeper) MintRewardsModuleAccount(ctx sdk.Context, rp *types.RewardPool, accountName string) error

func (Keeper) RemoveReward

func (k Keeper) RemoveReward(
	ctx sdk.Context,
	recipient string,

)

RemoveReward removes a rewards from the store

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetReward

func (k Keeper) SetReward(ctx sdk.Context, reward types.Reward)

SetReward set a specific rewards in the store from its index

func (Keeper) Tasks

func (Keeper) TransferRewardPoolBalance

func (k Keeper) TransferRewardPoolBalance(ctx sdk.Context, rewardPool *types.RewardPool, moduleAcc string) error

Jump to

Keyboard shortcuts

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