Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(L1 state manager): L1Reader #1018

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
00494d5
feat: follower node sync from DA #631
jonastheis Aug 29, 2024
11e440b
fixes after merge
jonastheis Aug 29, 2024
2ee38fd
fix: panic after startup due to misconfigured api
jonastheis Aug 29, 2024
9e8afc4
fix bug of not calculating block state root
NazariiDenha Aug 29, 2024
6068db3
minor adjustment of fix
jonastheis Aug 29, 2024
117016e
add l1_tracker and l1_reader without caching
NazariiDenha Sep 1, 2024
271b7dc
fix incorrect depth calc
NazariiDenha Sep 2, 2024
f9111cb
refactor: rename package to `l1`
jonastheis Sep 3, 2024
0fc3b94
refactor reader to process raw logs to rollup events
NazariiDenha Sep 3, 2024
5b22f7f
refactor da_syncer to not use depend on rollup_sync_service and sync_…
NazariiDenha Sep 3, 2024
27c5d63
feat: implement tracker
jonastheis Sep 4, 2024
fa09f3f
fetch in batches
NazariiDenha Sep 4, 2024
6686d1d
feat: add test cases for happy path and fix minor bugs uncovered by t…
jonastheis Sep 5, 2024
15ea17e
feat: add test for confirmation rules when subscribing
jonastheis Sep 5, 2024
dbafb2c
add extensive tests for reorgs
jonastheis Sep 6, 2024
10a8b64
adjust interface to be the same as reth ex ex but with block headers
jonastheis Sep 25, 2024
854dc43
fixes
NazariiDenha Oct 6, 2024
294b9c6
pruning
NazariiDenha Oct 7, 2024
6464296
Merge remote-tracking branch 'origin/syncUpstream/active' into feat/l…
jonastheis Oct 23, 2024
79842f8
fixes after merge
jonastheis Oct 23, 2024
a45885e
extend Reader
jonastheis Oct 23, 2024
1b5a4f8
simplify as functionality has been moved to Reader
jonastheis Oct 23, 2024
acb1bc2
Merge remote-tracking branch 'origin/syncUpstream/active' into feat/l…
jonastheis Oct 24, 2024
591534c
fix using outdated ABI for L1MessageQueue
jonastheis Oct 24, 2024
c96a3da
Add LatestFinalizedBatch
jonastheis Oct 28, 2024
113241e
Fix bug in queryInBatches
jonastheis Oct 28, 2024
e873ac0
add HeapMap component
jonastheis Oct 29, 2024
bbd7144
remove state tracker and move to separate branch
jonastheis Nov 28, 2024
b895b43
add some tests
jonastheis Nov 28, 2024
31f0bfe
Merge remote-tracking branch 'origin/syncUpstream/active' into feat/l…
jonastheis Nov 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rollup/l1/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const (
type Reader struct {
ctx context.Context
config Config
client EthClient
client Client
filterer *L1MessageQueueFilterer

scrollChainABI *abi.ABI
Expand All @@ -42,7 +42,7 @@ type Config struct {
}

// NewReader initializes a new Reader instance
func NewReader(ctx context.Context, config Config, l1Client EthClient) (*Reader, error) {
func NewReader(ctx context.Context, config Config, l1Client Client) (*Reader, error) {
if config.ScrollChainAddress == (common.Address{}) {
jonastheis marked this conversation as resolved.
Show resolved Hide resolved
return nil, errors.New("must pass non-zero scrollChainAddress to L1Client")
}
Expand Down
Loading
Loading