From 2fca7157bfa99059e2b67230b26231f7f771731f Mon Sep 17 00:00:00 2001 From: "Karim H." <98668332+khadni@users.noreply.github.com> Date: Thu, 9 Jan 2025 11:17:07 -0500 Subject: [PATCH] aptos mainnet feeds (#2245) --- public/changelog.json | 12 ++ public/files/json/feeds-aptos-mainnet.json | 184 +++++++++++++++++++++ src/features/data/chains.ts | 8 + src/features/feeds/components/FeedList.tsx | 10 +- 4 files changed, 206 insertions(+), 8 deletions(-) create mode 100644 public/files/json/feeds-aptos-mainnet.json diff --git a/public/changelog.json b/public/changelog.json index 5d4af4b9e2e..f0589a27f80 100644 --- a/public/changelog.json +++ b/public/changelog.json @@ -1,4 +1,16 @@ [ + { + "category": "integration", + "changes": [], + "date": "2025-01-09", + "description": "Chainlink Data Feeds is available on Aptos mainnet. View the available price feed information on the [Price Feed Addresses](https://docs.chain.link/data-feeds/price-feeds/addresses?network=aptos&page=1) page.", + "relatedNetworks": ["aptos"], + "relatedTokens": [], + "title": "Data Feeds on Aptos", + "topic": "data", + "subTopic": "data-feeds", + "urls": [] + }, { "category": "integration", "changes": [], diff --git a/public/files/json/feeds-aptos-mainnet.json b/public/files/json/feeds-aptos-mainnet.json new file mode 100644 index 00000000000..22b8e505359 --- /dev/null +++ b/public/files/json/feeds-aptos-mainnet.json @@ -0,0 +1,184 @@ +[ + { + "compareOffchain": "", + "contractAddress": "x", + "name": "BTC / USD", + "path": "btc-usd", + "proxyAddress": "0x01a0b4d920000332000000000000000000000000000000000000000000000000", + "threshold": 0.1, + "heartbeat": 1800, + "valuePrefix": "", + "assetName": "Bitcoin", + "feedCategory": "low", + "feedType": "Crypto", + "docs": { + "assetClass": "Crypto", + "assetName": "Bitcoin", + "baseAsset": "BTC", + "blockchainName": "Aptos", + "clicProductName": "BTC/USD-RefPrice-DF-Aptos-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": "APT / USD", + "path": "apt-usd", + "proxyAddress": "0x011e22d6bf000332000000000000000000000000000000000000000000000000", + "threshold": 0.1, + "heartbeat": 1800, + "valuePrefix": "", + "assetName": "Aptos", + "feedCategory": "low", + "feedType": "Crypto", + "docs": { + "assetClass": "Crypto", + "assetName": "Aptos", + "baseAsset": "APT", + "blockchainName": "Aptos", + "clicProductName": "APT/USD-RefPrice-DF-Aptos-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": "USDC / USD", + "path": "usdc-usd", + "proxyAddress": "0x01a80ff216000332000000000000000000000000000000000000000000000000", + "threshold": 0.1, + "heartbeat": 1800, + "valuePrefix": "", + "assetName": "Circle USD", + "feedCategory": "low", + "feedType": "Crypto", + "docs": { + "assetClass": "Crypto", + "assetName": "Circle USD", + "assetSubClass": "Stablecoin", + "baseAsset": "USDC", + "blockchainName": "Aptos", + "clicProductName": "USDC/USD-RefPrice-DF-Aptos-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": "USDT / USD", + "path": "usdt-usd", + "proxyAddress": "0x016d06ebb6000332000000000000000000000000000000000000000000000000", + "threshold": 0.1, + "heartbeat": 1800, + "valuePrefix": "", + "assetName": "Tether USD", + "feedCategory": "low", + "feedType": "Crypto", + "docs": { + "assetClass": "Crypto", + "assetName": "Tether USD", + "assetSubClass": "Stablecoin", + "baseAsset": "USDT", + "blockchainName": "Aptos", + "clicProductName": "USDT/USD-RefPrice-DF-Aptos-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": "0x01d585327c000332000000000000000000000000000000000000000000000000", + "threshold": 0.1, + "heartbeat": 1800, + "valuePrefix": "", + "assetName": "Ethereum", + "feedCategory": "low", + "feedType": "Crypto", + "docs": { + "assetClass": "Crypto", + "assetName": "Ethereum", + "baseAsset": "ETH", + "blockchainName": "Aptos", + "clicProductName": "ETH/USD-RefPrice-DF-Aptos-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": "LINK / USD", + "path": "link-usd", + "proxyAddress": "0x0101199b3b000332000000000000000000000000000000000000000000000000", + "threshold": 0.1, + "heartbeat": 1800, + "valuePrefix": "", + "assetName": "Chainlink", + "feedCategory": "low", + "feedType": "Crypto", + "docs": { + "assetClass": "Crypto", + "assetName": "Chainlink", + "baseAsset": "LINK", + "blockchainName": "Aptos", + "clicProductName": "LINK/USD-RefPrice-DF-Aptos-001", + "deliveryChannelCode": "DF", + "feedCategory": "low", + "feedType": "Crypto", + "marketHours": "Crypto", + "productSubType": "Reference", + "productType": "Price", + "productTypeCode": "RefPrice", + "quoteAsset": "USD", + "quoteAssetClic": "USD_FX" + }, + "decimals": 18 + } +] diff --git a/src/features/data/chains.ts b/src/features/data/chains.ts index 38d53879776..b02e76a81c0 100644 --- a/src/features/data/chains.ts +++ b/src/features/data/chains.ts @@ -540,6 +540,14 @@ export const CHAINS: Chain[] = [ tags: ["default"], supportedFeatures: ["feeds"], networks: [ + { + name: "Aptos Mainnet", + explorerUrl: "", + networkType: "mainnet", + rddUrl: + "https://gist.githubusercontent.com/khadni/608d85ba08755cf2ff1407495c407368/raw/b305fb526916b4de793e7e7fcee63c0439ca3cc0/aptos-feeds-mainnet", + queryString: "aptos-mainnet", + }, { name: "Aptos Testnet", explorerUrl: "", diff --git a/src/features/feeds/components/FeedList.tsx b/src/features/feeds/components/FeedList.tsx index feb8afd63dc..27d35a1d1ca 100644 --- a/src/features/feeds/components/FeedList.tsx +++ b/src/features/feeds/components/FeedList.tsx @@ -277,7 +277,7 @@ export const FeedList = ({ Price feed contract on Aptos Mainnet:{" "} 0x3f985798ce4975f430ef5c75776ff98a77b9f9d0fb38184d225adc9c1cc6b79b @@ -285,7 +285,7 @@ export const FeedList = ({ @@ -388,12 +388,6 @@ export const FeedList = ({ <> {network.name === "Aptos Testnet" && ( <> -

- Chainlink Data Feeds on Aptos provides data through a single price feed contract that handles - multiple data feeds. You interact with this contract by passing the specific feed ID(s) for - the data you need. For more details, refer to the{" "} - Using Data Feeds on Aptos guide. -

Price feed contract on Aptos Testnet:{" "}