Compare commits

..

No commits in common. "9ba8bba8f52ac9f162e8931165f03414ecda82be" and "ef4b04b30bf7fc1edcf9efc59830e82f524a39c2" have entirely different histories.

5 changed files with 15 additions and 33 deletions

7
.env
View File

@ -1,7 +0,0 @@
TOKEN=###TOKEN###
TRAINING_DAYS=###TRAINING_DAYS###
TIMEFRAME=###TIMEFRAME###
MODEL=###MODEL###
REGION=EU
DATA_PROVIDER=###DATA_PROVIDER###
CG_API_KEY=###CG_API_KEY###

7
.env.example Normal file
View File

@ -0,0 +1,7 @@
TOKEN=
TRAINING_DAYS=
TIMEFRAME=
MODEL=
REGION=
DATA_PROVIDER=
CG_API_KEY=

2
.gitignore vendored
View File

@ -8,10 +8,12 @@ logs/*
inference-data inference-data
worker-data worker-data
config.json
/data /data
**/*.venv* **/*.venv*
**/.cache **/.cache
**/.env
**/env_file **/env_file
**/.gitkeep* **/.gitkeep*
**/*.csv **/*.csv

View File

@ -1,13 +1,13 @@
{ {
"wallet": { "wallet": {
"addressKeyName": "###WALLET###", "addressKeyName": "test",
"addressRestoreMnemonic": "###MNEMONIC###", "addressRestoreMnemonic": "",
"alloraHomeDir": "", "alloraHomeDir": "",
"gas": "auto", "gas": "auto",
"gasAdjustment": 1.5, "gasAdjustment": 1.5,
"nodeRpc": "###RPC_URL###", "nodeRpc": "https://allora-rpc.testnet.allora.network",
"maxRetries": 5, "maxRetries": 1,
"delay": 10, "delay": 1,
"submitTx": true "submitTx": true
}, },
"worker": [ "worker": [
@ -17,7 +17,7 @@
"loopSeconds": 5, "loopSeconds": 5,
"parameters": { "parameters": {
"InferenceEndpoint": "http://inference:8000/inference/{Token}", "InferenceEndpoint": "http://inference:8000/inference/{Token}",
"Token": "###TOKEN###" "Token": "ETH"
} }
} }
] ]

View File

@ -1,20 +0,0 @@
#!/usr/bin/env bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <PARAMETER> <NEW_VALUE>"
exit 1
fi
PARAMETER=$1
NEW_VALUE=$2
# Список файлов
FILES=(
"./config.json"
".env"
)
for FILE in "${FILES[@]}"; do
EXPANDED_FILE=$(eval echo "$FILE")
sed -i "s|###$PARAMETER###|$NEW_VALUE|g" "$EXPANDED_FILE"
done