https://github.com/threefoldtech/zos-update-worker
https://github.com/threefoldtech/zos-update-worker
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/threefoldtech/zos-update-worker
- Owner: threefoldtech
- License: apache-2.0
- Created: 2022-11-16T10:38:28.000Z (over 2 years ago)
- Default Branch: development
- Last Pushed: 2023-10-12T04:07:21.000Z (over 1 year ago)
- Last Synced: 2023-10-12T20:50:43.091Z (over 1 year ago)
- Language: Go
- Size: 147 KB
- Stars: 0
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/threefoldtech/zos-update-worker/releases)
- Run the worker
After downloading the binary
```bash
sudo cp zos-update-worker /usr/local/bin
zos-update-worker
```- you can run the command with:
```bash
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
```bash
make test
```## Coverage
```bash
make coverage
```## Substrate URLs
```go
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"},
}
```