@@ -47,20 +47,20 @@ import Cardano.Binary (FromCBOR (..), ToCBOR (..), encodeListLen,
47
47
enforceSize )
48
48
import Cardano.Ledger.Address
49
49
import 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
52
52
import Cardano.Ledger.Coin (Coin )
53
53
import Cardano.Ledger.Compactible (Compactible (fromCompact ))
54
54
import qualified Cardano.Ledger.Conway.Governance as CG
55
55
import qualified Cardano.Ledger.Core as SL
56
+ import Cardano.Ledger.Conway.State (ConwayEraCertState )
56
57
import Cardano.Ledger.Credential (StakeCredential )
57
58
import Cardano.Ledger.Keys (KeyHash , KeyRole (.. ))
58
59
import qualified Cardano.Ledger.Shelley.API as SL
59
60
import qualified Cardano.Ledger.Shelley.Core as LC
60
61
import Cardano.Ledger.Shelley.LedgerState (AccountState )
61
62
import qualified Cardano.Ledger.Shelley.RewardProvenance as SL
62
63
(RewardProvenance )
63
- import qualified Cardano.Ledger.State as SL
64
64
import Cardano.Ledger.UMap (UMap (.. ), rdReward , umElemDRep ,
65
65
umElemRDPair , umElemSPool )
66
66
import Cardano.Protocol.Crypto (Crypto )
@@ -266,7 +266,7 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
266
266
--
267
267
-- Not supported in eras before Conway.
268
268
GetDRepState
269
- :: CG. ConwayEraGov era
269
+ :: ( ConwayEraCertState era , CG. ConwayEraGov era )
270
270
=> Set (SL. Credential 'DRepRole)
271
271
-> BlockQuery (ShelleyBlock proto era )
272
272
QFNoTables
@@ -292,7 +292,7 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
292
292
--
293
293
-- Not supported in eras before Conway.
294
294
GetCommitteeMembersState
295
- :: CG. ConwayEraGov era
295
+ :: ( ConwayEraCertState era , CG. ConwayEraGov era )
296
296
=> Set (SL. Credential 'ColdCommitteeRole)
297
297
-> Set (SL. Credential 'HotCommitteeRole)
298
298
-> Set SL. MemberStatus
@@ -899,7 +899,7 @@ decodeShelleyQuery = do
899
899
900
900
requireCG ::
901
901
forall s ans .
902
- (CG. ConwayEraGov era => Decoder s ans )
902
+ (( ConwayEraCertState era , CG. ConwayEraGov era ) => Decoder s ans )
903
903
-> Decoder s ans
904
904
requireCG k = case SE. getConwayEraGovDict (Proxy @ era ) of
905
905
Just SE. ConwayEraGovDict -> k
0 commit comments