Skip to content

[Frontend] Real-time escrow updates via Stellar Horizon event streaming #9

Open

Description

@Gbangbolaoluwagbemiga

Problem

UI polls every 15 seconds — ~15s lag between on-chain events and UI updates. Polling wastes resources.

What needs to be done

  1. `src/hooks/useEscrowEvents.ts` — subscribe to Horizon SSE, parse XDR events, return via callback
  2. Replace `setInterval` polling in `MessagesPage`, `DashboardPage`, `ApprovalsPage`
  3. Exponential backoff reconnect logic
  4. Fallback to polling if Horizon SSE unavailable

Acceptance criteria

  • Milestone approval reflected in UI within 2s of confirmation
  • No `setInterval` polling for contract state
  • Reconnect with backoff

Depends on issue #5 (contract events)

Activity

  1. rupesh-kumar-sah commented on Oct 2, 2026

    @rupesh-kumar-sah

    Greetings @maintainers,

    I would like to take on and implement this issue: [Frontend] Real-time escrow updates via Stellar Horizon event streaming.

    Technical Implementation Roadmap:

    1. Formal Soroban Invariant Design: Audit storage layout (Instance, Persistent, Temporary) with strict TTL management and explicit require_auth guards.
    2. Core Rust WASM Implementation: Implement deterministic state transition handlers eliminating arithmetic overflow risks using checked/saturating math.
    3. Hermetic Testing Suite: Build comprehensive test cases in tests/ asserting authorized vs unauthorized invocations, mock auth environments, and edge value bounds.
    4. Gas & Footprint Optimization: Profile CPU/memory instruction budgets under Soroban host environment to ensure optimal runtime efficiency.

    Ready to implement and deliver a production-grade PR following all repository standards. Please feel free to assign!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvementfrontendReact/Vite appperformanceSpeed or gas/cost optimization

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions