Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions public/files/json/feeds-stellar-mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[
{
"compareOffchain": "",
"contractAddress": "x",
"name": "BTC / USD",
"path": "btc-usd",
"proxyAddress": "<MAINNET_BTC_USD_DATA_ID>",
"threshold": 0.1,
"heartbeat": 300,
"valuePrefix": "",
"assetName": "Bitcoin",
"feedCategory": "low",
"feedType": "Crypto",
"docs": {
"assetClass": "Crypto",
"assetName": "Bitcoin",
"baseAsset": "BTC",
"blockchainName": "Stellar",
"clicProductName": "BTC/USD-RefPrice-DF-Stellar-001",
"deliveryChannelCode": "DF",
"feedCategory": "low",
"feedType": "Crypto",
"marketHours": "Crypto",
"productSubType": "Reference",
"productType": "Price",
"productTypeCode": "RefPrice",
"quoteAsset": "USD",
"quoteAssetClic": "USD_FX"
},
"decimals": 18
},
{
"compareOffchain": "",
"contractAddress": "x",
"name": "ETH / USD",
"path": "eth-usd",
"proxyAddress": "<MAINNET_ETH_USD_DATA_ID>",
"threshold": 0.1,
"heartbeat": 300,
"valuePrefix": "",
"assetName": "Ethereum",
"feedCategory": "low",
"feedType": "Crypto",
"docs": {
"assetClass": "Crypto",
"assetName": "Ethereum",
"baseAsset": "ETH",
"blockchainName": "Stellar",
"clicProductName": "ETH/USD-RefPrice-DF-Stellar-001",
"deliveryChannelCode": "DF",
"feedCategory": "low",
"feedType": "Crypto",
"marketHours": "Crypto",
"productSubType": "Reference",
"productType": "Price",
"productTypeCode": "RefPrice",
"quoteAsset": "USD",
"quoteAssetClic": "USD_FX"
},
"decimals": 18
}
]
62 changes: 62 additions & 0 deletions public/files/json/feeds-stellar-testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[
{
"compareOffchain": "",
"contractAddress": "x",
"name": "BTC / USD",
"path": "btc-usd",
"proxyAddress": "<TESTNET_BTC_USD_DATA_ID>",
"threshold": 0.1,
"heartbeat": 300,
"valuePrefix": "",
"assetName": "Bitcoin",
"feedCategory": "low",
"feedType": "Crypto",
"docs": {
"assetClass": "Crypto",
"assetName": "Bitcoin",
"baseAsset": "BTC",
"blockchainName": "Stellar",
"clicProductName": "BTC/USD-RefPrice-DF-Stellar-001",
"deliveryChannelCode": "DF",
"feedCategory": "low",
"feedType": "Crypto",
"marketHours": "Crypto",
"productSubType": "Reference",
"productType": "Price",
"productTypeCode": "RefPrice",
"quoteAsset": "USD",
"quoteAssetClic": "USD_FX"
},
"decimals": 18
},
{
"compareOffchain": "",
"contractAddress": "x",
"name": "ETH / USD",
"path": "eth-usd",
"proxyAddress": "<TESTNET_ETH_USD_DATA_ID>",
"threshold": 0.1,
"heartbeat": 300,
"valuePrefix": "",
"assetName": "Ethereum",
"feedCategory": "low",
"feedType": "Crypto",
"docs": {
"assetClass": "Crypto",
"assetName": "Ethereum",
"baseAsset": "ETH",
"blockchainName": "Stellar",
"clicProductName": "ETH/USD-RefPrice-DF-Stellar-001",
"deliveryChannelCode": "DF",
"feedCategory": "low",
"feedType": "Crypto",
"marketHours": "Crypto",
"productSubType": "Reference",
"productType": "Price",
"productTypeCode": "RefPrice",
"quoteAsset": "USD",
"quoteAssetClic": "USD_FX"
},
"decimals": 18
}
]
17 changes: 17 additions & 0 deletions src/config/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,23 @@ export const SIDEBAR: Partial<Record<Sections, SectionEntry[]>> = {
},
],
},
{
section: "Stellar Guides",
contents: [
{
title: "Data Feeds on Stellar",
url: "data-feeds/stellar",
},
{
title: "Using Data Feeds Offchain",
url: "data-feeds/stellar/using-data-feeds-off-chain",
},
{
title: "Using Data Feeds Onchain",
url: "data-feeds/stellar/using-data-feeds-on-chain",
},
],
},
{
section: "Starknet Guides",
contents: [
Expand Down
2 changes: 1 addition & 1 deletion src/content/data-feeds/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { Aside, CodeSample } from "@components"

You can use Chainlink Data Feeds to connect your smart contracts to asset pricing data like the [ETH / USD feed](https://data.chain.link/feeds/ethereum/mainnet/eth-usd). These data feeds use data aggregated from many independent Chainlink node operators. Each price feed has an onchain address and functions that enable contracts to read pricing data from that address.

This guide shows you how to read Data Feeds and store the value onchain using Solidity. To learn how to read feeds offchain or use different languages, see the [Using Data Feeds on EVM Chains](/data-feeds/using-data-feeds) guide. Alternatively, you can also learn how to use Data Feeds on [Solana](/data-feeds/solana) or [StarkNet](/data-feeds/starknet).
This guide shows you how to read Data Feeds and store the value onchain using Solidity. To learn how to read feeds offchain or use different languages, see the [Using Data Feeds on EVM Chains](/data-feeds/using-data-feeds) guide. Alternatively, you can also learn how to use Data Feeds on [Solana](/data-feeds/solana), [StarkNet](/data-feeds/starknet), or [Stellar](/data-feeds/stellar).

The code for reading Data Feeds on Ethereum or other EVM-compatible blockchains is the same for each chain and each Data Feed types. You choose different types of feeds for different uses, but the request and response format are the same. The answer decimal length and expected value ranges might change depending on what feed you use.

Expand Down
Loading
Loading