Terra Oracle Feeder
This is the Go implementation of terra-money/oracle-feeder
This contains the Oracle feeder software that is used for periodically submitting oracle votes for the exchange rate of the different assets offered by the oracle chain. This implementation can be used as-is, but also can serve as a reference for creating your own custom oracle feeder.
Overview
This solution has 2 components:
-
- Obtain information from various data sources (exchanges, forex data, etc),
- Model the data,
- Enable a url to query the data,
-
- Reads the exchange rates data from a data source (
price-server
) - Periodically submits vote and prevote messages following the oracle voting procedure
- Reads the exchange rates data from a data source (
Prerequisites
- Install Go 1.20+
Instructions
- Clone this repository
git clone https://github.com/terra-money/oracle-feeder-go
cd oracle-feeder-go
- Configure and launch
price-server
, following instructions here.
go build cmd/price-server/price_server.go
./price_server
- Configure and launch
feeder
, following instructions here.
cd feeder
go build cmd/feeder/feeder.go
TODO ...