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
worker-data
config.json
/data
**/*.venv*
**/.cache
**/.env
**/env_file
**/.gitkeep*
**/*.csv

View File

@ -1,13 +1,13 @@
{
"wallet": {
"addressKeyName": "###WALLET###",
"addressRestoreMnemonic": "###MNEMONIC###",
"addressKeyName": "test",
"addressRestoreMnemonic": "",
"alloraHomeDir": "",
"gas": "auto",
"gasAdjustment": 1.5,
"nodeRpc": "###RPC_URL###",
"maxRetries": 5,
"delay": 10,
"nodeRpc": "https://allora-rpc.testnet.allora.network",
"maxRetries": 1,
"delay": 1,
"submitTx": true
},
"worker": [
@ -17,7 +17,7 @@
"loopSeconds": 5,
"parameters": {
"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