Description
Store verified mapping between app user and Stellar Address (challenge-sign flow or custodial model — document).
Requirements and context
- One-to-many or many-to-many per product rules.
- Index for lookups.
Suggested execution
- Fork the repository and create a branch (example below).
- Implement changes in StreamPay-Backend (TypeScript / Express per
package.json).
- Keep the service secure, tested, and documented; prefer small, reviewable PRs.
git checkout -b feature/user-stellar-address-link
Implementation targets
- Migration +
user_addresses table.
- API to register address.
Tests and validation
-
Tests: uniqueness constraints.
-
Run npm test and npm run lint in StreamPay-Backend.
-
Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
- Target minimum 95% test coverage on new or changed backend code (or justify gaps).
- Clear documentation (OpenAPI / README / inline docs as specified).
- Timeframe: 96 hours from assignment.
Example commit message
feat(backend): link Stellar addresses to users
Description
Store verified mapping between app user and Stellar
Address(challenge-sign flow or custodial model — document).Requirements and context
Suggested execution
package.json).Implementation targets
user_addressestable.Tests and validation
Tests: uniqueness constraints.
Run
npm testandnpm run lintinStreamPay-Backend.Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
Example commit message