@@ -37,10 +37,7 @@ import Test.Cardano.Ledger.Imp.Common
3737
3838spec ::
3939 forall era .
40- ( HasCallStack
41- , ConwayEraImp era
42- , ShelleyEraTxCert era
43- ) =>
40+ (HasCallStack , ConwayEraImp era ) =>
4441 SpecWith (ImpInit (LedgerSpec era ))
4542spec = do
4643 votingSpec
@@ -72,10 +69,7 @@ spec = do
7269
7370initiateHardForkWithLessThanMinimalCommitteeSize ::
7471 forall era .
75- ( HasCallStack
76- , ConwayEraImp era
77- , ShelleyEraTxCert era
78- ) =>
72+ (HasCallStack , ConwayEraImp era ) =>
7973 SpecWith (ImpInit (LedgerSpec era ))
8074initiateHardForkWithLessThanMinimalCommitteeSize =
8175 it " Hard Fork can still be initiated with less than minimal committee size" $ do
@@ -103,10 +97,7 @@ initiateHardForkWithLessThanMinimalCommitteeSize =
10397
10498spoAndCCVotingSpec ::
10599 forall era .
106- ( HasCallStack
107- , ConwayEraImp era
108- , ShelleyEraTxCert era
109- ) =>
100+ (HasCallStack , ConwayEraImp era ) =>
110101 SpecWith (ImpInit (LedgerSpec era ))
111102spoAndCCVotingSpec = do
112103 describe " When CC expired" $ do
@@ -210,10 +201,7 @@ spoAndCCVotingSpec = do
210201
211202committeeExpiryResignationDiscountSpec ::
212203 forall era .
213- ( HasCallStack
214- , ConwayEraImp era
215- , ShelleyEraTxCert era
216- ) =>
204+ (HasCallStack , ConwayEraImp era ) =>
217205 SpecWith (ImpInit (LedgerSpec era ))
218206committeeExpiryResignationDiscountSpec =
219207 -- Committee-update proposals are disallowed during bootstrap, so we can only run these tests post-bootstrap
@@ -285,10 +273,7 @@ committeeExpiryResignationDiscountSpec =
285273
286274paramChangeAffectsProposalsSpec ::
287275 forall era .
288- ( HasCallStack
289- , ConwayEraImp era
290- , ShelleyEraTxCert era
291- ) =>
276+ (HasCallStack , ConwayEraImp era ) =>
292277 SpecWith (ImpInit (LedgerSpec era ))
293278paramChangeAffectsProposalsSpec =
294279 -- These tests rely on submitting committee-update proposals and on drep votes, which are disallowed during bootstrap,
@@ -466,17 +451,14 @@ paramChangeAffectsProposalsSpec =
466451
467452committeeMinSizeAffectsInFlightProposalsSpec ::
468453 forall era .
469- ( HasCallStack
470- , ConwayEraImp era
471- , ShelleyEraTxCert era
472- ) =>
454+ (HasCallStack , ConwayEraImp era ) =>
473455 SpecWith (ImpInit (LedgerSpec era ))
474456committeeMinSizeAffectsInFlightProposalsSpec =
475457 -- Treasury withdrawals are disallowed during bootstrap, so we can only run these tests post-bootstrap
476458 describe " CommitteeMinSize affects in-flight proposals" $ do
477459 let setCommitteeMinSize n = modifyPParams $ ppCommitteeMinSizeL .~ n
478460 submitTreasuryWithdrawal amount = do
479- rewardAccount <- registerRewardAccount
461+ rewardAccount <- registerRewardAccountWithDeposit
480462 submitTreasuryWithdrawals [(rewardAccount, amount)]
481463 it " TreasuryWithdrawal fails to ratify due to an increase in CommitteeMinSize" $ whenPostBootstrap $ do
482464 disableTreasuryExpansion
@@ -536,10 +518,7 @@ committeeMinSizeAffectsInFlightProposalsSpec =
536518
537519spoVotesForHardForkInitiation ::
538520 forall era .
539- ( HasCallStack
540- , ConwayEraImp era
541- , ShelleyEraTxCert era
542- ) =>
521+ (HasCallStack , ConwayEraImp era ) =>
543522 SpecWith (ImpInit (LedgerSpec era ))
544523spoVotesForHardForkInitiation =
545524 describe " Counting of SPO votes" $ do
@@ -577,10 +556,7 @@ spoVotesForHardForkInitiation =
577556
578557votingSpec ::
579558 forall era .
580- ( HasCallStack
581- , ConwayEraImp era
582- , ShelleyEraTxCert era
583- ) =>
559+ (HasCallStack , ConwayEraImp era ) =>
584560 SpecWith (ImpInit (LedgerSpec era ))
585561votingSpec =
586562 describe " Voting" $ do
@@ -836,7 +812,7 @@ votingSpec =
836812 calculateDRepAcceptedRatio paramChangeGovId `shouldReturn` 1 % 2
837813
838814 kh <- freshKeyHash
839- _ <- registerStakeCredential (KeyHashObj kh)
815+ _ <- registerStakeCredentialWithDeposit (KeyHashObj kh)
840816 _ <- delegateToDRep (KeyHashObj kh) (Coin 1_000_000 ) DRepAlwaysNoConfidence
841817 passEpoch
842818 -- AlwaysNoConfidence vote acts like a 'No' vote for actions other than NoConfidence
@@ -897,7 +873,7 @@ votingSpec =
897873
898874 (drep2, drep2Staking, _) <- setupSingleDRep 1_000_000
899875
900- rewardAccount <- registerRewardAccount
876+ rewardAccount <- registerRewardAccountWithDeposit
901877 govId <- submitTreasuryWithdrawals [(rewardAccount, initialTreasury)]
902878
903879 submitYesVote_ (CommitteeVoter comMember) govId
@@ -925,7 +901,7 @@ votingSpec =
925901 & ppCoinsPerUTxOByteL .~ CoinPerByte (Coin 1 )
926902 (drep, _, committeeId) <- electBasicCommittee
927903 kh <- freshKeyHash
928- _ <- registerStakeCredential (KeyHashObj kh)
904+ _ <- registerStakeCredentialWithDeposit (KeyHashObj kh)
929905 _ <- delegateToDRep (KeyHashObj kh) (Coin 300 ) DRepAlwaysNoConfidence
930906 noConfidence <- submitGovAction (NoConfidence (SJust committeeId))
931907 submitYesVote_ (DRepVoter drep) noConfidence
@@ -1479,10 +1455,7 @@ votingSpec =
14791455
14801456delayingActionsSpec ::
14811457 forall era .
1482- ( HasCallStack
1483- , ConwayEraImp era
1484- , ShelleyEraTxCert era
1485- ) =>
1458+ (HasCallStack , ConwayEraImp era ) =>
14861459 SpecWith (ImpInit (LedgerSpec era ))
14871460delayingActionsSpec =
14881461 -- All tests below are relying on submitting constitution of committe-update proposals, which are disallowed during bootstrap,
@@ -1699,10 +1672,7 @@ delayingActionsSpec =
16991672
17001673committeeMaxTermLengthSpec ::
17011674 forall era .
1702- ( HasCallStack
1703- , ConwayEraImp era
1704- , ShelleyEraTxCert era
1705- ) =>
1675+ (HasCallStack , ConwayEraImp era ) =>
17061676 SpecWith (ImpInit (LedgerSpec era ))
17071677committeeMaxTermLengthSpec =
17081678 -- Committee-update proposals are disallowed during bootstrap, so we can only run these tests post-bootstrap
0 commit comments