Skip to content

Commit

Permalink
aptos mainnet feeds (#2245)
Browse files Browse the repository at this point in the history
  • Loading branch information
khadni authored Jan 9, 2025
1 parent a0e93e2 commit 2fca715
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 8 deletions.
12 changes: 12 additions & 0 deletions public/changelog.json
Original file line number Diff line number Diff line change
@@ -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": [],
Expand Down
184 changes: 184 additions & 0 deletions public/files/json/feeds-aptos-mainnet.json
Original file line number Diff line number Diff line change
@@ -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
}
]
8 changes: 8 additions & 0 deletions src/features/data/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "",
Expand Down
10 changes: 2 additions & 8 deletions src/features/feeds/components/FeedList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,15 @@ export const FeedList = ({
Price feed contract on Aptos Mainnet:{" "}
<a
className={tableStyles.addressLink}
href="https://explorer.aptoslabs.com/object/0xf1099f135ddddad1c065203431be328a408b0ca452ada70374ce26bd2b32fdd3/transactions?network=testnet"
href="https://explorer.aptoslabs.com/object/0x3f985798ce4975f430ef5c75776ff98a77b9f9d0fb38184d225adc9c1cc6b79b?network=mainnet"
target="_blank"
>
0x3f985798ce4975f430ef5c75776ff98a77b9f9d0fb38184d225adc9c1cc6b79b
</a>
<button
className={clsx(tableStyles.copyBtn, "copy-iconbutton")}
style={{ height: "16px", width: "16px", marginLeft: "5px" }}
data-clipboard-text="0xf1099f135ddddad1c065203431be328a408b0ca452ada70374ce26bd2b32fdd3"
data-clipboard-text="0x3f985798ce4975f430ef5c75776ff98a77b9f9d0fb38184d225adc9c1cc6b79b"
>
<img src="/assets/icons/copyIcon.svg" alt="copy to clipboard" />
</button>
Expand Down Expand Up @@ -388,12 +388,6 @@ export const FeedList = ({
<>
{network.name === "Aptos Testnet" && (
<>
<p>
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{" "}
<a href="/data-feeds/aptos/">Using Data Feeds on Aptos</a> guide.
</p>
<p>
Price feed contract on Aptos Testnet:{" "}
<a
Expand Down

0 comments on commit 2fca715

Please sign in to comment.