OpenRarity alignment
GARU's generated-token rarity ranking now follows the scoring model in the OpenRarity reference implementation, so the score is based on the metadata distribution in the generated collection rather than on GARU's editor rarity weights.
Changes made
For every generated collection, GARU now:
- Counts each
(trait type, trait value)pair across the complete generated
batch. This is the collection supply used by the score.
- Calculates the information content of every trait on a token as
-log2(trait count / collection supply).
- Calculates collection entropy as the sum of
-p * log2(p)for every
observed trait value, then divides each token's information-content total by that entropy. This produces the unitless normalized OpenRarity score.
- Counts attributes that occur exactly once and uses that count as the first
ranking key, followed by normalized score. This matches OpenRarity's multi-factor ordering, where unique attributes take priority.
- Uses competition ranking for equal results (
1, 2, 2, 4) and the same
approximately-nine-decimal-digit comparison tolerance used by OpenRarity.
The displayed trait counts and percentages continue to come from the layered generated batch. The rank scorer additionally includes saved custom-token metadata in the collection distribution, so generated-token scores reflect all metadata that will be exported.
Scope and OpenSea upload behavior
The score is computed from the generated metadata batch, not from the desired rarity tier labels or filename weights. Filename weights and the Common/Rare/ Epic/Legendary/Mythic controls still influence generation; after generation, the actual exported trait frequencies determine rarity.
GARU currently generates one trait value per configured layer. Therefore every generated token has a value for each layer, and the OpenRarity null-attribute case is not needed for the normal layered collection path. If support is later added for tokens with missing layer attributes, those missing values should be represented as explicit null values before scoring, as OpenRarity requires.
Custom 1/1 tokens remain a separate UI/export path and do not receive a layered combination rank, but their attributes do contribute to collection frequencies, null-value frequencies, entropy, and the scores of generated tokens.
Network support
Metadata network selection is intentionally Ethereum-only. The Solana and Custom options were removed from Settings, and previously saved network values are normalized to Ethereum when settings are loaded. This keeps exports aligned with the current OpenSea/Ethereum workflow.