Files
smom-dbis-138/scripts/deployment/deploy-z-chain-contracts.sh
T
zardashtways44andCursor e35ad9047c feat: add Z Chain 900002 ecosystem with wallet, Z Bot, and deploy scripts
Ship Z Chain slot, International Z Wallet routes, in-app Z Bot APIs, Besu bootstrap, and local/production deployment tooling for digital.omdnl.org.

Co-authored-by: Cursor <[email protected]>
2026-07-06 05:25:10 -07:00

24 lines
695 B
Bash

#!/usr/bin/env bash
# Deploy Z Chain contracts (cUSDC + AccountWalletRegistry) on chainId 900002.
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$ROOT"
RPC="${CHAIN_900002_RPC_URL:-http://127.0.0.1:8546}"
if [[ -z "${PRIVATE_KEY:-}" ]]; then
echo "ERROR: set PRIVATE_KEY (Besu dev key #1 works for local bootstrap)"
exit 1
fi
echo "Deploying to Z Chain at $RPC ..."
forge script script/z-chain/DeployZChainEmoney.s.sol:DeployZChainEmoney \
--rpc-url "$RPC" \
--chain-id 900002 \
--broadcast \
--profile zchain
echo "Done. Copy deployed addresses into config/z-chain-deployed.v1.json"
echo "Or run: node scripts/deployment/sync-z-chain-deployed-addresses.mjs"