test(backend): add Soroban E2E contract flow tests (#533)#538
Merged
Conversation
|
@shadrach68 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! 🚀 |
Contributor
|
@shadrach68 fix workflow |
Contributor
Contributor
Author
|
Please, I am currently working on it, sir @Cedarich |
Contributor
Author
|
I have resolved the issue sir @Cedarich |
Cedarich
approved these changes
Jun 2, 2026
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.
closes #533
Summary
Resolves #533 (BE-56).
This PR introduces a gated end-to-end test suite that executes real Soroban contract flows against the Stellar Testnet. It validates the full lifecycle (deposit → backend indexer polling → refund) to ensure contract deployments and backend indexers function properly together and to prevent future regressions.
Changes Made
.github/workflows/soroban-e2e.ymlconfigured to run only onworkflow_dispatch(on-demand) or pushes to the protectedmainbranch. This secures theE2E_WALLET_SECRET.app/backend/test/soroban-flow.e2e-spec.tswhich uses@stellar/stellar-sdkand NestJS utilities to directly invoke the Soroban RPC.Networks.TESTNETbefore simulating or signing transactions./api/transactions/:hash) to confirm the emitted events/transactions are successfully indexed.runSalt) to generate unique, idempotent commitments per run. The test strictly concludes with arefundcall to recover testnet XLM and clean up the contract state.Acceptance Criteria
How to Test
E2E_WALLET_SECRETandQUICKEX_CONTRACT_IDare configured in GitHub Actions Secrets.