Skip to content

feat: add holder-statement diff query - #824

Open
laxjovial wants to merge 2 commits into
RevoraOrg:masterfrom
laxjovial:feat/holder-statement-diff
Open

feat: add holder-statement diff query#824
laxjovial wants to merge 2 commits into
RevoraOrg:masterfrom
laxjovial:feat/holder-statement-diff

Conversation

@laxjovial

Copy link
Copy Markdown
Contributor

Add holder_statement_diff(holder, period_a, period_b) to compute the delta of holdings and cumulative accrued amounts between two period IDs for a holder. Simplifies UI diff views and reduces client-side work by performing the subtraction on-chain.

  • New HolderStatementDelta struct with share_delta and claimed_delta
  • Rejects period_a > period_b with RevoraError::InvalidPeriodId
  • Rejects zero or out-of-range period IDs
  • Reuses compute_holder_payout_for_range for ledger aggregation
  • Includes comprehensive tests covering all edge cases

Closes #601

Add holder_statement_diff(holder, period_a, period_b) to compute the
delta of holdings and cumulative accrued amounts between two period
IDs for a holder. Simplifies UI diff views and reduces client-side
work by performing the subtraction on-chain.

- New HolderStatementDelta struct with share_delta and claimed_delta
- Rejects period_a > period_b with RevoraError::InvalidPeriodId
- Rejects zero or out-of-range period IDs
- Reuses compute_holder_payout_for_range for ledger aggregation
- Includes comprehensive tests covering all edge cases

Closes RevoraOrg#601
@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@laxjovial Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add holder-statement diff query returning delta between two period ids

1 participant