broadcaster-svc

command module
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 2 Imported by: 0

README

broadcaster-svc

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.

Build

To build the service image locally execute the following command (make sure shat project root contains the vendor package):

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.

Also, use the following command to build the binary:

go build .

Configuration

The following configuration .yaml file should be provided to launch your broadcaster service:

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:

- 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:

evm-identity-saver-svc run state-update-voter

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cli
data
Package data contains generated code for schema 'public'.
Package data contains generated code for schema 'public'.
data/pg
Package pg contains generated code for schema 'public'.
Package pg contains generated code for schema 'public'.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL