Skip to content

[subgraph] various subgraph mapping fixes#2056

Merged
d10r merged 38 commits intodevfrom
2025-03-10-subgraph-updates
Jun 17, 2025
Merged

[subgraph] various subgraph mapping fixes#2056
d10r merged 38 commits intodevfrom
2025-03-10-subgraph-updates

Conversation

@kasparkallas
Copy link
Contributor

@kasparkallas kasparkallas commented Mar 10, 2025

  • Fix adjustmentFlowRate on Pool
  • Improve poolTotalAmountReceivedUntilUpdatedAt accuracy on PoolMember
  • Fix poolTotalAmountDistributedUntilUpdatedAt on PoolMember
  • Fix totalNumberOfActivePools on TokenStatistics
  • Fix totalSubscriptionsWithUnits on TokenStatistics
  • Use declarative eth calls for optimization
  • Remove receipt: true from handlers, resulting in gasUsed staying null, but improving indexing performance
  • Disable indexing of Send events. Use Transfer instead.
  • Disable indexing of TokenSnapshotLogs

@kasparkallas kasparkallas requested a review from hellwolf as a code owner March 10, 2025 13:24
Copy link
Contributor

@hellwolf hellwolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echidna build on the head of nixpkgs is broken. I have a local fix, and the upstream merge is also nigh. I will do something here to fix soon.

- it is a new subgraph feature
- we hope that it makes our subgraph index much faster
@kasparkallas kasparkallas requested a review from d10r April 16, 2025 10:57
@hellwolf hellwolf marked this pull request as draft May 7, 2025 16:43
@hellwolf
Copy link
Contributor

hellwolf commented May 7, 2025

Converting this to draft, and address conflicts once #2064 is merged.

@codecov
Copy link

codecov bot commented May 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@d10r d10r marked this pull request as ready for review May 15, 2025 19:04
@d10r
Copy link
Collaborator

d10r commented May 16, 2025

Fails to sync on some networks.

Polygon:

Subgraph failed with non-deterministic error: failed to process trigger: block #11650651 (0xf772…05ea), transaction 387e2bb0974fd596ba92e8c9e159a60b7b2ea484603d360eee7bc7e5a67c1444: unknown param token, retry_delay_s: 201, attempt: 1, runner_index: 1576

Ethereum:

Subgraph failed with non-deterministic error: failed to process trigger: block #15874768 (0xf0d2…0dae), transaction e790ace5da74c61d11374a9d6ad63c0090ac6481910d21ecebca5398adb0ec0d: unknown param token, retry_delay_s: 487, attempt: 2, runner_index: 1579

Working on Base and Scroll, it may be related to some kind of incompatibility with older versions of the protocol which were never deployed on more recently added chains.

@d10r d10r merged commit 839fc6d into dev Jun 17, 2025
27 checks passed
@d10r d10r deleted the 2025-03-10-subgraph-updates branch June 17, 2025 13:19
@github-actions
Copy link

XKCD Comic Relif

Link: https://xkcd.com/2056
https://xkcd.com/2056

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