Documentation ¶
Index ¶
- type AssignmentExpiredEventHandler
- type AssignmentExpiredHandler
- type BlockProposedEventHandler
- type BlockProposedGuaridanEventHandler
- type BlockProposedHandler
- type BlockVerifiedEventHandler
- type BlockVerifiedHandler
- type NewBlockProposedEventHandlerOps
- type NewBlockProposedGuardianEventHandlerOps
- type TransitionContestedEventHandler
- type TransitionContestedHandler
- type TransitionProvedEventHandler
- type TransitionProvedHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentExpiredEventHandler ¶
type AssignmentExpiredEventHandler struct {
// contains filtered or unexported fields
}
AssignmentExpiredEventHandler is responsible for handling the expiration of proof assignments.
func NewAssignmentExpiredEventHandler ¶
func NewAssignmentExpiredEventHandler( rpc *rpc.Client, proverAddress common.Address, proofSubmissionCh chan *proofProducer.ProofRequestBody, proofContestCh chan *proofProducer.ContestRequestBody, contesterMode bool, ) *AssignmentExpiredEventHandler
NewAssignmentExpiredEventHandler creates a new AssignmentExpiredEventHandler instance.
func (*AssignmentExpiredEventHandler) Handle ¶
func (h *AssignmentExpiredEventHandler) Handle( ctx context.Context, e *bindings.TaikoL1ClientBlockProposed, ) error
Handle implements the AssignmentExpiredHandler interface.
type AssignmentExpiredHandler ¶
type AssignmentExpiredHandler interface {
Handle(ctx context.Context, event *bindings.TaikoL1ClientBlockProposed) error
}
AssignmentExpiredHandler is the interface for handling the proof assignment expiration.
type BlockProposedEventHandler ¶
type BlockProposedEventHandler struct {
// contains filtered or unexported fields
}
BlockProposedEventHandler is responsible for handling the BlockProposed event as a prover.
func NewBlockProposedEventHandler ¶
func NewBlockProposedEventHandler(opts *NewBlockProposedEventHandlerOps) *BlockProposedEventHandler
NewBlockProposedEventHandler creates a new BlockProposedEventHandler instance.
func (*BlockProposedEventHandler) Handle ¶
func (h *BlockProposedEventHandler) Handle( ctx context.Context, e *bindings.TaikoL1ClientBlockProposed, end eventIterator.EndBlockProposedEventIterFunc, ) error
Handle implements the BlockProposedHandler interface.
type BlockProposedGuaridanEventHandler ¶
type BlockProposedGuaridanEventHandler struct { *BlockProposedEventHandler GuardianProverHeartbeater guardianProverHeartbeater.BlockSenderHeartbeater }
BlockProposedGuaridanEventHandler is responsible for handling the BlockProposed event as a guardian prover.
func NewBlockProposedEventGuardianHandler ¶
func NewBlockProposedEventGuardianHandler( opts *NewBlockProposedGuardianEventHandlerOps, ) *BlockProposedGuaridanEventHandler
NewBlockProposedEventGuardianHandler creates a new BlockProposedEventHandler instance.
func (*BlockProposedGuaridanEventHandler) Handle ¶
func (h *BlockProposedGuaridanEventHandler) Handle( ctx context.Context, event *bindings.TaikoL1ClientBlockProposed, end eventIterator.EndBlockProposedEventIterFunc, ) error
Handle implements the BlockProposedHandler interface.
type BlockProposedHandler ¶
type BlockProposedHandler interface { Handle(ctx context.Context, event *bindings.TaikoL1ClientBlockProposed, end eventIterator.EndBlockProposedEventIterFunc, ) error }
BlockProposedHandler is the interface for handling `TaikoL1.BlockProposed` events.
type BlockVerifiedEventHandler ¶
type BlockVerifiedEventHandler struct{}
BlockVerifiedEventHandler is responsible for handling the BlockVerified event.
func (*BlockVerifiedEventHandler) Handle ¶
func (h *BlockVerifiedEventHandler) Handle(e *bindings.TaikoL1ClientBlockVerified)
Handle handles the BlockVerified event.
type BlockVerifiedHandler ¶
type BlockVerifiedHandler interface {
Handle(e *bindings.TaikoL1ClientBlockVerified)
}
BlockVerifiedHandler is the interface for handling `TaikoL1.BlockVerified` events.
type NewBlockProposedEventHandlerOps ¶
type NewBlockProposedEventHandlerOps struct { ProverAddress common.Address GenesisHeightL1 uint64 RPC *rpc.Client ProofGenerationCh chan *proofProducer.ProofWithHeader AssignmentExpiredCh chan *bindings.TaikoL1ClientBlockProposed ProofSubmissionCh chan *proofProducer.ProofRequestBody ProofContestCh chan *proofProducer.ContestRequestBody BackOffRetryInterval time.Duration BackOffMaxRetrys uint64 ContesterMode bool ProveUnassignedBlocks bool SubmissionDelay time.Duration }
NewBlockProposedEventHandlerOps is the options for creating a new BlockProposedEventHandler.
type NewBlockProposedGuardianEventHandlerOps ¶
type NewBlockProposedGuardianEventHandlerOps struct { *NewBlockProposedEventHandlerOps GuardianProverHeartbeater guardianProverHeartbeater.BlockSenderHeartbeater }
NewBlockProposedGuardianEventHandlerOps is the options for creating a new BlockProposedEventHandler.
type TransitionContestedEventHandler ¶
type TransitionContestedEventHandler struct {
// contains filtered or unexported fields
}
TransitionContestedEventHandler is responsible for handling the TransitionContested event.
func NewTransitionContestedEventHandler ¶
func NewTransitionContestedEventHandler( rpc *rpc.Client, proofSubmissionCh chan *proofProducer.ProofRequestBody, contesterMode bool, ) *TransitionContestedEventHandler
NewTransitionContestedEventHandler creates a new TransitionContestedEventHandler instance.
func (*TransitionContestedEventHandler) Handle ¶
func (h *TransitionContestedEventHandler) Handle( ctx context.Context, e *bindings.TaikoL1ClientTransitionContested, ) error
Handle implements the TransitionContestedHandler interface.
type TransitionContestedHandler ¶
type TransitionContestedHandler interface {
Handle(ctx context.Context, event *bindings.TaikoL1ClientTransitionContested) error
}
TransitionContestedHandler is the interface for handling `TaikoL1.TransitionContested` events.
type TransitionProvedEventHandler ¶
type TransitionProvedEventHandler struct {
// contains filtered or unexported fields
}
TransitionProvedEventHandler is responsible for handling the TransitionProved event.
func NewTransitionProvedEventHandler ¶
func NewTransitionProvedEventHandler( rpc *rpc.Client, proofContestCh chan *proofProducer.ContestRequestBody, contesterMode bool, ) *TransitionProvedEventHandler
NewTransitionProvedEventHandler creates a new TransitionProvedEventHandler instance.
func (*TransitionProvedEventHandler) Handle ¶
func (h *TransitionProvedEventHandler) Handle( ctx context.Context, e *bindings.TaikoL1ClientTransitionProved, ) error
Handle implements the TransitionProvedHandler interface.
type TransitionProvedHandler ¶
type TransitionProvedHandler interface {
Handle(ctx context.Context, event *bindings.TaikoL1ClientTransitionProved) error
}
TransitionProvedHandler is the interface for handling `TaikoL1.TransitionProved` events.