Skip to content

Feature/global leaderboard #284#452

Merged
greatest0fallt1me merged 3 commits into
Predictify-org:mainfrom
Awointa:feature/global-leaderboard
Jul 25, 2026
Merged

Feature/global leaderboard #284#452
greatest0fallt1me merged 3 commits into
Predictify-org:mainfrom
Awointa:feature/global-leaderboard

Conversation

@Awointa

@Awointa Awointa commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

closes #284

feat: add /api/leaderboard/global endpoint (#284)

Adds GET /api/leaderboard/global, returning a paginated ranking of users aggregated across all markets (new file: src/routes/leaderboard/global.ts).

  • Input validation at the boundary + standardized error envelope
  • Structured logging with correlation IDs
  • Tests added, ≥90% coverage on changed lines, full suite + lint passing
  • API docs updated

Awointa added 3 commits July 24, 2026 14:27
- Implemented GET /api/leaderboard/global for paginated global leaderboard.
- Implemented GET /api/leaderboard/global/user/:stellarAddress for user-specific leaderboard entry.
- Added globalLeaderboardService for database interactions and caching logic.
- Introduced Redis caching for leaderboard data with TTL.
- Created tests for API endpoints and service functions to ensure functionality and error handling.
@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Awointa 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

@greatest0fallt1me
greatest0fallt1me merged commit c5c5470 into Predictify-org:main Jul 25, 2026
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

LGTM — clean diff and clear commits. Thanks!

@grantfox-oss grantfox-oss Bot mentioned this pull request Jul 25, 2026
4 tasks
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.

Add /api/leaderboard/global endpoint

2 participants