Documentation ¶
Index ¶
Constants ¶
View Source
const EXECUTION_STATE_ROOT_INDEX = 34
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockFetcher ¶
type BlockFetcher interface {
SignedBeaconBlock(ctx context.Context, opts *api.SignedBeaconBlockOpts) (*api.Response[*spec.VersionedSignedBeaconBlock], error)
}
type DomainCollector ¶
type PeriodStorer ¶
type Prover ¶
type Prover interface { StepProof(args *prover.StepArgs) (*prover.EvmProof[evmMessage.SyncStepInput], error) RotateProof(args *prover.RotateArgs) (*prover.EvmProof[struct{}], error) StepArgs() (*prover.StepArgs, error) RotateArgs(epoch uint64) (*prover.RotateArgs, error) }
type RotateHandler ¶
type RotateHandler struct {
// contains filtered or unexported fields
}
func NewRotateHandler ¶
func NewRotateHandler( msgChan chan []*message.Message, periodStorer PeriodStorer, prover Prover, domainID uint8, domains []uint8, committeePeriodLenght uint64, latestPeriod *big.Int, ) *RotateHandler
func (*RotateHandler) HandleEvents ¶
func (h *RotateHandler) HandleEvents(checkpoint *apiv1.Finality) error
HandleEvents checks if the current period is newer than the last stored period and rotates the committee if it is
type StepEventHandler ¶
type StepEventHandler struct {
// contains filtered or unexported fields
}
func NewStepEventHandler ¶
func NewStepEventHandler( msgChan chan []*message.Message, domainCollectors []DomainCollector, blockFetcher BlockFetcher, prover Prover, domainID uint8, domains []uint8, ) *StepEventHandler
func (*StepEventHandler) HandleEvents ¶
func (h *StepEventHandler) HandleEvents(checkpoint *apiv1.Finality) error
HandleEvents executes the step for the latest finality checkpoint
type SyncCommitteeFetcher ¶
type SyncCommitteeFetcher interface {
SyncCommittee(ctx context.Context, opts *api.SyncCommitteeOpts) (*api.Response[*apiv1.SyncCommittee], error)
}
Click to show internal directories.
Click to hide internal directories.