Skip to content

fix: resolve issues #323 #324 #325 #326 — add tests for retry, assemble, events, payments#366

Open
k-deejah wants to merge 1 commit into
SO4-Markets:mainfrom
k-deejah:fix/issues-323-324-325-326
Open

fix: resolve issues #323 #324 #325 #326 — add tests for retry, assemble, events, payments#366
k-deejah wants to merge 1 commit into
SO4-Markets:mainfrom
k-deejah:fix/issues-323-324-325-326

Conversation

@k-deejah

Copy link
Copy Markdown

closes #323 Web lib: retry/backoff utility

  • Add apps/web/src/lib/retry.ts with exponential backoff using setTimeout
  • Add apps/web/src/lib/retry.test.ts with fake timers driving all delays
  • Tests: eventual success, exhausted retries, abort via AbortSignal, attempt counts, backoff delay formula, shouldRetry predicate

closes #324 Web Soroban client: assembleTransaction path

  • Add apps/web/src/lib/soroban/assemble.ts wrapping rpc.assembleTransaction
  • Add apps/web/src/lib/soroban/assemble.test.ts using real SDK types
  • Tests: assembled tx fields/footprint, minResourceFee surfaced, error/restore simulation rejection, assembleAndBuild convenience wrapper

closes #325 Web Soroban client: events query parsing

  • Add apps/web/src/lib/soroban/events.ts using sorobanRpc.getEvents
  • Add apps/web/src/lib/soroban/events.test.ts with MSW intercepting RPC POST
  • Tests: decoded topics/values from XDR fixtures, pagination cursor, empty result fallback

closes #326 Web Horizon client: payment history pagination

  • Add apps/web/src/lib/stellar/payments.ts using direct fetch to Horizon
  • Add apps/web/src/lib/stellar/payments.test.ts with MSW GET handlers
  • Tests: single page, multi-page cursor advancement, merged results, empty history fallback, fetchAllPaymentHistory auto-pagination

…O4-Markets#326 — add tests for retry, assemble, events, payments

SO4-Markets#323 Web lib: retry/backoff utility
- Add apps/web/src/lib/retry.ts with exponential backoff using setTimeout
- Add apps/web/src/lib/retry.test.ts with fake timers driving all delays
- Tests: eventual success, exhausted retries, abort via AbortSignal,
  attempt counts, backoff delay formula, shouldRetry predicate

SO4-Markets#324 Web Soroban client: assembleTransaction path
- Add apps/web/src/lib/soroban/assemble.ts wrapping rpc.assembleTransaction
- Add apps/web/src/lib/soroban/assemble.test.ts using real SDK types
- Tests: assembled tx fields/footprint, minResourceFee surfaced,
  error/restore simulation rejection, assembleAndBuild convenience wrapper

SO4-Markets#325 Web Soroban client: events query parsing
- Add apps/web/src/lib/soroban/events.ts using sorobanRpc.getEvents
- Add apps/web/src/lib/soroban/events.test.ts with MSW intercepting RPC POST
- Tests: decoded topics/values from XDR fixtures, pagination cursor,
  empty result fallback

SO4-Markets#326 Web Horizon client: payment history pagination
- Add apps/web/src/lib/stellar/payments.ts using direct fetch to Horizon
- Add apps/web/src/lib/stellar/payments.test.ts with MSW GET handlers
- Tests: single page, multi-page cursor advancement, merged results,
  empty history fallback, fetchAllPaymentHistory auto-pagination
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

@k-deejah is attempting to deploy a commit to the Ijai's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@k-deejah 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