Skip to content

feat: add POST /admin/markets/:id/resolve endpoint with tests#480

Merged
Olowodarey merged 1 commit intoArena1X:mainfrom
Vvictor-commits:feat/admin-market-resolve
Mar 29, 2026
Merged

feat: add POST /admin/markets/:id/resolve endpoint with tests#480
Olowodarey merged 1 commit intoArena1X:mainfrom
Vvictor-commits:feat/admin-market-resolve

Conversation

@Vvictor-commits
Copy link
Copy Markdown

  • Add ResolveMarketDto with resolved_outcome and optional resolution_note
  • Add adminResolveMarket() to AdminService: validates market state, triggers Soroban payout, notifies all participants, logs admin action
  • Add POST admin/markets/:id/resolve endpoint to AdminController (admin-only)
  • Import NotificationsModule into AdminModule
  • Update ActivityLoggingInterceptor to recognize MARKET_RESOLVED_BY_ADMIN
  • Add 7 unit tests covering all validation paths and happy path

closes #404

- Add ResolveMarketDto with resolved_outcome and optional resolution_note
- Add adminResolveMarket() to AdminService: validates market state, triggers
  Soroban payout, notifies all participants, logs admin action
- Add POST admin/markets/:id/resolve endpoint to AdminController (admin-only)
- Import NotificationsModule into AdminModule
- Update ActivityLoggingInterceptor to recognize MARKET_RESOLVED_BY_ADMIN
- Add 7 unit tests covering all validation paths and happy path
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 29, 2026

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

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Mar 29, 2026 3:35pm

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@Vvictor-commits 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 3dceed7 into Arena1X:main Mar 29, 2026
6 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.

[Backend] Admin Market Management - Force Resolve Market

3 participants