Detect unfunded accounts; show XLM balance and a testnet "Fund with Friendbot" button

Aperta
#88 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend, payments

Direzione di ricerca

Start in web/lib/contract.ts, where hasUsdcTrustline currently treats a missing account as no trustline, and in web/components/TrustlineButton.tsx, where the Enable USDC action runs. Add a Horizon lookup for the account and its XLM balance, then show a funding prompt before the trustline step. Done means an unfunded wallet sees the prompt, testnet offers Fund with Friendbot and the flow continues without a reload, and mainnet shows guidance only.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

difficulty: intermediate enhancement help wanted Stellar Wave ux web

Difficulty: Intermediate

Problem

hasUsdcTrustline treats a missing account as "no trustline", so "Enable USDC" is offered; it then fails because the account does not exist or has no XLM for fees.

Why it matters

This is the first wall a new tester hits, and the error is confusing.

Scope of work

Check the account and its XLM balance via Horizon, explain what is missing, and on testnet offer a "Fund with Friendbot" button before the trustline step. On other networks show guidance only.

Acceptance criteria

  • An unfunded wallet sees a funding prompt before the trustline step.
  • After funding, the flow continues without a reload.
  • Mainnet shows guidance without calling Friendbot.

Relevant files

  • web/lib/contract.ts, web/components/TrustlineButton.tsx

Dependencies

Soft dependency on #12 (error messages).

Maintainer discussion needed?

No.

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.