Documentation
¶
Index ¶
- type HandledHooks
- type Hooks
- func (h Hooks) AfterBlsKeyRegistered(ctx sdk.Context, valAddr sdk.ValAddress) error
- func (h Hooks) AfterEpochBegins(ctx sdk.Context, epoch uint64)
- func (h Hooks) AfterEpochEnds(ctx sdk.Context, epoch uint64)
- func (h Hooks) AfterRawCheckpointBlsSigVerified(ctx sdk.Context, ckpt *checkpointingtypes.RawCheckpoint) error
- func (h Hooks) AfterRawCheckpointConfirmed(ctx sdk.Context, epoch uint64) error
- func (h Hooks) AfterRawCheckpointFinalized(ctx sdk.Context, epoch uint64) error
- func (h Hooks) AfterRawCheckpointForgotten(ctx sdk.Context, ckpt *checkpointingtypes.RawCheckpoint) error
- func (h Hooks) BeforeSlashThreshold(ctx sdk.Context, valSet etypes.ValidatorSet)
- type Keeper
- func (k Keeper) EndedEpochBtcHeight(c context.Context, req *types.QueryEndedEpochBtcHeightRequest) (*types.QueryEndedEpochBtcHeightResponse, error)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) LightclientHeightAtCheckpointReported(ctx sdk.Context, hashString string) (uint64, error)
- func (k Keeper) LightclientHeightAtEpochEnd(ctx sdk.Context, epoch uint64) (uint64, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ReportedCheckpointBtcHeight(c context.Context, req *types.QueryReportedCheckpointBtcHeightRequest) (*types.QueryReportedCheckpointBtcHeightResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandledHooks ¶
type HandledHooks interface {
etypes.EpochingHooks
checkpointingtypes.CheckpointingHooks
}
Helper interface to be sure Hooks implement both epoching and light client hooks
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
func (Hooks) AfterBlsKeyRegistered ¶
func (Hooks) AfterRawCheckpointBlsSigVerified ¶
func (h Hooks) AfterRawCheckpointBlsSigVerified(ctx sdk.Context, ckpt *checkpointingtypes.RawCheckpoint) error
func (Hooks) AfterRawCheckpointConfirmed ¶
func (Hooks) AfterRawCheckpointFinalized ¶
func (Hooks) AfterRawCheckpointForgotten ¶
func (h Hooks) AfterRawCheckpointForgotten(ctx sdk.Context, ckpt *checkpointingtypes.RawCheckpoint) error
func (Hooks) BeforeSlashThreshold ¶
func (h Hooks) BeforeSlashThreshold(ctx sdk.Context, valSet etypes.ValidatorSet)
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, bk types.BTCLightClientKeeper, ) Keeper
func (Keeper) EndedEpochBtcHeight ¶
func (k Keeper) EndedEpochBtcHeight(c context.Context, req *types.QueryEndedEpochBtcHeightRequest) (*types.QueryEndedEpochBtcHeightResponse, error)
func (Keeper) LightclientHeightAtCheckpointReported ¶
func (Keeper) LightclientHeightAtEpochEnd ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ReportedCheckpointBtcHeight ¶
func (k Keeper) ReportedCheckpointBtcHeight(c context.Context, req *types.QueryReportedCheckpointBtcHeightRequest) (*types.QueryReportedCheckpointBtcHeightResponse, error)
Click to show internal directories.
Click to hide internal directories.