IntersectMBO / cardano-api

Cardano API
Apache License 2.0
22 stars 20 forks source link

Expose `querySPOStakeDistribution` query #598

Closed palas closed 1 month ago

palas commented 1 month ago

Changelog

- description: |
    Exposed `querySPOStakeDistribution` query
  type:
  - feature        # introduces a new feature

Context

We want to provide a governance query for stake distribution of stake pools to the cardano-cli (see this issue), so we need to be able to do the query through the cardano-api. This PR does just that, it exposes the new query.

Associated PRs:

How to trust this PR

I think the fact that it compiles is pretty telling. But maybe ensure that there is nothing missing to export, that it doesn't have any typos or so. And it is is quite based on the similar query for drepss, so it is not difficult that I failed to change replace some of the DRep mentions, stay alert for those (I did double-check myself though).

Checklist