Skip to content

Feat/wallet market realtime - #172

Merged
Marvell69 merged 4 commits into
OracleDesk:developfrom
0xMegie:feat/wallet-market-realtime
Oct 18, 2026
Merged

Marvell69 merged 4 commits into
OracleDesk:developfrom
0xMegie:feat/wallet-market-realtime

Conversation

@0xMegie

@0xMegie 0xMegie commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #39, closes #40, closes #41, closes #42.

Wallet values now update from confirmed contract results and reconcile by ledger. Quick-view shows public per-market trade history, realtime feeds batch incoming activity, and notifications persist only the connected wallet's activity.

Changes

  • Apply exact bigint buy/sell/redeem deltas, reject stale reads, and display pending or awaiting-RPC state with transaction links.
  • Decode contract-spec Trade events, paginate within RPC retention, merge live copies by event ID, and virtualize up to 2,000 trades.
  • Share one validated socket, batch once per frame, bound feed buffers, summarize bursts, and respect hidden tabs and reduced motion.
  • Persist an address/network-scoped IndexedDB inbox with read state, held-market resolution/redemption polling, transaction tracker integration, and an accessible unread bell count.
  • Repair trading integration and SDK call defects needed by these paths; restore a lockfile compatible with normal npm ci.

Testing

  • Clean npm ci: passed.
  • npm run check:bindings, npm run typecheck, npm run lint, npm test, npm run build: passed (176 tests across 25 files; zero lint errors).
  • Production routes /, /markets, /markets/quick-view?onChainId=0 and /notifications: HTTP 200; browser inbox check reported no exceptions.
  • Component browser harness: persisted read state, wallet A/B isolation, disconnect clearing, and 25 DOM rows for 2,000 fixture trades.
  • Realtime browser checks: hidden-tab DOM pause, bounded catch-up with overflow, and reduced-motion rows.
  • Before/after React Profiler results for 500 trades at 500/s and 50/s are recorded in docs/STATUS.md; reproduction instructions are in CONTRIBUTING.md.

Notes

Target OracleDesk/OracleDesk-Frontend's develop branch.

Real browser-wallet signing, real two-wallet event delivery, and live seeded resolution/redemption remain manual checks in docs/manual-test.md. No transactions were submitted during verification. Event fixtures are contract-shaped XDR, not a newly captured testnet trade.

Existing lint/chart warnings remain. npm reports 69 dependency advisories; security dependency upgrades are outside this change.

Production inbox screenshot: docs/images/notifications-disconnected.png.

Apply exact contract-returned deltas after confirmation, guard against stale RPC reads, and expose pending state. Restore the trading integrations and SDK 16 call sites required by these paths.

Refs OracleDesk#39
Use one mixed-event frame scheduler, bounded rings and hidden-tab catch-up. Suppress animations during sustained bursts and reduced motion; add a reproducible simulator and development profiler.

Refs OracleDesk#41
Decode contract-spec Trade events with exact bigint amounts, probe backward ledger windows with cursor pagination, and merge live rows by event ID. Show retention limits, explorer links and a bounded 2,000-trade virtual table in quick-view.

Refs OracleDesk#40
Store classified own-wallet activity and explicit read state in IndexedDB per address and network. Poll held-market resolutions and owner redemptions, consume validated tracker updates, and show the true unread bell count. Document verification, profiler comparisons and manual wallet checks.

Refs OracleDesk#42
@vercel

vercel Bot commented Oct 18, 2026

Copy link
Copy Markdown

@0xMegie is attempting to deploy a commit to the Marvel's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Marvell69
Marvell69 merged commit 4b90e94 into OracleDesk:develop Oct 18, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants