Skip to content

Stellar transaction history view (per chain) #8

@truthixify

Description

@truthixify

Labels: Stellar Wave, stellar, feature, drips, help-wanted
Tier: M (2–4 days)
Type: feature

Context

The demo lets users send and receive but provides no view of what they've done. After a successful tx, the success card disappears and the user has only the explorer link they may or may not have clicked. We need a persistent "Activity" view per chain.

Stellar first; other chains as follow-ups.

Scope

  1. Add an /activity route in the demo navigation (next to Send / Receive).
  2. Persist tx events to localStorage per chain + per wallet address (key: wraith:activity:${chain}:${address}):
    • kind: "send" | "receive" | "withdraw" | "register-name"
    • chain: "stellar"
    • direction: "out" | "in"
    • amount, asset, counterparty (truncated stealth address or .wraith name)
    • txHash, timestamp, status (pending | confirmed | failed)
  3. Hooks: every successful tx submission writes an entry; on app load, poll Horizon for pending entries to update their status.
  4. UI: reverse-chronological list with chain badge, kind icon, amount, counterparty, and a chevron to open details.
  5. Filter chips: by chain, by direction, by status.
  6. Empty state with a CTA to Send.
  7. "Clear history" with confirm — purges localStorage for this wallet + chain.

Constraints

  • Don't show entries from other wallets on disconnect/reconnect-as-different-account.
  • Don't leak stealth keys — never store derived private keys in localStorage.
  • Size cap: keep the most recent 100 entries per chain + wallet.

Acceptance criteria

  • /activity route with per-chain filtering.
  • Local persistence working across reloads.
  • Pending → confirmed transitions on Horizon poll.
  • Empty state, clear-history flow.
  • Playwright test exercising a send-and-see-it-in-activity loop.

Why this matters

A user with no history view doesn't trust the app. A user with a history view trusts it instantly.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdripsFunded via Drips NetworkfeatureNew feature workhelp wantedExtra attention is neededstellarTouches Stellar / Soroban code

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions