Skip to content

Add polling, Zustand wallet state, WalletConnect, and realtime contract - #430

Open
dev-fani wants to merge 1 commit into
Refract-Protocol:mainfrom
dev-fani:feat/issues-103-111-113-194
Open

dev-fani wants to merge 1 commit into
Refract-Protocol:mainfrom
dev-fani:feat/issues-103-111-113-194

Conversation

@dev-fani

Copy link
Copy Markdown

What changed

  • add a shared visibility-aware, overlap-safe polling hook and wire oracle/pool stats to 60-second polling and wallet lockups to five-minute polling
  • establish an SSR-safe persisted Zustand store convention and migrate remembered wallet adapter and Ledger preference out of manual localStorage calls
  • add a WalletConnect v2 Stellar adapter with desktop QR, mobile deep link, signing, timeout/rejection states, remote disconnect handling, and transport cleanup
  • define the versioned realtime envelope, per-topic delivery/dedup/resume/auth contract, machine-readable JSON Schemas, matching feature flags, and schema-validated documentation examples
  • repair the committed Vitest config/dependency versions needed to execute TSX and coverage suites

Validation

  • npm ci --ignore-scripts ✅
  • focused affected suites: 6 files, 30 tests passed ✅
  • focused coverage: polling 100% lines, WalletConnect 95.4% lines, combined 94.73% statements; wallet preference store 100% ✅
  • realtime documentation examples validate against every named schema ✅
  • git diff --check ✅
  • npm test ⚠️ unrelated failures already present on upstream main from empty source files such as useCoverageBounds.ts and stellar.ts
  • npm run typecheck / npm run build ⚠️ upstream main contains malformed JSX in src/app/cover/page.tsx before this branch

The WalletConnect integration requires NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID. A real-wallet demo video could not be recorded in this headless environment; session lifecycle and signing are covered with the mocked v2 client.

Closes #103
Closes #111
Closes #113
Closes #194

@drips-wave

drips-wave Bot commented Oct 21, 2026

Copy link
Copy Markdown

@dev-fani Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant