Skip to content

Conversation

@0xJagger
Copy link
Contributor

Summary

Renames the ranking API for better clarity:

  • RankRanking (namespace and all types)
  • VoteWeighted.valueVoteWeighted.score

Breaking Changes

// Before
import { Rank } from '@graphprotocol/grc-20';
Rank.createRank({ rankType: 'WEIGHTED', votes: [{ entityId, value: 4.5 }] })

// After
import { Ranking } from '@graphprotocol/grc-20';
Ranking.createRanking({ rankingType: 'WEIGHTED', votes: [{ entityId, score: 4.5 }] })

Changes:

  • RankRanking (import)
  • createRank()createRanking()
  • rankTyperankingType
  • valuescore (weighted rankings only)

@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2026

🦋 Changeset detected

Latest commit: c711e3b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphprotocol/grc-20 Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@0xJagger 0xJagger marked this pull request as ready for review January 23, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant