From e022a5990a3b8900288e6fd69707987981cb3bfc Mon Sep 17 00:00:00 2001 From: Paul Razvan Berg Date: Sun, 6 Oct 2024 13:10:48 +0300 Subject: [PATCH] refactor: use hyphen instead of underscore --- src/buildList.js | 64 +++++++++---------- ...rum_mainnet.json => arbitrum-mainnet.json} | 0 ...he_mainnet.json => avalanche-mainnet.json} | 0 .../{base_mainnet.json => base-mainnet.json} | 0 ...{blast_mainnet.json => blast-mainnet.json} | 0 .../{bsc_mainnet.json => bsc-mainnet.json} | 0 ...eum_mainnet.json => ethereum-mainnet.json} | 0 ...nosis_mainnet.json => gnosis-mainnet.json} | 0 ...{iotex_mainnet.json => iotex-mainnet.json} | 0 ...nk_mainnet.json => lightlink-mainnet.json} | 0 ...{linea_mainnet.json => linea-mainnet.json} | 0 ...ism_mainnet.json => optimism-mainnet.json} | 0 ...ygon_mainnet.json => polygon-mainnet.json} | 0 ...{ronin_mainnet.json => ronin-mainnet.json} | 0 ...{ronin_testnet.json => ronin-testnet.json} | 0 ...croll_mainnet.json => scroll-mainnet.json} | 0 ...ksync_mainnet.json => zksync-mainnet.json} | 0 17 files changed, 32 insertions(+), 32 deletions(-) rename src/tokens/{arbitrum_mainnet.json => arbitrum-mainnet.json} (100%) rename src/tokens/{avalanche_mainnet.json => avalanche-mainnet.json} (100%) rename src/tokens/{base_mainnet.json => base-mainnet.json} (100%) rename src/tokens/{blast_mainnet.json => blast-mainnet.json} (100%) rename src/tokens/{bsc_mainnet.json => bsc-mainnet.json} (100%) rename src/tokens/{ethereum_mainnet.json => ethereum-mainnet.json} (100%) rename src/tokens/{gnosis_mainnet.json => gnosis-mainnet.json} (100%) rename src/tokens/{iotex_mainnet.json => iotex-mainnet.json} (100%) rename src/tokens/{lightlink_mainnet.json => lightlink-mainnet.json} (100%) rename src/tokens/{linea_mainnet.json => linea-mainnet.json} (100%) rename src/tokens/{optimism_mainnet.json => optimism-mainnet.json} (100%) rename src/tokens/{polygon_mainnet.json => polygon-mainnet.json} (100%) rename src/tokens/{ronin_mainnet.json => ronin-mainnet.json} (100%) rename src/tokens/{ronin_testnet.json => ronin-testnet.json} (100%) rename src/tokens/{scroll_mainnet.json => scroll-mainnet.json} (100%) rename src/tokens/{zksync_mainnet.json => zksync-mainnet.json} (100%) diff --git a/src/buildList.js b/src/buildList.js index eaa375e..568a4f3 100644 --- a/src/buildList.js +++ b/src/buildList.js @@ -1,22 +1,22 @@ const { version } = require("../package.json"); -const arbitrum_mainnet = require("./tokens/arbitrum_mainnet.json"); -const avalanche_mainnet = require("./tokens/avalanche_mainnet.json"); -const base_mainnet = require("./tokens/base_mainnet.json"); -const blast_mainnet = require("./tokens/blast_mainnet.json"); -const bsc_mainnet = require("./tokens/bsc_mainnet.json"); -const ethereum_mainnet = require("./tokens/ethereum_mainnet.json"); -const gnosis_mainnet = require("./tokens/gnosis_mainnet.json"); -const iotex_mainnet = require("./tokens/iotex_mainnet.json"); -const optimism_mainnet = require("./tokens/optimism_mainnet.json"); -const lightlink_mainnet = require("./tokens/lightlink_mainnet.json"); -const linea_mainnet = require("./tokens/linea_mainnet.json"); -const polygon_mainnet = require("./tokens/polygon_mainnet.json"); -const ronin_mainnet = require("./tokens/ronin_mainnet.json"); -const ronin_testnet = require("./tokens/ronin_testnet.json"); -const scroll_testnet = require("./tokens/scroll_mainnet.json"); +const arbitrumMainnet = require("./tokens/arbitrum-mainnet.json"); +const avalancheMainnet = require("./tokens/avalanche-mainnet.json"); +const baseMainnet = require("./tokens/base-mainnet.json"); +const blastMainnet = require("./tokens/blast-mainnet.json"); +const bscMainnet = require("./tokens/bsc-mainnet.json"); +const ethereumMainnet = require("./tokens/ethereum-mainnet.json"); +const gnosisMainnet = require("./tokens/gnosis-mainnet.json"); +const iotexMainnet = require("./tokens/iotex-mainnet.json"); +const optimismMainnet = require("./tokens/optimism-mainnet.json"); +const lightlinkMainnet = require("./tokens/lightlink-mainnet.json"); +const lineaMainnet = require("./tokens/linea-mainnet.json"); +const polygonMainnet = require("./tokens/polygon-mainnet.json"); +const roninMainnet = require("./tokens/ronin-mainnet.json"); +const roninTestnet = require("./tokens/ronin-testnet.json"); +const scrollTestnet = require("./tokens/scroll-mainnet.json"); const sepolia = require("./tokens/sepolia.json"); -const zksync_mainnet = require("./tokens/zksync_mainnet.json"); +const zksyncMainnet = require("./tokens/zksync-mainnet.json"); const bridgeUtils = require("@uniswap/token-list-bridge-utils"); @@ -34,23 +34,23 @@ module.exports = function buildList() { logoURI: "https://files.sablier.com/icon-180x180.png", keywords: ["sablier", "default"], tokens: [ - ...ethereum_mainnet, - ...avalanche_mainnet, - ...arbitrum_mainnet, - ...base_mainnet, - ...blast_mainnet, - ...bsc_mainnet, - ...gnosis_mainnet, - ...iotex_mainnet, - ...lightlink_mainnet, - ...linea_mainnet, - ...optimism_mainnet, - ...polygon_mainnet, - ...ronin_mainnet, - ...ronin_testnet, - ...scroll_testnet, + ...ethereumMainnet, + ...avalancheMainnet, + ...arbitrumMainnet, + ...baseMainnet, + ...blastMainnet, + ...bscMainnet, + ...gnosisMainnet, + ...iotexMainnet, + ...lightlinkMainnet, + ...lineaMainnet, + ...optimismMainnet, + ...polygonMainnet, + ...roninMainnet, + ...roninTestnet, + ...scrollTestnet, ...sepolia, - ...zksync_mainnet, + ...zksyncMainnet, ] // sort them by symbol for easy readability .sort((t1, t2) => { diff --git a/src/tokens/arbitrum_mainnet.json b/src/tokens/arbitrum-mainnet.json similarity index 100% rename from src/tokens/arbitrum_mainnet.json rename to src/tokens/arbitrum-mainnet.json diff --git a/src/tokens/avalanche_mainnet.json b/src/tokens/avalanche-mainnet.json similarity index 100% rename from src/tokens/avalanche_mainnet.json rename to src/tokens/avalanche-mainnet.json diff --git a/src/tokens/base_mainnet.json b/src/tokens/base-mainnet.json similarity index 100% rename from src/tokens/base_mainnet.json rename to src/tokens/base-mainnet.json diff --git a/src/tokens/blast_mainnet.json b/src/tokens/blast-mainnet.json similarity index 100% rename from src/tokens/blast_mainnet.json rename to src/tokens/blast-mainnet.json diff --git a/src/tokens/bsc_mainnet.json b/src/tokens/bsc-mainnet.json similarity index 100% rename from src/tokens/bsc_mainnet.json rename to src/tokens/bsc-mainnet.json diff --git a/src/tokens/ethereum_mainnet.json b/src/tokens/ethereum-mainnet.json similarity index 100% rename from src/tokens/ethereum_mainnet.json rename to src/tokens/ethereum-mainnet.json diff --git a/src/tokens/gnosis_mainnet.json b/src/tokens/gnosis-mainnet.json similarity index 100% rename from src/tokens/gnosis_mainnet.json rename to src/tokens/gnosis-mainnet.json diff --git a/src/tokens/iotex_mainnet.json b/src/tokens/iotex-mainnet.json similarity index 100% rename from src/tokens/iotex_mainnet.json rename to src/tokens/iotex-mainnet.json diff --git a/src/tokens/lightlink_mainnet.json b/src/tokens/lightlink-mainnet.json similarity index 100% rename from src/tokens/lightlink_mainnet.json rename to src/tokens/lightlink-mainnet.json diff --git a/src/tokens/linea_mainnet.json b/src/tokens/linea-mainnet.json similarity index 100% rename from src/tokens/linea_mainnet.json rename to src/tokens/linea-mainnet.json diff --git a/src/tokens/optimism_mainnet.json b/src/tokens/optimism-mainnet.json similarity index 100% rename from src/tokens/optimism_mainnet.json rename to src/tokens/optimism-mainnet.json diff --git a/src/tokens/polygon_mainnet.json b/src/tokens/polygon-mainnet.json similarity index 100% rename from src/tokens/polygon_mainnet.json rename to src/tokens/polygon-mainnet.json diff --git a/src/tokens/ronin_mainnet.json b/src/tokens/ronin-mainnet.json similarity index 100% rename from src/tokens/ronin_mainnet.json rename to src/tokens/ronin-mainnet.json diff --git a/src/tokens/ronin_testnet.json b/src/tokens/ronin-testnet.json similarity index 100% rename from src/tokens/ronin_testnet.json rename to src/tokens/ronin-testnet.json diff --git a/src/tokens/scroll_mainnet.json b/src/tokens/scroll-mainnet.json similarity index 100% rename from src/tokens/scroll_mainnet.json rename to src/tokens/scroll-mainnet.json diff --git a/src/tokens/zksync_mainnet.json b/src/tokens/zksync-mainnet.json similarity index 100% rename from src/tokens/zksync_mainnet.json rename to src/tokens/zksync-mainnet.json