Skip to content

Commit

Permalink
devop: recompile
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Mar 11, 2022
1 parent 6893a0b commit f3cda8b
Show file tree
Hide file tree
Showing 598 changed files with 1,317 additions and 865 deletions.
42 changes: 23 additions & 19 deletions checkToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const constraints = {
allowEmpty: false
},
inclusion: {
within: ['ERC20', 'ERC223', 'ERC721', 'ERC777']
within: ['ERC20', 'ERC223', 'ERC721', 'ERC777', 'BEP20']
},
type: 'string'
},
Expand Down Expand Up @@ -145,25 +145,29 @@ function checkToken() {
let errors = 0;
fs.readdirSync(tokensDirectory).forEach(folder => {
fs.readdirSync(`${tokensDirectory}/${folder}`).forEach(file => {
if (
path.extname(file) === '.json' &&
web3.utils.isAddress(file.replace('.json', ''))
) {
const fullPath = `${tokensDirectory}/${folder}/${file}`;
const obj = JSON.parse(fs.readFileSync(fullPath, 'utf8'));
validateObject(constraints, obj, fullPath);
if (validate(obj, constraints) !== undefined) {
const errs = validate(obj, constraints);
Object.keys(errs).forEach(key => {
console.error(
`${errs[key][0]} for ${file} in ${tokensDirectory}/${folder}`
);
});
errors += 1;
try {
if (
path.extname(file) === '.json' &&
web3.utils.isAddress(file.replace('.json', ''))
) {
const fullPath = `${tokensDirectory}/${folder}/${file}`;
const obj = JSON.parse(fs.readFileSync(fullPath, 'utf8'));
validateObject(constraints, obj, fullPath);
if (validate(obj, constraints) !== undefined) {
const errs = validate(obj, constraints);
Object.keys(errs).forEach(key => {
console.error(
`${errs[key][0]} for ${file} in ${tokensDirectory}/${folder}`
);
});
errors += 1;
}
} else {
console.error(`Incorrect file name or file extension for: ${file}`);
process.exit(1);
}
} else {
console.error(`Incorrect file name or file extension for: ${file}`);
process.exit(1);
} catch (e) {
console.log('or here?', tokensDirectory, folder, file);
}
});
});
Expand Down
123 changes: 122 additions & 1 deletion dist/master-file.json
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,17 @@
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0x007EA5C0Ea75a8DF45D288a4debdD5bb633F9e56.json",
"website": ""
},
{
"network": "bsc",
"symbol": "CARLI",
"name": "CarlitoToken",
"decimals": 9,
"contract_address": "0x24e1bC89A6c50b8c2e0BdA3827bAfc0a8EA116c0",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0x24e1bC89A6c50b8c2e0BdA3827bAfc0a8EA116c0.json",
"website": "https://carlitotoken.net"
},
{
"network": "bsc",
"symbol": "CBIX",
Expand Down Expand Up @@ -1748,6 +1759,17 @@
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0x9d8AAC497A4b8fe697dd63101d793F0C6A6EEbB6.json",
"website": ""
},
{
"network": "bsc",
"symbol": "DAF",
"name": "Diamonds are Forever",
"decimals": 6,
"contract_address": "0x8Fb1a59cA2d57B51e5971A85277EFe72c4492983",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0x8Fb1a59cA2d57B51e5971A85277EFe72c4492983.json",
"website": "https://daftoken.io"
},
{
"network": "bsc",
"symbol": "DAI",
Expand Down Expand Up @@ -2298,6 +2320,28 @@
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0x90e767A68a7d707B74D569C8E79f9bBb79b98a8b.json",
"website": ""
},
{
"network": "bsc",
"symbol": "FBLX",
"name": "Feblix Finance",
"decimals": 9,
"contract_address": "0xCd7B102d82b9a8F089669d2AFA74ad2A121AC137",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0xCd7B102d82b9a8F089669d2AFA74ad2A121AC137.json",
"website": "https://feblix.finance"
},
{
"network": "bsc",
"symbol": "FBLX",
"name": "Feblix Finance",
"decimals": 9,
"contract_address": "0xCd7B102d82b9a8F089669d2AFA74ad2A121AC137",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0xCd7B102d82b9a8F089669d2AFA74ad2A121AC137.json",
"website": "https://feblix.finance"
},
{
"network": "bsc",
"symbol": "FEB",
Expand Down Expand Up @@ -2628,6 +2672,17 @@
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0xe4A4Ad6E0B773f47D28f548742a23eFD73798332.json",
"website": ""
},
{
"network": "bsc",
"symbol": "GOOSE",
"name": "GooseCoin",
"decimals": 2,
"contract_address": "0xfb11D7ffdE8D643F5368C62fA9943BceaBcB0c36",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0xfb11D7ffdE8D643F5368C62fA9943BceaBcB0c36.json",
"website": "https://www.thegoosecoin.com"
},
{
"network": "bsc",
"symbol": "GREEN",
Expand Down Expand Up @@ -3728,6 +3783,17 @@
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0x7426Ab52A0e057691E2544fae9C8222e958b2cfB.json",
"website": ""
},
{
"network": "bsc",
"symbol": "MUSD",
"name": "MetaDollars",
"decimals": 9,
"contract_address": "0x85C5Fbd34dAB134b867E39A6709962F54F0c442A",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/bsc/0x85C5Fbd34dAB134b867E39A6709962F54F0c442A.json",
"website": "https://metadollars.io"
},
{
"network": "bsc",
"symbol": "MUSO",
Expand Down Expand Up @@ -7875,6 +7941,17 @@
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/eth/0xB6c3DC857845a713d3531cea5ac546F6767992F4.json",
"website": "https://advertisecoin.com"
},
{
"network": "eth",
"symbol": "ADCO",
"name": "Advertise Coin",
"decimals": 6,
"contract_address": "0xB6c3DC857845a713d3531cea5ac546F6767992F4",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/eth/0xB6c3DC857845a713d3531cea5ac546F6767992F4.json",
"website": "https://advertisecoin.com"
},
{
"network": "eth",
"symbol": "ADDC",
Expand Down Expand Up @@ -15223,6 +15300,17 @@
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/eth/0xB22c2786a549B008517B67625f5296E8fAf9589e.json",
"website": ""
},
{
"network": "eth",
"symbol": "BRUH",
"name": "Bruh",
"decimals": 18,
"contract_address": "0xe6D2a9fCD946E07826C6cdd919DA04763eA4D812",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/eth/0xe6D2a9fCD946E07826C6cdd919DA04763eA4D812.json",
"website": "https://bruhcrypto.org"
},
{
"network": "eth",
"symbol": "BRX",
Expand Down Expand Up @@ -18952,6 +19040,17 @@
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/eth/0xd4c435F5B09F855C3317c8524Cb1F586E42795fa.json",
"website": "https://cindicator.com/"
},
{
"network": "eth",
"symbol": "CNDL",
"name": "Candle",
"decimals": 18,
"contract_address": "0xbc138bD20C98186CC0342C8e380953aF0cb48BA8",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/eth/0xbc138bD20C98186CC0342C8e380953aF0cb48BA8.json",
"website": "https://candlelabs.org"
},
{
"network": "eth",
"symbol": "CNFI",
Expand Down Expand Up @@ -19535,6 +19634,17 @@
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/eth/0x589891a198195061Cb8ad1a75357A3b7DbaDD7Bc.json",
"website": ""
},
{
"network": "eth",
"symbol": "COSHIB",
"name": "Shiba Inu VS COVID",
"decimals": 8,
"contract_address": "0x24456F2786d975973a0905Fd53236c8311cc3006",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/eth/0x24456F2786d975973a0905Fd53236c8311cc3006.json",
"website": "https://coshib.com"
},
{
"network": "eth",
"symbol": "COSM",
Expand Down Expand Up @@ -20459,6 +20569,17 @@
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/eth/0x01da76DEa59703578040012357b81ffE62015C2d.json",
"website": ""
},
{
"network": "eth",
"symbol": "CRYN",
"name": "CRYNCOIN",
"decimals": 8,
"contract_address": "0x51Bb3aB03Ab49ec5CB3883705949657838a015FD",
"icon": "",
"icon_png": "",
"link": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/tokens/eth/0x51Bb3aB03Ab49ec5CB3883705949657838a015FD.json",
"website": "https://cryncoin.io"
},
{
"network": "eth",
"symbol": "CRYPTO",
Expand Down Expand Up @@ -77586,7 +77707,7 @@
"network": "matic",
"symbol": "WBTC",
"name": "(PoS) Wrapped BTC",
"decimals": 18,
"decimals": 8,
"contract_address": "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",
"icon": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/icons/WBTC-0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6-matic.png",
"icon_png": "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/src/icons/WBTC-0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6-matic.png",
Expand Down
Loading

0 comments on commit f3cda8b

Please sign in to comment.