Skip to content

Commit cd4fc53

Browse files
committed
Add EraApi class for upgrade functions and instances for each era
1 parent 244d7fb commit cd4fc53

File tree

5 files changed

+856
-16
lines changed

5 files changed

+856
-16
lines changed

libs/cardano-ledger-api/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 1.12.0.0
44

5+
* Add `EraApi` class
56
* Export `VotingProcedure`, `ProposalProcedure`, `currentTreasuryValueTxBodyL` and
67
`treasuryDonationTxBodyL` from `Cardano.Ledger.Api.Tx.Body`
78
* Export `DijkstraEra` from `Cardano.Ledger.Api.Era`

libs/cardano-ledger-api/cardano-ledger-api.cabal

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ library
5959
aeson >=2.2,
6060
base >=4.18 && <5,
6161
bytestring,
62+
cardano-data,
6263
cardano-ledger-allegra ^>=1.8,
6364
cardano-ledger-alonzo >=1.12,
6465
cardano-ledger-babbage >=1.11,
@@ -70,6 +71,7 @@ library
7071
cardano-ledger-shelley ^>=1.17,
7172
cardano-strict-containers,
7273
containers,
74+
data-default,
7375
microlens,
7476
transformers,
7577

@@ -78,6 +80,7 @@ library testlib
7880
Test.Cardano.Ledger.Api.Arbitrary
7981
Test.Cardano.Ledger.Api.DebugTools
8082
Test.Cardano.Ledger.Api.State.Query
83+
Test.Cardano.Ledger.Api.Upgrade
8184

8285
visibility: public
8386
hs-source-dirs: testlib
@@ -95,10 +98,12 @@ library testlib
9598
base,
9699
bytestring,
97100
cardano-ledger-api,
98-
cardano-ledger-binary,
101+
cardano-ledger-binary:{cardano-ledger-binary, testlib},
99102
cardano-ledger-core:{cardano-ledger-core, testlib},
100103
cardano-ledger-dijkstra:testlib,
101104
containers,
105+
data-default,
106+
prettyprinter,
102107

103108
test-suite cardano-ledger-api-test
104109
type: exitcode-stdio-1.0
@@ -126,11 +131,15 @@ test-suite cardano-ledger-api-test
126131
build-depends:
127132
base,
128133
bytestring,
134+
cardano-ledger-allegra:{cardano-ledger-allegra, testlib},
135+
cardano-ledger-alonzo:{cardano-ledger-alonzo, testlib},
129136
cardano-ledger-api,
137+
cardano-ledger-babbage:{cardano-ledger-babbage, testlib},
130138
cardano-ledger-binary,
131139
cardano-ledger-byron,
132140
cardano-ledger-conway:{cardano-ledger-conway, testlib},
133141
cardano-ledger-core:{cardano-ledger-core, testlib},
142+
cardano-ledger-mary:{cardano-ledger-mary, testlib},
134143
cardano-ledger-shelley:{cardano-ledger-shelley, testlib},
135144
cardano-slotting:testlib,
136145
cardano-strict-containers,

0 commit comments

Comments
 (0)