Saver service (oracle) to observe Solana bridge program deposit events.
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
- 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