Skip to content

Feature/contracts 09 contract cancellation path#135

Merged
mikewheeleer merged 3 commits intoTalenttrust:mainfrom
KingFRANKHOOD:feature/contracts-09-contract-cancellation-path
Apr 1, 2026
Merged

Feature/contracts 09 contract cancellation path#135
mikewheeleer merged 3 commits intoTalenttrust:mainfrom
KingFRANKHOOD:feature/contracts-09-contract-cancellation-path

Conversation

@KingFRANKHOOD
Copy link
Copy Markdown
Contributor

What This PR Does Closes #59

Implements a secure contract cancellation path for the escrow contract, including:

  1. Cancellation support before funding and under agreed funded/disputed conditions.
  2. Strong authorization checks by contract state.
  3. Full test coverage for happy paths and failure paths.
  4. Security and threat-model documentation updates.
  5. Lint/format compliance for clean CI.

Scope

Repository: Talenttrust/Talenttrust-Contracts

Functional Changes

  1. Added cancellation lifecycle support in escrow logic.
  2. Extended status flow to include Cancelled.
  3. Added cancellation reason tracking and cancellation metadata.
  4. Added cancel_contract flow with state-specific policy:
    • Created: client or freelancer can cancel.
    • Funded: controlled cancellation paths under defined conditions.
    • Disputed: arbiter-governed cancellation path.
    • Completed/Cancelled: cancellation blocked.
  5. Added contract query helper coverage for cancellation validation.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 24, 2026

@KingFRANKHOOD 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! 🚀

Learn more about application limits

@KingFRANKHOOD
Copy link
Copy Markdown
Contributor Author

@mikewheeleer Please review,

@mikewheeleer
Copy link
Copy Markdown
Contributor

@KingFRANKHOOD please resolve the conflicts

@KingFRANKHOOD
Copy link
Copy Markdown
Contributor Author

@mikewheeleer all conflicts resolved

@mikewheeleer mikewheeleer merged commit 371e8d2 into Talenttrust:main Apr 1, 2026
1 check passed
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.

[Mike] 09. Contract cancellation path

2 participants