Multi-token invoices (choose the token per invoice)

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

メンテナーはふだん 1 日以内に返信

@robertocarlous がすでに取り組んでいます。

2026年11月21日 から。

評価

この issue はまだ評価されていません。

説明

contract difficulty: advanced enhancement needs-discussion Stellar Wave web

Difficulty: Advanced

Description

contracts/invoice/README.md says invoices "store the token they were created with", but create_invoice always uses the single default token set at initialize, so there is no way to invoice in another stablecoin. The roadmap lists "multi-stablecoin".

Implementation suggestions

Contract: add an allowlist or token argument validated at create time, with the existing default used when none is given, and tests with two tokens. Web: a token selector, per-token trustline and balance, and symbol and decimals read from the token contract instead of global config. Include migration notes for v1 invoices.

Acceptance criteria

  • An invoice in token A and one in token B can each be created and funded.
  • Formatting uses the right decimals per token.
  • The default-token behaviour is unchanged.

Dependencies / related

Needs discussion (redeploy and ABI change). Best done alongside or after #27-#30 so there is a single contract release. Touches amount parsing from #6 (decimals become per-token).

主要言語
TypeScript
スター
0
フォーク
4
平均マージ
54分
マージ済み PR(30日)
6

環境構築

はじめの一歩

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

Yormee-103/PayLoop のほかの issue

Yormee-103/PayLoop の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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