Skip to content

Commit 5d1d4a5

Browse files
authored
fix: zsh support (#206)
* eval in build service * remove or true
1 parent 52701d5 commit 5d1d4a5

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ source script/deploy-contracts.sh
264264
Deploy the compiled component with the contract information from the previous steps. Review the [makefile](./Makefile) for more details and configuration options.`TRIGGER_EVENT` is the event that the trigger contract emits and WAVS watches for. By altering `SERVICE_TRIGGER_ADDR` you can watch events for contracts others have deployed.
265265
266266
```bash docci-delay-per-cmd=3
267-
268267
export COMPONENT_FILENAME=evm_price_oracle.wasm
269268
export PKG_NAME="evmrustoracle"
270269
export PKG_VERSION="0.1.0"

script/build-service.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,29 +53,29 @@ fi
5353

5454
TRIGGER_EVENT_HASH=`cast keccak ${TRIGGER_EVENT}`
5555

56-
SERVICE_ID=`$BASE_CMD init --name demo | jq -r .service.id`
56+
SERVICE_ID=`eval "${BASE_CMD} init --name demo" | jq -r .service.id`
5757
echo "Service ID: ${SERVICE_ID}"
5858

59-
WORKFLOW_ID=`$BASE_CMD workflow add | jq -r .workflow_id`
59+
WORKFLOW_ID=`eval "$BASE_CMD workflow add" | jq -r .workflow_id`
6060
echo "Workflow ID: ${WORKFLOW_ID}"
6161

62-
$BASE_CMD workflow trigger --id ${WORKFLOW_ID} set-evm --address ${TRIGGER_ADDRESS} --chain-name ${TRIGGER_CHAIN} --event-hash ${TRIGGER_EVENT_HASH} > /dev/null
62+
eval "$BASE_CMD workflow trigger --id ${WORKFLOW_ID} set-evm --address ${TRIGGER_ADDRESS} --chain-name ${TRIGGER_CHAIN} --event-hash ${TRIGGER_EVENT_HASH}" > /dev/null
6363

6464
# If no aggregator is set, use the default
6565
SUB_CMD="set-evm"
6666
if [ -n "$AGGREGATOR_URL" ]; then
6767
SUB_CMD="set-aggregator --url ${AGGREGATOR_URL}"
6868
fi
69-
$BASE_CMD workflow submit --id ${WORKFLOW_ID} ${SUB_CMD} --address ${SUBMIT_ADDRESS} --chain-name ${SUBMIT_CHAIN} --max-gas ${MAX_GAS} > /dev/null
69+
eval "$BASE_CMD workflow submit --id ${WORKFLOW_ID} ${SUB_CMD} --address ${SUBMIT_ADDRESS} --chain-name ${SUBMIT_CHAIN} --max-gas ${MAX_GAS}" > /dev/null
7070

71-
$BASE_CMD workflow component --id ${WORKFLOW_ID} set-source-registry --domain ${REGISTRY} --package ${PKG_NAMESPACE}:${PKG_NAME} --version ${PKG_VERSION}
71+
eval "$BASE_CMD workflow component --id ${WORKFLOW_ID} set-source-registry --domain ${REGISTRY} --package ${PKG_NAMESPACE}:${PKG_NAME} --version ${PKG_VERSION}"
7272

73-
$BASE_CMD workflow component --id ${WORKFLOW_ID} permissions --http-hosts '*' --file-system true > /dev/null
74-
$BASE_CMD workflow component --id ${WORKFLOW_ID} time-limit --seconds 30 > /dev/null
75-
$BASE_CMD workflow component --id ${WORKFLOW_ID} env --values WAVS_ENV_SOME_SECRET > /dev/null
76-
$BASE_CMD workflow component --id ${WORKFLOW_ID} config --values 'key=value,key2=value2' > /dev/null
73+
eval "$BASE_CMD workflow component --id ${WORKFLOW_ID} permissions --http-hosts '*' --file-system true" > /dev/null
74+
eval "$BASE_CMD workflow component --id ${WORKFLOW_ID} time-limit --seconds 30" > /dev/null
75+
eval "$BASE_CMD workflow component --id ${WORKFLOW_ID} env --values WAVS_ENV_SOME_SECRET" > /dev/null
76+
eval "$BASE_CMD workflow component --id ${WORKFLOW_ID} config --values 'key=value,key2=value2'" > /dev/null
7777

78-
$BASE_CMD manager set-evm --chain-name ${SUBMIT_CHAIN} --address `cast --to-checksum ${WAVS_SERVICE_MANAGER_ADDRESS}` > /dev/null
79-
$BASE_CMD validate > /dev/null
78+
eval "$BASE_CMD manager set-evm --chain-name ${SUBMIT_CHAIN} --address `cast --to-checksum ${WAVS_SERVICE_MANAGER_ADDRESS}`" > /dev/null
79+
eval "$BASE_CMD validate" > /dev/null
8080

8181
echo "Configuration file created ${FILE_LOCATION}. Watching events from '${TRIGGER_CHAIN}' & submitting to '${SUBMIT_CHAIN}'."

0 commit comments

Comments
 (0)