refactor(torii): inmemory cache for erc and handle contract type at runtime - #2483
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/torii/ercs #2483 +/- ##
===================================================
- Coverage 68.64% 67.83% -0.82%
===================================================
Files 372 382 +10
Lines 48441 49629 +1188
===================================================
+ Hits 33251 33664 +413
- Misses 15190 15965 +775 ☔ View full report in Codecov by Sentry. |
itzlambda
marked this pull request as ready for review
September 28, 2024 13:32
glihm
approved these changes
Sep 30, 2024
glihm
reviewed
Sep 30, 2024
glihm
left a comment
Contributor
There was a problem hiding this comment.
We might change the scripts folder with some sub-folders in the future to better organize the utilities scripts. Those one are also more test oriented. 👍
glihm
pushed a commit
that referenced
this pull request
Oct 9, 2024
* feat(torii): index whitelisted erc20/erc721 commit-id:5231a946 * refactor(torii): abstract out how to format felts to avoid bugs commit-id:d618e874 * feat(torii): implement graphql for erc commit-id:10465a00 * opt(torii): reuse token metadata from db for ERC721 commit-id:3bfe5955 * opt(torii): fetch block timestamp in parallel commit-id:923dbba6 * refactor(torii/processor): use contract type info to select processor - cleanup plus other refactor for the PR stack - `start_block` configuration removed since it was no longer necessary now that we use `get_events` for `sync_range` - use debug log level transfer events commit-id:4acad5f3 * feat(torii): add a script to verify data commit-id:c6195721 * refactor(torii): inmemory cache for erc and handle contract type at runtime (#2483) * refactor(torii): handle normal and legacy erc contract type at runtime * refactor(torii): use inmemory cache to speedup erc indexing * fix lints * add script to verify balances in torii db by quering rpc * fix(torii/graphql): return only actual token_id in graphql response * add debug statement for shouldn't reach state * add tests for I256 type * update torii toml file * adapt script to verify erc721 balances * refactor(torii): move cache into Sql struct * improve compare script * refactor(torii): load token_id into cache on startup * execute queue when new token is registered * Merge branch 'main' into feat/torii/ercs * move diff apply logic to executor * add more tests * simplify implementation of i256 type * send query only when required * update script to compare erc_transfers table properly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.