Context
scripts/deploy-contract.sh builds WASM and echoes example Soroban CLI commands but does not perform deploy or initialize calls.
Problem
Maintainers lack a repeatable script to deploy the escrow contract and capture ESCROW_CONTRACT_ID for gateway configuration.
Proposed scope
- Extend script to deploy WASM via Soroban CLI when credentials are present
- Call
initialize(admin, gateway, token) after deploy
- Print contract ID and suggested
.env exports
- Guard with env vars (
DEPLOYER_SECRET, TOKEN_CONTRACT_ID, GATEWAY_PUBLIC) and clear error messages when missing
Acceptance criteria
References
scripts/deploy-contract.sh
contracts/waveflow-escrow/src/contract.rs (initialize)
.env.example
docs/core-loop.md
Context
scripts/deploy-contract.shbuilds WASM and echoes example Soroban CLI commands but does not perform deploy orinitializecalls.Problem
Maintainers lack a repeatable script to deploy the escrow contract and capture
ESCROW_CONTRACT_IDfor gateway configuration.Proposed scope
initialize(admin, gateway, token)after deploy.envexportsDEPLOYER_SECRET,TOKEN_CONTRACT_ID,GATEWAY_PUBLIC) and clear error messages when missingAcceptance criteria
initializewith admin, gateway, and token addressesESCROW_CONTRACT_IDfor gateway envdocs/core-loop.mdreferences the script in testnet walkthroughReferences
scripts/deploy-contract.shcontracts/waveflow-escrow/src/contract.rs(initialize).env.exampledocs/core-loop.md