Skip to content

feat:Implement Stellar Transfer Failure Analyzer#426

Merged
mijinummi merged 1 commit into
MDTechLabs:mainfrom
SheyeJDev:feat/Implement-Stellar-Transfer-Failure-Analyzer
May 31, 2026
Merged

feat:Implement Stellar Transfer Failure Analyzer#426
mijinummi merged 1 commit into
MDTechLabs:mainfrom
SheyeJDev:feat/Implement-Stellar-Transfer-Failure-Analyzer

Conversation

@SheyeJDev
Copy link
Copy Markdown
Contributor

feat: Stellar failure analyzer & Soroban route ranker

What's changed

Stellar Transfer Failure Analyzer (src/analysis/failures/stellar/)

  • Added parseStellarFailure() to map raw Horizon/Soroban error responses to structured ParsedFailure objects
  • Resolves failure codes via a 3-tier strategy: extras.result_codes → top-level resultCode → message pattern matching
  • Covers all major result codes (tx_bad_seq, tx_no_account, op_underfunded, etc.) and Soroban-specific failures
  • Each failure includes a human-readable explanation, recovery recommendation, severity, and retryability flag
  • Exposed analyzeStellarFailure() and formatFailureForLog() as the public API via index.ts

Soroban Route Ranker (src/routing/smart/stellar/)

  • Added rankSorobanRoutes() to score and rank bridge routes by a composite fee + duration metric
  • Uses min-max normalization with configurable weights (default 50/50); weights are auto-normalized if they don't sum to 1
  • Exposes getTopSorobanRoutes() as a convenience wrapper for returning the top N routes
  • Each ranked route includes a full score breakdown (normalizedFee, normalizedDuration, weightedScore)

Closes #308
Closes #309

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

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

@mijinummi mijinummi merged commit a7ace7d into MDTechLabs:main May 31, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Stellar Transfer Failure Analyzer Implement Soroban Multi-Bridge Route Ranking

2 participants