feat: set up Soroban testnet deployment pipeline (#160)#181
Merged
ayshadogo merged 2 commits intoMay 28, 2026
Merged
Conversation
- Add scripts/deploy.sh: idempotent deploy script for testnet/sandbox/mainnet - Loads funded admin keypair from .env (SOROBAN_ADMIN_SECRET_KEY) - Outputs deployed contract ID to stdout - Saves deployment record to deployments/<network>.json - Skips re-deploy if deployments/<network>.json already exists (idempotent) - Validates WASM exists and secret key is set before attempting deploy - Add deployments/ directory tracked via .gitkeep - Update .gitignore to exclude deployments/*.json and .stellaraid_contract_id Usage: bash scripts/deploy.sh testnet # deploy to Stellar testnet bash scripts/deploy.sh sandbox # deploy to local sandbox bash scripts/deploy.sh mainnet # deploy to mainnet Closes Dfunder#160
|
@snowrugar-beep 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
|
Please resolve conflicts |
Contributor
Author
|
@ayshadogo conflicts resolved. |
ayshadogo
approved these changes
May 28, 2026
Contributor
ayshadogo
left a comment
There was a problem hiding this comment.
Thank you for your contribution
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.
Summary
Closes #160
Adds a production-ready, idempotent deployment script for the StellarAid core contract. The script handles testnet, sandbox, and mainnet deployments from a single entry point, persists deployment records, and prevents accidental re-deploys.
Changes
scripts/deploy.shThe core deliverable. Key behaviours:
SOROBAN_ADMIN_SECRET_KEYfrom.env(or environment).stellaraid_contract_iddeployments/<network>.jsonwith contract ID, RPC URL, and timestampdeployments/<network>.jsonalready contains a contract ID, the script exits early with a message instead of re-deployingtestnet(default),sandbox, ormainnetas first argumentdeployments/.gitkeepTracks the
deployments/directory so the path exists for CI and contributors without committing environment-specific JSON files..gitignoreExcludes
deployments/*.jsonand.stellaraid_contract_idfrom version control.Usage
Acceptance Criteria
scripts/deploy.sh.envdeployments/testnet.json