From d4ccfd2d33f46b28eea51e33d9668da2a1e1fc76 Mon Sep 17 00:00:00 2001 From: pclaesen <42892965+pclaesen@users.noreply.github.com> Date: Fri, 5 Sep 2025 08:58:11 +0000 Subject: [PATCH 1/8] Feat.: Add GHO, change USDS to MakerDao token. StableUSD has been renamed to Stably USD Classic (USDSC) and is no longer supported by the issuer. For more information, please refer to https://stably.io/usdsc --- .husky/_/pre-commit | 5 +---- tokens/token-list.json | 39 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 7 deletions(-) diff --git a/.husky/_/pre-commit b/.husky/_/pre-commit index 686a8bf..16aae78 100755 --- a/.husky/_/pre-commit +++ b/.husky/_/pre-commit @@ -1,5 +1,2 @@ #!/usr/bin/env sh -npm run format -npm run check -git add -A -npm run validate +. "$(dirname "$0")/h" \ No newline at end of file diff --git a/tokens/token-list.json b/tokens/token-list.json index 70ccfcf..8178ecd 100644 --- a/tokens/token-list.json +++ b/tokens/token-list.json @@ -4330,6 +4330,17 @@ "hash": "0x5BC7e5f0Ab8b2E10D2D0a3F21739FCe62459aeF3", "chainId": 1 }, + { + "id": "GHO-mainnet", + "name": "GHO", + "symbol": "GHO", + "decimals": 18, + "address": "0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f", + "network": "mainnet", + "type": "ERC20", + "hash": "0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f", + "chainId": 1 + }, { "id": "HYDRO-mainnet", "name": "HYDRO", @@ -5621,11 +5632,11 @@ "id": "USDS-mainnet", "name": "USDS", "symbol": "USDS", - "decimals": 6, - "address": "0xA4Bdb11dc0a2bEC88d24A3aa1E6Bb17201112eBe", + "decimals": 18, + "address": "0xdC035D45d973E3EC169d2276DDab16f1e407384F", "network": "mainnet", "type": "ERC20", - "hash": "0xA4Bdb11dc0a2bEC88d24A3aa1E6Bb17201112eBe", + "hash": "0xdC035D45d973E3EC169d2276DDab16f1e407384F", "chainId": 1 }, { @@ -7773,6 +7784,17 @@ "hash": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", "chainId": 10 }, + { + "id": "USDS-optimism", + "name": "USDS", + "symbol": "USDS", + "decimals": 18, + "address": "0x4F13a96EC5C4Cf34e442b46Bbd98a0791F20edC3", + "network": "optimism", + "type": "ERC20", + "hash": "0x4F13a96EC5C4Cf34e442b46Bbd98a0791F20edC3", + "chainId": 10 + }, { "id": "USDC-multichain-moonbeam", "name": "USDC-multichain", @@ -7938,6 +7960,17 @@ "hash": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", "chainId": 42161 }, + { + "id": "USDS-arbitrum-one", + "name": "USDS", + "symbol": "USDS", + "decimals": 18, + "address": "0x6491c05A82219b8D1479057361ff1654749b876b", + "network": "arbitrum-one", + "type": "ERC20", + "hash": "0x6491c05A82219b8D1479057361ff1654749b876b", + "chainId": 42161 + }, { "id": "AVAX-avalanche", "name": "AVAX", From 29e0c343726632bbbfc48d229f0b6c9724aa540b Mon Sep 17 00:00:00 2001 From: pclaesen Date: Wed, 17 Sep 2025 20:17:41 +0200 Subject: [PATCH 2/8] Add MetaMask USD --- tokens/token-list.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tokens/token-list.json b/tokens/token-list.json index 8178ecd..53c1c07 100644 --- a/tokens/token-list.json +++ b/tokens/token-list.json @@ -5639,6 +5639,17 @@ "hash": "0xdC035D45d973E3EC169d2276DDab16f1e407384F", "chainId": 1 }, + { + "id": "mUSD-mainnet", + "name": "MetaMask USD", + "symbol": "mUSD", + "decimals": 6, + "address": "0xacA92E438df0B2401fF60dA7E4337B687a2435DA", + "network": "mainnet", + "type": "ERC20", + "hash": "0xacA92E438df0B2401fF60dA7E4337B687a2435DA", + "chainId": 1 + }, { "id": "USDC-mainnet", "name": "USDC", @@ -6433,7 +6444,7 @@ }, { "id": "mUSD-mainnet", - "name": "mUSD", + "name": "mStable USD", "symbol": "mUSD", "decimals": 18, "address": "0xe2f2a5C287993345a840Db3B0845fbC70f5935a5", From 5ce5db30ba280c7f85a951aa393dc8bf2a94b8ea Mon Sep 17 00:00:00 2001 From: pclaesen Date: Sat, 25 Oct 2025 08:41:12 +0200 Subject: [PATCH 3/8] Change Metamas USD id to resolve conflict with mStable USD --- tokens/token-list.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/token-list.json b/tokens/token-list.json index 53c1c07..9b41a3c 100644 --- a/tokens/token-list.json +++ b/tokens/token-list.json @@ -5640,7 +5640,7 @@ "chainId": 1 }, { - "id": "mUSD-mainnet", + "id": "mUSD-metamask-mainnet", "name": "MetaMask USD", "symbol": "mUSD", "decimals": 6, From bf3d28dd2cacd43dd88b96971cc769e8ae153261 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 3 Nov 2025 19:35:07 -0500 Subject: [PATCH 4/8] fix: Remove incorrectly tracked husky internal file and create proper pre-commit hook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed .husky/_/pre-commit (auto-generated internal file that should be gitignored) - Created .husky/pre-commit with proper validation commands - Hook runs: format → validate → check (removed deprecated husky.sh sourcing and git add -A) --- .husky/_/pre-commit | 2 -- .husky/pre-commit | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) delete mode 100755 .husky/_/pre-commit create mode 100755 .husky/pre-commit diff --git a/.husky/_/pre-commit b/.husky/_/pre-commit deleted file mode 100755 index 16aae78..0000000 --- a/.husky/_/pre-commit +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..f7b9177 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +npm run format +npm run validate +npm run check From aafa58a8c985f93ea6db279652026027f0a31e05 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 3 Nov 2025 19:36:28 -0500 Subject: [PATCH 5/8] feat: Implement versioned deployment for token list - Deploy creates v{MAJOR}.{MINOR}.{PATCH}.json (e.g., v1.1.0.json) - Deploy creates v{MAJOR}.{MINOR}.json (e.g., v1.1.json) - Deploy creates v{MAJOR}.json (e.g., v1.json) - Deploy creates latest.json and token-list.json - Enables consumers to pin to specific versions for stability --- .github/workflows/deploy.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0cadd85..0330637 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,8 +27,28 @@ jobs: - name: Create dist directory run: | mkdir -p dist - cp tokens/token-list.json dist/ + + # Extract version components + VERSION=$(jq -r '"\(.version.major).\(.version.minor).\(.version.patch)"' tokens/token-list.json) + MAJOR=$(jq -r '.version.major' tokens/token-list.json) + MINOR=$(jq -r '.version.minor' tokens/token-list.json) + + # Copy with full version (e.g., v1.1.0.json) + cp tokens/token-list.json dist/v${VERSION}.json + + # Copy with major.minor version (e.g., v1.1.json) + cp tokens/token-list.json dist/v${MAJOR}.${MINOR}.json + + # Copy with major version only (e.g., v1.json) + cp tokens/token-list.json dist/v${MAJOR}.json + + # Copy as latest (always points to newest) cp tokens/token-list.json dist/latest.json + + # Copy base file + cp tokens/token-list.json dist/token-list.json + + echo "Created versioned files: v${VERSION}.json, v${MAJOR}.${MINOR}.json, v${MAJOR}.json, latest.json" - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 From 9bc7a75c6684e42ec309a64a7c06351a1d4e136a Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 3 Nov 2025 19:36:56 -0500 Subject: [PATCH 6/8] chore: Bump version to 1.1.0 and update timestamp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Version: 1.0.0 → 1.1.0 (minor bump for new token additions) - Timestamp: 2025-01-09 → 2025-11-03 - Aligns with semantic versioning for new features (GHO, USDS, MetaMask USD) --- tokens/token-list.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokens/token-list.json b/tokens/token-list.json index 9b41a3c..7468335 100644 --- a/tokens/token-list.json +++ b/tokens/token-list.json @@ -1,9 +1,9 @@ { "name": "Request Network Token List", - "timestamp": "2025-01-09T11:39:10.425Z", + "timestamp": "2025-11-03T00:00:00.000Z", "version": { "major": 1, - "minor": 0, + "minor": 1, "patch": 0 }, "tokens": [ From f423f9ffe7b635abad1165518d4deefe06b7eea2 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 3 Nov 2025 19:56:58 -0500 Subject: [PATCH 7/8] fix: Restore deprecated Stably USDS and rename Sky USDS on mainnet BREAKING CHANGE PREVENTION: - Restored USDS-mainnet (Stably StableUSD at 0xA4Bdb11dc0a2bEC88d24A3aa1E6Bb17201112eBe) to preserve backward compatibility for legacy requests - Renamed new Sky USDS on mainnet to USDS-sky-mainnet to avoid ID collision - L2 tokens (Optimism, Arbitrum) keep original IDs as no conflict exists This prevents breaking existing requests that reference the old USDS-mainnet ID. Token IDs must never be reused as they reference different contracts with different decimals (6 vs 18), which would break amount calculations. --- tokens/token-list.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tokens/token-list.json b/tokens/token-list.json index 7468335..5e4b64b 100644 --- a/tokens/token-list.json +++ b/tokens/token-list.json @@ -5630,6 +5630,17 @@ }, { "id": "USDS-mainnet", + "name": "StableUSD", + "symbol": "USDS", + "decimals": 6, + "address": "0xA4Bdb11dc0a2bEC88d24A3aa1E6Bb17201112eBe", + "network": "mainnet", + "type": "ERC20", + "hash": "0xA4Bdb11dc0a2bEC88d24A3aa1E6Bb17201112eBe", + "chainId": 1 + }, + { + "id": "USDS-sky-mainnet", "name": "USDS", "symbol": "USDS", "decimals": 18, From 755998e5ce84a309dc8a104df9a991e148d2dd68 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 3 Nov 2025 20:59:28 -0500 Subject: [PATCH 8/8] fix: Add git staging after format and proper error handling in pre-commit hook - Added 'git add -A' after npm run format to stage formatting changes - Added '|| exit 1' to all commands to ensure hook fails on errors - Prevents formatted changes from being omitted from commits --- .husky/pre-commit | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index f7b9177..116bcee 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,6 @@ #!/usr/bin/env sh -npm run format -npm run validate -npm run check +npm run format || exit 1 +git add -A +npm run validate || exit 1 +npm run check || exit 1