lavanet / lava

Apache License 2.0
407 stars 206 forks source link

feat: Reputation: CNS-1006 - Reputation queries #1631

Open oren-lava opened 2 months ago

oren-lava commented 2 months ago

Description

Closes: #XXXX

In this PR, I implemented two queries for the reputation score:

  1. provider-reputation: query to show a provider's rank compared to other providers with the same chain+cluster by their reputation pairing score (that is calculated using the QoS excellence reports from the relays)
  2. provider-reputation-details: developer query to show the raw structures that are used to calculate the provider's reputation pairing score

Each query expected 3 arguments: address, chain ID and cluster. To get the results for all the chains/clusters, you can use "*".


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.

I have...

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.

I have...