graphprotocol / graphprotocol/graph-node
Timeseries of a single entity
まだ誰も着手していません。
- 主要言語
- 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:
- 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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ファイルもテストも指定されていません。まず既存の timetravel クエリのエントリーポイントを追跡し、次に issue で説明されている raw PostgreSQL と custom-resolver のアプローチを比較してください。完了条件は、maintainer に確認された回答、またはブロック範囲全体にわたる singleton の履歴について文書化された実装方針です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- postgres
- 領域
- api, database
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100