From 20ae1db9fdaf8d3f2567cc2b393161cb3548717d Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Fri, 6 Sep 2024 15:23:36 +0300 Subject: [PATCH] update env/cfg --- .env | 7 +++++++ .env.example | 7 ------- .gitignore | 2 -- config.example.json => config.json | 12 ++++++------ 4 files changed, 13 insertions(+), 15 deletions(-) create mode 100644 .env delete mode 100644 .env.example rename config.example.json => config.json (65%) diff --git a/.env b/.env new file mode 100644 index 0000000..a28b74c --- /dev/null +++ b/.env @@ -0,0 +1,7 @@ +TOKEN=###TOKEN### +TRAINING_DAYS=###TRAINING_DAYS### +TIMEFRAME=###TIMEFRAME### +MODEL=###MODEL### +REGION=EU +DATA_PROVIDER=###DATA_PROVIDER### +CG_API_KEY=###CG_API_KEY### \ No newline at end of file diff --git a/.env.example b/.env.example deleted file mode 100644 index 3ef2105..0000000 --- a/.env.example +++ /dev/null @@ -1,7 +0,0 @@ -TOKEN= -TRAINING_DAYS= -TIMEFRAME= -MODEL= -REGION= -DATA_PROVIDER= -CG_API_KEY= \ No newline at end of file diff --git a/.gitignore b/.gitignore index 87e00f2..1148020 100644 --- a/.gitignore +++ b/.gitignore @@ -8,12 +8,10 @@ logs/* inference-data worker-data -config.json /data **/*.venv* **/.cache -**/.env **/env_file **/.gitkeep* **/*.csv diff --git a/config.example.json b/config.json similarity index 65% rename from config.example.json rename to config.json index 802310d..51bee9e 100644 --- a/config.example.json +++ b/config.json @@ -1,13 +1,13 @@ { "wallet": { - "addressKeyName": "test", - "addressRestoreMnemonic": "", + "addressKeyName": "###WALLET###", + "addressRestoreMnemonic": "###MNEMONIC###", "alloraHomeDir": "", "gas": "auto", "gasAdjustment": 1.5, - "nodeRpc": "https://allora-rpc.testnet.allora.network", - "maxRetries": 1, - "delay": 1, + "nodeRpc": "###RPC_URL###", + "maxRetries": 5, + "delay": 10, "submitTx": true }, "worker": [ @@ -17,7 +17,7 @@ "loopSeconds": 5, "parameters": { "InferenceEndpoint": "http://inference:8000/inference/{Token}", - "Token": "ETH" + "Token": "###TOKEN###" } } ]