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(indexer/processors): implement default + custom processors. #23

Merged
merged 44 commits into from
Feb 18, 2025

Conversation

TropicalDog17
Copy link
Contributor

@TropicalDog17 TropicalDog17 commented Feb 5, 2025

Description

  • Add base traits for processors,
  • Implement default transaction processor, block processor, event processor
  • An example of custom event processor
  • Handle reorg blocks

src/client.rs Outdated
@@ -51,8 +51,8 @@ impl Client {
// GET:/blockflow/blocks-with-events
pub async fn get_blocks_and_events(
&self,
from_ts: u64,
to_ts: u64,
from_ts: u128,
Copy link
Contributor

Choose a reason for hiding this comment

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

u64 should be more than enough here for a timestamp no?

@TropicalDog17 TropicalDog17 marked this pull request as ready for review February 15, 2025 07:24
@TropicalDog17
Copy link
Contributor Author

@raduciobanu22 @htiennv please take a look

@raduciobanu22 raduciobanu22 merged commit 63e7b91 into ThinEdgeLabs:main Feb 18, 2025
1 check failed
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.

5 participants