Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion script/avs-signing-key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SERVICE_INDEX=${SERVICE_INDEX:-0}
SERVICE_ID=`curl -s http://localhost:8000/app | jq -r ".services[${SERVICE_INDEX}].id"`
if [ -z "$SERVICE_ID" ] || [ "$SERVICE_ID" == "null" ]; then
echo "Error: SERVICE_ID is null or not found for index ${SERVICE_INDEX}."
exit 1
return
fi

HD_INDEX=`curl -s http://localhost:8000/service-key/${SERVICE_ID} | jq -rc '.secp256k1.hd_index'`
Expand Down
2 changes: 1 addition & 1 deletion script/build-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ -z "$WAVS_SERVICE_MANAGER_ADDRESS" ]; then
export WAVS_SERVICE_MANAGER_ADDRESS=$(jq -r .addresses.WavsServiceManager ./.nodes/avs_deploy.json)
if [ -z "$WAVS_SERVICE_MANAGER_ADDRESS" ]; then
echo "WAVS_SERVICE_MANAGER_ADDRESS is not set. Please set it to the address of the service manager."
exit 1
return
fi
fi

Expand Down
4 changes: 2 additions & 2 deletions script/create-aggregator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fi

SP=""; if [[ "$(uname)" == *"Darwin"* ]]; then SP=" "; fi

cd $(git rev-parse --show-toplevel) || exit 1
cd $(git rev-parse --show-toplevel) || return

mkdir -p .docker

Expand All @@ -43,7 +43,7 @@ sed -i${SP}'' -e "s/.%%MNEMONIC_REFERENCE%%$/ $AGG_MNEMONIC/" ${ENV_FILENAME}

cat > "${AGG_LOC}/start.sh" << EOF
#!/bin/bash
cd \$(dirname "\$0") || exit 1
cd \$(dirname "\$0") || return

IMAGE=ghcr.io/lay3rlabs/wavs:35c96a4
INSTANCE=wavs-aggregator-${AGGREGATOR_INDEX}
Expand Down
2 changes: 1 addition & 1 deletion script/create-deployer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ ! -f .env ]; then
cp .env.example .env
if [ $? -ne 0 ]; then
echo "Failed to copy .env.example to .env"
exit 1
return
fi
fi

Expand Down
8 changes: 4 additions & 4 deletions script/create-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

SP=""; if [[ "$(uname)" == *"Darwin"* ]]; then SP=" "; fi

cd $(git rev-parse --show-toplevel) || exit 1
cd $(git rev-parse --show-toplevel) || return

mkdir -p .docker

# require a number input as argument 1, if not, require OPERATOR_INDEX env variable
export OPERATOR_INDEX=${OPERATOR_INDEX:-$1}
if [ -z "$OPERATOR_INDEX" ]; then
echo "Please provide an operator index as the first argument or set OPERATOR_INDEX environment variable."
exit 1
return
fi

OPERATOR_LOC=infra/wavs-${OPERATOR_INDEX}
Expand All @@ -26,7 +26,7 @@ if [ -d "${OPERATOR_LOC}" ] && [ "$(ls -A ${OPERATOR_LOC})" ]; then
sudo rm -rf ${OPERATOR_LOC}
else
echo -e "\nExiting without changes."
exit 1
return
fi
fi

Expand All @@ -52,7 +52,7 @@ rm ${TEMP_FILENAME}
# Create startup script
cat > "${OPERATOR_LOC}/start.sh" << EOF
#!/bin/bash
cd \$(dirname "\$0") || exit 1
cd \$(dirname "\$0") || return

IMAGE=ghcr.io/lay3rlabs/wavs:35c96a4
WAVS_INSTANCE=wavs-${OPERATOR_INDEX}
Expand Down
2 changes: 1 addition & 1 deletion script/get-deploy-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ ! -f .env ]; then
cp .env.example .env
if [ $? -ne 0 ]; then
echo "Failed to copy .env.example to .env"
exit 1
return
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion script/get-ipfs-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ elif [ "$DEPLOY_ENV" = "TESTNET" ]; then
IPFS_GATEWAY=https://gateway.pinata.cloud/ipfs/
else
echo "Unknown DEPLOY_ENV: $DEPLOY_ENV"
exit 1
return
fi

echo "${IPFS_GATEWAY}"
2 changes: 1 addition & 1 deletion script/get-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ elif [ "$DEPLOY_ENV" = "TESTNET" ]; then
REGISTRY=wa.dev
else
echo "Unknown DEPLOY_ENV: $DEPLOY_ENV"
exit 1
return
fi

echo "${REGISTRY}"
2 changes: 1 addition & 1 deletion script/get-rpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ elif [ "$DEPLOY_ENV" = "TESTNET" ]; then
RPC_URL=$(grep "^TESTNET_RPC_URL=" .env)
else
echo "Unknown DEPLOY_ENV: $DEPLOY_ENV"
exit 1
return
fi

echo "${RPC_URL}" | cut -d '=' -f2
2 changes: 1 addition & 1 deletion script/get-wasi-namespace.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [ -z "$REGISTRY" ]; then
echo "REGISTRY is not set. Please set the REGISTRY environment variable." && exit 1
echo "REGISTRY is not set. Please set the REGISTRY environment variable." && return
fi

# ===
Expand Down
10 changes: 5 additions & 5 deletions script/upload-to-wasi-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

export REGISTRY=`bash ./script/get-registry.sh`
if [ -z "$REGISTRY" ]; then
echo "REGISTRY is not set. Please set the REGISTRY environment variable." && exit 1
echo "REGISTRY is not set. Please set the REGISTRY environment variable." && return
fi
export PKG_NAMESPACE=`bash ./script/get-wasi-namespace.sh`
if [ -z "$PKG_NAMESPACE" ]; then
echo "PKG_NAMESPACE is not set. Please set the PKG_NAMESPACE environment variable." && exit 1
echo "PKG_NAMESPACE is not set. Please set the PKG_NAMESPACE environment variable." && return
fi


if [ -z "$PKG_NAME" ]; then
echo "PKG_NAME is not set. Please set the PKG_NAME environment variable." && exit 1
echo "PKG_NAME is not set. Please set the PKG_NAME environment variable." && return
fi
if [ -z "$PKG_VERSION" ]; then
echo "PKG_VERSION is not set. Please set the PKG_VERSION environment variable." && exit 1
echo "PKG_VERSION is not set. Please set the PKG_VERSION environment variable." && return
fi
if [ -z "$COMPONENT_FILENAME" ]; then
echo "COMPONENT_FILENAME is not set. Please set the COMPONENT_FILENAME environment variable." && exit 1
echo "COMPONENT_FILENAME is not set. Please set the COMPONENT_FILENAME environment variable." && return
fi

# ===
Expand Down
Loading