Skip to content

Refactor escrow contract: add new DataKey variant, enhance error hand… - #641

Closed
extolkom wants to merge 3 commits into
DXmakers:mainfrom
extolkom:issue/#374
Closed

Refactor escrow contract: add new DataKey variant, enhance error hand…#641
extolkom wants to merge 3 commits into
DXmakers:mainfrom
extolkom:issue/#374

Conversation

@extolkom

Copy link
Copy Markdown
Contributor

closes #374

Implemented SC-ESC-020 by tightening the escrow contract and adding deterministic integration coverage for the happy path. The update adds comprehensive escrow tests that simulate latency through ledger time, cover multiple client/freelancer scenarios, validate active escrow getters and balances, verify fee routing, and assert unauthorized state changes fail with the contract’s unauthorized error.

The change also fixes escrow-side compile risks by restoring missing storage/error definitions, using checked arithmetic for timestamp and balance calculations, cleaning duplicate definitions, and ensuring state-changing flows return consistently. Scope was kept to contracts/escrow/src/lib.rs to minimize merge-conflict and CI risk.

@extolkom
extolkom requested a review from soomtochukwu as a code owner May 29, 2026 09:05
@vercel

vercel Bot commented May 29, 2026

Copy link
Copy Markdown

@extolkom is attempting to deploy a commit to the mAzI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented May 29, 2026

Copy link
Copy Markdown

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

@extolkom extolkom closed this May 29, 2026
@extolkom
extolkom deleted the issue/#374 branch May 29, 2026 11:52
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.

[SC-ESC-020] Escrow System Optimization and Validation Checkpoint - Step 20

1 participant