Skip to content

feat: batch implementation for common response formatter, featured mentors, and escrow events#644

Merged
nafiuishaaq merged 3 commits into
MentoNest:mainfrom
SharifIbrahimDev:feat/batch-issues-547-495-492-550
May 30, 2026
Merged

feat: batch implementation for common response formatter, featured mentors, and escrow events#644
nafiuishaaq merged 3 commits into
MentoNest:mainfrom
SharifIbrahimDev:feat/batch-issues-547-495-492-550

Conversation

@SharifIbrahimDev

Copy link
Copy Markdown

This pull request introduces a batch of requested backend and smart contract features covering API response formatting, mentor promotion, and escrow events.

What's included

  • Common API Response Formatter: Implemented a global interceptor and exception filter to standardize all successful and error responses in a consistent wrapper envelope with pagination support.
  • Featured Mentor Flag: Added an isFeatured flag and admin endpoints to feature top mentors on the platform. Includes a public endpoint for retrieving featured mentors and a CRON job to automatically expire the featured status after 30 days.
  • SessionApproved Event: Updated the Soroban SkillSyncEscrow contract to emit a SessionApproved event when a buyer approves a session and funds are released, tracking the gross amount, fee, and net to the seller.
  • DisputeOpened Event: Added a dispute_session method to the Soroban SkillSyncEscrow contract that transitions the session status to Disputed and emits a DisputeOpened event including who opened the dispute and why.
  • Test Suite Fixes: Resolved several pre-existing errors in the backend test suite (including missing dependencies, mocked state side-effects, and broken TS configs) so the suite now passes successfully.

Closes #495
Closes #492
Closes #547
Closes #550

@drips-wave

drips-wave Bot commented May 30, 2026

Copy link
Copy Markdown

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

@nafiuishaaq nafiuishaaq merged commit 731fb61 into MentoNest:main May 30, 2026
1 check failed
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.

Event — DisputeOpened event Event — SessionApproved event Common API response formatter Featured mentor flag

2 participants