Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.
- rm -rf allora.sh allora-chain/ basic-coin-prediction-node/
- 2.
- wget https://raw.githubusercontent.com/dxzenith/allora-worker-node/main/allora.sh && chmod +x allora.sh && ./allora.sh
- 3.
- nano docker-compose.yml
- 4.
- docker compose build
- docker compose down
- docker compose up -d
- 5.
- network_height=$(curl -s -X 'GET' 'https://allora-rpc.testnet-1.testnet.allora.network/abci_info?' -H 'accept: application/json' | jq -r .result.response.last_block_height) && \
- curl --location 'http://localhost:6000/api/v1/functions/execute' --header 'Content-Type: application/json' --data '{
- "function_id": "bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm",
- "method": "allora-inference-function.wasm",
- "parameters": null,
- "topic": "5",
- "config": {
- "env_vars": [
- {
- "name": "BLS_REQUEST_PATH",
- "value": "/api"
- },
- {
- "name": "ALLORA_ARG_PARAMS",
- "value": "ETH"
- },
- {
- "name": "ALLORA_BLOCK_HEIGHT_CURRENT",
- "value": "'"${network_height}"'"
- }
- ],
- "number_of_nodes": -1,
- "timeout": 10
- }
- }' | jq
- 6.
- network_height=$(curl -s -X 'GET' 'https://allora-rpc.testnet-1.testnet.allora.network/abci_info?' -H 'accept: application/json' | jq -r .result.response.last_block_height) && \
- curl --location 'http://localhost:6000/api/v1/functions/execute' --header 'Content-Type: application/json' --data '{
- "function_id": "bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm",
- "method": "allora-inference-function.wasm",
- "parameters": null,
- "topic": "6",
- "config": {
- "env_vars": [
- {
- "name": "BLS_REQUEST_PATH",
- "value": "/api"
- },
- {
- "name": "ALLORA_ARG_PARAMS",
- "value": "ETH"
- },
- {
- "name": "ALLORA_BLOCK_HEIGHT_CURRENT",
- "value": "'"${network_height}"'"
- }
- ],
- "number_of_nodes": -1,
- "timeout": 10
- }
- }' | jq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement