File tree Expand file tree Collapse file tree 3 files changed +23
-6
lines changed
testlib/Test/Cardano/Ledger/Conway Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 66* Deprecate ` Conway ` type synonym
77* Remove crypto parametrization from ` ConwayEra `
88
9+ ### ` testlib `
10+
11+ * Add ` Arbitrary ` instance for ` ConwayBbodyPredFailure ` and ` ConwayMempoolPredFailure `
12+
913## 1.18.0.0
1014
1115* Remove ` SlotNo ` from ` CertEnv ` and ` CertsEnv `
Original file line number Diff line number Diff line change @@ -218,6 +218,17 @@ instance
218218
219219 shrink = genericShrink
220220
221+ instance
222+ ( Era era
223+ , Arbitrary (PredicateFailure (EraRule " LEDGERS" era ))
224+ ) =>
225+ Arbitrary (ConwayBbodyPredFailure era )
226+ where
227+ arbitrary = genericArbitraryU
228+
229+ instance Arbitrary (ConwayMempoolPredFailure era ) where
230+ arbitrary = genericArbitraryU
231+
221232instance
222233 ( EraTxOut era
223234 , Arbitrary (Value era )
Original file line number Diff line number Diff line change @@ -76,15 +76,17 @@ roundTripConwayEraTypesSpec = do
7676instance RuleListEra ConwayEra where
7777 type
7878 EraRules ConwayEra =
79- '[ " GOV"
80- , " UTXOS"
81- , " LEDGER"
82- , " CERTS"
79+ '[ " BBODY"
8380 , " CERT"
81+ , " CERTS"
8482 , " DELEG"
8583 , " GOVCERT"
86- , " UTXOW "
87- , " UTXO "
84+ , " GOV "
85+ , " LEDGER "
8886 , " LEDGERS"
87+ , " MEMPOOL"
8988 , " POOL"
89+ , " UTXO"
90+ , " UTXOS"
91+ , " UTXOW"
9092 ]
You can’t perform that action at this time.
0 commit comments