Implement full dispute UI with arbiter workflow#159
Implement full dispute UI with arbiter workflow#159GautamBytes wants to merge 4 commits intoshopstr-eng:mainfrom
Conversation
|
@GautamBytes is attempting to deploy a commit to the shopstr-eng Team on Vercel. A member of the Team first needs to authorize it. |
🚨 Linting & Formatting ReportESLint found 36 issue(s). Run
…and 33 more. Prettier found formatting issues. Run 🔍 Please fix these before merging. |
🚨 Linting & Formatting ReportESLint found 36 issue(s). Run
…and 33 more. Prettier found formatting issues. Run 🔍 Please fix these before merging. |
| while (retryCount < maxRetries) { | ||
| while (true) { | ||
| try { | ||
| // First check if the quote has been paid |
There was a problem hiding this comment.
The quote state checks need to be here in order to prevent the proof minting race condition (this cause payments to go through, but the order messages and confirmation never go through)
| while (retryCount < maxRetries) { | ||
| while (true) { | ||
| try { | ||
| // First check if the quote has been paid |
There was a problem hiding this comment.
Same revisions needed here as previous comment of quote states.
🚨 Linting & Formatting ReportESLint found 48 issue(s). Run
…and 45 more. Prettier found formatting issues. Run 🔍 Please fix these before merging. |
This PR introduces a complete system for dispute resolution.
It implements a 2-of-3 multisig escrow using NUT-11 P2PK for secure Cashu payments. A new UI on the "Disputes" tab allows buyers, sellers, and an arbiter to communicate privately using NIP-59 gift-wrapped messages.
Buyers can initiate disputes from product pages after a purchase. The arbiter can then mediate and rule on the dispute to release the escrowed funds.