Skip to content

feat: invoke vault contract for deposit and withdraw requests#28

Merged
Abidoyesimze merged 1 commit intoNeurowealth:mainfrom
Chucks1093:feat/contract-deposit-withdraw-22
Mar 27, 2026
Merged

feat: invoke vault contract for deposit and withdraw requests#28
Abidoyesimze merged 1 commit intoNeurowealth:mainfrom
Chucks1093:feat/contract-deposit-withdraw-22

Conversation

@Chucks1093
Copy link
Copy Markdown
Contributor

Closes #22

Changes

  • added user-signed deposit(...) and withdraw(...) contract wrappers in src/stellar/contract.ts
  • reused the existing Soroban transaction build, prepare, submit, and confirmation flow for write calls
  • updated /api/deposit to generate the on-chain transaction server-side and persist the returned txHash
  • updated /api/withdraw to submit the vault withdrawal on-chain before creating the Prisma transaction record
  • added unit coverage for the new contract wrappers and integration coverage for deposit/withdraw route behavior

Testing

  • npm run lint
  • npm test -- --runInBand

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

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

@Abidoyesimze Abidoyesimze merged commit 5a8bac8 into Neurowealth:main Mar 27, 2026
1 check 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.

Smart Contract Deposit/Withdraw Invocation

2 participants