Skip to content

feat: implement dispute resolution functionality with distribution ma… - #345

Open
Amarjeet325 wants to merge 2 commits into
Kaizenode:mainfrom
Amarjeet325:feat/Implement-dispute-resolution
Open

feat: implement dispute resolution functionality with distribution ma…#345
Amarjeet325 wants to merge 2 commits into
Kaizenode:mainfrom
Amarjeet325:feat/Implement-dispute-resolution

Conversation

@Amarjeet325

Copy link
Copy Markdown

📝 Pull Request Title

Implement moderator dispute resolution flow for escrow settlements

🛠️ Issue

📖 Description

  • Add a moderator-facing dispute resolution flow for single-release escrows.
  • Enable moderators to submit a dispute resolution transaction after defining fund distributions.
  • Validate that the total distribution equals the escrow balance before submission.
  • Submit the signed transaction through the existing Stellar send-transaction flow and update the escrow state to resolved.

✅ Changes made

  • Added a new resolve-dispute API route for escrow disputes.
  • Added a balance lookup endpoint to fetch escrow balance before validating distributions.
  • Implemented a client-side dispute resolution helper that:
    • validates required input
    • fetches escrow balance
    • ensures distribution totals match the escrow balance
    • signs and submits the returned unsigned XDR
  • Added a moderator UI panel in the escrow admin experience to configure distributions and resolve the dispute.
  • Extended escrow state/types to support resolved status and final fund distribution display.

🖼️ Media (screenshots/videos)

  • N/A

📜 Additional Notes

  • This flow is currently wired for the moderator/dispute resolver role and uses the existing transaction submission path.

@diegoTech14

Copy link
Copy Markdown
Contributor

Hello @Amarjeet325 I have assign the fund release issue to a new contributor and he'll develop the solution fast. Once it is finished you will be able to continue this one.

@diegoTech14

Copy link
Copy Markdown
Contributor

Hi @Amarjeet325 PR #349 have been merged...could you continue this one please?

@Amarjeet325

Copy link
Copy Markdown
Author

working on !!

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 dispute resolution via POST /escrow/single-release/v2/resolve-dispute

2 participants