Skip to content

Commit bbaab6c

Browse files
committed
wasi-exec override CMC ID
1 parent 8db94d6 commit bbaab6c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RPC_URL?=http://localhost:8545
1616
SERVICE_MANAGER_ADDR?=`jq -r '.eigen_service_managers.local | .[-1]' .docker/deployments.json`
1717
SERVICE_TRIGGER_ADDR?=`jq -r '.trigger' "./.docker/script_deploy.json"`
1818
SERVICE_SUBMISSION_ADDR?=`jq -r '.service_handler' "./.docker/script_deploy.json"`
19+
COIN_MARKET_CAP_ID?=1
1920

2021
## build: building the project
2122
build: _build_forge wasi-build
@@ -29,10 +30,11 @@ wasi-build:
2930
@mkdir -p ./compiled
3031
@cp ./target/wasm32-wasip1/release/*.wasm ./compiled/
3132

33+
## wasi-exec: executing the WAVS wasi component(s) | COMPONENT_FILENAME, COIN_MARKET_CAP_ID
3234
wasi-exec:
3335
@$(WAVS_CMD) exec --log-level=info --data /data/.docker --home /data \
3436
--component "/data/compiled/${COMPONENT_FILENAME}" \
35-
--input `cast format-bytes32-string 1`
37+
--input `cast format-bytes32-string $(COIN_MARKET_CAP_ID)`
3638

3739
## update-submodules: update the git submodules
3840
update-submodules:
@@ -100,7 +102,6 @@ deploy-service:
100102
--service-config ${SERVICE_CONFIG}
101103

102104
## trigger-service: triggering the service | SERVICE_TRIGGER_ADDR, COIN_MARKET_CAP_ID, RPC_URL
103-
COIN_MARKET_CAP_ID?=1
104105
trigger-service:
105106
@forge script ./script/Trigger.s.sol ${SERVICE_TRIGGER_ADDR} ${COIN_MARKET_CAP_ID} --sig "run(string,string)" --rpc-url $(RPC_URL) --broadcast -v 4
106107

0 commit comments

Comments
 (0)