Automated scripts for building and deploying Soroban smart contracts.
Builds all contracts in the workspace and generates WASM files.
./scripts/build.shDeploys, initializes, and links contracts on Stellar networks.
# Install dependencies (first time)
cd scripts && npm install
# Run deployment to testnet
SECRET_KEY=S... npx ts-node deploy.ts testnetdeploy-config.json: Contains network RPC URLs, passphrase, and initial contract parameters..env: (Optional) Can storeSECRET_KEY,RPC_URL, etc.
- Build: Run
./scripts/build.sh. - Configure: Update
scripts/deploy-config.jsonif needed (admin address, token address). - Deploy: Run
SECRET_KEY=... npm run deploy -- testnetfrom thescriptsdirectory. - Verify: Check
frontend/.env.localandbackend/.envfor updated contract IDs.