feat(oracle,achievements): add GET /oracle/stats endpoint and TOTAL_STAKED boundary tests#1260
Merged
Olowodarey merged 1 commit intoJun 29, 2026
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes
[Backend] — Test:
AchievementsServiceTOTAL_STAKED achievements trigger at correct thresholds Fixes #1160[Backend] — Feature: Add
GET /oracle/statssummary of match submission status Fixes #1157[Backend] — Test:
PredictionsService.submitnever calls Soroban when market validation fails Fixes #1162[Backend] — Feature: Add
GET /predictions/market/:marketIdpublic predictions list Fixes #1165