feat: cancel-escrow, distributor tests, cross-contract integration, s…#57
Merged
Jayrodri088 merged 1 commit intoStellarState:mainfrom Mar 27, 2026
Conversation
…moke harness Issue StellarState#41 — invoice-escrow cancel_escrow - Add EscrowStatus::Cancelled variant - Add Error::EscrowCancelled - Add events::escrow_cancelled (invoice_id, seller) - Add cancel_escrow: seller-only, Created-state-only, emits event - fund_escrow returns EscrowCancelled when status is Cancelled - Tests: happy path, event emission, non-seller rejected, funded rejected, fund-after-cancel rejected Issue StellarState#35 — payment-distributor unit tests - Add tests: double-init fails, get_admin, zero/negative amount, not-initialized, full balance, multiple recipients, unauthorized caller Issue StellarState#36 — payment-distributor cross-contract integration tests - Add integration_test.rs: settle-then-distribute happy path, distribute-while-funded (not settled) failure, unauthorized-caller failure, refund-does-not-affect-distributor - Add invoice-escrow and invoice-token as dev-dependencies Issue StellarState#31 — testnet smoke-test harness - scripts/smoke-test.sh: build → deploy → init → create → fund → settle, prints pass/fail assertions - .github/workflows/smoke-test.yml: workflow_dispatch job for testnet/futurenet Closes StellarState#41 Closes StellarState#35 Closes StellarState#36 Closes StellarState#31
|
@ritik4ever 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #41 — invoice-escrow cancel_escrow
Issue #35 — payment-distributor unit tests
Issue #36 — payment-distributor cross-contract integration tests
Issue #31 — testnet smoke-test harness
Closes #41
Closes #35
Closes #36
Closes #31
Description
Closes #
Type of Change
Checklist
Testing
How to Test
Test Coverage
Screenshots (if applicable)
Additional Notes
For Reviewers