Skip to content

feat: add automated deploy script for testnet and mainnet - #645

Merged
Sadeequ merged 1 commit into
StellarFlow-Network:mainfrom
collinsezedike:feat/deploy-scripts
Jul 26, 2026
Merged

feat: add automated deploy script for testnet and mainnet#645
Sadeequ merged 1 commit into
StellarFlow-Network:mainfrom
collinsezedike:feat/deploy-scripts

Conversation

@collinsezedike

Copy link
Copy Markdown
Contributor

Summary

  • Adds scripts/deploy.sh, which builds a contract, deploys it to testnet, mainnet, or futurenet via stellar-cli, and optionally calls its initialize function
  • Each deployment is appended (never overwritten) to deployments/<network>.jsonl, keyed by contract, wasm hash, source account, and timestamp, so history survives redeploys
  • Init args can be passed via --init-args, a --init-args-file, or a default file at scripts/init-args/<contract>.args (documented in scripts/init-args/README.md)
  • --dry-run prints the planned build, deploy, and initialize commands without executing anything, useful for verifying init args before a real mainnet deploy
  • Network RPC URL and passphrase are set per network (testnet, futurenet, mainnet) and can be overridden with --rpc-url / --passphrase

Closes #636

Test plan

  • bash -n scripts/deploy.sh (syntax check)
  • Verified --help, missing/invalid --contract, invalid --network, and the missing-init-args warning path
  • Ran --dry-run against a real contract (price-oracle) and confirmed the planned build/deploy/invoke commands are correct
  • Cross-checked all stellar CLI flags (--source, --rpc-url, --network-passphrase, --id) against stellar contract deploy --help / stellar contract invoke --help on stellar-cli 27.0.0

@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

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

@Sadeequ
Sadeequ merged commit 45935e6 into StellarFlow-Network:main Jul 26, 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.

🚀 Deployment-Scripts | Automated CLI Scripts for Testnet & Mainnet

2 participants