Skip to content

feat(oracle,achievements): add GET /oracle/stats endpoint and TOTAL_STAKED boundary tests#1260

Merged
Olowodarey merged 1 commit into
Arena1X:mainfrom
fati-Onchain:feat/oracle-stats-and-staked-achievement-tests
Jun 29, 2026
Merged

feat(oracle,achievements): add GET /oracle/stats endpoint and TOTAL_STAKED boundary tests#1260
Olowodarey merged 1 commit into
Arena1X:mainfrom
fati-Onchain:feat/oracle-stats-and-staked-achievement-tests

Conversation

@fati-Onchain

Copy link
Copy Markdown
Contributor
  • Add OracleStatsResponse interface and getStats() to OracleService returning pending, resolved, and overdue match counts (overdue = no result after 24h)
  • Add GET /oracle/stats route to OracleController protected by OracleAuthGuard
  • Add unit tests for getStats() covering count accuracy and per-query filters
  • Add TOTAL_STAKED_1M/10M boundary tests at exact thresholds (999999, 1000000, 9999999, 10000000) with pre-existing achievement mock for idempotency cases

Closes

[Backend] — Test: AchievementsService TOTAL_STAKED achievements trigger at correct thresholds Fixes #1160

[Backend] — Feature: Add GET /oracle/stats summary of match submission status Fixes #1157

[Backend] — Test: PredictionsService.submit never calls Soroban when market validation fails Fixes #1162

[Backend] — Feature: Add GET /predictions/market/:marketId public predictions list Fixes #1165

…TAKED boundary tests

- Add OracleStatsResponse interface and getStats() to OracleService returning
  pending, resolved, and overdue match counts (overdue = no result after 24h)
- Add GET /oracle/stats route to OracleController protected by OracleAuthGuard
- Add unit tests for getStats() covering count accuracy and per-query filters
- Add TOTAL_STAKED_1M/10M boundary tests at exact thresholds (999999, 1000000,
  9999999, 10000000) with pre-existing achievement mock for idempotency cases

Closes

[Backend] — Test: `AchievementsService` TOTAL_STAKED achievements trigger at correct thresholds
Fixes Arena1X#1160

[Backend] — Feature: Add `GET /oracle/stats` summary of match submission status
Fixes Arena1X#1157

[Backend] — Test: `PredictionsService.submit` never calls Soroban when market validation fails
Fixes Arena1X#1162

[Backend] — Feature: Add `GET /predictions/market/:marketId` public predictions list
Fixes Arena1X#1165
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Jun 29, 2026 5:42pm

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@fati-Onchain 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

@Olowodarey Olowodarey merged commit f3787cd into Arena1X:main Jun 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment