Documentation
¶
Index ¶
- func DecodeExecutingMessageLog(l *ethTypes.Log, depSet depset.ChainIndexFromID) (*types.ExecutingMessage, error)
- func NewEthClient(ctx context.Context, logger log.Logger, m caching.Metrics, rpc string, ...) (*sources.L1Client, error)
- type BlockProcessorFn
- type ChainProcessor
- type DatabaseRewinder
- type EventDecoderFn
- type LogProcessor
- type LogStorage
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeExecutingMessageLog ¶
func DecodeExecutingMessageLog(l *ethTypes.Log, depSet depset.ChainIndexFromID) (*types.ExecutingMessage, error)
Types ¶
type BlockProcessorFn ¶
func (BlockProcessorFn) ProcessBlock ¶
type ChainProcessor ¶
type ChainProcessor struct {
// contains filtered or unexported fields
}
ChainProcessor is a HeadProcessor that fills in any skipped blocks between head update events. It ensures that, absent reorgs, every block in the chain is processed even if some head advancements are skipped.
func NewChainProcessor ¶
func NewChainProcessor(systemContext context.Context, log log.Logger, chain eth.ChainID, processor LogProcessor, rewinder DatabaseRewinder) *ChainProcessor
func (*ChainProcessor) AttachEmitter ¶ added in v1.11.0
func (s *ChainProcessor) AttachEmitter(em event.Emitter)
func (*ChainProcessor) OnEvent ¶ added in v1.11.0
func (s *ChainProcessor) OnEvent(ev event.Event) bool
func (*ChainProcessor) SetSource ¶
func (s *ChainProcessor) SetSource(cl Source)
type DatabaseRewinder ¶
type EventDecoderFn ¶
type EventDecoderFn func(*ethTypes.Log, depset.ChainIndexFromID) (*types.ExecutingMessage, error)
type LogProcessor ¶
type LogProcessor interface {
ProcessLogs(ctx context.Context, block eth.BlockRef, receipts gethtypes.Receipts) error
}
func NewLogProcessor ¶
func NewLogProcessor(chain eth.ChainID, logStore LogStorage, depSet depset.ChainIndexFromID) LogProcessor
type LogStorage ¶
Click to show internal directories.
Click to hide internal directories.