Skip to content

[888] Implement merchant-analytics SQLite rollups from indexer events - #1002

Merged
orunganiekan merged 2 commits into
SiLioLabs:masterfrom
owolabivictor:fix/888-merchant-analytics-sqlite-rollups
Aug 31, 2026
Merged

[888] Implement merchant-analytics SQLite rollups from indexer events#1002
orunganiekan merged 2 commits into
SiLioLabs:masterfrom
owolabivictor:fix/888-merchant-analytics-sqlite-rollups

Conversation

@owolabivictor

Copy link
Copy Markdown
Contributor
  • Add merchant-queries.ts with shared query helpers for indexer DB
  • Make indexer DB the default data source for merchant analytics
  • Add freshness checking based on last_ledger meta value
  • Update merchant-analytics.ts to use shared helpers
  • Update export-merchant-report.ts to use indexer DB with RPC fallback
  • Add fixture-based tests for offline analytics queries
  • All 17 new tests pass (node:test + node:sqlite)

Closes #888

- Add merchant-queries.ts with shared query helpers for indexer DB
- Make indexer DB the default data source for merchant analytics
- Add freshness checking based on last_ledger meta value
- Update merchant-analytics.ts to use shared helpers
- Update export-merchant-report.ts to use indexer DB with RPC fallback
- Add fixture-based tests for offline analytics queries
- All 17 new tests pass (node:test + node:sqlite)

Closes SiLioLabs#888
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@owolabivictor Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@orunganiekan
orunganiekan merged commit 734dc7d into SiLioLabs:master Aug 31, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue 093: Implement merchant-analytics SQLite rollups from indexer events

2 participants