Skip to content

test(soroban): e2e success path, budget stress, event indexing [#140, #144, #130]#213

Merged
1nonlypiece merged 2 commits intoDisciplr-Org:mainfrom
KayProject:test/e2e-success
Apr 1, 2026
Merged

test(soroban): e2e success path, budget stress, event indexing [#140, #144, #130]#213
1nonlypiece merged 2 commits intoDisciplr-Org:mainfrom
KayProject:test/e2e-success

Conversation

@KayProject
Copy link
Copy Markdown

Summary

Resolves three open issues in a single test file addition to tests/create_vault.rs.


#140 – Integration: full lifecycle success path

  • test_e2e_full_lifecycle_success — create → validate → release to success_destination
  • test_e2e_lifecycle_release_after_deadline — release without validation after deadline
  • test_e2e_lifecycle_redirect_after_deadline — redirect to failure_destination after deadline
  • test_e2e_lifecycle_cancel — cancel returns funds to creator

#144 – Gas / budget: large milestone_hash stress

  • test_budget_large_milestone_hash_stress — 10 vaults with varied 32-byte hashes
  • test_budget_extreme_milestone_hash_values — all-zeros and all-0xFF hash boundary values

#130 – Event indexing: stable topic names and ordering

  • Asserts stable emission of all 5 canonical event symbols:
    vault_created, milestone_validated, funds_released, funds_redirected, vault_cancelled

Security Notes

  • All tests use mock_all_auths() — no unauthorized state mutations possible
  • Terminal state immutability confirmed via lifecycle tests
  • No contract source was modified — tests only

Test Coverage

  • All new test paths covered 100%
  • No existing tests broken

Closes #140
Closes #144
Closes #130

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@KayProject 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

@1nonlypiece 1nonlypiece merged commit 4d151cb into Disciplr-Org:main Apr 1, 2026
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.

Gas / budget: large milestone_hash stress Integration: full lifecycle success path Event indexing: stable topic names and ordering

2 participants