@@ -24,34 +24,39 @@ mod sync;
2424/// Default number of maximum concurrent fetches for each scanner mode.
2525pub const DEFAULT_MAX_CONCURRENT_FETCHES : usize = 24 ;
2626
27- #[ derive( Default ) ]
27+ #[ derive( Default , Debug ) ]
2828pub struct Unspecified ;
29+ #[ derive( Debug ) ]
2930pub struct Historic {
3031 pub ( crate ) from_block : BlockId ,
3132 pub ( crate ) to_block : BlockId ,
3233 /// Controls how many log-fetching RPC requests can run in parallel during the scan.
3334 pub ( crate ) max_concurrent_fetches : usize ,
3435}
36+ #[ derive( Debug ) ]
3537pub struct Live {
3638 pub ( crate ) block_confirmations : u64 ,
3739 /// Controls how many log-fetching RPC requests can run in parallel during the scan.
3840 pub ( crate ) max_concurrent_fetches : usize ,
3941}
42+ #[ derive( Debug ) ]
4043pub struct LatestEvents {
4144 pub ( crate ) count : usize ,
4245 pub ( crate ) from_block : BlockId ,
4346 pub ( crate ) to_block : BlockId ,
4447 /// Controls how many log-fetching RPC requests can run in parallel during the scan.
4548 pub ( crate ) max_concurrent_fetches : usize ,
4649}
47- #[ derive( Default ) ]
50+ #[ derive( Default , Debug ) ]
4851pub struct Synchronize ;
52+ #[ derive( Debug ) ]
4953pub struct SyncFromLatestEvents {
5054 pub ( crate ) count : usize ,
5155 pub ( crate ) block_confirmations : u64 ,
5256 /// Controls how many log-fetching RPC requests can run in parallel during the scan.
5357 pub ( crate ) max_concurrent_fetches : usize ,
5458}
59+ #[ derive( Debug ) ]
5560pub struct SyncFromBlock {
5661 pub ( crate ) from_block : BlockId ,
5762 pub ( crate ) block_confirmations : u64 ,
@@ -78,13 +83,14 @@ impl Default for Live {
7883 }
7984}
8085
86+ #[ derive( Debug ) ]
8187pub struct EventScanner < M = Unspecified , N : Network = Ethereum > {
8288 config : M ,
8389 block_range_scanner : ConnectedBlockRangeScanner < N > ,
8490 listeners : Vec < EventListener > ,
8591}
8692
87- #[ derive( Default ) ]
93+ #[ derive( Default , Debug ) ]
8894pub struct EventScannerBuilder < M > {
8995 pub ( crate ) config : M ,
9096 pub ( crate ) block_range_scanner : BlockRangeScanner ,
0 commit comments