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

[SUBGRAPH] fix resolver entry #1843

Merged
merged 6 commits into from
Mar 25, 2024

Conversation

0xdavinchee
Copy link
Contributor

@0xdavinchee 0xdavinchee commented Feb 29, 2024

we move this: resolverEntry.isToken = Token.load(target.toHex()) != null; out of the resolverEntry == null and only update it if the target 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.

Copy link
Contributor

@kasparkallas kasparkallas left a 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;
Copy link
Contributor

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?

@0xdavinchee 0xdavinchee marked this pull request as draft March 8, 2024 12:47
@hellwolf hellwolf changed the title fix resolver entry [SUBGRAPH] fix resolver entry Mar 12, 2024
@hellwolf hellwolf changed the title [SUBGRAPH] fix resolver entry [SUBGRAPH BUG] fix resolver entry Mar 12, 2024
@kasparkallas kasparkallas changed the base branch from dev to 2024-03-subgraph-gda-feature-branch March 12, 2024 14:28
@hellwolf
Copy link
Contributor

how is this one doing

@hellwolf
Copy link
Contributor

the fix did not work, will be investigated.

@hellwolf hellwolf changed the base branch from 2024-03-subgraph-gda-feature-branch to dev March 19, 2024 13:13
@hellwolf
Copy link
Contributor

@elvijsTDL please write a concrete bug report on the issue related to this.

@hellwolf hellwolf changed the title [SUBGRAPH BUG] fix resolver entry [SUBGRAPH] fix resolver entry Mar 22, 2024
@elvijsTDL
Copy link
Contributor

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:

  tokens(where: {isListed: true}) {
    isListed
    isSuperToken
    isNativeAssetSuperToken
    name
    symbol
  }
}

Screenshot 2024-03-22 at 11 56 16

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

@0xdavinchee 0xdavinchee marked this pull request as ready for review March 25, 2024 13:06
@kasparkallas kasparkallas changed the base branch from dev to 2024-03-subgraph-gda-feature-branch March 25, 2024 13:47
@0xdavinchee 0xdavinchee merged commit 6a9e78b into 2024-03-subgraph-gda-feature-branch Mar 25, 2024
2 checks passed
@0xdavinchee 0xdavinchee deleted the fix-resolver-entry branch March 25, 2024 14:33
Copy link

XKCD Comic Relif

Link: https://xkcd.com/1843
https://xkcd.com/1843

github-merge-queue bot pushed a commit that referenced this pull request Mar 26, 2024
* [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]>
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.

4 participants