Documentation ¶
Index ¶
- type 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) SetHooks(eh types.EpochHooks) *Keeper
- func (k Keeper) TotalBlockAfterEpochStart(ctx sdk.Context, identifier string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) AfterEpochEnd ¶
func (Keeper) BeforeEpochStart ¶
func (Keeper) BeginBlocker ¶
func (Keeper) CurrentEpoch ¶
func (k Keeper) CurrentEpoch(c context.Context, req *types.QueryCurrentEpochRequest) (*types.QueryCurrentEpochResponse, error)
func (Keeper) DeleteEpoch ¶
DeleteEpoch removes a epoch from the store
func (Keeper) EpochAll ¶
func (k Keeper) EpochAll(c context.Context, req *types.QueryAllEpochRequest) (*types.QueryAllEpochResponse, error)
func (Keeper) IterateEpochs ¶
func (Keeper) TotalBlockAfterEpochStart ¶
TotalBlockAfterEpochStart returns the number of blocks since the epoch started. if the epoch started on block N, then calling this during block N (after BeforeEpochStart) would return 0. Calling it any point in block N+1 (assuming the epoch doesn't increment) would return 1.
Click to show internal directories.
Click to hide internal directories.