graphprotocol / graphprotocol/graph-node

Timeseries of a single entity

オープン
#4,040 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

area/graphql Stale
主要言語
Rust
スター
3.2k
フォーク
1.1k
平均マージ
4日 1時間
マージ済み PR(30日)
1

説明

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:

  1. Direct raw queries over postgres
  2. Write a custom resolver

Would be helpful if someone can answer how I can go about doing both of these things.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

ファイルもテストも指定されていません。まず既存の timetravel クエリのエントリーポイントを追跡し、次に issue で説明されている raw PostgreSQL と custom-resolver のアプローチを比較してください。完了条件は、maintainer に確認された回答、またはブロック範囲全体にわたる singleton の履歴について文書化された実装方針です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
postgres
領域
api, database
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。