Skip to content

Commit

Permalink
Added trending to the token row
Browse files Browse the repository at this point in the history
  • Loading branch information
sameepsi committed Sep 5, 2024
1 parent 957aec3 commit cad8458
Show file tree
Hide file tree
Showing 6 changed files with 339 additions and 168 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quickswap-default-token-list",
"version": "1.3.51",
"version": "1.3.52",
"description": "◦ The Quickswap default token list",
"main": "build/quickswap-default.tokenlist.json",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions src/buildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ module.exports = function buildList() {
]
// sort them by symbol for easy readability
.sort((t1, t2) => {
if(t1.trending === undefined) {
t1.trending = false;
}
if(t2.trending === undefined) {
t2.trending = false;
}
if (t1.chainId === t2.chainId) {
return t1.symbol.toLowerCase() < t2.symbol.toLowerCase() ? -1 : 1;
}
Expand Down
39 changes: 26 additions & 13 deletions src/tokens/astarZKEVM.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,102 +5,115 @@
"symbol": "WETH",
"decimals": 18,
"chainId": 3776,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"trending": false
},
{
"name": "Dai Stablecoin",
"address": "0xC5015b9d9161Dca7e18e32f6f25C4aD850731Fd4",
"symbol": "DAI",
"decimals": 18,
"chainId": 3776,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",
"trending": false
},
{
"name": "Tether USD",
"address": "0x1E4a5963aBFD975d8c9021ce480b42188849D41d",
"symbol": "USDT",
"decimals": 6,
"chainId": 3776,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",
"trending": false
},
{
"name": "USD Coin",
"address": "0xA8CE8aee21bC2A48a5EF670afCc9274C7bbbC035",
"symbol": "USDC",
"decimals": 6,
"chainId": 3776,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"trending": false
},
{
"name": "Wrapped BTC",
"address": "0xEA034fb02eB1808C2cc3adbC15f447B93CbE08e1",
"symbol": "WBTC",
"decimals": 8,
"chainId": 3776,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",
"trending": false
},
{
"name": "Matic",
"address": "0xa2036f0538221a77A3937F1379699f44945018d0",
"symbol": "MATIC",
"decimals": 18,
"chainId": 3776,
"logoURI": "https://i.imgur.com/uIExoAr.png"
"logoURI": "https://i.imgur.com/uIExoAr.png",
"trending": false
},
{
"name": "Wrapped liquid staked Ether 2.0",
"address": "0x5D8cfF95D7A57c0BF50B30b43c7CC0D52825D4a9",
"symbol": "wstETH",
"decimals": 18,
"chainId": 3776,
"logoURI": "https://assets.coingecko.com/coins/images/18834/large/wstETH.png?1633565443"
"logoURI": "https://assets.coingecko.com/coins/images/18834/large/wstETH.png?1633565443",
"trending": false
},
{
"name": "Astar",
"address": "0xdf41220C7e322bFEF933D85D01821ad277f90172",
"symbol": "ASTR",
"decimals": 18,
"chainId": 3776,
"logoURI": "https://i.imgur.com/JzAwnk1.png"
"logoURI": "https://i.imgur.com/JzAwnk1.png",
"trending": false
},
{
"name": "Mother of Memes",
"address": "0xA84DBE4602cBAcfe8Cd858Fe910b88ba0e8b8B18",
"symbol": "HAHA",
"decimals": 18,
"chainId": 3776,
"logoURI": "https://raw.githubusercontent.com/niklabh/sample-nft/main/HAHA.jpg"
"logoURI": "https://raw.githubusercontent.com/niklabh/sample-nft/main/HAHA.jpg",
"trending": false
},
{
"name": "Bifrost Voucher ASTR",
"address": "0x7746ef546d562b443AE4B4145541a3b1a3D75717",
"symbol": "vASTR",
"decimals": 18,
"chainId": 3776,
"logoURI": "https://cdn.liebi.com/vtoken/vASTR.png"
"logoURI": "https://cdn.liebi.com/vtoken/vASTR.png",
"trending": false
},
{
"name": "StakeStone Ether",
"address": "0x80137510979822322193FC997d400D5A6C747bf7",
"symbol": "STONE",
"decimals": 18,
"chainId": 3776,
"logoURI": "https://storage.googleapis.com/ks-setting-1d682dca/dee351e5-ff61-4a8f-994d-82f3078119661696785945490.png"
"logoURI": "https://storage.googleapis.com/ks-setting-1d682dca/dee351e5-ff61-4a8f-994d-82f3078119661696785945490.png",
"trending": false
},
{
"name": "Utility Health Token",
"address": "0xfF49419c7C8095Fec612CE817De75C8C6e22719a",
"symbol": "UHT",
"decimals": 18,
"chainId": 3776,
"logoURI": "https://i.imgur.com/Sp37vt7.png"
"logoURI": "https://i.imgur.com/Sp37vt7.png",
"trending": false
},
{
"name": "Governance Health Token",
"address": "0xFbD5c70754C1d3AD24D29cC1C06418019B47da19",
"symbol": "GHT",
"decimals": 18,
"chainId": 3776,
"logoURI": "https://i.imgur.com/H9BmSFr.png"
"logoURI": "https://i.imgur.com/H9BmSFr.png",
"trending": false
}
]
21 changes: 14 additions & 7 deletions src/tokens/bttc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,54 +5,61 @@
"symbol": "TRX",
"decimals": 6,
"chainId": 199,
"logoURI": "https://bttcscan.com/token/images/tronnetwork_32.png"
"logoURI": "https://bttcscan.com/token/images/tronnetwork_32.png",
"trending": false
},
{
"name": "Tether USD_Ethereum",
"address": "0xE887512ab8BC60BcC9224e1c3b5Be68E26048B8B",
"symbol": "USDT.e",
"decimals": 6,
"chainId": 199,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",
"trending": false
},
{
"name": "Tether USD_TRON",
"address": "0xdB28719F7f938507dBfe4f0eAe55668903D34a15",
"symbol": "USDT.t",
"decimals": 6,
"chainId": 199,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",
"trending": false
},
{
"name": "USD Coin_Ethereum",
"address": "0xAE17940943BA9440540940DB0F1877f101D39e8b",
"symbol": "USDC.e",
"decimals": 6,
"chainId": 199,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"trending": false
},
{
"name": "USD Coin_TRON",
"address": "0x935faA2FCec6Ab81265B301a30467Bbc804b43d3",
"symbol": "USDC.t",
"decimals": 6,
"chainId": 199,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"trending": false
},
{
"name": "Wrapped BTT",
"address": "0x23181F21DEa5936e24163FFABa4Ea3B316B57f3C",
"symbol": "WBTT",
"decimals": 18,
"chainId": 199,
"logoURI": "https://assets.coingecko.com/coins/images/24933/standard/TKfjV9RNKJJCqPvBtK8L7Knykh7DNWvnYt.png?1696524089"
"logoURI": "https://assets.coingecko.com/coins/images/24933/standard/TKfjV9RNKJJCqPvBtK8L7Knykh7DNWvnYt.png?1696524089",
"trending": false
},
{
"name": "ETH",
"address": "0x1249C65AfB11D179FFB3CE7D4eEDd1D9b98AD006",
"symbol": "ETH",
"decimals": 18,
"chainId": 199,
"logoURI": "https://bttcscan.com/token/images/ethereum_32.png"
"logoURI": "https://bttcscan.com/token/images/ethereum_32.png",
"trending": false
}
]
15 changes: 10 additions & 5 deletions src/tokens/dogechain.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,44 @@
"symbol": "WETH",
"decimals": 18,
"chainId": 2000,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"trending": false
},
{
"name": "Tether USD",
"address": "0xB6dc6C8b71e88642cEAD3be1025565A9eE74d1C6",
"symbol": "USDT",
"decimals": 6,
"chainId": 2000,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",
"trending": false
},
{
"name": "USDC",
"address": "0x97eec1c29f745dC7c267F90292AA663d997a601D",
"symbol": "USDC",
"decimals": 6,
"chainId": 2000,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"trending": false
},
{
"name": "Wrapped Bitcoin",
"address": "0xfA9343C3897324496A05fC75abeD6bAC29f8A40f",
"symbol": "WBTC",
"decimals": 6,
"chainId": 2000,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png"
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",
"trending": false
},
{
"name": "Wrapped WDOGE",
"address": "0xB7ddC6414bf4F5515b52D8BdD69973Ae205ff101",
"symbol": "WWDOGE",
"decimals": 18,
"chainId": 2000,
"logoURI": "https://s2.coinmarketcap.com/static/img/coins/64x64/74.png"
"logoURI": "https://s2.coinmarketcap.com/static/img/coins/64x64/74.png",
"trending": false
},
{
"name": "Doge Dragon",
Expand Down
Loading

0 comments on commit cad8458

Please sign in to comment.