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/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 oftokenId
toscore
(which is the sum of number of occcrences of each child attribute for atokenId
), sorted ascending byscore
. It also includesrarest
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 oftokenId
torank
by probabilistic occurence rather than rank.output/rarity-rt-formula.json
contains a mapping oftokenId
torank
using the Rarity Tools formula ofscore = 1 / (sum of items with trait value / total items)
.
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
- Anish Agnihotri for the orignal versions of these scripts for loot.
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.