From 6f92ea159001056aee60c7aa834c63a40b5d7662 Mon Sep 17 00:00:00 2001 From: Khawla Date: Thu, 5 Feb 2026 10:21:24 +0400 Subject: [PATCH 1/3] docs: add DIA to oracles --- app-developers/tools/data/oracles.mdx | 74 +++++++++++++++++---------- 1 file changed, 47 insertions(+), 27 deletions(-) diff --git a/app-developers/tools/data/oracles.mdx b/app-developers/tools/data/oracles.mdx index 56a9ef83a..c14726313 100644 --- a/app-developers/tools/data/oracles.mdx +++ b/app-developers/tools/data/oracles.mdx @@ -1,17 +1,23 @@ --- title: Oracles -description: Learn about different oracles and how you can use them to access offchain data +description: + Learn about different oracles and how you can use them to access offchain data onchain as well as random number generation. --- + - This page includes providers that meet specific [inclusion criteria](#inclusion-criteria), as outlined below. Please visit the [community oracles page](https://github.com/ethereum-optimism/developers/blob/main/community/tools/oracles.md) for an additional listing of third-party Oracles. + This page includes providers that meet specific [inclusion + criteria](#inclusion-criteria), as outlined below. Please visit the [community + oracles + page](https://github.com/ethereum-optimism/developers/blob/main/community/tools/oracles.md) + for an additional listing of third-party Oracles. This reference guide lists different Oracles you can use when building on Optimism. [Oracles](https://ethereum.org/en/developers/docs/oracles/) provide offchain data onchain. This allows code running on a blockchain to access a wide variety of information. For example, a [stablecoin](https://ethereum.org/en/stablecoins/) that accepts ETH as collateral needs to know the ETH/USD exchange rate: -* How many stablecoins can we give a user for a given amount of ETH? -* Do we need to liquidate any deposits because they are under collateralized? +- How many stablecoins can we give a user for a given amount of ETH? +- Do we need to liquidate any deposits because they are under collateralized? ## Security and decentralization @@ -45,14 +51,14 @@ It can also calculate the total cost of a transaction for you before you send it This contract is a predeploy at address `0x420000000000000000000000000000000000000F`: -* [On OP Mainnet](https://explorer.optimism.io/address/0x420000000000000000000000000000000000000F#readContract) -* [On OP Sepolia](https://testnet-explorer.optimism.io/address/0x420000000000000000000000000000000000000F) +- [On OP Mainnet](https://explorer.optimism.io/address/0x420000000000000000000000000000000000000F#readContract) +- [On OP Sepolia](https://testnet-explorer.optimism.io/address/0x420000000000000000000000000000000000000F) This is a push Oracle. OP Mainnet (and the testnets) updates the gas price parameters onchain whenever those parameters change. The L1 gas price, which can be volatile, is only pushed once every 5 minutes, and each time can change only by up to 20%. -* [Blocknative](https://docs.blocknative.com/gas-prediction) provides real-time gas estimation powered by predictive modeling to forecast gas price distribution for select OP Stack chains, including OP Mainnet and Base. The [API](https://docs.blocknative.com/gas-prediction) is also available on Ethereum Mainnet to estimate base fee costs. +- [Blocknative](https://docs.blocknative.com/gas-prediction) provides real-time gas estimation powered by predictive modeling to forecast gas price distribution for select OP Stack chains, including OP Mainnet and Base. The [API](https://docs.blocknative.com/gas-prediction) is also available on Ethereum Mainnet to estimate base fee costs. ### API3 @@ -70,23 +76,23 @@ API3's QRNG provides dApps with truly random numbers based on quantum mechanics Chainlink powers verifiable applications and high-integrity markets for banking, DeFi, global trade, gaming, and other major sectors. Chainlink provides a number of [price feeds](https://docs.chain.link/docs/optimism-price-feeds/). -Those feeds are available on the production network @ [Op Mainnet](https://docs.chain.link/data-feeds/price-feeds/addresses?network=optimism\&page=1#optimism-mainnet). +Those feeds are available on the production network @ [Op Mainnet](https://docs.chain.link/data-feeds/price-feeds/addresses?network=optimism&page=1#optimism-mainnet). -* Data Feeds: Chainlink Data Feeds provide a secure, reliable, and decentralized source of off-chain data to power unique smart contract use cases for DeFi and beyond. -* Automation: Chainlink Automation is an ultra-reliable and performant smart contract automation solution enabling developers to quickly scale their operations in a verifiable, decentralized, and cost-efficient manner, to build next-generation apps. -* CCIP: Chainlink CCIP provides a secure interoperability protocol for powering token transfers and sending arbitrary messages cross-chain. +- Data Feeds: Chainlink Data Feeds provide a secure, reliable, and decentralized source of off-chain data to power unique smart contract use cases for DeFi and beyond. +- Automation: Chainlink Automation is an ultra-reliable and performant smart contract automation solution enabling developers to quickly scale their operations in a verifiable, decentralized, and cost-efficient manner, to build next-generation apps. +- CCIP: Chainlink CCIP provides a secure interoperability protocol for powering token transfers and sending arbitrary messages cross-chain. This is a push Oracle. See the [Using Data Feeds guide](https://docs.chain.link/docs/get-the-latest-price/) to learn how to use the Chainlink feeds. -* Chainlink VRF provides cryptographically secure randomness for blockchain-based applications. More details [here](https://chain.link/vrf) +- Chainlink VRF provides cryptographically secure randomness for blockchain-based applications. More details [here](https://chain.link/vrf) ### Chronicle The first Oracle on Ethereum, Chronicle's decentralized Oracle network was originally built within MakerDAO for the development of DAI and is now available to builders on OP Mainnet and the Superchain. -* **Data Feeds**: Builders can choose from 65+ data feeds, including crypto assets, yield rates, and RWAs. Chronicle's data is sourced via custom-built data models, only utilizing Tier 1 Primary Sources, such as the markets where tokens are actively traded, including Coinbase, Binance, Uniswap, and Curve. -* **Transparency & Integrity**: Chronicle's Oracle network is fully transparent and verifiable. Via [The Chronicle](https://chroniclelabs.org/dashboard/oracle/DAI/USD?blockchain=OPT\&txn=0x53e60e6e79eb938e5ca3ca6c56b0795e003dd6b3a17cfd810ca5042b3d33b680\&contract=0x104916d38828DA8B83a88A1775Aa058e1F0B1647), the data supply chain for any Oracle can be viewed in real-time and historically, including data sources and the identity of all Validators/Signers. Users can cryptographically challenge the integrity of every Oracle update using the 'verify' feature. Data is independently sourced by a [community of Validators](https://chroniclelabs.org/validators), including Gitcoin, Etherscan, Infura, DeFi Saver, and MakerDAO. -* **Gas Efficiency:** Pioneering the Schnorr-based Oracle architecture, Chronicle's Oracles use 60-80% less gas per update than other Oracle providers. This lowest cost per update allows Push Oracle updates to be made more regularly, ensuring more accurate and granular data reporting. +- **Data Feeds**: Builders can choose from 65+ data feeds, including crypto assets, yield rates, and RWAs. Chronicle's data is sourced via custom-built data models, only utilizing Tier 1 Primary Sources, such as the markets where tokens are actively traded, including Coinbase, Binance, Uniswap, and Curve. +- **Transparency & Integrity**: Chronicle's Oracle network is fully transparent and verifiable. Via [The Chronicle](https://chroniclelabs.org/dashboard/oracle/DAI/USD?blockchain=OPT&txn=0x53e60e6e79eb938e5ca3ca6c56b0795e003dd6b3a17cfd810ca5042b3d33b680&contract=0x104916d38828DA8B83a88A1775Aa058e1F0B1647), the data supply chain for any Oracle can be viewed in real-time and historically, including data sources and the identity of all Validators/Signers. Users can cryptographically challenge the integrity of every Oracle update using the 'verify' feature. Data is independently sourced by a [community of Validators](https://chroniclelabs.org/validators), including Gitcoin, Etherscan, Infura, DeFi Saver, and MakerDAO. +- **Gas Efficiency:** Pioneering the Schnorr-based Oracle architecture, Chronicle's Oracles use 60-80% less gas per update than other Oracle providers. This lowest cost per update allows Push Oracle updates to be made more regularly, ensuring more accurate and granular data reporting. Every Oracle implementation is customized to fit your needs. Implement one of our existing data models or contact Chronicle to develop custom Oracle data feeds via [Discord](https://discord.gg/CjgvJ9EspJ) or [Email](mailto:gm@chroniclelabs.org). Developers can dive deeper into Chronicle Protocol's architecture and unique design choices [via the docs](https://docs.chroniclelabs.org/). @@ -96,10 +102,10 @@ Every Oracle implementation is customized to fit your needs. Implement one of ou Gelato VRF (Verifiable Random Function) provides trustable randomness on EVM-compatible blockchains. Here's a brief overview: -* Contract Deployment: Use GelatoVRFConsumerBase.sol as an interface for requesting random numbers. -* Requesting Randomness: Emit the RequestedRandomness event to signal the need for a random number. -* Processing: Gelato VRF fetches the random number from Drand. -* Delivery: The fulfillRandomness function delivers the random number to the requesting contract. +- Contract Deployment: Use GelatoVRFConsumerBase.sol as an interface for requesting random numbers. +- Requesting Randomness: Emit the RequestedRandomness event to signal the need for a random number. +- Processing: Gelato VRF fetches the random number from Drand. +- Delivery: The fulfillRandomness function delivers the random number to the requesting contract. Ready to integrate? Head over to the [Gelato VRF Quick Start Guide](https://docs.gelato.network/web3-services/vrf/quick-start). @@ -107,13 +113,13 @@ Ready to integrate? Head over to the [Gelato VRF Quick Start Guide](https://docs The Pyth Network is a financial oracle network which delivers over 400 low-latency, high-fidelity price feeds across cryptocurrencies, FX pairs, equities, ETFs, and commodities. -* Pyth's price data is sourced from over [95 first-party sources](https://pyth.network/publishers) including exchanges, market makers, and financial services providers. -* Pyth [Price Feeds](https://www.pyth.network/developers/price-feed-ids) offer both the real-time spot price of the asset as well as an accompanying confidence interval band around that price -* The Pyth [TradingView](https://docs.pyth.network/guides/how-to-create-tradingview-charts) integration allows users to view and display Pyth prices on their own website and UI. +- Pyth's price data is sourced from over [95 first-party sources](https://pyth.network/publishers) including exchanges, market makers, and financial services providers. +- Pyth [Price Feeds](https://www.pyth.network/developers/price-feed-ids) offer both the real-time spot price of the asset as well as an accompanying confidence interval band around that price +- The Pyth [TradingView](https://docs.pyth.network/guides/how-to-create-tradingview-charts) integration allows users to view and display Pyth prices on their own website and UI. You can explore the full catalog of Pyth Price Feed IDs for [OP Mainnet and Sepolia (EVM Stable)](https://www.pyth.network/developers/price-feed-ids). -* Pyth Entropy allows developers to quickly and easily generate secure random numbers on the blockchain. More details [here](https://pyth.network/blog/secure-random-numbers-for-blockchains) +- Pyth Entropy allows developers to quickly and easily generate secure random numbers on the blockchain. More details [here](https://pyth.network/blog/secure-random-numbers-for-blockchains) ### RedStone @@ -121,12 +127,26 @@ You can explore the full catalog of Pyth Price Feed IDs for [OP Mainnet and Sepo Builders can choose how they want to consume the data among 3 dedicated models: -* [RedStone Core](https://docs.redstone.finance/docs/dapps/redstone-pull/) (pull oracle) - less than 10s update time, broad spectrum of feeds, best for most use cases. All [Core Price Feeds](https://app.redstone.finance/#/app/tokens) are available on OP Mainnet & OP Sepolia. -* [RedStone Classic](https://docs.redstone.finance/docs/dapps/redstone-push/) (push oracle) - for protocols designed for the traditional oracle interface, customizable heartbeat and deviation threshold. -* [Hybrid (push + push) ERC7412](https://docs.redstone.finance/docs/dapps/redstone-erc7412/) - specifically for Perps and Options, highest update frequency and front-running protection. +- [RedStone Core](https://docs.redstone.finance/docs/dapps/redstone-pull/) (pull oracle) - less than 10s update time, broad spectrum of feeds, best for most use cases. All [Core Price Feeds](https://app.redstone.finance/#/app/tokens) are available on OP Mainnet & OP Sepolia. +- [RedStone Classic](https://docs.redstone.finance/docs/dapps/redstone-push/) (push oracle) - for protocols designed for the traditional oracle interface, customizable heartbeat and deviation threshold. +- [Hybrid (push + push) ERC7412](https://docs.redstone.finance/docs/dapps/redstone-erc7412/) - specifically for Perps and Options, highest update frequency and front-running protection. Interested in integration? [Get in contact](https://discord.com/invite/PVxBZKFr46) with the RedStone team! +### DIA + +[DIA](https://www.diadata.org/) is a cross-chain, trustless oracle network delivering verifiable price feeds for Optimism. DIA sources raw trade data directly from primary markets and computes it onchain, ensuring complete transparency and data integrity. + +- Direct data sourcing from [100+ primary markets](https://www.diadata.org/app/source/defi/) eliminates intermediary risk. +- Complete onchain data verifiability from source, computation to consumption. +- Support for [20,000+ assets](https://www.diadata.org/app) across different asset classes. +- Customizable oracles tailored to each use case, in terms of sources, methodology, and update mechanisms. + +To get started: + +- Explore the [Optimism Oracle Integration Guide](https://www.diadata.org/docs/guides/chain-specific-guide/optimism) +- [Request a custom oracle](https://www.diadata.org/docs/guides/how-to-guides/request-a-custom-oracle) + ## Next steps -* Looking for other developer tools? See [developer tools overview](/app-developers/tools) to explore more options! +- Looking for other developer tools? See [developer tools overview](/app-developers/tools) to explore more options! From 144ee2268fcc8486a2a36aa355baf45bf54bb59f Mon Sep 17 00:00:00 2001 From: Khawla Date: Thu, 5 Feb 2026 10:23:09 +0400 Subject: [PATCH 2/3] docs: fix links --- app-developers/tools/data/oracles.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-developers/tools/data/oracles.mdx b/app-developers/tools/data/oracles.mdx index c14726313..6a65e5d73 100644 --- a/app-developers/tools/data/oracles.mdx +++ b/app-developers/tools/data/oracles.mdx @@ -144,8 +144,8 @@ Interested in integration? [Get in contact](https://discord.com/invite/PVxBZKFr4 To get started: -- Explore the [Optimism Oracle Integration Guide](https://www.diadata.org/docs/guides/chain-specific-guide/optimism) -- [Request a custom oracle](https://www.diadata.org/docs/guides/how-to-guides/request-a-custom-oracle) +- [Explore the Optimism Oracle Integration Guide](https://www.diadata.org/docs/guides/chain-specific-guide/optimism) +- [Request a Custom Oracle](https://www.diadata.org/docs/guides/how-to-guides/request-a-custom-oracle) ## Next steps From c3eed7489bb231c7c707f32eda585618aea34456 Mon Sep 17 00:00:00 2001 From: Khawla Date: Tue, 10 Feb 2026 19:01:17 +0400 Subject: [PATCH 3/3] docs: update dia section --- app-developers/tools/data/oracles.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app-developers/tools/data/oracles.mdx b/app-developers/tools/data/oracles.mdx index 6a65e5d73..52f685f68 100644 --- a/app-developers/tools/data/oracles.mdx +++ b/app-developers/tools/data/oracles.mdx @@ -137,10 +137,10 @@ Interested in integration? [Get in contact](https://discord.com/invite/PVxBZKFr4 [DIA](https://www.diadata.org/) is a cross-chain, trustless oracle network delivering verifiable price feeds for Optimism. DIA sources raw trade data directly from primary markets and computes it onchain, ensuring complete transparency and data integrity. -- Direct data sourcing from [100+ primary markets](https://www.diadata.org/app/source/defi/) eliminates intermediary risk. -- Complete onchain data verifiability from source, computation to consumption. -- Support for [20,000+ assets](https://www.diadata.org/app) across different asset classes. -- Customizable oracles tailored to each use case, in terms of sources, methodology, and update mechanisms. +- Complete verifiability from source to destination smart contract. +- Direct data sourcing from 100+ primary markets eliminating intermediary risk. +- Support for 20,000+ assets across all major asset classes. +- Custom oracle configuration with tailored sources and methodologies. To get started: