[Epic] USDCx transfer to external (non-registered) parties via party id
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- go
- 領域
- api, authorization, backend
調査の方向性
pkg/transfer/service.go:148 から始め、ローカルの EVM アドレス検索と token.Client.PrepareTransfer および TransferByPartyID を比較します。子 Issue #316–#320 と一覧にある依存関係を読み、コア API、認可、ステータス、エンドツーエンドテスト、ドキュメントに関する作業を切り分けます。これらの外部パーティー向けの送信パスと、そのテストおよびドキュメントが完成すれば、Epic は完了です。
索引モデルが issue の本文から書いたものです。
説明
Goal
Enable the middleware to transfer USDCx (and any Splice token) out to a party that is not registered in the middleware — i.e. a party hosted on an external participant node — addressed purely by its Canton party id. This is the outbound counterpart to the inbound accept flow we already ship, and the concrete breakdown of the original request in #250.
Current state
- We can transfer USDCx between parties inside our participant node (custodial and non-custodial).
- We can receive USDCx from external participants (find pending
TransferOffers +AcceptTransferInstruction, #260/#261/#262). - We cannot send USDCx to an external party, because
POST /api/v2/transfer/prepareresolves the recipient viauserStore.GetUserByEVMAddress(req.To)(pkg/transfer/service.go:148) — the recipient must be a locally-registered user with an EVM address.
Key finding: the SDK is already done
The Canton SDK already supports sending to an arbitrary party id; only the API/service layer forces a local recipient:
token.Client.PrepareTransfer/TransferByPartyIDtake a rawToPartyIDand never require it to be local.resolveTransferFactoryalready routes USDCx through Circle's registry (keys offInstrumentAdmin, independent of the recipient).buildTransferCommandputs the recipient into theTransferFactory_Transferchoice astransfer.receiver;ReadAsis nil for external tokens (visibility via disclosed contracts).
So the work is mostly a thin API/service layer + authorization + status visibility + tests + docs.
Important semantic
Outbound is 2-phase and asynchronous: exercising TransferFactory_Transfer creates a TransferInstruction/TransferOffer and locks the sender's holdings. The external recipient must accept on their own node — we cannot accept for them. "Success" from our API = offer submitted, not settled. Unaccepted offers expire at executeBefore and unlock (expiry/claim-back handled by the #290/#291/#292 trilogy).
Child issues
- #316 — feat(api): non-custodial transfer to external party via party id (core)
- #317 — feat(api): custodial transfer to external party via party id
- #318 — feat: outbound transfer authorization & whitelist policy
- #319 — test(e2e): outbound USDCx transfer to external participant party
- #320 — docs: external-party outbound transfer (registry config + runbook + API)
Dependencies & related (existing issues)
- #250 — original request; superseded by this epic (recommend closing once #316 lands).
- #290 — SDK: per-call offer validity. Needed so external recipients get a sensible accept window (default is currently hardcoded to +1h). Related; not blocking for a first cut.
- #291 — indexer: persist
expires_at+TransferInstructionCID + status filters. Foundation for outbound status visibility and claim-back. - #292 — API:
GET /api/v2/transfer/outgoing+TransferInstruction_Withdraw(claim-back) + validity on prepare. Provides the sender-side status/recourse for offers that external parties never accept — the natural status layer for this epic. We rely on it rather than duplicating an outgoing-list here. - #275 —
prepared_transactionenvelope on prepare endpoints (signing UX); applies to the new external prepare too. - #272 — transaction history API for non-custodial users (visibility, related).
- #219 / #216 — USDCx transfer test coverage (related).
- #199 — parent "[Epic] Support USDCx".
Open questions (resolve in #318)
- Whitelist-gate outbound on the sender's EVM address? (Recommend yes.)
- Allow custodial outbound, or restrict to non-custodial (user-signed) only?
- Offer validity window for external recipients (depends on #290).
Proposed sequence of work
Phase 1 — core path
- #318 — decide + implement the authorization policy (small; unblocks the rest).
- #316 — non-custodial
external/prepare+execute, party-id validation, recipient guards. Headline deliverable; depends on no new SDK work.
Phase 2 — breadth + status (parallelisable)
3. #317 — custodial single-call outbound.
4. #290 → #291 → #292 — validity → indexer expiry/CID → /outgoing + claim-back. Run this track in parallel; it gives senders visibility and a way to reclaim funds when an external party never accepts.
Phase 3 — hardening
5. #319 — e2e coverage for outbound to an external party.
6. #320 — docs, config reference, operator runbook.
7. (#275 envelope, #272 history) — fold in opportunistically.
- 主要言語
- 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 ·
-
CIP-0086: Phase 2 Deliverable: D3 Status: On Ice Type: Feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ChainSafe/canton-middleware#372 ·
-
Type: Feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ChainSafe/canton-middleware#369 ·
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