Skip to content

Commit

Permalink
Merge branch 'main' into data-streams-feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
khadni committed May 16, 2024
2 parents ad4e35a + 34cc77c commit a4cfc36
Show file tree
Hide file tree
Showing 29 changed files with 650 additions and 358 deletions.
34 changes: 0 additions & 34 deletions public/samples/DataFeeds/NFTFloorPriceConsumerV3.sol

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/QuickLinks/data/productChainLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const productChainLinks: ProductChainLinks = {
polygon: "/data-feeds/price-feeds/addresses?network=polygon",
scroll: "/data-feeds/price-feeds/addresses?network=scroll",
solana: "/data-feeds/price-feeds/addresses?network=solana",
// starknet: "/data-feeds/price-feeds/addresses?network=starknet",
starknet: "/data-feeds/price-feeds/addresses?network=starknet",
zksync: "/data-feeds/price-feeds/addresses?network=zksync",
},
},
Expand Down Expand Up @@ -144,7 +144,7 @@ export const chainNames: Record<string, string> = {
polygon: "Polygon",
scroll: "Scroll",
solana: "Solana",
starknet: "StarkNet",
starknet: "Starknet",
wemix: "Wemix",
zksync: "zkSync",
}
30 changes: 20 additions & 10 deletions src/config/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ export const SIDEBAR: Partial<Record<Sections, SectionEntry[]>> = {
title: "Proof of Reserve Feeds",
url: "data-feeds/proof-of-reserve",
},
{
title: "NFT Floor Price Feeds",
url: "data-feeds/nft-floor-price",
},
{
title: "Rate and Volatility Feeds",
url: "data-feeds/rates-feeds",
Expand All @@ -55,10 +51,6 @@ export const SIDEBAR: Partial<Record<Sections, SectionEntry[]>> = {
title: "Proof of Reserve Addresses",
url: "data-feeds/proof-of-reserve/addresses",
},
{
title: "NFT Floor Price Addresses",
url: "data-feeds/nft-floor-price/addresses",
},
{
title: "Rate and Volatility Feed Addresses",
url: "data-feeds/rates-feeds/addresses",
Expand Down Expand Up @@ -108,12 +100,30 @@ export const SIDEBAR: Partial<Record<Sections, SectionEntry[]>> = {
],
},
{
section: "StarkNet Guides",
section: "Starknet Guides",
contents: [
{
title: "Using Data Feeds on StarkNet",
title: "Data Feeds on Starknet",
url: "data-feeds/starknet",
},
{
title: "Starknet Foundry Guides",
url: "data-feeds/starknet/tutorials/snfoundry/",
children: [
{
title: "Read Data from Chainlink Data Feeds (Offchain)",
url: "data-feeds/starknet/tutorials/snfoundry/read-data",
},
{
title: "Deploy and interact with a Consumer Contract (Onchain)",
url: "data-feeds/starknet/tutorials/snfoundry/consumer-contract",
},
{
title: "Experiment on a Devnet",
url: "data-feeds/starknet/tutorials/snfoundry/sn-devnet-rs",
},
],
},
],
},
{
Expand Down
10 changes: 5 additions & 5 deletions src/content/chainlink-functions/supported-networks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ Read the [LINK Token Contracts](/resources/link-token-contracts) page to learn w

### Polygon Amoy testnet

| Item | Value |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Functions router | <Address contractUrl="https://amoy.polygonscan.com/address/0xC22a79eBA640940ABB6dF0f7982cc119578E11De" /> |
| <DonId client:load/> | <CopyText text="fun-polygon-amoy-1" code /> / <CopyText text="0x66756e2d706f6c79676f6e2d616d6f792d310000000000000000000000000000"code format formatType="bytes32" /> |
| Encrypted secrets upload endpoints | <ul><li><CopyText text="https://01.functions-gateway.testnet.chain.link/" code /></li><li><CopyText text="https://02.functions-gateway.testnet.chain.link/" code /></li></ul> |
| Item | Value |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Functions router | <Address contractUrl="https://amoy.polygonscan.com/address/0xC22a79eBA640940ABB6dF0f7982cc119578E11De" /> |
| <DonId client:load/> | <CopyText text="fun-polygon-amoy-1" code /> / <CopyText text="0x66756e2d706f6c79676f6e2d616d6f792d310000000000000000000000000000"code format formatType="bytes32" /> |
| Encrypted secrets upload endpoints | <ul><li><CopyText text="https://01.functions-gateway.testnet.chain.link/" code /></li><li><CopyText text="https://02.functions-gateway.testnet.chain.link/" code /></li></ul> |

| Billing Item | Value |
| ------------------------------------------------ | ------------- |
Expand Down
2 changes: 1 addition & 1 deletion src/content/data-feeds/api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function latestRoundData() external view
**Return values:**

- `roundId`: The round ID.
- `answer`: The data that this specific feed provides. Depending on the feed you selected, this answer provides asset prices, reserves, NFT floor prices, and other types of data.
- `answer`: The data that this specific feed provides. Depending on the feed you selected, this answer provides asset prices, reserves, and other types of data.
- `startedAt`: Timestamp of when the round started.
- `updatedAt`: Timestamp of when the round was updated.
- `answeredInRound`: <Icon type="deprecated" /> Deprecated - Previously used when answers could take multiple rounds to be computed
Expand Down
12 changes: 1 addition & 11 deletions src/content/data-feeds/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ whatsnext:
"Read the API reference for using Data Feeds": "/data-feeds/api-reference",
"Find Rate Price Feed Addresses": "/data-feeds/price-feeds/addresses",
"Find Rate Proof of Reserve Feed Addresses": "/data-feeds/proof-of-reserve/addresses",
"Find Rate NFT Floor Price Feed Addresses": "/data-feeds/nft-floor-price/addresses",
"Find Rate and Volatility Feed Addresses": "/data-feeds/rates-feeds/addresses",
"Learn how to use Data Feeds on L2 networks": "/data-feeds/l2-sequencer-feeds",
}
Expand All @@ -26,7 +25,7 @@ import button from "@chainlink/design-system/button.module.css"
Data Feeds with your applications.
</Aside>

Chainlink Data Feeds are the quickest way to connect your smart contracts to the real-world data such as asset prices, reserve balances, NFT floor prices, and L2 sequencer health.
Chainlink Data Feeds are the quickest way to connect your smart contracts to the real-world data such as asset prices, reserve balances, and L2 sequencer health.

If you already started a project and need to integrate Chainlink, you can [add Chainlink to your existing project](/resources/create-a-chainlinked-project?parent=dataFeeds#installing-into-existing-projects) with the [`@chainlink/contracts` NPM package](https://www.npmjs.com/package/@chainlink/contracts).

Expand All @@ -36,7 +35,6 @@ Data feeds provide many different types of data for your applications.

- [Price Feeds](#price-feeds)
- [Proof of Reserve Feeds](#proof-of-reserve-feeds)
- [NFT Floor Price Feeds](#nft-floor-price-feeds)
- [Rate and Volatility Feeds](#rate-and-volatility-feeds)
- [L2 sequencer uptime feeds](#l2-sequencer-uptime-feeds)

Expand All @@ -60,14 +58,6 @@ To learn more about Proof of Reserve Feeds, see the [Proof of Reserve](/data-fee

See the [Proof of Reserve Contract Addresses](/data-feeds/proof-of-reserve/addresses) page for a list of available networks and addresses.

### NFT Floor Price Feeds

NFT Floor Price Feeds provide the price of the lowest priced NFT available in a collection. These feeds operate similarly to [Price Feeds](/data-feeds/price-feeds) so you can use the [AggregatorV3Interface.sol](https://github.com/smartcontractkit/chainlink/blob/develop/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol) contract to retrieve price answers.

To learn more, see the [NFT Floor Price Feeds](/data-feeds/nft-floor-price) documentation.

See the [NFT Floor Price Contract Addresses](/data-feeds/nft-floor-price/addresses) page for a list of available networks and addresses.

### Rate and Volatility Feeds

Several feeds provide interest rate curve data, APY data, and realized asset price volatility.
Expand Down
13 changes: 0 additions & 13 deletions src/content/data-feeds/nft-floor-price/addresses.mdx

This file was deleted.

27 changes: 0 additions & 27 deletions src/content/data-feeds/nft-floor-price/index.mdx

This file was deleted.

Loading

0 comments on commit a4cfc36

Please sign in to comment.