OpenRarity / open-rarity

Reference implementation of the OpenRarity protocol with Python.
Apache License 2.0
218 stars 47 forks source link

Adding Meta Trait: Trait Count #84

Closed vickygos closed 2 years ago

vickygos commented 2 years ago

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

Methodology

Upon Collection initialization, we will modify the tokens input by adding in a new StringAttribute to the tokens' metadata with:

amamujee commented 2 years ago

I modified the PR text a bit.