Versions in this module Expand all Collapse all v0 v0.0.2 Dec 18, 2024 Changes in this version + type Keeper struct + func NewKeeper(cdc codec.Codec, storeKey storetypes.StoreKey) *Keeper + func (k *Keeper) SetHooks(eh types.EpochHooks) *Keeper + func (k Keeper) AfterEpochEnd(ctx sdk.Context, identifier string, epochNumber int64) + func (k Keeper) AllEpochInfos(ctx sdk.Context) []types.EpochInfo + func (k Keeper) BeforeEpochStart(ctx sdk.Context, identifier string, epochNumber int64) + func (k Keeper) BeginBlocker(ctx sdk.Context) + func (k Keeper) CurrentEpoch(c context.Context, req *types.QueryCurrentEpochRequest) (*types.QueryCurrentEpochResponse, error) + func (k Keeper) DeleteEpochInfo(ctx sdk.Context, identifier string) + func (k Keeper) EpochInfos(c context.Context, req *types.QueryEpochsInfoRequest) (*types.QueryEpochsInfoResponse, error) + func (k Keeper) GetEpochInfo(ctx sdk.Context, identifier string) (types.EpochInfo, bool) + func (k Keeper) IterateEpochInfo(ctx sdk.Context, fn func(index int64, epochInfo types.EpochInfo) (stop bool)) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) SetEpochInfo(ctx sdk.Context, epoch types.EpochInfo) + type MultiEpochHooks []types.EpochHooks + func NewMultiEpochHooks(hooks ...types.EpochHooks) MultiEpochHooks + func (mh MultiEpochHooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) + func (mh MultiEpochHooks) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64)