forked from Ishan5101/Guardiant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
15 lines (12 loc) · 749 Bytes
/
deploy.sh
File metadata and controls
15 lines (12 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -euo pipefail
# Figure out the directory this script lives in, then cd into its sibling `contract/`
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR/contract"
# Deploy each module via npx (avoids the bunx/Node loader bug)
npx hardhat ignition deploy ignition/modules/TokenFactoryModule.js --network hardhat
npx hardhat ignition deploy ignition/modules/LiquidityPoolAutomation.js --network hardhat
npx hardhat ignition deploy ignition/modules/AnomalyGuard.js --network hardhat
npx hardhat ignition deploy ignition/modules/Transfer.js --network hardhat
npx hardhat ignition deploy ignition/modules/Wallet.js --network hardhat
echo "✅ All modules deployed."