Skip to content

Onchain Module Cleanup (Legacy AidEscrow Design) #127

@Cedarich

Description

@Cedarich

Description

Clean up outdated or legacy artifacts in app/onchain that still refer to an older pool-based AidEscrow design and outdated method names, so contributors are not confused by conflicting documentation and tests.

Requirements

  • Review and update app/onchain/README.md:
    • Align method reference and invariants with the current aid_escrow implementation in contracts/aid_escrow/src/lib.rs.
    • Remove or clearly mark legacy concepts such as fund, disburse, revoke, and refund if they are not part of the current contract interface.
  • Review app/onchain/contracts/aid_escrow/tests/core_flow.rs:
    • This test file uses the legacy API (init, fund, claim, revoke, refund) and pool model.
    • Decide whether to:
      • Refactor it to target the current aid_escrow contract design, or
      • Move it to a clearly marked legacy/ or archive/ folder, or remove it if no longer relevant.
  • Ensure app/onchain/CONTRIBUTING.md examples and code snippets are consistent with the current contract API (method names, arguments, and error types).
  • After cleanup, there should be a single, coherent contract model exposed to contributors, with no conflicting docs or tests.

Complexity

  • Level: 200

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions