Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ spec = do
describe "AllegraImpSpec" . withEachEraVersion @era $
UtxowSpec.spec

instance EraSpecificSpec AllegraEra
instance EraSpecificSpec AllegraEra where
eraSpecificSpec = ShelleyImp.shelleyEraSpecificSpec
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ instance ShelleyEraImp AllegraEra where
modifyImpInitProtVer = shelleyModifyImpInitProtVer
genRegTxCert = shelleyGenRegTxCert
genUnRegTxCert = shelleyGenUnRegTxCert
delegStakeTxCert = shelleyDelegStakeTxCert

impAllegraSatisfyNativeScript ::
( ShelleyEraImp era
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import qualified Test.Cardano.Ledger.Alonzo.Imp.UtxowSpec as Utxow
import Test.Cardano.Ledger.Alonzo.ImpTest
import Test.Cardano.Ledger.Imp.Common
import qualified Test.Cardano.Ledger.Mary.Imp as MaryImp
import qualified Test.Cardano.Ledger.Shelley.Imp as ShelleyImp

spec ::
forall era.
Expand All @@ -40,4 +41,5 @@ alonzoEraSpecificSpec = do
Utxow.alonzoEraSpecificSpec

instance EraSpecificSpec AlonzoEra where
eraSpecificSpec = alonzoEraSpecificSpec
eraSpecificSpec =
ShelleyImp.shelleyEraSpecificSpec >> alonzoEraSpecificSpec
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ instance ShelleyEraImp AlonzoEra where
modifyImpInitProtVer = shelleyModifyImpInitProtVer
genRegTxCert = shelleyGenRegTxCert
genUnRegTxCert = shelleyGenUnRegTxCert
delegStakeTxCert = shelleyDelegStakeTxCert

instance MaryEraImp AlonzoEra

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import qualified Test.Cardano.Ledger.Babbage.Imp.UtxosSpec as Utxos
import qualified Test.Cardano.Ledger.Babbage.Imp.UtxowSpec as Utxow
import Test.Cardano.Ledger.Babbage.ImpTest (BabbageEraImp)
import Test.Cardano.Ledger.Imp.Common
import qualified Test.Cardano.Ledger.Shelley.Imp as ShelleyImp

spec :: forall era. (BabbageEraImp era, EraSpecificSpec era) => Spec
spec = do
Expand All @@ -28,4 +29,4 @@ spec = do

instance EraSpecificSpec BabbageEra where
eraSpecificSpec =
AlonzoImp.alonzoEraSpecificSpec
ShelleyImp.shelleyEraSpecificSpec >> AlonzoImp.alonzoEraSpecificSpec
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ instance ShelleyEraImp BabbageEra where
modifyImpInitProtVer = shelleyModifyImpInitProtVer
genRegTxCert = shelleyGenRegTxCert
genUnRegTxCert = shelleyGenUnRegTxCert
delegStakeTxCert = shelleyDelegStakeTxCert

babbageFixupTx ::
( HasCallStack
Expand Down
7 changes: 3 additions & 4 deletions eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Imp.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ conwayEraGenericSpec = do

conwayEraSpecificSpec :: SpecWith (ImpInit (LedgerSpec ConwayEra))
conwayEraSpecificSpec = do
describe "Conway era specific Imp spec" $
describe "Certificates without deposits" $ do
describe "DELEG" Deleg.conwayEraSpecificSpec
describe "UTXO" Utxo.conwayEraSpecificSpec
describe "Conway era specific Imp spec" $ do
describe "DELEG" Deleg.conwayEraSpecificSpec
describe "UTXO" Utxo.conwayEraSpecificSpec

instance EraSpecificSpec ConwayEra where
eraSpecificSpec =
Expand Down
Loading