Versions in this module Expand all Collapse all v1 v1.1.3 Jan 20, 2025 v1.1.2 Jan 20, 2025 Changes in this version + func NewL1RollupInfoConsumer(cfg ConfigConsumer, synchronizer synchronizerProcessBlockRangeInterface, ...) *l1RollupInfoConsumer + type ConfigConsumer struct + AceptableInacctivityTime time.Duration + ApplyAfterNumRollupReceived int + type ConfigProducer struct + MinTimeBetweenRetriesForRollupInfo time.Duration + NumOfAllowedRetriesForRequestLastBlockOnL1 int + SyncChunkSize uint64 + TimeForShowUpStatisticsLog time.Duration + TimeOutMainLoop time.Duration + TimeoutForRequestLastBlockOnL1 time.Duration + TtlOfLastBlockOnL1 time.Duration + func (cfg *ConfigProducer) String() string + type L1ParallelEthermanInterface interface + EthBlockByNumber func(ctx context.Context, blockNumber uint64) (*ethTypes.Block, error) + GetLatestBatchNumber func() (uint64, error) + GetLatestVerifiedBatchNum func() (uint64, error) + GetRollupInfoByBlockRange func(ctx context.Context, fromBlock uint64, toBlock *uint64) ([]etherman.Block, map[common.Hash][]etherman.Order, error) + GetTrustedSequencerURL func() (string, error) + HeaderByNumber func(ctx context.Context, number *big.Int) (*ethTypes.Header, error) + VerifyGenBlockNumber func(ctx context.Context, genBlockNumber uint64) (bool, error) + type L1ParallelEthermanInterfaceMock struct + func NewL1ParallelEthermanInterfaceMock(t interface{ ... }) *L1ParallelEthermanInterfaceMock + func (_m *L1ParallelEthermanInterfaceMock) EXPECT() *L1ParallelEthermanInterfaceMock_Expecter + func (_m *L1ParallelEthermanInterfaceMock) EthBlockByNumber(ctx context.Context, blockNumber uint64) (*types.Block, error) + func (_m *L1ParallelEthermanInterfaceMock) GetLatestBatchNumber() (uint64, error) + func (_m *L1ParallelEthermanInterfaceMock) GetLatestVerifiedBatchNum() (uint64, error) + func (_m *L1ParallelEthermanInterfaceMock) GetRollupInfoByBlockRange(ctx context.Context, fromBlock uint64, toBlock *uint64) ([]etherman.Block, map[common.Hash][]etherman.Order, error) + func (_m *L1ParallelEthermanInterfaceMock) GetTrustedSequencerURL() (string, error) + func (_m *L1ParallelEthermanInterfaceMock) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) + func (_m *L1ParallelEthermanInterfaceMock) VerifyGenBlockNumber(ctx context.Context, genBlockNumber uint64) (bool, error) + type L1ParallelEthermanInterfaceMock_EthBlockByNumber_Call struct + func (_c *L1ParallelEthermanInterfaceMock_EthBlockByNumber_Call) Return(_a0 *types.Block, _a1 error) *L1ParallelEthermanInterfaceMock_EthBlockByNumber_Call + func (_c *L1ParallelEthermanInterfaceMock_EthBlockByNumber_Call) Run(run func(ctx context.Context, blockNumber uint64)) *L1ParallelEthermanInterfaceMock_EthBlockByNumber_Call + func (_c *L1ParallelEthermanInterfaceMock_EthBlockByNumber_Call) RunAndReturn(run func(context.Context, uint64) (*types.Block, error)) *L1ParallelEthermanInterfaceMock_EthBlockByNumber_Call + type L1ParallelEthermanInterfaceMock_Expecter struct + func (_e *L1ParallelEthermanInterfaceMock_Expecter) EthBlockByNumber(ctx interface{}, blockNumber interface{}) *L1ParallelEthermanInterfaceMock_EthBlockByNumber_Call + func (_e *L1ParallelEthermanInterfaceMock_Expecter) GetLatestBatchNumber() *L1ParallelEthermanInterfaceMock_GetLatestBatchNumber_Call + func (_e *L1ParallelEthermanInterfaceMock_Expecter) GetLatestVerifiedBatchNum() *L1ParallelEthermanInterfaceMock_GetLatestVerifiedBatchNum_Call + func (_e *L1ParallelEthermanInterfaceMock_Expecter) GetRollupInfoByBlockRange(ctx interface{}, fromBlock interface{}, toBlock interface{}) *L1ParallelEthermanInterfaceMock_GetRollupInfoByBlockRange_Call + func (_e *L1ParallelEthermanInterfaceMock_Expecter) GetTrustedSequencerURL() *L1ParallelEthermanInterfaceMock_GetTrustedSequencerURL_Call + func (_e *L1ParallelEthermanInterfaceMock_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *L1ParallelEthermanInterfaceMock_HeaderByNumber_Call + func (_e *L1ParallelEthermanInterfaceMock_Expecter) VerifyGenBlockNumber(ctx interface{}, genBlockNumber interface{}) *L1ParallelEthermanInterfaceMock_VerifyGenBlockNumber_Call + type L1ParallelEthermanInterfaceMock_GetLatestBatchNumber_Call struct + func (_c *L1ParallelEthermanInterfaceMock_GetLatestBatchNumber_Call) Return(_a0 uint64, _a1 error) *L1ParallelEthermanInterfaceMock_GetLatestBatchNumber_Call + func (_c *L1ParallelEthermanInterfaceMock_GetLatestBatchNumber_Call) Run(run func()) *L1ParallelEthermanInterfaceMock_GetLatestBatchNumber_Call + func (_c *L1ParallelEthermanInterfaceMock_GetLatestBatchNumber_Call) RunAndReturn(run func() (uint64, error)) *L1ParallelEthermanInterfaceMock_GetLatestBatchNumber_Call + type L1ParallelEthermanInterfaceMock_GetLatestVerifiedBatchNum_Call struct + func (_c *L1ParallelEthermanInterfaceMock_GetLatestVerifiedBatchNum_Call) Return(_a0 uint64, _a1 error) *L1ParallelEthermanInterfaceMock_GetLatestVerifiedBatchNum_Call + func (_c *L1ParallelEthermanInterfaceMock_GetLatestVerifiedBatchNum_Call) Run(run func()) *L1ParallelEthermanInterfaceMock_GetLatestVerifiedBatchNum_Call + func (_c *L1ParallelEthermanInterfaceMock_GetLatestVerifiedBatchNum_Call) RunAndReturn(run func() (uint64, error)) *L1ParallelEthermanInterfaceMock_GetLatestVerifiedBatchNum_Call + type L1ParallelEthermanInterfaceMock_GetRollupInfoByBlockRange_Call struct + func (_c *L1ParallelEthermanInterfaceMock_GetRollupInfoByBlockRange_Call) Return(_a0 []etherman.Block, _a1 map[common.Hash][]etherman.Order, _a2 error) *L1ParallelEthermanInterfaceMock_GetRollupInfoByBlockRange_Call + func (_c *L1ParallelEthermanInterfaceMock_GetRollupInfoByBlockRange_Call) Run(run func(ctx context.Context, fromBlock uint64, toBlock *uint64)) *L1ParallelEthermanInterfaceMock_GetRollupInfoByBlockRange_Call + func (_c *L1ParallelEthermanInterfaceMock_GetRollupInfoByBlockRange_Call) RunAndReturn(...) *L1ParallelEthermanInterfaceMock_GetRollupInfoByBlockRange_Call + type L1ParallelEthermanInterfaceMock_GetTrustedSequencerURL_Call struct + func (_c *L1ParallelEthermanInterfaceMock_GetTrustedSequencerURL_Call) Return(_a0 string, _a1 error) *L1ParallelEthermanInterfaceMock_GetTrustedSequencerURL_Call + func (_c *L1ParallelEthermanInterfaceMock_GetTrustedSequencerURL_Call) Run(run func()) *L1ParallelEthermanInterfaceMock_GetTrustedSequencerURL_Call + func (_c *L1ParallelEthermanInterfaceMock_GetTrustedSequencerURL_Call) RunAndReturn(run func() (string, error)) *L1ParallelEthermanInterfaceMock_GetTrustedSequencerURL_Call + type L1ParallelEthermanInterfaceMock_HeaderByNumber_Call struct + func (_c *L1ParallelEthermanInterfaceMock_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *L1ParallelEthermanInterfaceMock_HeaderByNumber_Call + func (_c *L1ParallelEthermanInterfaceMock_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *L1ParallelEthermanInterfaceMock_HeaderByNumber_Call + func (_c *L1ParallelEthermanInterfaceMock_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *L1ParallelEthermanInterfaceMock_HeaderByNumber_Call + type L1ParallelEthermanInterfaceMock_VerifyGenBlockNumber_Call struct + func (_c *L1ParallelEthermanInterfaceMock_VerifyGenBlockNumber_Call) Return(_a0 bool, _a1 error) *L1ParallelEthermanInterfaceMock_VerifyGenBlockNumber_Call + func (_c *L1ParallelEthermanInterfaceMock_VerifyGenBlockNumber_Call) Run(run func(ctx context.Context, genBlockNumber uint64)) *L1ParallelEthermanInterfaceMock_VerifyGenBlockNumber_Call + func (_c *L1ParallelEthermanInterfaceMock_VerifyGenBlockNumber_Call) RunAndReturn(run func(context.Context, uint64) (bool, error)) *L1ParallelEthermanInterfaceMock_VerifyGenBlockNumber_Call + type L1RollupInfoProducer struct + func NewL1DataRetriever(cfg ConfigProducer, ethermans []L1ParallelEthermanInterface, ...) *L1RollupInfoProducer + func (l *L1RollupInfoProducer) Abort() + func (l *L1RollupInfoProducer) Reset(startingBlockNumber uint64) + func (l *L1RollupInfoProducer) Start(ctx context.Context) error + func (l *L1RollupInfoProducer) Stop() + type L1SyncMessage struct + type L1SyncOrchestration struct + func NewL1SyncOrchestration(ctx context.Context, producer l1RollupProducerInterface, ...) *L1SyncOrchestration + func (l *L1SyncOrchestration) Abort() + func (l *L1SyncOrchestration) IsProducerRunning() bool + func (l *L1SyncOrchestration) Reset(startingBlockNumber uint64) + func (l *L1SyncOrchestration) Start(lastEthBlockSynced *state.Block) (*state.Block, error)