We are automatically adding TraitCount as a meta trait upon Collection initialization so that the OpenRarity ranking and scoring algorithm takes into consideration trait count as an attribute to impact ranking for all collections. We will not modify open rarity scoring or ranking algorithm directly in any form.
TraitCount is defined to be the sum of unique traits an asset has with a non-empty value
We consider empty to be where the normalized attribute value is any of (“”, “none”, None)
Methodology
Upon Collection initialization, we will modify the tokens input by adding in a new StringAttribute to the tokens' metadata with:
attribute.name = “meta_trait:trait_count”
Naming to decrease collision with existing trait
attribute.value = token.trait_count()
Note 1: We will not remove any existing fields, regardless if naming is similiar to “trait count”, “trait_count” etc. The reason is because probability and rankings will not be impacted.
Note 2: There’s a small chance we override attributes with “meta trait: trait_count” but don’t believe it’s likely enough to matter.
Adding Trait Count to OpenRarity
We are automatically adding TraitCount as a meta trait upon Collection initialization so that the OpenRarity ranking and scoring algorithm takes into consideration trait count as an attribute to impact ranking for all collections. We will not modify open rarity scoring or ranking algorithm directly in any form.
For more detailed information and analysis, please review this blog post -https://mirror.xyz/openrarity.eth/oNo7AmgXopMCKq95gv_Xe0p5pKQ_qHWKzTV11DpFxgE
Definition of Trait Count
TraitCount is defined to be the sum of unique traits an asset has with a non-empty value
(“”, “none”, None)
Methodology
Upon
Collection
initialization, we will modify thetokens
input by adding in a newStringAttribute
to the tokens' metadata with:attribute.name
=“meta_trait:trait_count”
attribute.value
= token.trait_count()