sol-saver-svc

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 2 Imported by: 0

README

sol-saver-svc

Saver service (oracle) to observe Solana bridge program deposit events.

Configuration

To run that service you need a configuration file config.yaml with the following structure:

log:
   disable_sentry: true
   level: debug
listener:
   addr: :8000
rpc:
   url: "" # solana node address
ws:
   url: "" # solana node address

listen:
   chain: Solana
   from_tx: ""
   program_id: ""
broadcaster:
   addr: "ip:8000" # broadcaster service address
   sender_account: "" # account used in the broadcaster service
core:
   addr: tcp://ip:26657 # your rarimo node address
cosmos:
   addr: "ip:9090" # your rarimo node address
subscriber:
   min_retry_period: 1s
   max_retry_period: 10s

Also, some environment variables is required to run:

- name: KV_VIPER_FILE
  value: /config/config.yaml is the path to your config file

Run

  • Vote mode:
sol-saver-svc run voter
  • Saver mode
sol-saver-svc run saver
  • Full mode (saver + voter)
sol-saver-svc run service
  • Catchup old transactions from Solana
sol-saver-svc run saver-catchup

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