f-o-a-m / kepler

A Haskell framework that facilitates writing ABCI applications
https://kepler.dev
Apache License 2.0
34 stars 10 forks source link

Instances for Validators query support #256

Closed UnitylChaos closed 3 years ago

UnitylChaos commented 3 years ago

Bugfix for Validators module.

When trying to use the Validators module in an application, it complains about missing instances. Specifically: No instance for (QueryData V.PubKey_) and No instance for (Tendermint.SDK.Codec.HasCodec (Data.Map.Internal.Map V.PubKey_ GHC.Word.Word64))

I gather this is a result of the query methods GetPowerOf (which uses PubKey_ as a search key), and GetValidators which returns the full Map.