Skip to content
Merged
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
30 changes: 25 additions & 5 deletions .github/scripts/data/baseline.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"timestamp": "2026-05-03T21:14:59Z",
"timestamp": "2026-05-08T18:30:27Z",
"knownIds": [
"aptos-apt-usd",
"aptos-btc-usd",
Expand Down Expand Up @@ -245,6 +245,7 @@
"arbitrum-dusk-usd-refprice-mainnet-production",
"arbitrum-dydx-usd-refprice-ds-premium-global-003-prod",
"arbitrum-dym-usd-refprice-mainnet-production",
"arbitrum-eapt-apt-exchange-rate",
"arbitrum-eapt-apt-streams-exchangerate-mainnet-production",
"arbitrum-eden-usd-streams-cexprice-mainnet-production",
"arbitrum-edu-usd-premium-prod-v03",
Expand Down Expand Up @@ -474,6 +475,7 @@
"arbitrum-mbtc-usd-refprice-mainnet-production",
"arbitrum-mcap-usd",
"arbitrum-mcd-usd-streams-equityprice-timestamped-mainnet-production",
"arbitrum-mega-usd-streams-cexprice-mainnet-production",
"arbitrum-melania-usd",
"arbitrum-melania-usd-premium-prod-v03",
"arbitrum-meme-usd-premium-prod",
Expand Down Expand Up @@ -562,6 +564,7 @@
"arbitrum-open-usd-streams-extendedhoursequityprice-mainnet-production",
"arbitrum-open-usd-streams-overnighthoursequityprice-mainnet-production",
"arbitrum-open-usd-streams-regularhoursequityprice-mainnet-production",
"arbitrum-opg-usd-streams-cexprice-mainnet-production",
"arbitrum-orca-usd-refprice-mainnet-production",
"arbitrum-orcl-usd-streams-equityprice-timestamped-mainnet-production",
"arbitrum-orcl-usd-streams-extendedhoursequityprice-mainnet-production",
Expand Down Expand Up @@ -605,6 +608,7 @@
"arbitrum-popcat-usd-refprice-mainnet-production",
"arbitrum-prfi-usd-refprice-mainnet-production",
"arbitrum-prompt-usd-streams-cexprice-mainnet-production",
"arbitrum-pstusdc-usd-streams-dexprice-mainnet-production",
"arbitrum-pump-usd",
"arbitrum-pump-usd-refprice-mainnet-production",
"arbitrum-pyth-usd-premium-prod-v03",
Expand Down Expand Up @@ -714,9 +718,13 @@
"arbitrum-steth-usd-premium-prod",
"arbitrum-stg-usd",
"arbitrum-stg-usd-premium-prod-v03",
"arbitrum-sthapt-apt-exchange-rate",
"arbitrum-sthapt-apt-streams-exchangerate-mainnet-production",
"arbitrum-storj-usd-refprice-mainnet-production",
"arbitrum-strc-usd-streams-equityprice-mainnet-production",
"arbitrum-strc-usd-streams-extendedhoursequityprice-mainnet-production",
"arbitrum-strc-usd-streams-overnighthoursequityprice-mainnet-production",
"arbitrum-strc-usd-streams-regularhoursequityprice-mainnet-production",
"arbitrum-strcx-usd-datalink-totalreturnmultiplier-mainnet-production",
"arbitrum-strk-usd-refprice-ds-premium-global-003-prod",
"arbitrum-stx-usd",
Expand Down Expand Up @@ -767,6 +775,7 @@
"arbitrum-trb-usd-refprice-mainnet-production",
"arbitrum-trex-usd-streams-dexprice-mainnet-production",
"arbitrum-tru-usd-refprice-mainnet-production",
"arbitrum-truapt-apt-exchange-rate",
"arbitrum-truapt-apt-streams-exchangerate-mainnet-production",
"arbitrum-trump-usd",
"arbitrum-trump-usd-premium-prod-v03",
Expand Down Expand Up @@ -1072,6 +1081,7 @@
"base-cad-usd",
"base-cbbtc-por",
"base-cbbtc-usd",
"base-cbbtc-usd-shared-svr",
"base-cbeth-eth",
"base-cbeth-eth-exchange",
"base-cbeth-usd",
Expand Down Expand Up @@ -1103,6 +1113,7 @@
"base-ibtc-por",
"base-ineth-eth-exchange-rate",
"base-insteth-eth-exchange-rate",
"base-jitosol-sol-calculated",
"base-lbtc-btc",
"base-lbtc-usd",
"base-link-eth",
Expand Down Expand Up @@ -1689,6 +1700,7 @@
"ethereum-tbtc-usd",
"ethereum-teth-wsteth-exchange-rate",
"ethereum-tfbill-nav",
"ethereum-tgld-usd",
"ethereum-treasuryplus-nav",
"ethereum-trump-usd",
"ethereum-try-usd",
Expand Down Expand Up @@ -2729,6 +2741,14 @@
"feedID": "arbitrum-ethx-eth-exchange-rate",
"shutdownDate": "December 22nd, 2025"
},
{
"feedID": "avalanche-beam-usd",
"shutdownDate": "May 20th, 2026"
},
{
"feedID": "avalanche-woo-eth",
"shutdownDate": "May 20th, 2026"
},
{
"feedID": "base-dola-usd",
"shutdownDate": "May 6th, 2026"
Expand All @@ -2741,10 +2761,6 @@
"feedID": "bnb-chain-musd-usd",
"shutdownDate": "April 8th, 2026"
},
{
"feedID": "bob-baby-usd",
"shutdownDate": "April 8th, 2026"
},
{
"feedID": "ethereum-alcx-eth",
"shutdownDate": "April 8th, 2026"
Expand All @@ -2757,6 +2773,10 @@
"feedID": "ethereum-dolo-usd",
"shutdownDate": "April 29th, 2026"
},
{
"feedID": "ethereum-tusd-eth",
"shutdownDate": "May 20th, 2026"
},
{
"feedID": "fantom-aave-usd",
"shutdownDate": "January 12th, 2026"
Expand Down
60 changes: 0 additions & 60 deletions .github/scripts/data/detect-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,8 @@ node <<EOF
const newlyFound = JSON.parse(fs.readFileSync('${NEW_DATA_FILE}', 'utf8'));
const items = newlyFound.newlyFoundItems || [];
const newlyDeprecatedItems = newlyFound.newlyDeprecatedItems || [];
const resolvedDeprecatedItems = newlyFound.resolvedDeprecatedItems || [];
const changedDeprecatedItems = newlyFound.changedDeprecatedItems || [];
const newlyDeprecatedStreams = newlyFound.newlyDeprecatedStreams || [];
const resolvedDeprecatedStreams = newlyFound.resolvedDeprecatedStreams || [];
const changedDeprecatedStreams = newlyFound.changedDeprecatedStreams || [];
const deprecatingItems = [
...newlyDeprecatedItems,
Expand All @@ -175,22 +173,6 @@ node <<EOF
...newlyDeprecatedStreams,
...changedDeprecatedStreams.map(change => change.current).filter(Boolean),
];
const deprecatedFeedIdsToRemove = new Set([
...resolvedDeprecatedItems.map(item => item.feedID),
...changedDeprecatedItems.map(change => change.previous && change.previous.feedID).filter(Boolean),
]);
const deprecatedFeedUrlsToRemove = new Set([
...resolvedDeprecatedItems.map(item => item.url).filter(Boolean),
...changedDeprecatedItems.map(change => change.previous && change.previous.url).filter(Boolean),
]);
const deprecatedStreamIdsToRemove = new Set([
...resolvedDeprecatedStreams.map(item => item.feedID),
...changedDeprecatedStreams.map(change => change.previous && change.previous.feedID).filter(Boolean),
]);
const deprecatedStreamUrlsToRemove = new Set([
...resolvedDeprecatedStreams.map(item => item.url).filter(Boolean),
...changedDeprecatedStreams.map(change => change.previous && change.previous.url).filter(Boolean),
]);

const CHANGELOG_PATH = path.resolve('${CHANGELOG_FILE}');
let changelog;
Expand Down Expand Up @@ -348,55 +330,13 @@ node <<EOF
});
}

function removeResolvedDeprecationsFromChangelog(topic, emptyEntryTitle, feedIds, urls) {
if (feedIds.size === 0 && urls.size === 0) return;

changelog.data = changelog.data.filter(entry => {
if (
entry.topic !== topic ||
(entry.category !== "deprecation" && entry.title !== emptyEntryTitle) ||
!Array.isArray(entry.relatedTokens)
) {
return true;
}

const originalLength = entry.relatedTokens.length;
entry.relatedTokens = entry.relatedTokens.filter(token => {
if (!token || typeof token !== "object") return true;
return !feedIds.has(token.feedID) && !urls.has(token.url);
});

if (entry.relatedTokens.length === originalLength) return true;

if (entry.relatedTokens.length === 0 && entry.title === emptyEntryTitle) {
return false;
}

const remainingNetworks = [...new Set(
entry.relatedTokens
.filter(token => token && typeof token === "object" && token.network)
.map(token => token.network)
)];
if (remainingNetworks.length > 0) {
entry.relatedNetworks = remainingNetworks;
} else {
delete entry.relatedNetworks;
}

return true;
});
}

// === Now build each group
const dataFeedsTokens = buildDataFeedTokens(dataFeeds);
const dataStreamsTokens = buildDataStreamTokens(dataStreams);
const smartDataTokens = buildSmartDataTokens(smartData);
const deprecatingDataFeedTokens = buildDeprecatingDataFeedTokens(deprecatingItems);
const deprecatingDataStreamTokens = buildDeprecatingDataStreamTokens(deprecatingStreamItems);

removeResolvedDeprecationsFromChangelog("Data Feeds", "Feeds scheduled for deprecation", deprecatedFeedIdsToRemove, deprecatedFeedUrlsToRemove);
removeResolvedDeprecationsFromChangelog("Data Streams", "Streams scheduled for deprecation", deprecatedStreamIdsToRemove, deprecatedStreamUrlsToRemove);

// === Create new changelog entries
const newEntries = [];

Expand Down
Loading
Loading