Multi-token invoices (choose the token per invoice)

Aperta
#35 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@robertocarlous ci sta già lavorando.

Dal 21/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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).

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
54m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Yormee-103/PayLoop

Tutte le issue di Yormee-103/PayLoop

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.