Skip to content

Scripts to collect statistics about the LOOT project.

License

Notifications You must be signed in to change notification settings

dopedao/dope-metrics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dhof-loot

Launch tweet for DOPE.

Distribution

  • tokenIds 1 to 8000 claimable by user.
  • Each token has attributes: clothes, foot, hand, neck, ring, waist, weapon, drugs, vehicle.

Output

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

Run locally

# Install dependencies
npm install

# Setup
export RPC_CONNSTRING="eth rpc url"

# Collect all loot
npm run collect

# Parse statistics
npm run parse

# Collect base64 encoded images
npm run images

Credits

  • @ktasbas for adding base64 encoded SVG retrieval support

About

Scripts to collect statistics about the LOOT project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.2%
  • Python 22.8%