Skip to content

Commit 985799b

Browse files
committed
Add Era module to Alonzo testlib
1 parent bbca226 commit 985799b

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

eras/alonzo/impl/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* Deprecate `TxDats'` and `AlonzoTxWits'`
1515
* Deprecate `txwitsVKey'`, `txwitsBoot'`, `txscripts'`, `txdats'` and `txrdmrs'`
1616

17+
### `testlib`
18+
19+
* Added `Era` module with `AlonzoEraTest` class
20+
1721
## 1.13.0.0
1822

1923
* Add `DecCBOR` instances for:

eras/alonzo/impl/cardano-ledger-alonzo.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ library testlib
114114
Test.Cardano.Ledger.Alonzo.Binary.RoundTrip
115115
Test.Cardano.Ledger.Alonzo.Binary.TxWitsSpec
116116
Test.Cardano.Ledger.Alonzo.CDDL
117+
Test.Cardano.Ledger.Alonzo.Era
117118
Test.Cardano.Ledger.Alonzo.Imp
118119
Test.Cardano.Ledger.Alonzo.Imp.UtxoSpec
119120
Test.Cardano.Ledger.Alonzo.Imp.UtxosSpec
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{-# LANGUAGE FlexibleContexts #-}
2+
{-# LANGUAGE TypeFamilies #-}
3+
{-# LANGUAGE TypeOperators #-}
4+
{-# LANGUAGE UndecidableSuperClasses #-}
5+
{-# OPTIONS_GHC -Wno-orphans #-}
6+
7+
module Test.Cardano.Ledger.Alonzo.Era (
8+
module Test.Cardano.Ledger.Mary.Era,
9+
AlonzoEraTest,
10+
) where
11+
12+
import Cardano.Ledger.Alonzo
13+
import Cardano.Ledger.Alonzo.Core
14+
import Cardano.Ledger.Alonzo.Plutus.Context
15+
import Cardano.Ledger.Alonzo.Scripts ()
16+
import Cardano.Ledger.Alonzo.UTxO
17+
import Data.TreeDiff
18+
import Test.Cardano.Ledger.Alonzo.Arbitrary ()
19+
import Test.Cardano.Ledger.Alonzo.TreeDiff ()
20+
import Test.Cardano.Ledger.Mary.Era
21+
22+
class
23+
( MaryEraTest era
24+
, EraPlutusContext era
25+
, AlonzoEraTx era
26+
, AlonzoEraTxAuxData era
27+
, AlonzoEraUTxO era
28+
, ToExpr (PlutusScript era)
29+
, Script era ~ AlonzoScript era
30+
) =>
31+
AlonzoEraTest era
32+
33+
instance EraTest AlonzoEra
34+
35+
instance ShelleyEraTest AlonzoEra
36+
37+
instance AllegraEraTest AlonzoEra
38+
39+
instance MaryEraTest AlonzoEra
40+
41+
instance AlonzoEraTest AlonzoEra

0 commit comments

Comments
 (0)