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 diff --git a/.husky/_/pre-commit b/.husky/_/pre-commit deleted file mode 100755 index 686a8bf..0000000 --- a/.husky/_/pre-commit +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env sh -npm run format -npm run check -git add -A -npm run validate diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..116bcee --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,6 @@ +#!/usr/bin/env sh + +npm run format || exit 1 +git add -A +npm run validate || exit 1 +npm run check || exit 1 diff --git a/tokens/token-list.json b/tokens/token-list.json index 70ccfcf..5e4b64b 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": [ @@ -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", @@ -5619,7 +5630,7 @@ }, { "id": "USDS-mainnet", - "name": "USDS", + "name": "StableUSD", "symbol": "USDS", "decimals": 6, "address": "0xA4Bdb11dc0a2bEC88d24A3aa1E6Bb17201112eBe", @@ -5628,6 +5639,28 @@ "hash": "0xA4Bdb11dc0a2bEC88d24A3aa1E6Bb17201112eBe", "chainId": 1 }, + { + "id": "USDS-sky-mainnet", + "name": "USDS", + "symbol": "USDS", + "decimals": 18, + "address": "0xdC035D45d973E3EC169d2276DDab16f1e407384F", + "network": "mainnet", + "type": "ERC20", + "hash": "0xdC035D45d973E3EC169d2276DDab16f1e407384F", + "chainId": 1 + }, + { + "id": "mUSD-metamask-mainnet", + "name": "MetaMask USD", + "symbol": "mUSD", + "decimals": 6, + "address": "0xacA92E438df0B2401fF60dA7E4337B687a2435DA", + "network": "mainnet", + "type": "ERC20", + "hash": "0xacA92E438df0B2401fF60dA7E4337B687a2435DA", + "chainId": 1 + }, { "id": "USDC-mainnet", "name": "USDC", @@ -6422,7 +6455,7 @@ }, { "id": "mUSD-mainnet", - "name": "mUSD", + "name": "mStable USD", "symbol": "mUSD", "decimals": 18, "address": "0xe2f2a5C287993345a840Db3B0845fbC70f5935a5", @@ -7773,6 +7806,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 +7982,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",