An open API service indexing awesome lists of open source software.

https://github.com/threefoldtech/zos-update-worker


https://github.com/threefoldtech/zos-update-worker

Last synced: about 2 months ago
JSON representation

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"},
}
```