1. Install
Copy sudo apt-get update
sudo apt-get install -y make gcc jq
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add β
sudo add-apt-repository βdeb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stableβ
apt-cache policy docker-ce
sudo apt install docker-ce -y
Copy git clone https://github.com/allora-network/allora-huggingface-walkthrough
cd allora-huggingface-walkthrough
mkdir -p worker-data
chmod -R 777 worker-data
cp config.example.json config.json
Copy {
"wallet": {
"addressKeyName": "test",
"addressRestoreMnemonic": "<your mnemoric phase>",
"alloraHomeDir": "/root/.allorad",
"gas": "1000000",
"gasAdjustment": 1.0,
"nodeRpc": "https://allora-rpc.testnet-1.testnet.allora.network/",
"maxRetries": 1,
"delay": 1,
"submitTx": false
},
"worker": [
{
"topicId": 1,
"inferenceEntrypointName": "api-worker-reputer",
"loopSeconds": 5,
"parameters": {
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
"Token": "ETH"
}
},
{
"topicId": 3,
"inferenceEntrypointName": "api-worker-reputer",
"loopSeconds": 7,
"parameters": {
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
"Token": "BTC"
}
},
{
"topicId": 5,
"inferenceEntrypointName": "api-worker-reputer",
"loopSeconds": 9,
"parameters": {
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
"Token": "SOL"
}
},
{
"topicId": 7,
"inferenceEntrypointName": "api-worker-reputer",
"loopSeconds": 5,
"parameters": {
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
"Token": "ETH"
}
},
{
"topicId": 8,
"inferenceEntrypointName": "api-worker-reputer",
"loopSeconds": 7,
"parameters": {
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
"Token": "BNB"
}
},
{
"topicId": 9,
"inferenceEntrypointName": "api-worker-reputer",
"loopSeconds": 9,
"parameters": {
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
"Token": "ARB"
}
}
]
}
Copy chmod +x init.config
./init.config
Copy docker compose up --build
Add Allora chain at keplr wallet . Check uALLO token number if it increases, it shows you have received reward Check Txn number you have completed here :