Description
Difficulty: Hard
Type: Documentation
Summary
Document contract error codes and failure reasons.
Current Behaviour
Contract failures may be difficult for SDK and mobile consumers to interpret.
Expected Behaviour
The contracts repo should document expected errors for deposits, withdrawals, locks, balances, initialisation, and authorisation.
Suggested Implementation
Create error documentation, map errors to user-facing meanings, and link from README.
Files or Areas Likely Affected
- docs/
- README.md
- contracts/
- src/
- tests/
Acceptance Criteria
Additional Notes
This supports SDK and mobile integration.
Description
Difficulty: Hard
Type: Documentation
Summary
Document contract error codes and failure reasons.
Current Behaviour
Contract failures may be difficult for SDK and mobile consumers to interpret.
Expected Behaviour
The contracts repo should document expected errors for deposits, withdrawals, locks, balances, initialisation, and authorisation.
Suggested Implementation
Create error documentation, map errors to user-facing meanings, and link from README.
Files or Areas Likely Affected
Acceptance Criteria
Additional Notes
This supports SDK and mobile integration.