Enabling Oracles
Overview
This document outlines the procedures for enabling a oracle feeding on a Minitia.
The Initia team developed a custom implementation of Slinky for L2 to use L1's oracle data feed. The high-level architecture involves relaying the oracle vote extension feed from L1 to L2 and using the IBC client state to verify this vote extension.
Tutorial
Step 1: Connect with Minitia
If you used minitia launch
command, you can skip this step.
To enable the Slinky Oracle on your L2, you need to prepare an IBC client ID that is connected to the initial L1. See Hermes Relayer (IBC).
For example,
Other than utilizing CLI, you can also use the OPinit bots. See Setting Up OPinit Bots.
Step 2: Add Currency Pairs
Although Minitias receive the oracle data through relayers, the currency_pair
data still should be registered on a Minitia in order to use the oracle data from the Minitia.
For example,
If the chain is yet to be created, the genesis setting is also available.
Step 3: Check Prices
This command retrieves the latest price data for Bitcoin in USD, as fetched by the oracle.
Last updated