Skip to content

Commit ad57637

Browse files
committed
Add Era module to Conway testlib
1 parent 02fc33e commit ad57637

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

eras/conway/impl/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
* Moved `CertState` to `State` module
2020
* Move `ToPutusData` instances for `CoinPerByte`, `DRepVotingThresholds` and `PoolVotingThresholds` with their respective types
2121

22+
### `testlib`
23+
24+
* Added `Era` module with `ConwayEraTest` class
25+
2226
## 1.19.0.0
2327

2428
* Add `ConwayInstantStake`, `conwayInstantStakeCredentialsL`, `addConwayInstantStake`, `deleteConwayInstantStake`, `resolveConwayInstantStake`

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ library testlib
130130
Test.Cardano.Ledger.Conway.Binary.Regression
131131
Test.Cardano.Ledger.Conway.Binary.RoundTrip
132132
Test.Cardano.Ledger.Conway.CDDL
133+
Test.Cardano.Ledger.Conway.Era
133134
Test.Cardano.Ledger.Conway.Genesis
134135
Test.Cardano.Ledger.Conway.Imp
135136
Test.Cardano.Ledger.Conway.Imp.BbodySpec
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{-# LANGUAGE UndecidableSuperClasses #-}
2+
{-# OPTIONS_GHC -Wno-orphans #-}
3+
4+
module Test.Cardano.Ledger.Conway.Era (
5+
module Test.Cardano.Ledger.Babbage.Era,
6+
ConwayEraTest,
7+
) where
8+
9+
import Cardano.Ledger.Conway
10+
import Cardano.Ledger.Conway.Core
11+
import Cardano.Ledger.Conway.Governance
12+
import Cardano.Ledger.Conway.State
13+
import Test.Cardano.Ledger.Babbage.Era
14+
import Test.Cardano.Ledger.Conway.Arbitrary ()
15+
import Test.Cardano.Ledger.Conway.TreeDiff ()
16+
17+
class
18+
( BabbageEraTest era
19+
, ConwayEraTxBody era
20+
, ConwayEraCertState era
21+
, ConwayEraGov era
22+
) =>
23+
ConwayEraTest era
24+
25+
instance EraTest ConwayEra
26+
27+
instance ShelleyEraTest ConwayEra
28+
29+
instance AllegraEraTest ConwayEra
30+
31+
instance MaryEraTest ConwayEra
32+
33+
instance AlonzoEraTest ConwayEra
34+
35+
instance BabbageEraTest ConwayEra
36+
37+
instance ConwayEraTest ConwayEra

0 commit comments

Comments
 (0)