caelum0x 9986da20d9 feat(worker): route-watch job, HyperCore confirmation and Tempo memo enforcement
- jobs/route-watch.ts: polls in-flight any-token routes (Relay / LI.FI) and
  records a payment ONLY after the destination fill passes the session
  network's fail-closed verifier (Transfer to payTo >= amount owed, after
  session creation, hash not used by another payment); provider success
  without such a transfer stays unpaid and backs off; refunds are logged
- payment verification: hypercore via the payee's ledger (HYPERCORE_*),
  routed fills skip only the payer / Solana reference / Tempo memo bindings
  (Solana fills are bound by block time), requireMemo sessions need
  transferWithMemo, pending results carry retryable/claimable
- config: HYPERCORE_*, ROUTING_*, WORKER_ROUTE_WATCH_INTERVAL_MS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 18:34:52 +03:00
..