cristhedev / genlayer builds

Oracle Kit

A shared on-chain price and weather hub, plus a relay that keeps API keys off-chain while validators still agree byte for byte.

contract 0x8D89…0F42 ↗network testnet bradburyrelay relay.cristhedev.com ↗source ↗docs →

Feeds on chain

FeedValueSourcesUpdated
Reading the contract…

Each update is one transaction: validators fetch the sources independently and only publish if they agree (prices within 1%, venues within 3% of each other). Updates are limited to one per minute per feed.

gl-relay, live

The relay holds the OpenWeather key. Contracts call it with a time bucket, so every validator gets the same cached bytes and can compare with strict equality.

  1. 01Request

    Anyone calls update_price or update_weather. Sources are fixed in the contract.

  2. 02Agree

    The leader fetches Coinbase, Kraken and Bitstamp (or Open-Meteo). Each validator re-fetches and checks the median is within tolerance.

  3. 03Read

    Other contracts call get_price(pair, max_age) and get a scaled integer, or an error if the value is stale.