graphprotocol / graphprotocol/graph-node
Chain name aliases
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 1.1k
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 1
説明
Do you want to request a feature or report a bug?
feature
What is the current behavior?
Every chain has a unique network identifier, like mainnet, matic, xdai. Some of these chains were renamed but their unique identifier stayed the same. Eventually, new developers will be confused because they do not intuitively understand why a subgraph running on Polygon should have matic as network identifier. Same for xDai which was renamed to Gnosis Chain.
Though, just changing these network identifiers would break all existing subgraphs that still have matic as network and not polygon.
What is the expected behavior?
I would recommend to introduce network identifier aliases, so we can start to communicate the new names but still support the old ones.
Example:
matic -> polygon
xdai -> gnosis-chain
Etc.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
この issue にはファイル、テスト、エントリポイントが記載されていません。まず graph-node がネットワーク識別子をどのように検証し使用しているかを特定し、次に影響を受ける設定およびサブグラフのパスを追跡してください。polygon や gnosis-chain のように名前が変更された識別子が受け入れられ、既存の matic および xdai サブグラフが引き続き動作すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- blockchain
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100