Versions in this module Expand all Collapse all v0 v0.1.2 Jan 9, 2023 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) AddEpoch(ctx sdk.Context, epoch types.Epoch) error + func (k Keeper) AfterEpochEnd(ctx sdk.Context, identifier string, epochNumber int64) + func (k Keeper) AllEpoch(ctx sdk.Context) []types.Epoch + 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) DeleteEpoch(ctx sdk.Context, id string) + func (k Keeper) EpochAll(c context.Context, req *types.QueryAllEpochRequest) (*types.QueryAllEpochResponse, error) + func (k Keeper) GetEpoch(ctx sdk.Context, id string) types.Epoch + func (k Keeper) IterateEpochs(ctx sdk.Context, fn func(index int64, epoch types.Epoch) (stop bool)) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) SetEpoch(ctx sdk.Context, epoch types.Epoch) + func (k Keeper) TotalBlockAfterEpochStart(ctx sdk.Context, identifier string) (int64, error) v0.1.1 Jan 4, 2023