graphprotocol / graphprotocol/graph-node
Timeseries of a single entity
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Rust
- Sterne
- 3.2k
- Forks
- 1.1k
- Ø Merge
- 4 T. 1 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Do you want to request a feature or report a bug?
Feature request of kinds, but just looking for some answers.
Subgraph has supported timetravel queries that allow you to retrieve entities at particular block. I am looking for a way to get historical state of a singleton entity over a given block range. Use case being imagine you wanted to get a timeseries of total supply of ERC20, or chainlink's latest answer stored in a singleton entity to query a timeseries of oracle answer. I imagine there can be 2 ways this can be done:
- Direct raw queries over postgres
- Write a custom resolver
Would be helpful if someone can answer how I can go about doing both of these things.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Es ist keine Datei und kein Test benannt. Beginne damit, den bestehenden Einstiegspunkt für timetravel-Abfragen nachzuverfolgen, und vergleiche dann die im issue beschriebenen Ansätze mit rohem PostgreSQL und einem custom-resolver; abgeschlossen wäre eine von einem Maintainer bestätigte Antwort oder ein dokumentierter Implementierungspfad für Singleton-Historie über einen Blockbereich hinweg.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- postgres
- Bereich
- api, database
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 20/100