Skip to content

Commit e749f6e

Browse files
Changelog Update: Data changes found (#3751)
* Data: Update changelog for data changes * simplify deprecating feeds detection: we shouldn't go back and edit the changelog once feeds are shutdown * prettier fix --------- Co-authored-by: dev-dist <213511649+dev-dist@users.noreply.github.com> Co-authored-by: devin distefano <devin.distefano@smartcontract.com>
1 parent 52f9d0b commit e749f6e

3 files changed

Lines changed: 223 additions & 65 deletions

File tree

.github/scripts/data/baseline.json

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"timestamp": "2026-05-03T21:14:59Z",
2+
"timestamp": "2026-05-08T18:30:27Z",
33
"knownIds": [
44
"aptos-apt-usd",
55
"aptos-btc-usd",
@@ -245,6 +245,7 @@
245245
"arbitrum-dusk-usd-refprice-mainnet-production",
246246
"arbitrum-dydx-usd-refprice-ds-premium-global-003-prod",
247247
"arbitrum-dym-usd-refprice-mainnet-production",
248+
"arbitrum-eapt-apt-exchange-rate",
248249
"arbitrum-eapt-apt-streams-exchangerate-mainnet-production",
249250
"arbitrum-eden-usd-streams-cexprice-mainnet-production",
250251
"arbitrum-edu-usd-premium-prod-v03",
@@ -474,6 +475,7 @@
474475
"arbitrum-mbtc-usd-refprice-mainnet-production",
475476
"arbitrum-mcap-usd",
476477
"arbitrum-mcd-usd-streams-equityprice-timestamped-mainnet-production",
478+
"arbitrum-mega-usd-streams-cexprice-mainnet-production",
477479
"arbitrum-melania-usd",
478480
"arbitrum-melania-usd-premium-prod-v03",
479481
"arbitrum-meme-usd-premium-prod",
@@ -562,6 +564,7 @@
562564
"arbitrum-open-usd-streams-extendedhoursequityprice-mainnet-production",
563565
"arbitrum-open-usd-streams-overnighthoursequityprice-mainnet-production",
564566
"arbitrum-open-usd-streams-regularhoursequityprice-mainnet-production",
567+
"arbitrum-opg-usd-streams-cexprice-mainnet-production",
565568
"arbitrum-orca-usd-refprice-mainnet-production",
566569
"arbitrum-orcl-usd-streams-equityprice-timestamped-mainnet-production",
567570
"arbitrum-orcl-usd-streams-extendedhoursequityprice-mainnet-production",
@@ -605,6 +608,7 @@
605608
"arbitrum-popcat-usd-refprice-mainnet-production",
606609
"arbitrum-prfi-usd-refprice-mainnet-production",
607610
"arbitrum-prompt-usd-streams-cexprice-mainnet-production",
611+
"arbitrum-pstusdc-usd-streams-dexprice-mainnet-production",
608612
"arbitrum-pump-usd",
609613
"arbitrum-pump-usd-refprice-mainnet-production",
610614
"arbitrum-pyth-usd-premium-prod-v03",
@@ -714,9 +718,13 @@
714718
"arbitrum-steth-usd-premium-prod",
715719
"arbitrum-stg-usd",
716720
"arbitrum-stg-usd-premium-prod-v03",
721+
"arbitrum-sthapt-apt-exchange-rate",
717722
"arbitrum-sthapt-apt-streams-exchangerate-mainnet-production",
718723
"arbitrum-storj-usd-refprice-mainnet-production",
719724
"arbitrum-strc-usd-streams-equityprice-mainnet-production",
725+
"arbitrum-strc-usd-streams-extendedhoursequityprice-mainnet-production",
726+
"arbitrum-strc-usd-streams-overnighthoursequityprice-mainnet-production",
727+
"arbitrum-strc-usd-streams-regularhoursequityprice-mainnet-production",
720728
"arbitrum-strcx-usd-datalink-totalreturnmultiplier-mainnet-production",
721729
"arbitrum-strk-usd-refprice-ds-premium-global-003-prod",
722730
"arbitrum-stx-usd",
@@ -767,6 +775,7 @@
767775
"arbitrum-trb-usd-refprice-mainnet-production",
768776
"arbitrum-trex-usd-streams-dexprice-mainnet-production",
769777
"arbitrum-tru-usd-refprice-mainnet-production",
778+
"arbitrum-truapt-apt-exchange-rate",
770779
"arbitrum-truapt-apt-streams-exchangerate-mainnet-production",
771780
"arbitrum-trump-usd",
772781
"arbitrum-trump-usd-premium-prod-v03",
@@ -1072,6 +1081,7 @@
10721081
"base-cad-usd",
10731082
"base-cbbtc-por",
10741083
"base-cbbtc-usd",
1084+
"base-cbbtc-usd-shared-svr",
10751085
"base-cbeth-eth",
10761086
"base-cbeth-eth-exchange",
10771087
"base-cbeth-usd",
@@ -1103,6 +1113,7 @@
11031113
"base-ibtc-por",
11041114
"base-ineth-eth-exchange-rate",
11051115
"base-insteth-eth-exchange-rate",
1116+
"base-jitosol-sol-calculated",
11061117
"base-lbtc-btc",
11071118
"base-lbtc-usd",
11081119
"base-link-eth",
@@ -1689,6 +1700,7 @@
16891700
"ethereum-tbtc-usd",
16901701
"ethereum-teth-wsteth-exchange-rate",
16911702
"ethereum-tfbill-nav",
1703+
"ethereum-tgld-usd",
16921704
"ethereum-treasuryplus-nav",
16931705
"ethereum-trump-usd",
16941706
"ethereum-try-usd",
@@ -2729,6 +2741,14 @@
27292741
"feedID": "arbitrum-ethx-eth-exchange-rate",
27302742
"shutdownDate": "December 22nd, 2025"
27312743
},
2744+
{
2745+
"feedID": "avalanche-beam-usd",
2746+
"shutdownDate": "May 20th, 2026"
2747+
},
2748+
{
2749+
"feedID": "avalanche-woo-eth",
2750+
"shutdownDate": "May 20th, 2026"
2751+
},
27322752
{
27332753
"feedID": "base-dola-usd",
27342754
"shutdownDate": "May 6th, 2026"
@@ -2741,10 +2761,6 @@
27412761
"feedID": "bnb-chain-musd-usd",
27422762
"shutdownDate": "April 8th, 2026"
27432763
},
2744-
{
2745-
"feedID": "bob-baby-usd",
2746-
"shutdownDate": "April 8th, 2026"
2747-
},
27482764
{
27492765
"feedID": "ethereum-alcx-eth",
27502766
"shutdownDate": "April 8th, 2026"
@@ -2757,6 +2773,10 @@
27572773
"feedID": "ethereum-dolo-usd",
27582774
"shutdownDate": "April 29th, 2026"
27592775
},
2776+
{
2777+
"feedID": "ethereum-tusd-eth",
2778+
"shutdownDate": "May 20th, 2026"
2779+
},
27602780
{
27612781
"feedID": "fantom-aave-usd",
27622782
"shutdownDate": "January 12th, 2026"

.github/scripts/data/detect-data.sh

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,8 @@ node <<EOF
162162
const newlyFound = JSON.parse(fs.readFileSync('${NEW_DATA_FILE}', 'utf8'));
163163
const items = newlyFound.newlyFoundItems || [];
164164
const newlyDeprecatedItems = newlyFound.newlyDeprecatedItems || [];
165-
const resolvedDeprecatedItems = newlyFound.resolvedDeprecatedItems || [];
166165
const changedDeprecatedItems = newlyFound.changedDeprecatedItems || [];
167166
const newlyDeprecatedStreams = newlyFound.newlyDeprecatedStreams || [];
168-
const resolvedDeprecatedStreams = newlyFound.resolvedDeprecatedStreams || [];
169167
const changedDeprecatedStreams = newlyFound.changedDeprecatedStreams || [];
170168
const deprecatingItems = [
171169
...newlyDeprecatedItems,
@@ -175,22 +173,6 @@ node <<EOF
175173
...newlyDeprecatedStreams,
176174
...changedDeprecatedStreams.map(change => change.current).filter(Boolean),
177175
];
178-
const deprecatedFeedIdsToRemove = new Set([
179-
...resolvedDeprecatedItems.map(item => item.feedID),
180-
...changedDeprecatedItems.map(change => change.previous && change.previous.feedID).filter(Boolean),
181-
]);
182-
const deprecatedFeedUrlsToRemove = new Set([
183-
...resolvedDeprecatedItems.map(item => item.url).filter(Boolean),
184-
...changedDeprecatedItems.map(change => change.previous && change.previous.url).filter(Boolean),
185-
]);
186-
const deprecatedStreamIdsToRemove = new Set([
187-
...resolvedDeprecatedStreams.map(item => item.feedID),
188-
...changedDeprecatedStreams.map(change => change.previous && change.previous.feedID).filter(Boolean),
189-
]);
190-
const deprecatedStreamUrlsToRemove = new Set([
191-
...resolvedDeprecatedStreams.map(item => item.url).filter(Boolean),
192-
...changedDeprecatedStreams.map(change => change.previous && change.previous.url).filter(Boolean),
193-
]);
194176
195177
const CHANGELOG_PATH = path.resolve('${CHANGELOG_FILE}');
196178
let changelog;
@@ -348,55 +330,13 @@ node <<EOF
348330
});
349331
}
350332
351-
function removeResolvedDeprecationsFromChangelog(topic, emptyEntryTitle, feedIds, urls) {
352-
if (feedIds.size === 0 && urls.size === 0) return;
353-
354-
changelog.data = changelog.data.filter(entry => {
355-
if (
356-
entry.topic !== topic ||
357-
(entry.category !== "deprecation" && entry.title !== emptyEntryTitle) ||
358-
!Array.isArray(entry.relatedTokens)
359-
) {
360-
return true;
361-
}
362-
363-
const originalLength = entry.relatedTokens.length;
364-
entry.relatedTokens = entry.relatedTokens.filter(token => {
365-
if (!token || typeof token !== "object") return true;
366-
return !feedIds.has(token.feedID) && !urls.has(token.url);
367-
});
368-
369-
if (entry.relatedTokens.length === originalLength) return true;
370-
371-
if (entry.relatedTokens.length === 0 && entry.title === emptyEntryTitle) {
372-
return false;
373-
}
374-
375-
const remainingNetworks = [...new Set(
376-
entry.relatedTokens
377-
.filter(token => token && typeof token === "object" && token.network)
378-
.map(token => token.network)
379-
)];
380-
if (remainingNetworks.length > 0) {
381-
entry.relatedNetworks = remainingNetworks;
382-
} else {
383-
delete entry.relatedNetworks;
384-
}
385-
386-
return true;
387-
});
388-
}
389-
390333
// === Now build each group
391334
const dataFeedsTokens = buildDataFeedTokens(dataFeeds);
392335
const dataStreamsTokens = buildDataStreamTokens(dataStreams);
393336
const smartDataTokens = buildSmartDataTokens(smartData);
394337
const deprecatingDataFeedTokens = buildDeprecatingDataFeedTokens(deprecatingItems);
395338
const deprecatingDataStreamTokens = buildDeprecatingDataStreamTokens(deprecatingStreamItems);
396339
397-
removeResolvedDeprecationsFromChangelog("Data Feeds", "Feeds scheduled for deprecation", deprecatedFeedIdsToRemove, deprecatedFeedUrlsToRemove);
398-
removeResolvedDeprecationsFromChangelog("Data Streams", "Streams scheduled for deprecation", deprecatedStreamIdsToRemove, deprecatedStreamUrlsToRemove);
399-
400340
// === Create new changelog entries
401341
const newEntries = [];
402342

0 commit comments

Comments
 (0)