Socket
Book a DemoInstallSign in
Socket

dope-metrics

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dope-metrics

Collects details about the DOPE project

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

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

Keywords

dope

FAQs

Package last updated on 18 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts