Skip to content

feat(errors): map Soroban contract errors to typed JS errors (#231)#240

Open
EpicShadow1 wants to merge 1 commit into
StellarGrant:mainfrom
EpicShadow1:feat/soroban-error-mapping
Open

feat(errors): map Soroban contract errors to typed JS errors (#231)#240
EpicShadow1 wants to merge 1 commit into
StellarGrant:mainfrom
EpicShadow1:feat/soroban-error-mapping

Conversation

@EpicShadow1
Copy link
Copy Markdown

…error codes

  • Add CONTRACT_ERROR_CODES mapping for all 48 Rust contract errors
  • Implement specific error classes for each contract error type
  • Enhance parseSorobanError to extract and map error codes from messages
  • Add getErrorName and getErrorClass utility functions
  • Include raw transaction details and error codes in error objects
  • Expand test coverage for error parsing, mapping, and fallback behavior

…error codes

- Add CONTRACT_ERROR_CODES mapping for all 48 Rust contract errors
- Implement specific error classes for each contract error type
- Enhance parseSorobanError to extract and map error codes from messages
- Add getErrorName and getErrorClass utility functions
- Include raw transaction details and error codes in error objects
- Expand test coverage for error parsing, mapping, and fallback behavior

Co-authored-by: Copilot <[email protected]>
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.

1 participant