Skip to content

Commit 8d5a64c

Browse files
committed
build: deploy script for iotex
1 parent 14faed6 commit 8d5a64c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
set -euxo pipefail
3+
4+
if declare -p KEY >/dev/null 2>&1; then
5+
echo "Using deployer private key from environment variable KEY"
6+
else
7+
read -p "Enter deployer private key: " KEY
8+
export KEY="$KEY"
9+
fi
10+
11+
export CHAIN=iotex
12+
export SCRIPT_FILE=scripts/deployStreamrContracts.ts
13+
npm run hardhatScript
14+
15+
read -p "Copy changed addresses to config, then press enter"
16+
17+
export SCRIPT_FILE=scripts/deployTokenomicsContracts.ts
18+
npm run hardhatScript

0 commit comments

Comments
 (0)