🔖 Feature Title
Add cross-contract integration tests covering the full BNPL lifecycle
📄 Description
Each contract has its own unit tests but there are no tests that exercise the contracts together. The `tests.rs` files in CreditLine have several TODOs for wiring up mock contracts that remain unimplemented. Integration tests are essential to verify that the CreditLine → Reputation → LiquidityPool → MerchantRegistry call chain works correctly as a system.
Current TODOs in `creditline-contract/src/tests.rs`:
- `// TODO: wire up MockMerchantRegistry/MockLiquidityPool`
- `// TODO: assert reputation score increased for user`
- `// TODO: assert liquidity pool received the repayment`
✅ Tasks to complete
🗒️ Additional notes
- Depends on SC-09 and SC-11 being completed
- Use Soroban SDK's `testutils` feature: `env.register_contract()` to deploy contracts in-memory
- Each contract's address needs to be passed to the others during initialization
- The Reputation contract must have CreditLine registered as an updater via `set_updater()` before tests
🔖 Feature Title
Add cross-contract integration tests covering the full BNPL lifecycle
📄 Description
Each contract has its own unit tests but there are no tests that exercise the contracts together. The `tests.rs` files in CreditLine have several TODOs for wiring up mock contracts that remain unimplemented. Integration tests are essential to verify that the CreditLine → Reputation → LiquidityPool → MerchantRegistry call chain works correctly as a system.
Current TODOs in `creditline-contract/src/tests.rs`:
✅ Tasks to complete
🗒️ Additional notes