Skip to content

Commit 54b6dca

Browse files
committed
CDDL:alonzo: Switch to using Huddle/Cuddle.
- Remove - crypto.cddl - extras.cddl - Add - Test.Cardano.Ledger.Alonzo.CDDL - cardano-ledger-alonzo:exe:huddle-cddle - huddleRoundTrip(Ann)CborSpec for all definitions already being tested - Autogenerate alonzo.cddl using Huddle/Cuddle - Update - hie.yaml with alonzo paths module and huddle-cddl - gen-cddl.sh to include alonzo
1 parent 1f2d687 commit 54b6dca

File tree

10 files changed

+1002
-429
lines changed

10 files changed

+1002
-429
lines changed

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ category: Network
1414
build-type: Simple
1515
data-files:
1616
cddl-files/alonzo.cddl
17-
cddl-files/crypto.cddl
18-
cddl-files/extras.cddl
1917
golden/*.cbor
2018

2119
extra-source-files: CHANGELOG.md
@@ -103,6 +101,7 @@ library
103101
library testlib
104102
exposed-modules:
105103
Test.Cardano.Ledger.Alonzo.Arbitrary
104+
Test.Cardano.Ledger.Alonzo.CDDL
106105
Test.Cardano.Ledger.Alonzo.Binary.Cddl
107106
Test.Cardano.Ledger.Alonzo.Binary.CostModelsSpec
108107
Test.Cardano.Ledger.Alonzo.Binary.RoundTrip
@@ -142,6 +141,8 @@ library testlib
142141
cardano-ledger-shelley:{cardano-ledger-shelley, testlib},
143142
cardano-strict-containers,
144143
cardano-slotting,
144+
cuddle,
145+
heredoc,
145146
plutus-ledger-api,
146147
generic-random,
147148
microlens,
@@ -153,6 +154,21 @@ library testlib
153154
tree-diff,
154155
QuickCheck
155156

157+
executable huddle-cddl
158+
main-is: Main.hs
159+
hs-source-dirs: huddle-cddl
160+
other-modules: Paths_cardano_ledger_alonzo
161+
default-language: Haskell2010
162+
ghc-options:
163+
-Wall -Wcompat -Wincomplete-record-updates
164+
-Wincomplete-uni-patterns -Wredundant-constraints -Wpartial-fields
165+
-Wunused-packages -threaded -rtsopts -with-rtsopts=-N
166+
167+
build-depends:
168+
base,
169+
testlib,
170+
cardano-ledger-binary:testlib >=1.5
171+
156172
executable gen-golden
157173
main-is: GenerateGoldenFileMain.hs
158174
hs-source-dirs: test

0 commit comments

Comments
 (0)