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

Feature: Index ERC-1155 portal transfers #26

Merged
merged 5 commits into from
Mar 4, 2024

Conversation

brunomenezes
Copy link
Collaborator

@brunomenezes brunomenezes commented Feb 18, 2024

Summary

Code changes to index transfers from ERC-1155 tokens through Cartesi Portals. That is handling single and batch deposits.

Related work:

Changelog:

  • New entity to store the smart-contract data (only address, i.e. id).
  • New entity to store the deposit information.
  • New scalar that holds the token-id and the amount transferred. It is intended to be used with the deposit supporting single and batch entries without creating multiple deposit entries. On the lower level side, it is translated into a JSONB in the database.
  • New migration included.
  • New test case to cover the logic.

PS: I am also anticipating some refactoring I have done in the #24 for the main.ts and EventHandler.ts related to summary and total information. As the aforementioned PR is Status: On-Hold

@brunomenezes brunomenezes merged commit 15f56bc into main Mar 4, 2024
2 checks passed
@brunomenezes brunomenezes deleted the feature/index-erc-1155-portal-transfers branch March 4, 2024 00:49
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.

None yet

3 participants