-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from rarimo/feature/upgrade-v1.0.8
Feature: Core upgrade v1.1.0
- Loading branch information
Showing
4 changed files
with
107 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,62 @@ | ||
# broadcaster-svc | ||
|
||
An auxiliary service designed to efficiently store events from different blockchains into the rarimo-core, utilizing queuing mechanism. | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
|
||
## Build | ||
An auxiliary service designed to efficiently store events from different blockchains into the rarimo-core, utilizing | ||
queuing mechanism. Frequently used in a couple with *-saver services to submit their transactions. | ||
|
||
To build the service image locally, there is a shell script `build.sh` that can be used to build the image: | ||
## Build | ||
|
||
```bash | ||
sh build.sh | ||
To build the service image locally execute the following command (make sure shat project root contains the vendor package): | ||
```shell | ||
docker build . -t broadcaster-svc:latest | ||
``` | ||
|
||
It will build the image with the tag `broadcaster:latest` which could be used to run the service locally via | ||
Docker or Docker-Compose. | ||
|
||
## License | ||
[MIT](./LICENSE) | ||
Also, use the following command to build the binary: | ||
```shell | ||
go build . | ||
``` | ||
|
||
## Configuration | ||
|
||
The following configuration .yaml file should be provided to launch your broadcaster service: | ||
```yaml | ||
log: | ||
disable_sentry: true | ||
level: debug | ||
|
||
listener: | ||
addr: :80 | ||
|
||
## PostgreSQL database connection | ||
db: | ||
url: "postgres://broadcaster:broadcaster@broadcaster-db/broadcaster?sslmode=disable" | ||
|
||
key: | ||
## Sender Rarimo private key in 0x.. hex format | ||
sender_prv_hex: "0x9...caa" | ||
chain_id: "rarimo_201411-2" | ||
# Base coin name to pay fee with | ||
coin_name: "urmo" | ||
|
||
cosmos: | ||
addr: "validator:9090" | ||
|
||
``` | ||
|
||
You will also need some environment variables to run: | ||
|
||
```yaml | ||
- name: KV_VIPER_FILE | ||
value: /config/config.yaml # The path to your config file | ||
``` | ||
## Run | ||
To start the service (in vote mode) use the following command: | ||
```shell | ||
evm-identity-saver-svc run state-update-voter | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.