Documentation ¶
Index ¶
- func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, k Keeper, gs types.GenesisState)
- type Keeper
- func (k Keeper) BeginBlocker(ctx sdk.Context)
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) GetAPY(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetParamSet(ctx sdk.Context) types.Params
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) QueryAPY(c context.Context, _ *types.QueryAPYRequest) (*types.QueryAPYResponse, error)
- func (k Keeper) QueryParams(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
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 sdk.StoreKey, paramSpace paramtypes.Subspace, distributionKeeper types.DistributionKeeper, bankKeeper types.BankKeeper, mintKeeper types.MintKeeper, ) Keeper
func (Keeper) BeginBlocker ¶
func (Keeper) EndBlocker ¶
func (Keeper) GetParamSet ¶
GetParamSet returns the parameters
func (Keeper) QueryAPY ¶
func (k Keeper) QueryAPY(c context.Context, _ *types.QueryAPYRequest) (*types.QueryAPYResponse, error)
func (Keeper) QueryParams ¶
func (k Keeper) QueryParams(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
QueryParams implements QueryServer
Click to show internal directories.
Click to hide internal directories.