Repository navigation
Open
Labels
GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26difficulty: easyEasy difficulty issueenhancementNew feature or requestgood first issueGood for newcomerspriority: mediumMedium priority issue
Description
Description
This issue aims to address the implementation of Implement cancel_escrow function.
The core objective is to: Allow the client to cancel the escrow and retrieve funds IF the freelancer has not accepted yet.
By completing this feature, we will ensure that the TrustFlow protocol maintains its high standards for security, usability, and decentralized logic. This issue requires careful attention to the Smart Contracts architecture and adherence to the existing project conventions.
When picking up this issue, please ensure you document any new dependencies or architectural decisions made during development.
Component
Smart Contracts
Difficulty
🟢 Easy
Tasks
- Review Soroban architecture and
soroban-cliusage - Implement Rust logic for: Implement
cancel_escrowfunction - Write comprehensive unit tests in Rust
- Ensure proper event emission for indexing
- Run
cargo fmtandcargo clippy - Verify
soroban contract buildsuccessfully compiles to WASM without bloating size
Acceptance Criteria
- Feature accurately implements the objective: Allow the client to cancel the escrow and retrieve funds IF the freelancer has not accepted yet.
- Any PR that introduces Rust errors is automatically blocked
- CI pipeline runs in under 3 minutes per PR
- Code is properly reviewed and approved by codeowners
Estimated Time
1-3 hours
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26difficulty: easyEasy difficulty issueenhancementNew feature or requestgood first issueGood for newcomerspriority: mediumMedium priority issue
Activity
YfengJ commentedon Jun 22, 2026
I would like to apply for this issue.
If assigned, I will keep the change focused on the
cancel_escrowpath: allow only the client to cancel before freelancer acceptance, return locked funds safely, preserve accepted/active escrow behavior, emit a clear cancellation event, and add Rust unit tests for client-only success, non-client rejection, already-accepted rejection, and balance/state cleanup.I will wait for maintainer or GrantFox assignment/confirmation before starting implementation or opening a PR.
dollarop commentedon Aug 25, 2026
I would like to apply for this issue. I can implement the cancel_escrow flow with client-only authorization, cancellation only before freelancer acceptance, safe fund return, explicit state transition and event emission, plus focused Soroban tests for success and rejection paths. I can start immediately once the maintainer or GrantFox confirms assignment.
ranjeet150 commentedon Sep 15, 2026
Hey team,
I can tackle
Implementcancel_escrowfunction. Proposed implementation roadmap:trustflow-protocol/trustflow-contractImplementcancel_escrowfunctionwith explicitrequire_authchecks, secure state storage, and gas optimization.Ready to deliver a clean, tested PR within 12–24 hours. Please assign!