Description
stellarErrorParser extracts error codes from Stellar transaction results but returns raw codes (e.g. "op_no_trust") without explanation. Contributors should add a mapping table that converts known Stellar operation result codes to user-friendly messages (e.g. "The recipient does not have a trustline for this asset") so error toasts are actionable.
Acceptance Criteria
Context
- Target file:
src/lib/stellarErrorParser.ts
- Error display:
src/lib/errors.ts
Description
stellarErrorParserextracts error codes from Stellar transaction results but returns raw codes (e.g."op_no_trust") without explanation. Contributors should add a mapping table that converts known Stellar operation result codes to user-friendly messages (e.g. "The recipient does not have a trustline for this asset") so error toasts are actionable.Acceptance Criteria
{ code, message }so callers can use the raw code for loggingContext
src/lib/stellarErrorParser.tssrc/lib/errors.ts