keeper

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 22 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 MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	parameterKeeper types.ParameterKeeper,
	ck types.CommitmentKeeper,
	sk types.StakingKeeper,
	ak types.AccountKeeper,
	bk types.BankKeeper,
	amm types.AmmKeeper,
	ok types.OracleKeeper,
	ap types.AssetProfileKeeper,
	accountedPoolKeeper types.AccountedPoolKeeper,
	stableKeeper types.StableStakeKeeper,
	tokenomicsKeeper types.TokenomicsKeeper,
	masterchef *masterchefkeeper.Keeper,
	estaking *estakingkeeper.Keeper,
	feeCollectorName string,
	authority string,
) *Keeper

func (Keeper) AllProgramRewards added in v0.31.0

func (Keeper) Apr added in v0.27.0

func (Keeper) Aprs added in v0.29.31

func (Keeper) CalculateApr added in v0.17.0

func (k Keeper) CalculateApr(ctx sdk.Context, query *types.QueryAprRequest) (math.Int, error)

func (Keeper) CalculateTVL

func (k Keeper) CalculateTVL(ctx sdk.Context) sdk.Dec

Caculate total TVL

func (Keeper) EndBlocker added in v0.12.0

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

EndBlocker of incentive module

func (Keeper) ExportGenesis

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

ExportGenesis returns the module's exported genesis

func (Keeper) GetAllElysStakeChange added in v0.29.14

func (k Keeper) GetAllElysStakeChange(ctx sdk.Context) (list []sdk.AccAddress)

func (Keeper) GetAllElysStaked added in v0.12.0

func (k Keeper) GetAllElysStaked(ctx sdk.Context) (list []types.ElysStaked)

GetAllElysStaked returns all elysStaked

func (Keeper) GetDailyRewardsAmountForPool added in v0.29.27

func (k Keeper) GetDailyRewardsAmountForPool(ctx sdk.Context, poolId uint64) (sdk.Dec, sdk.Coins)

Get total dex rewards amount from the specified pool

func (Keeper) GetElysStakeChange added in v0.29.14

func (k Keeper) GetElysStakeChange(ctx sdk.Context, addr sdk.AccAddress) (found bool)

func (Keeper) GetElysStaked added in v0.12.0

func (k Keeper) GetElysStaked(ctx sdk.Context, address string) math.Int

GetElysStaked returns a elysStaked from its index

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) InitGenesis

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

InitGenesis initializes the module's state from a provided genesis state.

func (Keeper) Logger

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

func (Keeper) PoolRewards added in v0.29.27

func (Keeper) RemoveElysStakeChange added in v0.29.14

func (k Keeper) RemoveElysStakeChange(ctx sdk.Context, address sdk.AccAddress)

func (Keeper) RemoveElysStaked added in v0.12.0

func (k Keeper) RemoveElysStaked(ctx sdk.Context, address string)

RemoveElysStaked removes a elysStaked from the store

func (Keeper) SetElysStakeChange added in v0.29.14

func (k Keeper) SetElysStakeChange(ctx sdk.Context, addr sdk.AccAddress)

func (Keeper) SetElysStaked added in v0.12.0

func (k Keeper) SetElysStaked(ctx sdk.Context, elysStaked types.ElysStaked)

SetElysStaked set a specific elysStaked in the store from its index

func (Keeper) SetParams

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

SetParams set the params

Jump to

Keyboard shortcuts

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