From 8d5a64c06716595a97641b210631fe59ab185119 Mon Sep 17 00:00:00 2001 From: Juuso Takalainen Date: Wed, 30 Oct 2024 15:10:46 +0200 Subject: [PATCH] build: deploy script for iotex --- .../scripts/2024-10-30-deploy-to-iotex.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 packages/network-contracts/scripts/2024-10-30-deploy-to-iotex.sh diff --git a/packages/network-contracts/scripts/2024-10-30-deploy-to-iotex.sh b/packages/network-contracts/scripts/2024-10-30-deploy-to-iotex.sh new file mode 100755 index 00000000..c300d8cd --- /dev/null +++ b/packages/network-contracts/scripts/2024-10-30-deploy-to-iotex.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +set -euxo pipefail + +if declare -p KEY >/dev/null 2>&1; then + echo "Using deployer private key from environment variable KEY" +else + read -p "Enter deployer private key: " KEY + export KEY="$KEY" +fi + +export CHAIN=iotex +export SCRIPT_FILE=scripts/deployStreamrContracts.ts +npm run hardhatScript + +read -p "Copy changed addresses to config, then press enter" + +export SCRIPT_FILE=scripts/deployTokenomicsContracts.ts +npm run hardhatScript