## Description Add the cron job that calls Horizon on a schedule to check for new contract events. ## Deliverables - [ ] `SyncService` has `@Cron(CronExpression.EVERY_10_SECONDS)` method `syncEvents()` - [ ] Calls `HorizonService.getTransactions(contractId, cursor)` - [ ] Stores the latest-seen cursor in memory between runs to avoid re-processing old events - [ ] Logs how many new events were found each run - [ ] Does not crash if Horizon is unreachable (catches and logs error) - [ ] `npm run build` passes ## Notes Depends on #47 (SyncModule).
Description
Add the cron job that calls Horizon on a schedule to check for new contract events.
Deliverables
SyncServicehas@Cron(CronExpression.EVERY_10_SECONDS)methodsyncEvents()HorizonService.getTransactions(contractId, cursor)npm run buildpassesNotes
Depends on #47 (SyncModule).