@@ -47,20 +47,20 @@ import Cardano.Binary (FromCBOR (..), ToCBOR (..), encodeListLen,
4747 enforceSize )
4848import Cardano.Ledger.Address
4949import qualified Cardano.Ledger.Api.State.Query as SL
50- import Cardano.Ledger.CertState (lookupDepositDState )
51- import qualified Cardano.Ledger.CertState as SL
50+ import Cardano.Ledger.State (lookupDepositDState )
51+ import qualified Cardano.Ledger.State as SL
5252import Cardano.Ledger.Coin (Coin )
5353import Cardano.Ledger.Compactible (Compactible (fromCompact ))
5454import qualified Cardano.Ledger.Conway.Governance as CG
5555import qualified Cardano.Ledger.Core as SL
56+ import Cardano.Ledger.Conway.State (ConwayEraCertState )
5657import Cardano.Ledger.Credential (StakeCredential )
5758import Cardano.Ledger.Keys (KeyHash , KeyRole (.. ))
5859import qualified Cardano.Ledger.Shelley.API as SL
5960import qualified Cardano.Ledger.Shelley.Core as LC
6061import Cardano.Ledger.Shelley.LedgerState (AccountState )
6162import qualified Cardano.Ledger.Shelley.RewardProvenance as SL
6263 (RewardProvenance )
63- import qualified Cardano.Ledger.State as SL
6464import Cardano.Ledger.UMap (UMap (.. ), rdReward , umElemDRep ,
6565 umElemRDPair , umElemSPool )
6666import Cardano.Protocol.Crypto (Crypto )
@@ -266,7 +266,7 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
266266 --
267267 -- Not supported in eras before Conway.
268268 GetDRepState
269- :: CG. ConwayEraGov era
269+ :: ( ConwayEraCertState era , CG. ConwayEraGov era )
270270 => Set (SL. Credential 'DRepRole)
271271 -> BlockQuery (ShelleyBlock proto era )
272272 QFNoTables
@@ -292,7 +292,7 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
292292 --
293293 -- Not supported in eras before Conway.
294294 GetCommitteeMembersState
295- :: CG. ConwayEraGov era
295+ :: ( ConwayEraCertState era , CG. ConwayEraGov era )
296296 => Set (SL. Credential 'ColdCommitteeRole)
297297 -> Set (SL. Credential 'HotCommitteeRole)
298298 -> Set SL. MemberStatus
@@ -899,7 +899,7 @@ decodeShelleyQuery = do
899899
900900 requireCG ::
901901 forall s ans .
902- (CG. ConwayEraGov era => Decoder s ans )
902+ (( ConwayEraCertState era , CG. ConwayEraGov era ) => Decoder s ans )
903903 -> Decoder s ans
904904 requireCG k = case SE. getConwayEraGovDict (Proxy @ era ) of
905905 Just SE. ConwayEraGovDict -> k
0 commit comments