GitHub labels: Stellar Wave
Drips complexity: Medium (100 points)
Area: Transactions
Description
lib/stellar/simulationErrors.ts parses Soroban failures, but TxSimulationPreview and transaction toasts often show raw error codes.
Requirements and Context
Investors need actionable copy for insufficient balance, wrong network, and contract revert reasons.
Suggested Execution
git checkout -b feat/simulation-errors-i18n
- Create branch feat/simulation-errors-i18n
- Add messages for known simulation error codes
- Map errors in TxSimulationPreview and useTransaction
- Fall back to generic message for unknown codes
- Add unit tests for mapping table
Example commit message
feat(transactions): map simulationErrors to localized messages
File Paths
lib/stellar/simulationErrors.ts
components/invoice/TxSimulationPreview.tsx
hooks/useTransaction.ts
messages/en.json
Guidelines
- Assignment required before starting
- PR description must include:
Closes #<issue_number>
- Run
npm run lint, npm run type-check, npm run test, and npm run build before opening PR
- Add screenshots or recordings for UI changes
- Complexity: Medium (100 points) — focused feature work in an existing surface
Acceptance Criteria
GitHub labels:
Stellar WaveDrips complexity: Medium (100 points)
Area: Transactions
Description
lib/stellar/simulationErrors.ts parses Soroban failures, but TxSimulationPreview and transaction toasts often show raw error codes.
Requirements and Context
Investors need actionable copy for insufficient balance, wrong network, and contract revert reasons.
Suggested Execution
Example commit message
File Paths
lib/stellar/simulationErrors.tscomponents/invoice/TxSimulationPreview.tsxhooks/useTransaction.tsmessages/en.jsonGuidelines
Closes #<issue_number>npm run lint,npm run type-check,npm run test, andnpm run buildbefore opening PRAcceptance Criteria