Commit 3cbee55
committed
Add escrow monitoring to internal background monitor
- Integrate escrow monitoring into runMonitorCycle() function in src/lib/payments/monitor.ts
- Monitor pending escrows for deposits, mark as funded when deposit detected
- Process released escrows by calling settlement API internally
- Process refunded escrows by calling refund settlement API internally
- Use existing checkBalance function for escrow balance checks
- Add comprehensive test coverage for escrow monitoring functionality
- Bump version to 0.4.13 in both package.json files
- Escrow monitoring now runs automatically every 15 seconds alongside payment monitoring
- No longer requires external HTTP cron calls for escrow processing
Resolves escrow monitoring dependency on external cron jobs.1 parent 60e0abc commit 3cbee55
File tree
4 files changed
+611
-3
lines changed- packages/sdk
- src/lib/payments
4 files changed
+611
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments