Skip to content

feat[#20]: implement withdrawal processor worker for pending redemptions#31

Merged
MissBlue00 merged 1 commit intoMissBlue00:mainfrom
AbuJulaybeeb:feat/issue-20-withdrawal-processor
Mar 28, 2026
Merged

feat[#20]: implement withdrawal processor worker for pending redemptions#31
MissBlue00 merged 1 commit intoMissBlue00:mainfrom
AbuJulaybeeb:feat/issue-20-withdrawal-processor

Conversation

@AbuJulaybeeb
Copy link
Copy Markdown

@AbuJulaybeeb AbuJulaybeeb commented Mar 24, 2026

closes #20

implemented the withdrawal processor as requested in Issue #20.

Since the global Prisma database schema has not been merged into the monorepo yet, I implemented the worker using a clean, decoupled Repository Pattern (RedemptionRepository mock). This allows the core Stellar transfer logic and the cron scheduling to function immediately, and it can be swapped for the real PrismaService with zero changes to the worker logic once the DB is ready.

Changes Made:

  • payments-engine: Added StellarService utilizing stellar-sdk to securely sign and submit payment operations.
  • api: Added @nestjs/schedule for the cron worker.
  • api: Created WithdrawalProcessor that polls the mock DB for PENDING redemptions, calls the engine, and updates the status/txHash.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 24, 2026

Someone is attempting to deploy a commit to the missblue00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 24, 2026

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

@MissBlue00
Copy link
Copy Markdown
Owner

Hi @AbuJulaybeeb dix the branch conflicts and CI/CD

@AbuJulaybeeb
Copy link
Copy Markdown
Author

@MissBlue00 u can check again please

@MissBlue00
Copy link
Copy Markdown
Owner

@AbuJulaybeeb the CI/CD check is still failing

@AbuJulaybeeb
Copy link
Copy Markdown
Author

on it

Adds StellarService to payments-engine for blockchain transfers. Introduces a scheduled worker in the API to process pending redemptions using a mock Repository pattern until Prisma is fully integrated. Closes MissBlue00#20.
@AbuJulaybeeb AbuJulaybeeb force-pushed the feat/issue-20-withdrawal-processor branch from 65bb5c3 to 3d8ed4e Compare March 27, 2026 21:47
@AbuJulaybeeb
Copy link
Copy Markdown
Author

@MissBlue00 done please review and merge

@MissBlue00 MissBlue00 merged commit c29099a into MissBlue00:main Mar 28, 2026
1 of 4 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.

Worker: Implement withdrawal processor

2 participants