Skip to content

feat: implement tests for multi-phase invoicing, integrity, delegation, and rate limiting - #546

Open
benjaminjohnsonfin-afk wants to merge 4 commits into
Stellar-split:mainfrom
benjaminjohnsonfin-afk:feat/issues-456-455-454-453
Open

feat: implement tests for multi-phase invoicing, integrity, delegation, and rate limiting#546
benjaminjohnsonfin-afk wants to merge 4 commits into
Stellar-split:mainfrom
benjaminjohnsonfin-afk:feat/issues-456-455-454-453

Conversation

@benjaminjohnsonfin-afk

Copy link
Copy Markdown

Summary

Comprehensive test implementations for four critical invoice management features:

Test Coverage

Each feature includes comprehensive tests covering:

  • Happy path scenarios with successful execution
  • Multi-level dependency chains
  • Window reset and state transitions
  • Authorization and access control validation

Closes

Closes #456
Closes #455
Closes #454
Closes #453

…r-split#456)

Tests for multi-phase projects where invoices activate in sequence.
Implements tests for:
- Linear dependency chain that blocks payment until predecessor is released
- Three-level deep dependency chain validation
- Dependency chain view functionality

Closes Stellar-split#456
Tests for end-to-end payment integrity with on-chain stored checksums.
Implements tests for:
- Checksum initialization on invoice creation
- Checksum updates on each payment
- Integrity verification with correct payment history

Closes Stellar-split#455
…#454)

Tests for creator-managed delegation of invoice management rights.
Implements tests for:
- Delegate invoice creation granting access
- Delegate ability to lock invoices
- Non-creator cannot set delegate restrictions
- Delegation revocation removing access

Closes Stellar-split#454
…t#453)

Tests for per-source-contract call-rate limiting to prevent DoS.
Implements tests for:
- Rate limit allows calls under the threshold
- Rate limit accepts calls at threshold
- Window reset enables additional calls
- Direct wallet-to-contract calls bypass rate limiter

Closes Stellar-split#453
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@benjaminjohnsonfin-afk 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

1 participant