keeper

package
v7.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportGenesis

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

func InitGenesis

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

InitGenesis initialize default parameters and the keeper's address to pubkey map

Types

type Keeper

type Keeper struct {
	DistributionKeeper types.DistributionKeeper
	BankKeeper         types.BankKeeper
	MintKeeper         types.MintKeeper
	// contains filtered or unexported fields
}

Keeper of the incentives store

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	paramSpace paramtypes.Subspace,
	distributionKeeper types.DistributionKeeper,
	bankKeeper types.BankKeeper,
	mintKeeper types.MintKeeper,
) Keeper

func (Keeper) BeginBlocker

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

func (Keeper) EndBlocker

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

func (Keeper) GetAPY

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

func (Keeper) GetParamSet

func (k Keeper) GetParamSet(ctx sdk.Context) types.Params

GetParamSet returns the parameters

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) QueryAPY

func (Keeper) QueryParams

QueryParams implements QueryServer

func (Keeper) SetParams

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

setParams sets the parameters in the store

Jump to

Keyboard shortcuts

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