Skip to content

Add cross-contract invariant coverage for allocation sum consistency #330

@Baskarayelu

Description

@Baskarayelu

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarea:integrationRemitWise contracts labelcontractsRemitWise contracts labelcross-contractRemitWise contracts labelpriority:highRemitWise contracts labelqualityRemitWise contracts labeltype:testRemitWise contracts label

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions