🔍 Problem Statement
📖 Description
Develop a background worker service that listens to Stellar blockchain events and keeps the application state in sync. This service will update escrow statuses and milestone progress in the database based on real-time blockchain activity.
Expected Behavior
🛠 Technical Notes
- Implement as a background worker (e.g., Node.js worker, queue consumer, or cron job).
- Use Stellar SDK or Soroban APIs for event subscription and parsing.
- Ensure idempotent updates to prevent duplicate records.
- Maintain secure error handling and logging.
- Optimize for scalability to handle multiple contracts and milestones concurrently.
- Ensure compatibility with existing Postgres schema (projects, milestones, contracts, disputes).
✅ Acceptance Criteria
- Worker successfully subscribes to Stellar events.
- Escrow status updates are reflected in the database in real time.
- Milestone progress is synced correctly with blockchain confirmations.
- Notifications are triggered for relevant updates.
- Service runs reliably in background without blocking API routes.
npm run lint and npm run build succeed.
- No regression in authentication, wallet connection, or dashboard features.
📈 Expected Impact
High — Would significantly improve user experience
🔍 Problem Statement
📖 Description
Develop a background worker service that listens to Stellar blockchain events and keeps the application state in sync. This service will update escrow statuses and milestone progress in the database based on real-time blockchain activity.
Expected Behavior
Listen to Stellar Events:
Update Escrow Status in DB:
Sync Milestone Updates:
🛠 Technical Notes
✅ Acceptance Criteria
npm run lintandnpm run buildsucceed.📈 Expected Impact
High — Would significantly improve user experience