Skip to content

Conversation

@LeoPatOZ
Copy link
Collaborator

@LeoPatOZ LeoPatOZ commented Sep 12, 2025

  • Use new event scanner format
  • Add a lot more tests

@LeoPatOZ LeoPatOZ requested a review from 0xNeshi September 12, 2025 13:54
@LeoPatOZ LeoPatOZ force-pushed the migrate-event-scanner-tests branch from cbda3e8 to a4dd60b Compare September 12, 2025 13:55
@LeoPatOZ LeoPatOZ changed the base branch from main to event-channeling September 12, 2025 13:55
@LeoPatOZ LeoPatOZ force-pushed the migrate-event-scanner-tests branch from 879ea15 to 0fb8d7b Compare September 15, 2025 09:03
@LeoPatOZ LeoPatOZ force-pushed the migrate-event-scanner-tests branch from c363eaa to 159c33f Compare September 17, 2025 13:54
Base automatically changed from block-scanner to main September 17, 2025 16:26
pub struct EventOrderingCallback {
pub counts: Arc<Mutex<Vec<u64>>>,
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loving the event callback approach so far, seems super convenient for testing


let mut builder = EventScannerBuilder::new();
builder.with_event_filter(filter);
let scanner = builder.connect_ws::<Ethereum>(anvil.ws_endpoint_url()).await?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed for this PR, just a note for future reference: would be convenient if we implemented connect_provider, so we can just pass the local provider into the scanner

@0xNeshi 0xNeshi merged commit 939f9f6 into main Sep 18, 2025
6 checks passed
@0xNeshi 0xNeshi deleted the migrate-event-scanner-tests branch September 18, 2025 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants