Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rarimo/sol-saver-svc
Decentralized Oracle service designed to observe Rarimo bridge contract on Solana
https://github.com/rarimo/sol-saver-svc
go solana
Last synced: 22 days ago
JSON representation
Decentralized Oracle service designed to observe Rarimo bridge contract on Solana
- Host: GitHub
- URL: https://github.com/rarimo/sol-saver-svc
- Owner: rarimo
- License: mit
- Created: 2023-10-05T10:05:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T16:20:32.000Z (over 1 year ago)
- Last Synced: 2024-11-18T18:07:44.869Z (3 months ago)
- Topics: go, solana
- Language: Go
- Homepage:
- Size: 5.52 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sol-saver-svc
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
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:
```yaml
log:
disable_sentry: true
level: debug
listener:
addr: :8000
rpc:
url: "" # solana node address
ws:
url: "" # solana node addresslisten:
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:
```yaml
- name: KV_VIPER_FILE
value: /config/config.yaml is the path to your config file
```## Run
* Vote mode:
```shell
sol-saver-svc run voter
```* Saver mode
```shell
sol-saver-svc run saver
```* Full mode (saver + voter)
```shell
sol-saver-svc run service
```* Catchup old transactions from Solana
```shell
sol-saver-svc run saver-catchup
```