Skip to content

Sync get_all_categories with validate_invoice_category allow-list #733

@Baskarayelu

Description

@Baskarayelu

Description

Ensure every returned category is valid for upload and updates; test drift detection.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Align with existing Soroban contract patterns in quicklendx-contracts

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feature/category-enum-sync-tests
  • Implement changes
  • Write contract: src/invoice.rs, src/verification.rs
  • Write comprehensive tests: src/test_invoice.rs, src/test/test_invoice_categories.rs
  • Add documentation: docs/contracts/invoice.md
  • Include NatSpec-style comments (Rust doc comments on public items)
  • Validate security assumptions

Test and commit

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

Example commit message

feat: sync category list with validation allow-list

Guidelines

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcategoriesAuto label for contract issues: categoriesinvoiceAuto label for contract issues: invoicepriority-lowAuto label for contract issues: priority-lowsmart-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