Skip to content

Validate invoice paid-state transitions from cumulative partial payments #618

@Baskarayelu

Description

@Baskarayelu

Description

Develop cumulative partial payment tests validating exact transition to paid status at threshold amount.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Prevent early or delayed paid transitions

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feature/cumulative-partial-paid-transition
  • Implement changes
  • Write contract: src/settlement.rs and src/invoice.rs
  • Write comprehensive tests: src/test_partial_payments.rs and src/test_settlement.rs
  • Add documentation: docs/contracts/settlement.md
  • Include NatSpec-style comments
  • Validate security assumptions

Test and commit

  • Run tests
  • Cover edge cases
  • Include test output and security notes

Example commit message

feat: validate paid transitions from cumulative partial payments

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programinvoice-lifecycleAuto label for contract issues: invoice-lifecyclepriority-mediumAuto label for contract issues: priority-mediumsettlementAuto label for contract issues: settlementsmart-contractsAuto label for contract issues: smart-contractstestingAuto label for contract issues: testing

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions