-
Notifications
You must be signed in to change notification settings - Fork 242
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
[SUBGRAPH] fix resolver entry #1843
[SUBGRAPH] fix resolver entry #1843
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acknowledged
if (isListed) { | ||
resolverEntry.isToken = Token.load(target.toHex()) != null; | ||
} | ||
resolverEntry.updatedAtBlockNumber = block.number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it ok to always update when getOrInit
is called? it's called in very few places?
how is this one doing |
the fix did not work, will be investigated. |
@elvijsTDL please write a concrete bug report on the issue related to this. |
The subgraph shows some of the tokens as unlisted even if they should be e.g. ETHx , fUSDCx If you query the listed tokens you can see that they are missing:
At some point it has flipped from listed to unlisted as it used to work fine This might be related to GoodDollar G$ getting unlisted from Celo too |
…CCalls in subsequent token calls
6a9e78b
into
2024-03-subgraph-gda-feature-branch
XKCD Comic RelifLink: https://xkcd.com/1843 |
* [SUBGRAPH] [BUG] PoolMember not getting updated when the member units change (#1877) * add a test starter * add the test * fixes * improve test * update dev container for matchstick compatibility * implement the fix * clean-up * add elaborate test for pool total amount received * fix test issue * add even more comments * fix test name * ignore test --------- Co-authored-by: 0xdavinchee <[email protected]> * [SUBGRAPH] approval mapping (#1878) * approval mapping * missing addresses * missing addresses cont. * no-op, trigger build * fix tests --------- Co-authored-by: Kaspar Kallas <[email protected]> * [subgraph] Fix Correctness of GDA Entities (#1890) --------- Co-authored-by: 0xdavinchee <[email protected]> * add createdAtTimestamp/BlockNumber for ATS entity (#1909) * [SUBGRAPH] fix governance config always null (#1908) * fix governance config always null * fix broken tests * [SUBGRAPH] fix resolver entry (#1843) * fix resolver entry * do resolver rpc call on token initialization and remove handleTokenRPCCalls in subsequent token calls * fix broken tests * TODO comment can be removed * remove mistakenly added files --------- Co-authored-by: 0xdavinchee <[email protected]>
we move this:
resolverEntry.isToken = Token.load(target.toHex()) != null;
out of theresolverEntry == null
and only update it if thetarget
is not null.We need to do this because of sepolia where the token entity is created after the resolver set event is emitted (triggered), thus we want to be able to call set again and fix this. Edited: This makes ETHx not shown as listed in sepolia subgraph.