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

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

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
frontend, payments

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
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 を短くまとめたダイジェスト。