Website dedicated to showing the rarity of https://developerdao.com minted NFTs. The website shows the rarity based on how often keywords are used and weights each keyword to give an average rarity value (lowest number being the most rare).
Website: https://codingwithmanny.github.io/devdaorare/
- NVM or NodeJS
v14.17.6 - Yarn
v1.22.0
- Install the correct version of NodeJS
nvm install;- Install dependencies
yarn install;- Start local development
yarn dev;- Build files
yarn build;- (Optional) Test build
npx http-server dist;
# Available on:
# http://127.0.0.1:8080Note: (For now), you will need a ETHERSCAN_API_KEY set in scripts/.env
-from- id to start retrieving from - Expects anintegeror the value oflastid-to- id to end retrieving to - Expects aninteger-y- answers prompt if they want to continue regardless of how much it will take-r- enables repeat on failure up to 3 times
yarn pull -from=lastid -to=8000;yarn pull -from=200 -to=300 -y;yarn pull -from=lastid -to=7000 -y -r;The script will create two files when executing the script:
scripts/.apicountwhich keeps track of how many API requests have been madescripts/.lastidwhich is the last id that was retrieve so that this value can be used for-from=lastid
The stats.ts file is in charge of generating the appropriate rarity ranking.
-weights- Shows the weights used for each trait -void-id- id to retrieve rarity stats - Expects anintegerbetween1andTOTAL_TOKENS-results- number of results to show - Expects anintegerbetween1andTOTAL_TOKENS. By de fault is50--generate- outputs theJSON_DATA_RANKINGresult toDATA_STATS_FILE-void
You can easily run using:
yarn stats;Generates deployed data to the /docs folder for GitHub Pages.
yarn pages;