Repository navigation
Commit 35d25ae
committed
feat(transactions): implement sync, history, categorize, spending aggregation
- syncTransactions: fetch last 200 Horizon ops, normalize payments,
insert with ON CONFLICT (hash) DO NOTHING, return new-row count
- getHistory: paginated query with optional category/asset filters
- categorize: updates category, enforces userId ownership (403/404)
- getSpendingByCategory: aggregated totals grouped by category
- Fix Horizon SDK import to use @stellar/stellar-sdk Horizon.Server,
matching BlockchainService
- Add unit tests covering dedup, pagination, ownership checks, aggregation
Refs #1081 parent 31c25fb commit 35d25ae
2 files changed
Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments