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
Description
Clean up outdated or legacy artifacts in
app/onchainthat still refer to an older pool-basedAidEscrowdesign and outdated method names, so contributors are not confused by conflicting documentation and tests.Requirements
app/onchain/README.md:aid_escrowimplementation incontracts/aid_escrow/src/lib.rs.fund,disburse,revoke, andrefundif they are not part of the current contract interface.app/onchain/contracts/aid_escrow/tests/core_flow.rs:init,fund,claim,revoke,refund) and pool model.aid_escrowcontract design, orlegacy/orarchive/folder, or remove it if no longer relevant.app/onchain/CONTRIBUTING.mdexamples and code snippets are consistent with the current contract API (method names, arguments, and error types).Complexity