Coder Social home page Coder Social logo

occ-flowers-rarity's Introduction

OCC Flowers rarity data

This repository contains tooling and data for OCC Flowers, and is free to use without credit or attribution, for any means.

OCC#1 ๐ŸŒบ Flowers is a collection 4096 programatically generated on-chain flowers, for you to own or to share. Each flower is 100% generated on-chain, including it's metadata. No ipfs/arweave, no external rendering script. Just SVGs created by the contract.

Output

  • output/flowers.json contains all tokenIds, their attributes, and base64 images.
  • output/occurrences.json contains the number of occurrences by attribute.
  • output/rarity-occurrences.json contains a mapping of tokenId to score (which is the sum of number of occcrences of each child attribute for a tokenId), sorted ascending by score. It also includes rarest which is how rare the flowers attributes are (1 == rarest, 4096 == least rare), based on this specific ranking mechanism.
  • output/rarity-probability.json contains a mapping of tokenId to rank by probabilistic occurence rather than rank.
  • output/rarity-rt-formula.json contains a mapping of tokenId to rank using the Rarity Tools formula of score = 1 / (sum of items with trait value / total items).

Run locally

Add a .env file with the ETH_PROVIDER_URL variable to use a custom RPC provider. Falls back to http://localhost:8545.

# Install dependencies
npm install

# Pick all flowers
npm run collect

# Parse flower statistics
npm run parse

Credits

License

OCC Flowers rarity is licensed under The Unlicenseโ€”a license with no conditions whatsoever which dedicates works to the public domain.

Unlicensed works, modifications, and larger works may be distributed under different terms and without source code.

occ-flowers-rarity's People

Contributors

samkingco avatar

Stargazers

 avatar Christian Montoya avatar  avatar

Watchers

 avatar

Forkers

montoya

occ-flowers-rarity's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.