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

i2038 - Added token tracking functionality to indexer #2044

Merged
merged 13 commits into from
Oct 4, 2023

Conversation

jellymlg
Copy link
Collaborator

@jellymlg jellymlg commented Oct 3, 2023

Implemented token tracking by extracting address tracking logic to separate class and using it for tokens. This enables the retrieval of (unspent) boxes by a token they contain.

Made some improvements to indexer performance by more efficient buffer utilization and avoiding boxing. Although the performance gain is cancelled out by the token tracking.

Slightly reworked indexer tests and included token tracking.

Also added API endpoints:

  • /blockchain/box/byTokenId/{tokenId}
  • /blockchain​/box​/unspent​/byTokenId​/{tokenId}

Closes #2038

@jellymlg jellymlg requested a review from kushti October 3, 2023 18:45
@kushti kushti merged commit 5a38141 into v5.0.15 Oct 4, 2023
3 of 4 checks passed
@kushti kushti deleted the i2038-box-by-tokenId branch October 4, 2023 12:12
@kushti kushti mentioned this pull request Oct 4, 2023
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