-
Notifications
You must be signed in to change notification settings - Fork 111
Add cross-contract invariant coverage for allocation sum consistency #330
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:integrationRemitWise contracts labelRemitWise contracts labelcontractsRemitWise contracts labelRemitWise contracts labelcross-contractRemitWise contracts labelRemitWise contracts labelpriority:highRemitWise contracts labelRemitWise contracts labelqualityRemitWise contracts labelRemitWise contracts labeltype:testRemitWise contracts labelRemitWise contracts label
Description
Description
Expand cross-contract invariant coverage ensuring split allocations remain consistent with downstream recorded amounts.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
- Validate aggregate sums and category matching across contracts
Suggested execution
- Fork the repo and create a branch
git checkout -b test/integration-allocation-sum-invariants- Implement changes
- Write contract:
scripts/verify_cross_contract_invariants.py - Write comprehensive tests:
integration_tests/tests/multi_contract_integration.rs - Add documentation:
scripts/README_INVARIANT_TESTS.md - Include NatSpec-style comments
- Validate security assumptions
Test and commit
- Run tests:
python3 scripts/verify_cross_contract_invariants.py && cargo test -p integration_tests - Cover edge cases
- Include test output and security notes
Example commit message
test: extend cross-contract invariant coverage for allocation consistency
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:integrationRemitWise contracts labelRemitWise contracts labelcontractsRemitWise contracts labelRemitWise contracts labelcross-contractRemitWise contracts labelRemitWise contracts labelpriority:highRemitWise contracts labelRemitWise contracts labelqualityRemitWise contracts labelRemitWise contracts labeltype:testRemitWise contracts labelRemitWise contracts label