@constellation-network/node-pilot 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -13
- package/dist/checks/check-dependencies.d.ts +1 -0
- package/dist/checks/check-dependencies.js +44 -0
- package/dist/checks/check-initial-setup.js +6 -4
- package/dist/checks/check-network.d.ts +1 -0
- package/dist/checks/check-network.js +48 -0
- package/dist/checks/check-node-ctl.d.ts +5 -0
- package/dist/checks/check-node-ctl.js +88 -0
- package/dist/checks/check-project.js +22 -7
- package/dist/clm.js +1 -1
- package/dist/commands/logs.d.ts +1 -0
- package/dist/commands/logs.js +5 -3
- package/dist/commands/status.js +4 -0
- package/dist/commands/test.d.ts +1 -0
- package/dist/commands/test.js +27 -5
- package/dist/config-store.d.ts +8 -5
- package/dist/config-store.js +10 -0
- package/dist/helpers/docker-helper.js +18 -5
- package/dist/helpers/key-file-helper.js +1 -1
- package/dist/helpers/project-helper.d.ts +1 -0
- package/dist/helpers/project-helper.js +52 -0
- package/dist/helpers/prompt-helper.d.ts +0 -1
- package/dist/helpers/prompt-helper.js +0 -51
- package/dist/services/cluster-service.d.ts +2 -1
- package/dist/services/cluster-service.js +10 -0
- package/dist/services/fastforward-service.js +9 -3
- package/dist/services/get-random-node.d.ts +2 -0
- package/dist/services/get-random-node.js +16 -0
- package/dist/services/node-service.d.ts +4 -0
- package/dist/services/node-service.js +15 -0
- package/dist/services/shell-service.d.ts +3 -1
- package/dist/services/shell-service.js +32 -6
- package/dist/types.d.ts +36 -3
- package/install-dependencies.sh +100 -0
- package/oclif.manifest.json +9 -1
- package/package.json +5 -2
- package/projects/hypergraph/networks/integrationnet.env +16 -8
- package/projects/hypergraph/networks/mainnet.env +16 -7
- package/projects/hypergraph/networks/testnet.env +16 -8
- package/projects/hypergraph/scripts/install-dependencies.sh +3 -3
- package/projects/hypergraph/scripts/install.sh +4 -6
@@ -13,9 +13,6 @@ require() {
|
|
13
13
|
command -v "$cmd" >/dev/null 2>&1 || { echo "Error: '$cmd' is required"; exit 1; }
|
14
14
|
}
|
15
15
|
|
16
|
-
require curl
|
17
|
-
require jq
|
18
|
-
|
19
16
|
NETWORK="${1:-}"
|
20
17
|
[[ -z "${NETWORK}" ]] && { echo "No network specified."; usage; }
|
21
18
|
|
@@ -33,8 +30,6 @@ ASSETS=("cl-node.jar" "cl-dag-l1.jar" "cl-keytool.jar" "cl-wallet.jar" "mainnet-
|
|
33
30
|
ASSET_NAMES=("gl0.jar" "gl1.jar" "keytool.jar" "wallet.jar" "seedlist")
|
34
31
|
OUTPUT_DIR="$SCRIPT_DIR/../dist" # Directory to save the downloaded assets
|
35
32
|
|
36
|
-
|
37
|
-
|
38
33
|
# load the version from the version file
|
39
34
|
if [ -f "$OUTPUT_DIR/version.sh" ]; then
|
40
35
|
source "$OUTPUT_DIR/version.sh"
|
@@ -51,6 +46,9 @@ else
|
|
51
46
|
RELEASE_NETWORK_TYPE=""
|
52
47
|
fi
|
53
48
|
|
49
|
+
require curl
|
50
|
+
require jq
|
51
|
+
|
54
52
|
# Check network version
|
55
53
|
# Resolve the load balancer URL based on the network and get the release tag
|
56
54
|
LB_HTTP="https://l0-lb-$NETWORK.constellationnetwork.io"
|
@@ -100,7 +98,7 @@ download_asset() {
|
|
100
98
|
|
101
99
|
# Download the asset
|
102
100
|
echo "$ASSET_NAME -> $OUTPUT_NAME"
|
103
|
-
curl
|
101
|
+
curl -# -L -H "Accept: application/octet-stream" -o "$OUTPUT_DIR/$OUTPUT_NAME" "$DOWNLOAD_URL"
|
104
102
|
|
105
103
|
if [ $? -ne 0 ]; then
|
106
104
|
echo "Failed to download asset '$ASSET_NAME'."
|