Description — what to implement and the why/impact.
Stellar ledger amounts are often represented in stroops or raw string decimals. Having a dedicated helper utility to format and parse Stellar asset amounts cleanly avoids precision errors and standardizes display across API responses.
Context & Requirements — background, constraints, design references, edge cases;
- Grounded in
src/utils/ or src/services/.
- Must handle standard decimal string conversions safely without floating-point inaccuracies.
- Adhere to TypeScript strict type checking.
Acceptance Criteria — a checklist ("- [ ] ...") of specific, testable conditions that define "done^".
Implementation Guidance — likely files/modules to touch
- Likely files:
src/utils/stellar.ts or a new src/utils/format.ts file.
- Suggested approach: Use standard JavaScript BigInt or string manipulation helpers suitable for Stellar asset precision.
Testing & Validation — how the contributor should prove it works
- Run
npm test to confirm unit tests pass successfully.
Submission Guidelines — must open a PR that includes "Closes #"; assignment is required before starting.
Wave complexity: Trivial
Description — what to implement and the why/impact.
Stellar ledger amounts are often represented in stroops or raw string decimals. Having a dedicated helper utility to format and parse Stellar asset amounts cleanly avoids precision errors and standardizes display across API responses.
Context & Requirements — background, constraints, design references, edge cases;
src/utils/orsrc/services/.Acceptance Criteria — a checklist ("- [ ] ...") of specific, testable conditions that define "done^".
Implementation Guidance — likely files/modules to touch
src/utils/stellar.tsor a newsrc/utils/format.tsfile.Testing & Validation — how the contributor should prove it works
npm testto confirm unit tests pass successfully.Submission Guidelines — must open a PR that includes "Closes #"; assignment is required before starting.
Wave complexity: Trivial