Description
Scheduled job compares on-chain Credit contract records with CreditLineService rows and flags drift.
Requirements and context
- Use
jobQueue.ts or new worker entry.
- Alert or dead-letter on persistent mismatch.
Suggested execution
Fork and branch
Fork the repo and create a branch:
git checkout -b feature/credit-reconciliation-job
Implement changes
- Implement worker in
src/services/ using Soroban RPC client.
- Tests with mocked chain responses.
Test and commit
Run tests, cover edge cases, and attach test output plus security or ops notes (auth, PII, Stellar keys) in the PR.
Run tests
Example commit message
feat(credit): chain versus DB reconciliation job
Guidelines
-
Minimum 95% coverage on touched modules where applicable (npm test / coverage report).
-
Clear documentation (OpenAPI openapi.yaml, README, and inline comments for non-obvious logic).
-
Timeframe: 96 hours.
-
Run npm run build or tsc if types change.
-
Keep OpenAPI in sync with route behavior.
Description
Scheduled job compares on-chain
Creditcontract records withCreditLineServicerows and flags drift.Requirements and context
jobQueue.tsor new worker entry.Suggested execution
Fork and branch
Fork the repo and create a branch:
Implement changes
src/services/using Soroban RPC client.Test and commit
Run tests, cover edge cases, and attach test output plus security or ops notes (auth, PII, Stellar keys) in the PR.
Run tests
npm testExample commit message
Guidelines
Minimum 95% coverage on touched modules where applicable (
npm test/ coverage report).Clear documentation (OpenAPI
openapi.yaml, README, and inline comments for non-obvious logic).Timeframe: 96 hours.
Run
npm run buildortscif types change.Keep OpenAPI in sync with route behavior.