Skip to content

feat(payments): enhance Soroban integration with contract version che… - #2221

Merged
yusuftomilola merged 1 commit into
DistinctCodes:mainfrom
Mkalbani:feat/soroban-contract-consistency
Nov 20, 2026
Merged

yusuftomilola merged 1 commit into
DistinctCodes:mainfrom
Mkalbani:feat/soroban-contract-consistency

Conversation

@Mkalbani

Copy link
Copy Markdown
Contributor

Summary

  • Replace the generic contract error table with separate contract enums and tests that compare every TypeScript code against its Rust enum.
  • Complete payment escrow error handling with explicit dispositions for all contract codes.
  • Check both configured contracts’ version() during startup; disable Soroban on check failure and report its health status.
  • Share refund validation and transfer logic between both refund entrypoints, unifying their behavior and errors.

Issues

Fixes #2166
Fixes #2167
Fixes #2168
Fixes #2169

Validation

  • Soroban and health tests pass: 106 passed, 2 skipped.
  • ESLint passes for the modified backend files.
  • Backend build remains blocked by the existing nullable TypeScript error in credits-admin.controller.ts.
  • Rust tests were not run because Cargo is unavailable in the environment.

@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

@Mkalbani is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 20, 2026

Copy link
Copy Markdown

@Mkalbani 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

@yusuftomilola
yusuftomilola merged commit eadb4e7 into DistinctCodes:main Nov 20, 2026
1 of 8 checks passed
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