Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

threefoldtech/zos-update-worker

Repository files navigation

zos-update-worker

A worker to get the version set on the chain with the substrate-client with a specific interval (for example: 10 mins) for mainnet, testnet, and qanet

How to use

  • Get the binary

Download the latest from the releases page

  • Run the worker

After downloading the binary

sudo cp zos-update-worker /usr/local/bin
zos-update-worker
  • you can run the command with:
zos-update-worker --src=tf-autobuilder --dst=tf-zos --interval=10 --main-url=wss://tfchain.grid.tf/ws --main-url=wss://tfchain.grid.tf/ws --test-url=wss://tfchain.test.grid.tf/ws --test-url=wss://tfchain.test.grid.tf/ws --qa-url=wss://tfchain.qa.grid.tf/ws --qa-url=wss://tfchain.qa.grid.tf/ws

Test

make test

Coverage

make coverage

Substrate URLs

SUBSTRATE_URLS := map[string][]string{
 "qa":         {"wss://tfchain.qa.grid.tf/ws"},
 "testing":    {"wss://tfchain.test.grid.tf/ws"},
 "production": {"wss://tfchain.grid.tf/ws"},
}