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
Description
Expand cross-contract invariant coverage ensuring split allocations remain consistent with downstream recorded amounts.
Requirements and context
Suggested execution
git checkout -b test/integration-allocation-sum-invariantsscripts/verify_cross_contract_invariants.pyintegration_tests/tests/multi_contract_integration.rsscripts/README_INVARIANT_TESTS.mdTest and commit
python3 scripts/verify_cross_contract_invariants.py && cargo test -p integration_testsExample commit message
test: extend cross-contract invariant coverage for allocation consistencyGuidelines