Feature: Implement Wallet Balance and Asset Management Page
Overview
The wallet page (app/wallet/) exists but uses mock data. It needs real integration with the Stellar smart wallet to show live balances, asset management, and transaction history.
Depends on: #148 (Passkey auth), #139 (Contract bindings)
Goals
- Display real XLM, USDC, EURC balances from smart wallet
- Show transaction history from Stellar network
- Enable asset trustline management
- Show escrow-locked funds across active bounties
Implementation Details
1. Live Balance Fetching
Modify: app/wallet/page.tsx
- Replace mock data with real
fetchSacTokenBalance() and fetchNativeBalance() calls
- USD conversion via price feed
- Auto-refresh on interval
2. Transaction History
- Fetch from Stellar Horizon API
- Filter by payment operations
- Show: amount, asset, counterparty, timestamp, tx hash (linked to explorer)
3. Escrow Summary
- Aggregate locked funds across all active bounties
- Show per-bounty escrow amounts
- Link to bounty detail pages
4. Asset Management
- List current trustlines
- Add new trustlines (USDC, EURC, etc.)
- Show supported assets from config
Acceptance Criteria
Feature: Implement Wallet Balance and Asset Management Page
Overview
The wallet page (
app/wallet/) exists but uses mock data. It needs real integration with the Stellar smart wallet to show live balances, asset management, and transaction history.Depends on: #148 (Passkey auth), #139 (Contract bindings)
Goals
Implementation Details
1. Live Balance Fetching
Modify:
app/wallet/page.tsxfetchSacTokenBalance()andfetchNativeBalance()calls2. Transaction History
3. Escrow Summary
4. Asset Management
Acceptance Criteria