/dhof-loot

Scripts to collect statistics about the LOOT project.

Primary LanguageJavaScript

characters for loot

Launch tweet for Characters.

Distribution

  • tokenIds 1 to 8000 claimable by loot owners.
  • tokenIds 8001 to 12000 claimable by anyone.
  • Each token has attributes: race, profession, strength, dexterity, intelligence, vitality, luck, faith.

Output

  • output/characters.json contains all tokenIds and their attributes.
  • output/occurences.json contains the number of occurences by attribute.
  • output/rare.json contains a mapping of characterId to score (which is the sum of number of occcrences of each child attribute for a characterId), sorted ascending by score. It also includes rarest which is how rare the character's attributes are (1 == rarest, 12000 == least rare).
  • output/images.json contains the base64 encoded SVG of each tokenId

Run locally

# Install dependencies
npm install

# Collect all characters
npm run collect

# Parse statistics
npm run parse

# Collect base64 encoded images
npm run images

Credits