Contributing
Workflow
- Branch from
main(feat/…,fix/…,docs/…). - Keep commits small and use Conventional Commits.
- Run
npm testandnpm run build. - Open a pull request; CI must pass.
Money-moving code
Changes under server/src/stellar/ or to trade.service.js need extra care:
- Never log, return or persist a plaintext secret.
- Use
amount.jshelpers — no floats. - Claim state transitions atomically with conditional
updateMany. - Roll back only on
STELLAR_TX_FAILED. - Update
tradeRules.test.jsfor rule changes and run the testnet smoke test.
Documentation
Every user-visible or API change should update this docs site in the same release. Docs live in Nexlm/nexlm-docs; use the Suggest an edit link at the bottom of any page.
Security issues
Report privately to security@nexlm.app.