From 1c1fee5a9dccaa221745b8bff1791218710576fd Mon Sep 17 00:00:00 2001 From: Diego Campo Date: Fri, 9 Aug 2024 19:23:24 +0200 Subject: [PATCH] set inference as node in the example --- .gitignore | 3 ++- config.example.json | 2 +- worker-data/env_file | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 5db6f87..97056b3 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ inference-data config.json env -env_file \ No newline at end of file +env_file +.env \ No newline at end of file diff --git a/config.example.json b/config.example.json index e22ab8b..b53555a 100644 --- a/config.example.json +++ b/config.example.json @@ -16,7 +16,7 @@ "inferenceEntrypointName": "api-worker-reputer", "loopSeconds": 5, "parameters": { - "InferenceEndpoint": "http://source:8000/inference/{Token}", + "InferenceEndpoint": "http://inference:8000/inference/{Token}", "Token": "ETH" } } diff --git a/worker-data/env_file b/worker-data/env_file index 5285859..c5ab53a 100644 --- a/worker-data/env_file +++ b/worker-data/env_file @@ -1,4 +1,3 @@ -ALLORA_OFFCHAIN_NODE_CONFIG_JSON='{"wallet":{"addressKeyName":"basic-coin-prediction-offchain-node","addressRestoreMnemonic":"rich note fetch lava bless snake delay theme era anger ritual sea pluck neck hazard dish talk ranch trophy clap fancy human divide gun","addressAccountPassphrase":"secret","alloraHomeDir":"","gas":"1000000","gasAdjustment":1,"nodeRpc":"https://allora-rpc.devnet.behindthecurtain.xyz","maxRetries":1,"minDelay":1,"maxDelay":2,"submitTx":false},"worker":[{"topicId":1,"inferenceEntrypointName":"api-worker-reputer","loopSeconds":5,"parameters":{"InferenceEndpoint":"http://inference:8000/inference/{Token}","Token":"ETH"}}]}' -ALLORA_OFFCHAIN_ACCOUNT_ADDRESS=allo14wkkdeg93mdc0sd770z9p4mpjz7w9mysz328um -NAME=basic-coin-prediction-offchain-node +ALLORA_OFFCHAIN_NODE_CONFIG_JSON='{"wallet":{"addressKeyName":"test-basic","addressRestoreMnemonic":"your mnemonic will go here","alloraHomeDir":"","gas":"1000000","gasAdjustment":1,"nodeRpc":"https://allora-rpc.devnet.behindthecurtain.xyz","maxRetries":1,"delay":1,"submitTx":false},"worker":[{"topicId":1,"inferenceEntrypointName":"api-worker-reputer","loopSeconds":5,"parameters":{"InferenceEndpoint":"http://inference:8000/inference/{Token}","Token":"ETH"}}]}' +NAME=test-basic ENV_LOADED=true