Skip to content

feat(escrow): add finalize_contract closure record#364

Merged
mikewheeleer merged 1 commit into
Talenttrust:mainfrom
Edoscoba:feature/finalize-contract
May 28, 2026
Merged

feat(escrow): add finalize_contract closure record#364
mikewheeleer merged 1 commit into
Talenttrust:mainfrom
Edoscoba:feature/finalize-contract

Conversation

@Edoscoba

Copy link
Copy Markdown
Contributor

Description:
Implements finalize_contract(contract_id, finalizer) for the escrow contract, allowing an authorized client, freelancer, or assigned arbiter to finalize contracts in Completed or Disputed status.

This adds immutable close metadata via FinalizationRecord, including the finalizer, ledger timestamp, and contract summary snapshot. Once finalized, contract-specific mutating calls fail with AlreadyFinalized.

Validation:

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test passes with 73 tests.

close #320

@drips-wave

drips-wave Bot commented May 27, 2026

Copy link
Copy Markdown

@Edoscoba 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

@mikewheeleer mikewheeleer merged commit 7de3af1 into Talenttrust:main May 28, 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.

Implement finalize_contract closure with immutable close metadata

2 participants