Skip to content

Commit 7fe6e53

Browse files
committed
WIP - LedgerSpec
1 parent e7694c4 commit 7fe6e53

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Imp.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import qualified Test.Cardano.Ledger.Conway.Imp.EnactSpec as Enact
4848
import qualified Test.Cardano.Ledger.Conway.Imp.EpochSpec as Epoch
4949
import qualified Test.Cardano.Ledger.Conway.Imp.GovCertSpec as GovCert
5050
import qualified Test.Cardano.Ledger.Conway.Imp.GovSpec as Gov
51-
-- import qualified Test.Cardano.Ledger.Conway.Imp.LedgerSpec as Ledger
51+
import qualified Test.Cardano.Ledger.Conway.Imp.LedgerSpec as Ledger
5252
-- import qualified Test.Cardano.Ledger.Conway.Imp.RatifySpec as Ratify
5353
-- import qualified Test.Cardano.Ledger.Conway.Imp.UtxoSpec as Utxo
5454
-- import qualified Test.Cardano.Ledger.Conway.Imp.UtxosSpec as Utxos
@@ -136,8 +136,8 @@ conwaySpec = do
136136
describe "EPOCH" Epoch.spec
137137
describe "GOV" Gov.spec
138138
describe "GOVCERT" GovCert.spec
139+
describe "LEDGER" Ledger.spec
139140

140-
-- describe "LEDGER" Ledger.spec
141141
-- describe "RATIFY" Ratify.spec
142142
-- describe "UTXO" Utxo.spec
143143
-- describe "UTXOS" Utxos.spec

eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Imp/LedgerSpec.hs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import Test.Cardano.Ledger.Plutus.Examples (
4747
spec ::
4848
forall era.
4949
( ConwayEraImp era
50-
, ShelleyEraTxCert era
5150
, InjectRuleFailure "LEDGER" ConwayLedgerPredFailure era
5251
, InjectRuleFailure "LEDGER" ConwayUtxoPredFailure era
5352
, InjectRuleFailure "LEDGER" ConwayGovPredFailure era
@@ -82,7 +81,7 @@ spec = do
8281
modifyPParams $ ppGovActionLifetimeL .~ EpochInterval 2
8382
kh <- freshKeyHash
8483
let cred = KeyHashObj kh
85-
ra <- registerStakeCredential cred
84+
ra <- registerStakeCredentialWithDeposit cred
8685
submitAndExpireProposalToMakeReward cred
8786
balance <- getBalance cred
8887

@@ -107,7 +106,7 @@ spec = do
107106
modifyPParams $ ppGovActionLifetimeL .~ EpochInterval 2
108107
kh <- freshKeyHash
109108
let cred = KeyHashObj kh
110-
ra <- registerStakeCredential cred
109+
ra <- registerStakeCredentialWithDeposit cred
111110
submitAndExpireProposalToMakeReward cred
112111
balance <- getBalance cred
113112

@@ -130,7 +129,7 @@ spec = do
130129
refund <- getsNES $ nesEsL . curPParamsEpochStateL . ppKeyDepositL
131130
kh <- freshKeyHash
132131
let cred = KeyHashObj kh
133-
ra <- registerStakeCredential cred
132+
ra <- registerStakeCredentialWithDeposit cred
134133
Positive newDeposit <- arbitrary
135134
modifyPParams $ \pp ->
136135
pp
@@ -158,7 +157,7 @@ spec = do
158157
& ppDRepActivityL .~ EpochInterval 1
159158
kh <- freshKeyHash
160159
let cred = KeyHashObj kh
161-
ra <- registerStakeCredential cred
160+
ra <- registerStakeCredentialWithDeposit cred
162161
submitAndExpireProposalToMakeReward cred
163162
balance <- getBalance cred
164163

@@ -185,7 +184,7 @@ spec = do
185184
& ppDRepActivityL .~ EpochInterval 1
186185
kh <- freshKeyHash
187186
let cred = KeyHashObj kh
188-
ra <- registerStakeCredential cred
187+
ra <- registerStakeCredentialWithDeposit cred
189188
submitAndExpireProposalToMakeReward cred
190189
balance <- getBalance cred
191190

@@ -210,7 +209,7 @@ spec = do
210209
modifyPParams $ ppGovActionLifetimeL .~ EpochInterval 2
211210
let scriptHash = hashPlutusScript $ alwaysSucceedsNoDatum SPlutusV3
212211
let cred = ScriptHashObj scriptHash
213-
ra <- registerStakeCredential cred
212+
ra <- registerStakeCredentialWithDeposit cred
214213
submitAndExpireProposalToMakeReward cred
215214
balance <- getBalance cred
216215

@@ -286,7 +285,7 @@ spec = do
286285
mkBasicTx (mkBasicTxBody & proposalProceduresTxBodyL .~ [proposal])
287286
ccHot <- registerCommitteeHotKey ccCold
288287
govActionId <- do
289-
rewardAccount <- registerRewardAccount
288+
rewardAccount <- registerRewardAccountWithDeposit
290289
submitTreasuryWithdrawals [(rewardAccount, Coin 1)]
291290

292291
let

0 commit comments

Comments
 (0)