Helper scripts for building, testing, auditing, and deploying smart contracts across environments.
- Rust Toolchain:
1.81.0(pinned viarust-toolchain.toml) - WASM Target:
wasm32-unknown-unknown(rustup target add wasm32-unknown-unknown) - Stellar CLI: Installed and available in PATH (
cargo install --locked stellar-cli) - Node.js & npm: Node.js 18+ for test suite and root hooks
Compiles all Soroban smart contracts in the workspace for the wasm32-unknown-unknown target in release mode.
./scripts/build.shExecutes the comprehensive repository test suite covering contract tests (cargo test) and frontend tests (npm test).
./scripts/test.shDeploys compiled WASM smart contract binaries to the Stellar Testnet.
# Configure testnet identity (one-time)
stellar keys generate deployer --network testnet
# Run deployment script
./scripts/deploy_testnet.shEnvironment Overrides:
STELLAR_NETWORK: Network identifier (default:testnet).STELLAR_RPC_URL: Soroban RPC endpoint (default:https://soroban-testnet.stellar.org).
Deploys compiled smart contracts to Stellar Mainnet with interactive safety confirmation prompts.
./scripts/deploy_mainnet.shEnvironment Overrides:
STELLAR_NETWORK: Network identifier (default:mainnet).STELLAR_RPC_URL: Mainnet Soroban RPC endpoint.
Performs vulnerability audits on Rust (cargo audit) and Node (npm audit) dependencies prior to code pushes.
./scripts/pre-push-audit.sh