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

Simplify chainhook-sdk interface #350

Open
lgalabru opened this issue Jul 21, 2023 · 1 comment
Open

Simplify chainhook-sdk interface #350

lgalabru opened this issue Jul 21, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@lgalabru
Copy link
Contributor

Simplifying the chainhook-sdk would be helpful for helping developers building new indexers on top of the chainhook-sdk.
Something like:


let indexer = Indexer::new();

indexer.apply_block(|event| {
    // do something
});

indexer.rollback_block(|event| {
    // do something
});

indexer.run();

@lgalabru lgalabru added the enhancement New feature or request label Jul 21, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in DevTools Jul 21, 2023
@smcclellan smcclellan added the documentation Improvements or additions to documentation label Jul 24, 2023
@smcclellan smcclellan moved this from 🆕 New to 📋 Backlog in DevTools Jul 24, 2023
@lgalabru
Copy link
Contributor Author

lgalabru commented Aug 2, 2023

Foundation implemented in #362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants