Skip to content

Commit

Permalink
Whitelisted the new apps from supabase
Browse files Browse the repository at this point in the history
  • Loading branch information
sayantan-b committed Sep 13, 2023
1 parent 0233be3 commit 62c1485
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 1 deletion.
97 changes: 96 additions & 1 deletion scripts/reservedDappNames.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
48 changes: 48 additions & 0 deletions scripts/whitelistDapps.js
Original file line number Diff line number Diff line change
@@ -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');
}

0 comments on commit 62c1485

Please sign in to comment.