Skip to content

Add regulatory-limit event stream so indexers can rebuild aggregate cap usage per jurisdiction #590

Description

@greatest0fallt1me

Description

Emit a reg_limit_delta event on each holding change so indexers can rebuild aggregate cap usage per jurisdiction over time. Required for periodic Reg D and Reg S reporting.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Relevant code: src/test_transfer_restrictions.rs, indexer/
  • Event must include jurisdiction, delta, and new aggregate

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feat/reg-limit-event
  • Implement changes
    • Emit reg_limit_delta on issuance and transfer
    • Add indexer fixture
    • Document field ordering
  • Validate security and correctness assumptions

Test and commit

  • Run tests
    • cargo test --all
  • Cover edge cases
    • Transfer between two holders in the same jurisdiction (no delta)
  • Include test output and security notes

Example commit message

feat: emit reg_limit_delta events for jurisdiction caps

Guidelines

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveStellar Wave issue batch

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions