Skip to content

Commit

Permalink
Merge pull request MyEtherWallet#1939 from MyEtherWallet/devop/new-to…
Browse files Browse the repository at this point in the history
…kens

devop: added new icons, fixed address errors
  • Loading branch information
gamalielhere authored Mar 23, 2022
2 parents 799536a + 37fc2e6 commit 08961fa
Show file tree
Hide file tree
Showing 294 changed files with 10,403 additions and 1,707 deletions.
1,507 changes: 1,485 additions & 22 deletions dist/master-file.json

Large diffs are not rendered by default.

1,289 changes: 681 additions & 608 deletions dist/tokens/bsc/tokens-bsc.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tokens/bsc/tokens-bsc.min.json

Large diffs are not rendered by default.

883 changes: 775 additions & 108 deletions dist/tokens/eth/tokens-eth.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tokens/eth/tokens-eth.min.json

Large diffs are not rendered by default.

4,757 changes: 3,796 additions & 961 deletions dist/tokens/matic/tokens-matic.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tokens/matic/tokens-matic.min.json

Large diffs are not rendered by default.

21 changes: 17 additions & 4 deletions generateMissingTokenListFromIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const matic = 'https://tokens.coingecko.com/polygon-pos/all.json';
const eth = 'https://tokens.coingecko.com/ethereum/all.json';
const fetch = require('node-fetch');

const isAddress = address => {
return address && utils.isHexStrict(address) && utils.isAddress(address);
};

function fileProcessor(address, obj) {
const list = JSON.parse(
fs.readFileSync(
Expand Down Expand Up @@ -67,7 +71,7 @@ function generateMissingToken() {
const notInList = [];
addressOnly.forEach(obj => {
const addr = obj.address;
if (utils.isAddress(addr)) {
if (isAddress(addr)) {
const inExclusionList = exclusion.find(item => {
const splitAddress = item.split(/[^a-z0-9+]+/gi);
return (
Expand Down Expand Up @@ -98,7 +102,10 @@ function generateMissingToken() {
return res.json();
})
.then(data => {
fs.writeFileSync('bscTokens.json', JSON.stringify(data.tokens));
fs.writeFileSync(
'bscTokens.json',
JSON.stringify(data.tokens.filter(t => isAddress(t.address)))
);
console.log('Success on fetching data for bsc');
})
.catch(e => {
Expand All @@ -109,7 +116,10 @@ function generateMissingToken() {
return res.json();
})
.then(data => {
fs.writeFileSync('maticTokens.json', JSON.stringify(data.tokens));
fs.writeFileSync(
'maticTokens.json',
JSON.stringify(data.tokens.filter(t => isAddress(t.address)))
);
console.log('Success on fetching data for matic');
})
.catch(e => {
Expand All @@ -120,7 +130,10 @@ function generateMissingToken() {
return res.json();
})
.then(data => {
fs.writeFileSync('ethTokens.json', JSON.stringify(data.tokens));
fs.writeFileSync(
'ethTokens.json',
JSON.stringify(data.tokens.filter(t => isAddress(t.address)))
);
console.log('Success on fetching data for eth');
})
.catch(e => {
Expand Down
2 changes: 1 addition & 1 deletion renameIcons.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs');
const icons = './newicons';
const icons = './PNG v36';
const actualIcons = fs.readdirSync(icons);
const web3 = require('web3');
const utils = web3.utils;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/icons/DATA-0x33d63Ba1E57E54779F7dDAeaA7109349344cf5F1.png
Binary file modified src/icons/DOGEGF-0xfb130d93E49DcA13264344966A611dc79a456Bc5.png
Binary file modified src/icons/GCR-0x6307B25A665Efc992EC1C1bC403c38F3dDd7c661.png
Binary file modified src/icons/PSP-0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5.png
27 changes: 27 additions & 0 deletions src/tokens/bsc/0x51F35073FF7cF54c9e86b7042E59A8cC9709FC46.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "ETNA",
"name": "ETNA Network",
"type": "ERC20",
"address": "0x51F35073FF7cF54c9e86b7042E59A8cC9709FC46",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/bsc/0x9Fb9a33956351cf4fa040f65A13b835A3C8764E3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "MULTI",
"name": "Multichain",
"type": "ERC20",
"address": "0x9Fb9a33956351cf4fa040f65A13b835A3C8764E3",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/bsc/0xA58950F05FeA2277d2608748412bf9F802eA4901.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "WSG",
"name": "Wall Street Games",
"type": "ERC20",
"address": "0xA58950F05FeA2277d2608748412bf9F802eA4901",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/bsc/0xD3b71117E6C1558c1553305b44988cd944e97300.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "YEL",
"name": "Yel Finance",
"type": "ERC20",
"address": "0xD3b71117E6C1558c1553305b44988cd944e97300",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/eth/0x0aA7eFE4945Db24d95cA6E117BBa65Ed326e291A.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "OJA",
"name": "Ojamu",
"type": "ERC20",
"address": "0x0aA7eFE4945Db24d95cA6E117BBa65Ed326e291A",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/eth/0x1Fd154B4d0E3753B714B511a53Fe1fb72dc7AE1C.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "SWD",
"name": "SW DAO",
"type": "ERC20",
"address": "0x1Fd154B4d0E3753B714B511a53Fe1fb72dc7AE1C",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/eth/0x20BC832ca081b91433ff6c17f85701B6e92486c5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "RETH2",
"name": "rETH2",
"type": "ERC20",
"address": "0x20BC832ca081b91433ff6c17f85701B6e92486c5",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/eth/0x47110d43175f7f2C2425E7d15792acC5817EB44f.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "GMI",
"name": "Bankless DeFi Innov",
"type": "ERC20",
"address": "0x47110d43175f7f2C2425E7d15792acC5817EB44f",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/eth/0x48C3399719B582dD63eB5AADf12A40B4C3f52FA2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "SWISE",
"name": "StakeWise",
"type": "ERC20",
"address": "0x48C3399719B582dD63eB5AADf12A40B4C3f52FA2",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/eth/0x62Dc4817588d53a056cBbD18231d91ffCcd34b2A.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "DHV",
"name": "DeHive",
"type": "ERC20",
"address": "0x62Dc4817588d53a056cBbD18231d91ffCcd34b2A",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/eth/0x65Ef703f5594D2573eb71Aaf55BC0CB548492df4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "MULTI",
"name": "Multichain",
"type": "ERC20",
"address": "0x65Ef703f5594D2573eb71Aaf55BC0CB548492df4",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
27 changes: 27 additions & 0 deletions src/tokens/eth/0x77777777772cf0455fB38eE0e75f38034dFa50DE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"symbol": "XY",
"name": "XY Finance",
"type": "ERC20",
"address": "0x77777777772cf0455fB38eE0e75f38034dFa50DE",
"ens_address": "",
"decimals": 18,
"website": "",
"logo": { "src": "", "width": "", "height": "", "ipfs_hash": "" },
"support": { "email": "", "url": "" },
"social": {
"blog": "",
"chat": "",
"discord": "",
"facebook": "",
"forum": "",
"github": "",
"gitter": "",
"instagram": "",
"linkedin": "",
"reddit": "",
"slack": "",
"telegram": "",
"twitter": "",
"youtube": ""
}
}
Loading

0 comments on commit 08961fa

Please sign in to comment.