-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathdevnet-query.sh
executable file
·38 lines (35 loc) · 1.04 KB
/
devnet-query.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
# Default values
if [ -z "${ARTIFACTS_DIR}" ]; then
ARTIFACTS_DIR="artifacts"
fi
if [ -z "${NODES}" ]; then
NODES="*"
fi
# Change directory
cd ${ARTIFACTS_DIR}
# Query devnet
echo "====================================================================="
echo " Query Mithril/Cardano devnet"
echo "====================================================================="
echo
if [ "${NODES}" = "*" ]; then
echo "====================================================================="
echo "=== Mithril Network"
echo "====================================================================="
echo
fi
if [ "${NODES}" = "mithril" ] || [ "${NODES}" = "*" ]; then
./query-mithril.sh
echo
fi
if [ "${NODES}" = "*" ]; then
echo "====================================================================="
echo "=== Cardano Network"
echo "====================================================================="
echo
fi
if [ "${NODES}" = "cardano" ] || [ "${NODES}" = "*" ]; then
./query-cardano.sh
echo
fi