Skip to content

Add tax-bucket export event for downstream tax-lot reconstruction by indexer #536

Description

@greatest0fallt1me

Description

Indexers need a stable per-holder per-bucket event topic to reconstruct tax lots off-chain. Emit tax_lot events with holder, bucket, amount, period_id, and timestamp.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Relevant code: indexer/, src/test_indexer_fixtures.rs
  • Event topic must be versioned and documented

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feat/tax-lot-export-event
  • Implement changes
    • Add tax_lot_v1 topic emitted on each tax-bucket update
    • Add indexer fixture and topic registry entry
    • Document field order and encoding
  • Validate security and correctness assumptions

Test and commit

  • Run tests
    • cargo test --all
  • Cover edge cases
    • Empty period emits zero events and burst period emits N events
  • Include test output and security notes

Example commit message

feat: emit tax_lot_v1 event for tax-lot reconstruction

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