evm-saver-svc

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 2 Imported by: 0

README

evm-saver-svc

Decentralized Oracle service to observe Rarimo bridge smart contract deposit events and submit them to Rarimo core.

Configuration

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

log:
  disable_sentry: true
  level: debug

# Port listen requests on
listener:
  addr: :8000

# EVM bridge contract configuration
evm:
  contract_addr: "0xcbc1...df785D12bE"
  rpc: "wss://goerli.infura.io/ws/v3/c29...9"
  start_from_block: # zero if from current
  block_window: # amount of blocks should appear before event becomes fetched
  network_name: Goerli # according to Rarimo chain config 

broadcaster:
  addr: "broadcaster:80"
  sender_account: "rarimo1g...ztx"

core:
  addr: tcp://validator:26657

cosmos:
  addr: validator:9090

subscriber:
  min_retry_period: 10s
  max_retry_period: 10s

profiler:
  enabled: true
  addr: :8080

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-saver-svc run voter

To run in full mode:

evm-saver-svc run all

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cli

Jump to

Keyboard shortcuts

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