kodadot / kodadot/click

Calculate rarity score per ERC-721 items

Open
#12 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

for ERC-721 add

```graphql
rarity: Float!
```

after create was called:
- check if you indexed max
- calculate rarity on last fetched item

ref
- https://github.com/kodadot/nft-gallery/issues/3181

articles:
- [How to Calculate the Rarity of an NFT](https://hackernoon.com/how-to-calculate-the-rarity-of-an-nft)
- [Understanding Rarity Calculation Methods](https://raritytools.medium.com/ranking-rarity-understanding-rarity-calculation-methods-86ceaeb9b98c)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the ERC-721 GraphQL type and the create/index flow described in the issue, then review the linked reference and rarity-calculation articles. Done means the schema exposes a required Float rarity field and the indexed items receive calculated rarity values after creation, including the max-index check.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
backend-api-design, blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.