Skip to content

Add split_to_escrow tests, contract_paused_for, get_all_escrows_between, and cancel_recurring_batch tests - #782

Merged
BigBen-7 merged 1 commit into
Lead-Studios:mainfrom
zakariyaufarida5-wq:zakariyaufarida5-wq/issues-746-739-738-737
Aug 28, 2026
Merged

Add split_to_escrow tests, contract_paused_for, get_all_escrows_between, and cancel_recurring_batch tests#782
BigBen-7 merged 1 commit into
Lead-Studios:mainfrom
zakariyaufarida5-wq:zakariyaufarida5-wq/issues-746-739-738-737

Conversation

@zakariyaufarida5-wq

Copy link
Copy Markdown
Contributor

Summary

Implements four requested tickets as simple, focused additions:

  • split_to_escrow tests — test coverage for the split escrow flow: correct count of ids, per-escrow amounts, beneficiaries matching recipients, the supply invariant, and the invalid-recipients panic.
  • contract_paused_for — a new view returning how many ledgers the contract has been continuously paused for (None when not paused).
  • get_all_escrows_between — a new view returning all escrow ids (active and settled) between a depositor and beneficiary.
  • cancel_recurring_batch tests — test coverage for batch cancellation: all cancelled, wrong payer reverts the whole batch, batch over limit panics, and removal from the payer index.

Fixes:

Closes #746
Closes #739
Closes #738
Closes #737

@zakariyaufarida5-wq
zakariyaufarida5-wq force-pushed the zakariyaufarida5-wq/issues-746-739-738-737 branch from ad9a42b to a3a17eb Compare August 27, 2026 23:30
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@zakariyaufarida5-wq 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

@zakariyaufarida5-wq
zakariyaufarida5-wq force-pushed the zakariyaufarida5-wq/issues-746-739-738-737 branch from a3a17eb to f26cbdf Compare August 27, 2026 23:41
@BigBen-7

Copy link
Copy Markdown
Collaborator

@zakariyaufarida5-wq please resolve conflicts

@zakariyaufarida5-wq
zakariyaufarida5-wq force-pushed the zakariyaufarida5-wq/issues-746-739-738-737 branch 2 times, most recently from 777c95b to b5331a0 Compare August 28, 2026 13:22
…en, and cancel_recurring_batch tests

- Add contract_paused_for view returning ledgers elapsed since the contract was paused (Lead-Studios#739)
- Add get_all_escrows_between view returning all escrow IDs between a depositor and beneficiary (Lead-Studios#738)
- Add split_to_escrow test coverage (Lead-Studios#746)
- Add cancel_recurring_batch test coverage (Lead-Studios#737)
- Repair pre-existing upstream merge damage (duplicate VeritixContract blocks, mid-file use statements) so the crate compiles
@zakariyaufarida5-wq

Copy link
Copy Markdown
Contributor Author

conflict resolved

@BigBen-7
BigBen-7 merged commit 32b3073 into Lead-Studios:main Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment