diff --git a/scripts/reservedDappNames.json b/scripts/reservedDappNames.json index a173579..940a70d 100644 --- a/scripts/reservedDappNames.json +++ b/scripts/reservedDappNames.json @@ -4218,6 +4218,101 @@ "noname-monster.app", "rarimo.app", "virgonft.app", - "dominiosweb3.app" + "dominiosweb3.app", + "pinsave.app", + "smoblerstudios.app", + "gmx.app", + "camelot-app.app", + "dragoncity.app", + "hyperliquid.app", + "vp.app", + "interport.app", + "chronos.app", + "vela-app.app", + "gas-move.app", + "traderjoexyz.app", + "bitget-web3.app", + "vertexprotocol.app", + "pendle.app", + "questn-app.app", + "ramses.app", + "eventcaster.app", + "pincaster.app", + "saymore.app", + "alphacaster.app", + "discove.app", + "tipcast.app", + "warpcast.app", + "searchcaster.app", + "alertcaster.app", + "findcaster.app", + "jam.app", + "ttcasino.app", + "shell-app.app", + "waxcasino.app", + "metawin.app", + "onjoyride.app", + "owl-doge.app", + "sportbet-app.app", + "blockchainbets.app", + "divvy.app", + "auroraplay.app", + "kryptogamers.app", + "dogebets.app", + "swych.app", + "msgsplit.app", + "nova88.app", + "trade-signal.app", + "playdice.app", + "lunafi.app", + "yoca.app", + "pokerhigh.app", + "hamsters.app", + "untitledplatformer.app", + "gamifly.app", + "indi.app", + "xcadnetwork.app", + "tacocrypto.app", + "nftpanda.app", + "metajuice.app", + "superwalk.app", + "mobox-app.app", + "lenstube-app.app", + "buttrfly.app", + "purplebridge.app", + "dexview.app", + "pixels-app.app", + "taskon-app.app", + "sharky-app.app", + "linktr-genopets.app", + "degencoinflip.app", + "projectlarix.app", + "solanart.app", + "meteora-app.app", + "orca-app.app", + "mooar-app.app", + "solend.app", + "png.app", + "hubbleprotocol.app", + "marinade-app.app", + "rain-app.app", + "solsea-app.app", + "oncorelabs.app", + "digitaleyes.app", + "holygrails.app", + "port-app.app", + "saber.app", + "moonroll.app", + "jetprotocol.app", + "sunny-app.app", + "hawksight.app", + "kamino.app", + "stepmonsters.app", + "sol-incinerator.app", + "saros.app", + "astro-space.app", + "pages-app.app", + "solcasino.app", + "raydium.app" ] } diff --git a/scripts/whitelistDapps.js b/scripts/whitelistDapps.js new file mode 100644 index 0000000..ac82b7f --- /dev/null +++ b/scripts/whitelistDapps.js @@ -0,0 +1,48 @@ +const fs = require('fs'); + +function readJSONFile(filename) { + try { + const data = fs.readFileSync(filename, 'utf8'); + return JSON.parse(data); + } catch (error) { + console.error(`Error reading ${filename}: ${error.message}`); + return null; + } +} + +function writeJSONFile(filename, data) { + try { + fs.writeFileSync(filename, JSON.stringify(data, null, 2)); + } catch (error) { + console.error(`Error writing ${filename}: ${error.message}`); + } +} + +const reservedDappNames = readJSONFile('reservedDappNames.json'); +const inputDappNames = readJSONFile('input.json'); + +if (reservedDappNames && inputDappNames) { + const reservedDappIDs = reservedDappNames.names; + const inputDappIDs = inputDappNames.names; + + const missingDappIDs = inputDappIDs.filter( + (dappID) => !reservedDappIDs.includes(dappID) + ); + + const duplicates = reservedDappIDs.filter((dappID) => + inputDappIDs.includes(dappID) + ); + + if (duplicates.length > 0) { + console.log('Duplicate Dapp IDs found:'); + duplicates.forEach((dappID) => { + console.log(dappID); + }); + } + + reservedDappNames.names.push(...missingDappIDs); + + writeJSONFile('reservedDappNames.json', reservedDappNames); + + console.log('Missing Dapp IDs appended to reservedDappNames.json'); +}