Skip to content

An auxiliary service designed to be an entrypoint for submitting transactions from several services by one account into rarimo-core, utilizing queuing mechanism

License

Notifications You must be signed in to change notification settings

rarimo/broadcaster-svc

Repository files navigation

broadcaster-svc

License: MIT

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

About

An auxiliary service designed to be an entrypoint for submitting transactions from several services by one account into rarimo-core, utilizing queuing mechanism

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages