Overview
Marketplace transactions can go wrong (non-delivery, misrepresentation). Add a dispute flow: buyers open disputes, evidence is attached, a mediator/adjudicator resolves with refund or release, and the escrow contract is invoked accordingly.
Acceptance Criteria
Files to Modify
backend/src/services/disputes/ — dispute service
backend/src/models/Dispute.ts — new model
backend/src/routes/disputes.ts — endpoints
contracts/src/marketplace.rs — escrow resolution hooks
Priority: Medium
Overview
Marketplace transactions can go wrong (non-delivery, misrepresentation). Add a dispute flow: buyers open disputes, evidence is attached, a mediator/adjudicator resolves with refund or release, and the escrow contract is invoked accordingly.
Acceptance Criteria
Files to Modify
backend/src/services/disputes/— dispute servicebackend/src/models/Dispute.ts— new modelbackend/src/routes/disputes.ts— endpointscontracts/src/marketplace.rs— escrow resolution hooksPriority: Medium