Skip to content

Commit 1ffc288

Browse files
committed
Added missing translations
1 parent 2387089 commit 1ffc288

File tree

29 files changed

+198
-93
lines changed

29 files changed

+198
-93
lines changed

eras/conway/impl/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
## 1.20.0.0
44

5+
* Remove era parametrization from `GovPurposeId`, `GovRelation`
56
* Move to `testlib` the `DecCBOR` instance for `TxBody ConwayEra`
67
* Add `ReferenceInputsNotDisjointFromInputs`
7-
- Remove `ConwayNewEpochPredFailure` and replace it with `Void`. #5007
8+
* Remove `ConwayNewEpochPredFailure` and replace it with `Void`. #5007
89
* Added to `PParams`: `ppCommitteeMaxTermLength`,`ppCommitteeMinSize`,`ppDRepActivity`,`ppDRepDeposit`,`ppDRepVotingThresholds`,`ppGovActionDeposit`,`ppGovActionLifetime`,`ppGovProtocolVersion`,`ppMinFeeRefScriptCostPerByte`,`ppPoolVotingThresholds`
910
* Moved `ConwayEraPlutusTxInfo` class from `Context` module to `TxInfo`
1011
* Removed `Cardano.Ledger.Conway.Plutus.Context` module

eras/conway/impl/src/Cardano/Ledger/Conway/Governance.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ module Cardano.Ledger.Conway.Governance (
164164
reCommitteeStateL,
165165
DefaultVote (..),
166166
defaultStakePoolVote,
167+
translateProposals,
167168

168169
-- * Exported for testing
169170
pparamsUpdateThreshold,

eras/conway/impl/src/Cardano/Ledger/Conway/TxBody.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ module Cardano.Ledger.Conway.TxBody (
4747
ConwayTxBodyRaw (..),
4848
conwayTotalDepositsTxBody,
4949
conwayProposalsDeposits,
50+
conwayRedeemerPointer,
51+
conwayRedeemerPointerInverse,
5052
) where
5153

5254
import Cardano.Ledger.Alonzo.TxBody (Indexable (..))

eras/conway/impl/test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ main =
3232
Spec.spec
3333
Proposals.spec
3434
Binary.spec
35-
Cddl.spec
35+
Cddl.spec @ConwayEra
3636
DRepRatify.spec
3737
CommitteeRatify.spec
3838
SPORatifySpec.spec

eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Binary/CddlSpec.hs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
module Test.Cardano.Ledger.Conway.Binary.CddlSpec (spec) where
99

1010
import Cardano.Ledger.Allegra.Scripts
11+
import Cardano.Ledger.Alonzo (AlonzoScript, AlonzoTxAuxData)
1112
import Cardano.Ledger.Alonzo.Scripts (CostModels)
1213
import Cardano.Ledger.Alonzo.TxWits (Redeemers)
1314
import Cardano.Ledger.Binary (DecCBOR)
@@ -27,17 +28,20 @@ import Test.Cardano.Ledger.Binary.Cuddle (
2728
specWithHuddle,
2829
)
2930
import Test.Cardano.Ledger.Common
30-
import Test.Cardano.Ledger.Conway.Binary.Annotator (Annotator)
3131
import Test.Cardano.Ledger.Conway.Binary.Cddl (readConwayCddlFiles)
3232
import Test.Cardano.Ledger.Conway.CDDL (conwayCDDL)
3333
import Test.Cardano.Ledger.Conway.ImpTest (ConwayEraImp)
3434

3535
spec ::
3636
forall era.
3737
( ConwayEraImp era
38-
, DecCBOR (Annotator (TxBody era))
39-
, DecCBOR (Annotator (TxWits era))
40-
, DecCBOR (Annotator (Tx era))
38+
, DecCBOR (TxBody era)
39+
, DecCBOR (AlonzoTxAuxData era)
40+
, DecCBOR (Timelock era)
41+
, DecCBOR (AlonzoScript era)
42+
, DecCBOR (TxWits era)
43+
, DecCBOR (Redeemers era)
44+
, DecCBOR (Tx era)
4145
) =>
4246
Spec
4347
spec = do

eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Binary/RoundTrip.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ roundTripConwayEraTypesSpec ::
7777
) =>
7878
Spec
7979
roundTripConwayEraTypesSpec = do
80-
describe "Conway Transaction Types" $ do
80+
describe (eraName @era <> " Transaction Types") $ do
8181
roundTripEraTypeSpec @era @GovAction
8282
roundTripEraTypeSpec @era @VotingProcedure
8383
roundTripEraTypeSpec @era @VotingProcedures
8484
roundTripEraTypeSpec @era @ProposalProcedure
8585
roundTripEraTypeSpec @era @Constitution
8686
prop "CostModels" $ roundTripEraExpectation @era @CostModels
87-
describe "Conway State Types" $ do
87+
describe (eraName @era <> " State Types") $ do
8888
roundTripShareEraTypeSpec @era @EnactState
8989
roundTripShareEraTypeSpec @era @GovActionState
9090
roundTripShareEraTypeSpec @era @Proposals

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ datumAndReferenceInputsSpec = do
110110
, mkTxInPartial producingTx 1
111111
]
112112
(referringTx ^. witsTxL . scriptTxWitsL) `shouldBe` mempty
113-
it "fails with same txIn in regular inputs and reference inputs" $ do
113+
it "fails with same txIn in regular inputs and reference inputs (PlutusV1)" $ do
114114
producingTx <- setupRefTx SPlutusV1
115115
let
116116
consumingTx =
@@ -156,7 +156,7 @@ datumAndReferenceInputsSpec = do
156156
CollectErrors
157157
[BadTranslation . inject . InlineDatumsNotSupported @era $ TxOutFromInput lockedTxIn]
158158
)
159-
it "fails with same txIn in regular inputs and reference inputs" $ do
159+
it "fails with same txIn in regular inputs and reference inputs (PlutusV3)" $ do
160160
producingTx <- setupRefTx SPlutusV3
161161
let
162162
consumingTx =

eras/dijkstra/cardano-ledger-dijkstra.cabal

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,9 @@ library
5050
Cardano.Ledger.Dijkstra.Rules.Cert
5151
Cardano.Ledger.Dijkstra.Rules.Certs
5252
Cardano.Ledger.Dijkstra.Rules.Deleg
53-
Cardano.Ledger.Dijkstra.Rules.Enact
54-
Cardano.Ledger.Dijkstra.Rules.Epoch
5553
Cardano.Ledger.Dijkstra.Rules.Gov
56-
Cardano.Ledger.Dijkstra.Rules.GovCert
57-
Cardano.Ledger.Dijkstra.Rules.HardFork
5854
Cardano.Ledger.Dijkstra.Rules.Ledger
5955
Cardano.Ledger.Dijkstra.Rules.Ledgers
60-
Cardano.Ledger.Dijkstra.Rules.Mempool
61-
Cardano.Ledger.Dijkstra.Rules.NewEpoch
62-
Cardano.Ledger.Dijkstra.Rules.Pool
63-
Cardano.Ledger.Dijkstra.Rules.Ratify
64-
Cardano.Ledger.Dijkstra.Rules.Tickf
6556
Cardano.Ledger.Dijkstra.Rules.Utxo
6657
Cardano.Ledger.Dijkstra.Rules.Utxos
6758
Cardano.Ledger.Dijkstra.Rules.Utxow

eras/dijkstra/src/Cardano/Ledger/Dijkstra/Rules.hs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,9 @@ import Cardano.Ledger.Dijkstra.Rules.Bbody ()
1212
import Cardano.Ledger.Dijkstra.Rules.Cert ()
1313
import Cardano.Ledger.Dijkstra.Rules.Certs ()
1414
import Cardano.Ledger.Dijkstra.Rules.Deleg ()
15-
import Cardano.Ledger.Dijkstra.Rules.Enact ()
16-
import Cardano.Ledger.Dijkstra.Rules.Epoch ()
1715
import Cardano.Ledger.Dijkstra.Rules.Gov ()
18-
import Cardano.Ledger.Dijkstra.Rules.GovCert ()
19-
import Cardano.Ledger.Dijkstra.Rules.HardFork ()
2016
import Cardano.Ledger.Dijkstra.Rules.Ledger ()
2117
import Cardano.Ledger.Dijkstra.Rules.Ledgers ()
22-
import Cardano.Ledger.Dijkstra.Rules.Mempool ()
23-
import Cardano.Ledger.Dijkstra.Rules.NewEpoch ()
24-
import Cardano.Ledger.Dijkstra.Rules.Pool ()
25-
import Cardano.Ledger.Dijkstra.Rules.Ratify ()
26-
import Cardano.Ledger.Dijkstra.Rules.Tickf ()
2718
import Cardano.Ledger.Dijkstra.Rules.Utxo ()
2819
import Cardano.Ledger.Dijkstra.Rules.Utxos ()
2920
import Cardano.Ledger.Dijkstra.Rules.Utxow ()

eras/dijkstra/src/Cardano/Ledger/Dijkstra/Rules/Enact.hs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)