Skip to content

Commit 5c3d96b

Browse files
github-actions[bot]khadniaelmanaa
authored
Update CCT Changelog: New CCIP Tokens Detected (#2802)
* CCT: Update changelog with new tokens * nit --------- Co-authored-by: khadni <[email protected]> Co-authored-by: aelmanaa <[email protected]>
1 parent 4341bf8 commit 5c3d96b

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

public/changelog.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,21 @@
298298
}
299299
},
300300
"data": [
301+
{
302+
"category": "integration",
303+
"date": "2025-07-06",
304+
"description": "Newly supported tokens: MEW",
305+
"relatedTokens": [
306+
{
307+
"assetName": "cat in a dogs world",
308+
"baseAsset": "MEW",
309+
"url": "https://docs.chain.link/ccip/directory/mainnet/token/MEW",
310+
"iconUrl": "https://d2f70xi62kby8n.cloudfront.net/tokens/mew.webp?auto=compress%2Cformat"
311+
}
312+
],
313+
"title": "Cross-chain token (CCT) standard: Added support for new tokens",
314+
"topic": "CCIP"
315+
},
301316
{
302317
"category": "integration",
303318
"date": "2025-07-02",

src/scripts/ccip/detect-new-tokens.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,17 +1614,17 @@ async function generateChangelogEntry(
16141614
}
16151615

16161616
// Format the JSON with prettier using project config
1617-
const prettierConfig = (await prettier.resolveConfig(process.cwd())) || {}
1617+
const prettierConfig = await prettier.resolveConfig(process.cwd())
16181618

1619-
// Write the changelog json to the file first
1620-
fs.writeFileSync(FILE_PATHS.CHANGELOG, JSON.stringify(changelog))
1621-
1622-
// Then format the file directly using prettier API
1623-
const formatted = await prettier.format(fs.readFileSync(FILE_PATHS.CHANGELOG, "utf8"), {
1619+
// Format the JSON content directly before writing (like detect-new-data.ts)
1620+
const formattedJson = await prettier.format(JSON.stringify(changelog), {
16241621
...prettierConfig,
1625-
filepath: FILE_PATHS.CHANGELOG, // This ensures the correct parser based on file extension
1622+
parser: "json", // Explicitly specify JSON parser
16261623
})
1627-
fs.writeFileSync(FILE_PATHS.CHANGELOG, formatted)
1624+
1625+
// Write the formatted content directly
1626+
fs.writeFileSync(FILE_PATHS.CHANGELOG, formattedJson, "utf8")
1627+
16281628
const changelogSize = fs.statSync(FILE_PATHS.CHANGELOG).size
16291629

16301630
logger.debug(

0 commit comments

Comments
 (0)