-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I had an idea and I want to discuss if it makes sense or not:
Oracles are data feeds that bring data from off-the-blockchain (off-chain) data sources and put it on the blockchain (on-chain) for smart contracts to use.
I wonder if that might be possible to be done in Gno being managed in a decentralized way.
Example
Let's say that we have a DAO that is managing the interface for weather data. This DAO is in charge of keeping and updating the weather oracle data structure:
type WeatherOracleRequest struct {
Lat string
Lon string
Units string
}
type WeatherOracleResponse struct {
DataSource string
Lat string
Lon string
Timezone string
Temp int
TempFeelsLike int
Humidity int
Clouds int
WindSpeed int
[...]
}
These structures will be used by DAOs interested in creating an oracle service providing weather data.
With contract-to-contract communication, we should be able to create a package or realm that will fetch data from all registered oracles, aggregates them, and give an answer to the user's realm.
To incentivize data correctness, the main DAO realm that is aggregating the responses can keep a correctness ratio per oracle.
Still a lot of corner cases to cover, but in general, what do you think about this idea?