Skip to content

Implement Wallet Balance and Asset Management Page #151

@0xdevcollins

Description

@0xdevcollins

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

  • Real balances displayed from smart wallet
  • Transaction history from Stellar network
  • Escrow-locked funds aggregated and displayed
  • Trustline management functional
  • USD conversion shown

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions