Skip to content

feat: implement escrow funding and transaction handling for single re…#327

Open
ryzen-xp wants to merge 1 commit into
Kaizenode:mainfrom
ryzen-xp:feat/imp_/escrow/single-release/v2/fund
Open

feat: implement escrow funding and transaction handling for single re…#327
ryzen-xp wants to merge 1 commit into
Kaizenode:mainfrom
ryzen-xp:feat/imp_/escrow/single-release/v2/fund

Conversation

@ryzen-xp

Copy link
Copy Markdown

📝 Pull Request Title

Implement escrow funding via single-release v2 endpoint

🛠️ Issue

📖 Description

  • Adds escrow funding after deployment using POST /escrow/single-release/v2/fund.
  • Requests the unsigned XDR, signs it with the seller’s wallet, and submits it through /stellar/send-transaction.
  • Funds are marked locked only after transaction submission succeeds.

✅ Changes made

  • Added typed Trustless Work funding and transaction APIs.
  • Added server-side funding and Stellar transaction proxy routes.
  • Added client funding workflow with status tracking.
  • Handles insufficient balance, rejected signatures, missing XDR, and submission failures.
  • Added a safe .env.example with TRUSTLESS_WORK_API_KEY.

🖼️ Media (screenshots/videos)

  • Not applicable; this change adds API and transaction workflow logic.

📜 Additional Notes

  • Call fundDeployedEscrow(...) immediately after a successful escrow deployment.
  • Validation passed with ESLint, TypeScript, production build, and git diff --check.

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.

Implement escrow funding via POST /escrow/single-release/v2/fund

1 participant