Repository navigation
feat: add arbitrator authorization and dispute resolution controls in escrow contract - #280
Open
Kinghenry07-debug wants to merge 2 commits into
Conversation
|
@Kinghenry07-debug 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! 🚀 |
Author
|
this PR is ready for another review. I resolved the merge conflicts with the main branch (pushed d968b08). |
Collaborator
|
@Kinghenry07-debug resolve conflicts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds restricted arbitrator authorization and dispute resolution controls to the Soroban escrow contract, along with API routes and event documentation so that dispute outcomes (release-to-freelancer or refund-to-client) can only be applied by authorized arbitrators or governance-approved entities, against an active and valid dispute, exactly once.
Related Issue
Closes #[ISSUE_NUMBER]
Changes
🔐 Soroban Escrow Contract
contracts/contracts/escrow/src/lib.rs🌐 Backend API Routes
app/api/disputes/[id]/resolve/route.tsapp/api/escrow/dispute/resolve/route.ts🔄 Contract Sync
lib/contract-sync/mapper.ts📚 Documentation
docs/soroban-contract-events.mdVerification Results
Automated tests covering the scenarios listed in the issue (authorized and unauthorized resolution, both outcomes, no-dispute, duplicate, invalid state transitions, governance paths, and event contents) are required for this change and should be run with the contract test suite before merge.
resolvepathdocs/soroban-contract-events.mdCloses #250