Skip to content

Commit 72f0c5f

Browse files
authored
Chore: Deprecation updates (#3072)
1 parent fcc5104 commit 72f0c5f

File tree

6 files changed

+14
-73
lines changed

6 files changed

+14
-73
lines changed

src/content/data-feeds/solana/index.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ whatsnext:
1313

1414
import { Aside } from "@components"
1515

16-
<Aside type="caution" title="Solana Data Feeds Deprecation">
17-
Several Data Feeds on Solana [are being deprecated](/data-feeds/deprecating-feeds) as Chainlink migrates support to
18-
Data Streams' pull-based model. See [this page](/data-streams/crypto-streams) for the complete list of Data Streams
19-
available on Solana.
20-
</Aside>
21-
2216
Chainlink provides data feeds on the [Solana](https://solana.com/) network. Chainlink data feeds on Solana employ [Offchain Reporting (OCR)](/architecture-overview/off-chain-reporting?parent=dataFeeds) to aggregate data from data providers who pull from both centralized and decentralized exchanges. Chainlink’s Solana deployment has no dependencies on external blockchain networks such as Ethereum. In Solana, storage and smart contract logic are separate. Programs store all the logic similar to an EVM (Ethereum) smart contract. The accounts store all the data. Compared to Solidity, the combination of an account and a program is equivalent to a smart contract on an EVM chain. State and logic are separate in Solana.
2317

2418
Solana programs are stateless, so you don't always need to deploy your program to the network to test it. You can deploy and test your programs on a [Solana Test Validator](https://docs.solana.com/developing/test-validator). However, to use Chainlink products on Solana, you must deploy your contract onchain to one of the [supported Solana clusters](#chainlink-products-and-solana-clusters).

src/content/data-feeds/solana/using-data-feeds-off-chain.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ metadata:
1515
import { Aside, CodeSample, PackageManagerTabs } from "@components"
1616
import { Tabs } from "@components/Tabs"
1717

18-
<Aside type="caution" title="Solana Data Feeds Deprecation">
19-
Several Data Feeds on Solana [are being deprecated](/data-feeds/deprecating-feeds) as Chainlink migrates support to
20-
Data Streams' pull-based model. See [this page](/data-streams/crypto-streams) for the complete list of Data Streams
21-
available on Solana.
22-
</Aside>
23-
2418
Chainlink Data Feeds are the quickest way to access market prices for real-world assets. This guide demonstrates how to
2519
read Chainlink Data Feeds on the Solana Devnet using offchain examples in the [Chainlink Solana Starter
2620
Kit](https://github.com/smartcontractkit/solana-starter-kit). To learn how to use Data Feeds in your onchain Solana

src/content/data-feeds/solana/using-data-feeds-solana.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ metadata:
1515
import { Aside, CodeSample } from "@components"
1616
import { Tabs } from "@components/Tabs"
1717

18-
<Aside type="caution" title="Solana Data Feeds Deprecation">
19-
Several Data Feeds on Solana [are being deprecated](/data-feeds/deprecating-feeds) as Chainlink migrates support to
20-
Data Streams' pull-based model. See [this page](/data-streams/crypto-streams) for the complete list of Data Streams
21-
available on Solana.
22-
</Aside>
23-
2418
Chainlink Data Feeds are the quickest way to connect your smart contracts to the real-world market prices of assets. This guide demonstrates how to deploy a program to the Solana Devnet cluster and access Data Feeds onchain using the [Chainlink Solana Starter Kit](https://github.com/smartcontractkit/solana-starter-kit). To learn how to read price feed data using offchain applications, see the [Using Data Feeds Offchain](/solana/using-data-feeds-off-chain) guide.
2519

2620
To get the full list of available Chainlink Data Feeds on Solana, see the [Solana Feeds](/data-feeds/price-feeds/addresses?network=solana) page. View the program that owns the Chainlink Data Feeds in the [Solana Devnet Explorer](https://solscan.io/account/HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny?cluster=devnet), or the [Solana Mainnet Explorer](https://solscan.io/account/HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny).

src/features/feeds/components/FeedList.tsx

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -765,59 +765,6 @@ export const FeedList = ({
765765
key={network.name}
766766
idOverride={network.name.toLowerCase().replace(/\s+/g, "-")}
767767
>
768-
{network.name === "Solana Mainnet" && (
769-
<div
770-
style={{
771-
padding: "var(--space-4x)",
772-
gap: "var(--space-4x)",
773-
backgroundColor: "var(--color-background-warning)",
774-
border: "1px solid #eee",
775-
borderRadius: "var(--border-radius-10)",
776-
outline: "1px solid transparent",
777-
display: "flex",
778-
marginBottom: "1rem",
779-
}}
780-
>
781-
<div style={{ flexShrink: 0, width: "1.5em" }}>
782-
<img src={alertIcon.src} style={{ width: "1.5em", height: "1.5em" }} alt="caution" />
783-
</div>
784-
<div>
785-
<p
786-
style={{
787-
fontWeight: 600,
788-
textTransform: "uppercase",
789-
color: "var(--theme-text)",
790-
fontSize: "14px",
791-
marginBottom: "0.5rem",
792-
fontFamily: "TASAOrbiterDisplay",
793-
}}
794-
>
795-
Solana Data Feeds Deprecation
796-
</p>
797-
<p style={{ color: "var(--theme-text-light)", lineHeight: 1.5, fontSize: "14px" }}>
798-
Several Data Feeds on Solana{" "}
799-
<a
800-
href="/data-feeds/deprecating-feeds"
801-
target="_blank"
802-
rel="noopener noreferrer"
803-
style={{ color: "var(--color-text-link)", textDecoration: "underline" }}
804-
>
805-
are being deprecated
806-
</a>{" "}
807-
as Chainlink migrates support to Data Streams' pull-based model. See{" "}
808-
<a
809-
href="/data-streams/crypto-streams"
810-
target="_blank"
811-
rel="noopener noreferrer"
812-
style={{ color: "var(--color-text-link)", textDecoration: "underline" }}
813-
>
814-
this page
815-
</a>{" "}
816-
for the complete list of Data Streams available on Solana.
817-
</p>
818-
</div>
819-
</div>
820-
)}
821768
{network.networkType === "mainnet" ? (
822769
<>
823770
{!isStreams && chain.l2SequencerFeed && (

src/features/feeds/components/FeedPage.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ const feedItems: FeedDataItem[] = monitoredFeeds.mainnet
7070
</p>
7171
<p>
7272
A list of data feeds designated for deprecation along with their corresponding shutdown date can be found below.
73+
Please be advised that we will cease data quality monitoring for feeds designated for deprecation two weeks
74+
prior to the date of deprecation.
7375
</p>
7476
</>
7577
) : (

src/features/feeds/components/Tables.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,17 @@ const DefaultTr = ({ network, metadata, showExtraDetails, batchedCategoryData, d
164164
// Risk categorization logic
165165
const contractAddress = metadata.contractAddress || metadata.proxyAddress
166166
const networkIdentifier = getNetworkIdentifier(network)
167-
const finalTier =
167+
let finalTier =
168168
contractAddress && batchedCategoryData?.size
169169
? (getFeedCategoryFromBatch(batchedCategoryData, contractAddress, networkIdentifier, metadata.feedCategory)
170170
?.final ?? metadata.feedCategory)
171171
: metadata.feedCategory
172172

173+
// Override with deprecating category if feed has shutdown date
174+
if (metadata.docs?.shutdownDate) {
175+
finalTier = "deprecating"
176+
}
177+
173178
// US Government Macroeconomic Data logic
174179
const isUSGovernmentMacroeconomicData = dataFeedType === "usGovernmentMacroeconomicData"
175180
const label = isUSGovernmentMacroeconomicData ? "Category" : "Asset type"
@@ -375,12 +380,17 @@ const SmartDataTr = ({ network, metadata, showExtraDetails, batchedCategoryData
375380
// Resolve final category from batch (fallback to metadata)
376381
const contractAddress = metadata.contractAddress || metadata.proxyAddress
377382
const networkIdentifier = getNetworkIdentifier(network)
378-
const finalTier =
383+
let finalTier =
379384
contractAddress && batchedCategoryData?.size
380385
? (getFeedCategoryFromBatch(batchedCategoryData, contractAddress, networkIdentifier, metadata.feedCategory)
381386
?.final ?? metadata.feedCategory)
382387
: metadata.feedCategory
383388

389+
// Override with deprecating category if feed has shutdown date
390+
if (metadata.docs?.shutdownDate) {
391+
finalTier = "deprecating"
392+
}
393+
384394
return (
385395
<tr>
386396
<td className={tableStyles.pairCol}>

0 commit comments

Comments
 (0)