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

Indexer support #146

Merged
merged 6 commits into from
Dec 8, 2023
Merged

Indexer support #146

merged 6 commits into from
Dec 8, 2023

Conversation

abizjak
Copy link
Contributor

@abizjak abizjak commented Dec 6, 2023

Purpose

We often need to traverse the chain to extract data from the transactions and events.

This has a bunch of boilerplate code, especially to do robustly.

This PR adds that scaffolding to the SDK so that in most circumstances the retrieval of data from the chain can be abstracted away, and retries are handled automatically.

The consumer can then focus on consuming the events only.

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

@abizjak abizjak force-pushed the indexer-support branch 2 times, most recently from 90d485c to 1ecf4d7 Compare December 7, 2023 08:30
@abizjak abizjak requested a review from limemloh December 8, 2023 12:59
Copy link
Contributor

@limemloh limemloh left a comment

Choose a reason for hiding this comment

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

Cool addition to the SDK

src/indexer.rs Outdated Show resolved Hide resolved
src/indexer.rs Outdated Show resolved Hide resolved
src/indexer.rs Outdated Show resolved Hide resolved
@abizjak abizjak merged commit b6168da into main Dec 8, 2023
3 checks passed
@abizjak abizjak deleted the indexer-support branch December 8, 2023 15:23
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.

2 participants