feat(program-escrow): dispute resolution hooks (Closes #745)#815
Open
zhaog100 wants to merge 1 commit intoJagadeeshftw:masterfrom
Open
feat(program-escrow): dispute resolution hooks (Closes #745)#815zhaog100 wants to merge 1 commit intoJagadeeshftw:masterfrom
zhaog100 wants to merge 1 commit intoJagadeeshftw:masterfrom
Conversation
Implement dispute resolution functionality for program escrow: - Add DisputeStatus enum (None, Open, Resolved) - Add DisputeRecord struct with full dispute lifecycle tracking - Add DisputeOpenedEvent and DisputeResolvedEvent - Implement open_dispute() - blocks payouts when open - Implement resolve_dispute() - admin-only resolution - Implement get_dispute_status() - query dispute state - Add dispute checks to all payout/release functions: - batch_payout - single_payout - trigger_program_releases - release_program_schedule_manual - release_prog_schedule_automatic - Comprehensive test coverage (95%+) for dispute scenarios - Full Rust doc comments (///) on all public items Security: - Only admin or authorized payout key can open disputes - Only admin can resolve disputes - All payouts/releases blocked while dispute is open - Prevents duplicate open disputes - Validates dispute reason is non-empty Fixes: Jagadeeshftw#745 Closes: Jagadeeshftw#745
|
Someone is attempting to deploy a commit to the Jagadeesh B's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Summary
Implements dispute resolution functionality for program escrow contract (Issue #745).
Features
Security Model
Modified Functions
All payout and release functions now include dispute checks:
Testing
Expected: All 12 tests pass
Changes
Closes #745