feat(relayer): port PROMPT to wayfinder adapter, remove legacy pipeline
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- go
- 領域
- backend, blockchain
調査の方向性
#356 の TokenBridge インターフェースから始め、次に pkg/relayer/engine にある既存の PROMPT ファイルと、この issue に記載されている wayfinder ファイルを比較します。現在の動作を理解するため、既存の PROMPT のユニットテストと e2e テストを実行します。devstack テストが引き続き成功し、engine にメカニズム固有の import がなく、wayfinder スタイルの 2 つ目のトークンを設定のみで追加できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Goal
Port PROMPT bridging from the legacy relayer pipeline (processor + source/destination + reconcile loop) to a wayfinder adapter under the TokenBridge interface introduced in #356, then delete the legacy pipeline. Deferred from #356 to keep the USDCx track unblocked (see epic #361).
Work items
-
pkg/relayer/bridges/wayfinder/—bridge.go(Key, Sources, Step),source_eth.go+source_canton.go(moved fromengine/source.go),convert.go(per-token decimals replacingconst decimalPlaces = 18) -
Step, deposit: idempotency check ->CreatePendingDeposit->ProcessDepositAndMint-> completed (single step, as today) -
Step, withdrawal:"" -> eth_submitted -> completed; foldingCompleteWithdrawalinto a stage fixes the existing gap where the retry path skips the post-submit hook - Resolve token from the deposit event's
tokenfield via config (finally usingCantonBridge.sol's existingethereumToCantonTokenmappings) - Delete
engine/processor.go,engine/destination.go,engine/source.goand the reconcile loop; PROMPT config moves fully into the per-tokenTokensmap - Migrate/regenerate mocks; existing PROMPT unit + e2e tests pass unchanged
Acceptance
- PROMPT deposits and withdrawals behave identically on devstack (existing e2e green)
pkg/relayer/enginehas no imports ofpkg/cantonsdk/bridgeorpkg/ethereumcontract bindings — all mechanism-specific code lives underbridges/- Adding a second wayfinder-style token is config-only
- In-flight transfers created by the legacy pipeline complete correctly after the cutover (rows already keyed
bridge_key=wayfinderby #356's migration)
Depends on
- #356 (foundation)
- 主要言語
- Go
- スター
- 1
- フォーク
- 1
- 平均マージ
- 6時間 59分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ChainSafe/canton-middleware のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ChainSafe/canton-middleware#390 ·
-
Separate API runtime privileges from Canton administration対応中かも @shibaeff が 12 日前に担当しました。 オープン
ChainSafe/canton-middleware#389 · コメント 1 件 · 担当者 1 名 ·
-
Type: Maintenance Type: Test
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ChainSafe/canton-middleware#380 ·
-
Type: Feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ChainSafe/canton-middleware#369 ·
-
Type: Feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ChainSafe/canton-middleware#368 ·
ChainSafe/canton-middleware の issue をすべて見る
似ている issue
-
A failed hydrate call can be dropped when the row's wait is ready too対応中かも @turbot-agent-fleet が今日担当しました。 オープンagent:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
turbot/steampipe-plugin-sdk#1018 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement needs-review
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
router-for-me/CLIProxyAPI#7976 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
uselagoon/lagoon-cli#501 · リアクション 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100