From 094f31322e10dfeb77a112d10f5d8bb01e6c4063 Mon Sep 17 00:00:00 2001 From: codingsh Date: Mon, 27 Dec 2021 16:58:51 +0000 Subject: [PATCH 1/4] feat(layerw): add Metis Token List --- README.md | 1 + src/erc20/metis.json | 66 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 src/erc20/metis.json diff --git a/README.md b/README.md index 482f9fe9..1c09f6fc 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ The token lists for Mask. | Mumbai | 80001 | [latest](https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/80001/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/80001/tokens.json) | Arbiturm | 42161 | [latest](https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/42161/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/42161/tokens.json) | CELO | 42220 | [latest](https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/42220/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/42220/tokens.json) +| CELO | 1088 | [latest](https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/1088/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/1088/tokens.json) ## Versions diff --git a/src/erc20/metis.json b/src/erc20/metis.json new file mode 100644 index 00000000..c0238259 --- /dev/null +++ b/src/erc20/metis.json @@ -0,0 +1,66 @@ + [ + { + "chainId": 1088, + "address": "0xea32a96608495e54156ae48931a7c20f0dcc1a21", + "decimals": 6, + "name": "USDC Token", + "symbol": "m.USDC", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/USDC/logo.png" + }, + { + "chainId": 1088, + "address": "0xbb06dca3ae6887fabf931640f67cab3e3a16f4dc", + "decimals": 6, + "name": "USDT Token", + "symbol": "m.USDT", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/USDT/logo.png" + }, + { + "chainId": 1088, + "address": "0x5ce34d9abe4bf239cbc08b89287c87f4cd6d80b7", + "decimals": 18, + "name": "WOW Token", + "symbol": "m.WOW", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/WOW/logo.png" + }, + { + "chainId": 1088, + "address": "0xf5f66d5daa89c090a7afa10e6c1553b2887a9a33", + "decimals": 18, + "name": "LINK Token", + "symbol": "m.LINK", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/LINK/logo.png" + }, + { + "chainId": 1088, + "address": "0x420000000000000000000000000000000000000a", + "decimals": 18, + "name": "Ether", + "symbol": "WETH", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/ETH/logo.png" + }, + { + "chainId": 1088, + "address": "0x68D97B7A961a5239B9F911DA8dEb57F6eF6e5e28", + "decimals": 18, + "name": "AAVE Token", + "symbol": "AAVE", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/AAVE/logo.png" + }, + { + "chainId": 1088, + "address": "0x87DD4a7Ad23B95cD9fF9C26B5cF325905CaF8663", + "decimals": 18, + "name": "Curve DAO Token", + "symbol": "CRV", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/CRV/logo.png" + }, + { + "chainId": 1088, + "address": "0x90fE084F877C65e1b577c7b2eA64B8D8dd1AB278", + "decimals": 18, + "name": "Netswap Token", + "symbol": "NETT", + "logoURI": "https://raw.githubusercontent.com/Netswap/tokens/master/assets/0x90fe084f877c65e1b577c7b2ea64b8d8dd1ab278/logo.png" + } + ] \ No newline at end of file From 8f315b402d646f9a3e602b67a1ed5c6a6ac45791 Mon Sep 17 00:00:00 2001 From: codingsh Date: Mon, 27 Dec 2021 17:27:34 +0000 Subject: [PATCH 2/4] add Mets stardust Test Tokens List --- README.md | 3 ++- src/erc20/stardust.json | 42 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 src/erc20/stardust.json diff --git a/README.md b/README.md index 1c09f6fc..e486e6f3 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,8 @@ The token lists for Mask. | Mumbai | 80001 | [latest](https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/80001/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/80001/tokens.json) | Arbiturm | 42161 | [latest](https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/42161/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/42161/tokens.json) | CELO | 42220 | [latest](https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/42220/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/42220/tokens.json) -| CELO | 1088 | [latest](https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/1088/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/1088/tokens.json) +| Metis | 1088 | [latest](https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/1088/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/1088/tokens.json) +| Stardust | 588 | [latest](https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/588/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://raw.githubusercontent.com/DimensionDev/Mask-Token-List/gh-pages/latest/588/tokens.json) ## Versions diff --git a/src/erc20/stardust.json b/src/erc20/stardust.json new file mode 100644 index 00000000..1e394b93 --- /dev/null +++ b/src/erc20/stardust.json @@ -0,0 +1,42 @@ + [ + { + "chainId": 588, + "address": "0xF02Efd44B57d143c38A329dD299683bf24Cf8aE0", + "decimals": 6, + "name": "Test USDT", + "symbol": "TUSDT", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/USDT/logo.png" + }, + { + "chainId": 588, + "address": "0x48c754c7A6ED973FB10d04aDbb15C91BC704F72A", + "decimals": 6, + "name": "Test USDC", + "symbol": "TUSDC", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/USDC/logo.png" + }, + { + "chainId": 588, + "address": "0x5ee1167Cc431ce2A99710f7173e28Da2D90593c9", + "decimals": 8, + "name": "Test WBTC", + "symbol": "TWBTC", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/WBTC/logo.png" + }, + { + "chainId": 588, + "address": "0x3Aa437CB25bf718a8952603B24c2ACe332185d95", + "decimals": 18, + "name": "Test LINK", + "symbol": "TLINK", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/LINK/logo.png" + }, + { + "chainId": 588, + "address": "0xd9c952C7900B92b2b4E1De4b77348D71f3A2FD29", + "decimals": 18, + "name": "Test UNI", + "symbol": "TUNI", + "logoURI": "https://raw.githubusercontent.com/MetisProtocol/metis-bridge-resources/master/tokens/UNI/logo.png" + } + ] \ No newline at end of file From 118df20240ed34f3bc0d6be4b95dfdd1bfdd1f3e Mon Sep 17 00:00:00 2001 From: codingsh Date: Thu, 3 Mar 2022 23:28:58 +0000 Subject: [PATCH 3/4] fixed generate script --- scripts/build.sh | 2 +- scripts/generate-erc20.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 8bef3a7c..da41a076 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -5,7 +5,7 @@ VERSION=$(node -p -e "require('./package.json').version") CHAIN[0]=dist/v$VERSION -for i in {1,3,4,10,56,97,100,122,137,250,288,42161,42220,43114,80001,1313161554}; do +for i in {1,3,4,10,56,97,100,122,137,250,288,588,1088,42161,42220,43114,80001,1313161554}; do CHAIN[$i]=dist/v$VERSION/$i done diff --git a/scripts/generate-erc20.js b/scripts/generate-erc20.js index 6431fde1..7fcc009c 100644 --- a/scripts/generate-erc20.js +++ b/scripts/generate-erc20.js @@ -19,6 +19,8 @@ const Aurora = require("../src/erc20/aurora.json"); const Avalanche = require("../src/erc20/avalanche.json"); const Boba = require("../src/erc20/boba.json"); const Pancake = require("../src/erc20/pancake.json"); +const Metis = require("../src/erc20/metis.json"); +const Stardust = require("../src/erc20/stardust.json"); const QucikSwapTokens = require("../src/erc20/quickswap.json"); const { fetchDebankLogoURI } = require("./fetch-debank-logo-uri"); const { addChainId, generateTokenList } = require("./shared"); @@ -70,6 +72,8 @@ const chainIdToTokensMapping = { 250: [Fantom], 288: [Boba], 137: [Matic, QuickSwap], + 588: [Stardust], + 1088: [Metis], 42161: [Arbiturm], 42220: [Celo], 43114: [Avalanche], From 0d0d98ce013e0b43b686623b1106d2c574de2309 Mon Sep 17 00:00:00 2001 From: codingsh Date: Fri, 29 Apr 2022 12:40:52 +0200 Subject: [PATCH 4/4] bump: version 0.0.39 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 08deef6c..dcfdca7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mask-token-lists", - "version": "0.0.35", + "version": "0.0.39", "repository": "https://github.com/DimensionDev/Mask-Token-Lists.git", "license": "MIT", "author": "guanbinrui ",