@@ -34,19 +34,19 @@ module Ouroboros.Consensus.Shelley.Ledger.Query (
3434import Cardano.Binary (FromCBOR (.. ), ToCBOR (.. ), encodeListLen ,
3535 enforceSize )
3636import qualified Cardano.Ledger.Api.State.Query as SL
37- import Cardano.Ledger.CertState (lookupDepositDState )
38- import qualified Cardano.Ledger.CertState as SL
37+ import Cardano.Ledger.State (lookupDepositDState )
38+ import qualified Cardano.Ledger.State as SL
3939import Cardano.Ledger.Coin (Coin )
4040import Cardano.Ledger.Compactible (Compactible (fromCompact ))
4141import qualified Cardano.Ledger.Conway.Governance as CG
42+ import Cardano.Ledger.Conway.State (ConwayEraCertState )
4243import Cardano.Ledger.Credential (StakeCredential )
4344import Cardano.Ledger.Keys (KeyHash , KeyRole (.. ))
4445import qualified Cardano.Ledger.Shelley.API as SL
4546import qualified Cardano.Ledger.Shelley.Core as LC
4647import Cardano.Ledger.Shelley.LedgerState (AccountState )
4748import qualified Cardano.Ledger.Shelley.RewardProvenance as SL
4849 (RewardProvenance )
49- import qualified Cardano.Ledger.State as SL
5050import Cardano.Ledger.UMap (UMap (.. ), rdReward , umElemDRep ,
5151 umElemRDPair , umElemSPool )
5252import Cardano.Protocol.Crypto (Crypto )
@@ -246,7 +246,7 @@ data instance BlockQuery (ShelleyBlock proto era) :: Type -> Type where
246246 --
247247 -- Not supported in eras before Conway.
248248 GetDRepState
249- :: CG. ConwayEraGov era
249+ :: ( ConwayEraCertState era , CG. ConwayEraGov era )
250250 => Set (SL. Credential 'DRepRole)
251251 -> BlockQuery (ShelleyBlock proto era )
252252 (Map
@@ -271,7 +271,7 @@ data instance BlockQuery (ShelleyBlock proto era) :: Type -> Type where
271271 --
272272 -- Not supported in eras before Conway.
273273 GetCommitteeMembersState
274- :: CG. ConwayEraGov era
274+ :: ( ConwayEraCertState era , CG. ConwayEraGov era )
275275 => Set (SL. Credential 'ColdCommitteeRole)
276276 -> Set (SL. Credential 'HotCommitteeRole)
277277 -> Set SL. MemberStatus
@@ -882,7 +882,7 @@ decodeShelleyQuery = do
882882
883883 requireCG ::
884884 forall s ans .
885- (CG. ConwayEraGov era => Decoder s ans )
885+ (( ConwayEraCertState era , CG. ConwayEraGov era ) => Decoder s ans )
886886 -> Decoder s ans
887887 requireCG k = case SE. getConwayEraGovDict (Proxy @ era ) of
888888 Just SE. ConwayEraGovDict -> k
0 commit comments