Skip to content

Implement cancel_escrow function #8

Open

Description

@meshackyaro

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-cli usage
  • Implement Rust logic for: Implement cancel_escrow function
  • Write comprehensive unit tests in Rust
  • Ensure proper event emission for indexing
  • Run cargo fmt and cargo clippy
  • Verify soroban contract build successfully 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

Activity

  1. added
    GrantFox OSS
    Maybe Rewarded
    Official Campaign
    on Jun 20, 2026
  2. added
    enhancement
    on Jun 22, 2026
  3. YfengJ commented on Jun 22, 2026

    @YfengJ

    I would like to apply for this issue.

    If assigned, I will keep the change focused on the cancel_escrow path: 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.

  4. added
    Official Campaign | FWC26
    and removed
    Official Campaign
    on Jul 18, 2026
  5. added
    priority: medium
    difficulty: easy
    on Jul 20, 2026
  6. dollarop commented on Aug 25, 2026

    @dollarop

    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.

  7. ranjeet150 commented on Sep 15, 2026

    @ranjeet150

    Hey team,

    I can tackle Implement cancel_escrow function. Proposed implementation roadmap:

    • Analysis: Inspect current behavior and edge cases in trustflow-protocol/trustflow-contract
    • Core Implementation: Implement Implement cancel_escrow function with explicit require_auth checks, secure state storage, and gas optimization.
    • Quality Assurance: Ensure contract compiles cleanly and passes all cargo tests without warnings.

    Ready to deliver a clean, tested PR within 12–24 hours. Please assign!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSMaybe RewardedOfficial Campaign | FWC26difficulty: easyenhancementgood first issuepriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions