Skip to content

Commit 9dccb45

Browse files
committed
refactor: consume cardano-ledger-read from external package
Remove inline Cardano.Read.Ledger.* and Block.Gen modules, consume from cardano-ledger-read node-10.6.2 branch instead. Mirrors the same refactoring done on master (PRs #5204, #5206).
1 parent 6e725f3 commit 9dccb45

4 files changed

Lines changed: 10 additions & 23 deletions

File tree

cabal.project

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ repository cardano-haskell-packages
4949
d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee
5050

5151
-- repeating the index-state for hackage to work around hackage.nix parsing limitation
52-
index-state: 2025-09-29T13:55:56Z
52+
index-state: 2026-01-29T00:00:00Z
5353

5454
index-state:
55-
, hackage.haskell.org 2025-09-29T13:55:56Z
55+
, hackage.haskell.org 2026-01-29T00:00:00Z
5656
, cardano-haskell-packages 2026-02-09T17:36:58Z
5757

5858
packages:
@@ -129,8 +129,8 @@ source-repository-package
129129
source-repository-package
130130
type: git
131131
location: https://github.com/cardano-foundation/cardano-ledger-read
132-
tag: 7b6adf7cc7a55e8bf6cc591e915598660124b286
133-
--sha256: 07psh8fw7d6kgjr449qip5skphyg3y0wf6l0wqwjnwwnw0jgi9rs
132+
tag: 0ce0e7a8a8c0e9e9073cec9407a9e851d05ed13d
133+
--sha256: 0c32h8z0bldxn1215aj4i3brxl8vhk4v35by3hscw1dxcjm8kw70
134134

135135
-- END cardano-ledger-read
136136
--------------------------------------------------------------------------------
@@ -141,8 +141,8 @@ source-repository-package
141141
source-repository-package
142142
type: git
143143
location: https://github.com/cardano-foundation/cardano-balance-transaction
144-
tag: a069da87ad0ced93f1f9e66061f1e9228a881f59
145-
--sha256: 1xsjcs1qsg8x1cnzw4zxh15ddjam7zrgi68h3b2ckj76ywlhh20f
144+
tag: 98e7f4155451e357410e266dd6c754d58ead3b7f
145+
--sha256: 1p8xhf4ly37lqs45663vk786k1mv8dzgji6wiz2s2ysn9zqq3kda
146146

147147
-- END cardano-balance-tx
148148
--------------------------------------------------------------------------------

lib/application-tls/cardano-wallet-application-tls.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ library
4343
, base64-bytestring
4444
, bytestring
4545
, crypton
46-
, asn1-encoding
47-
, asn1-types
46+
, crypton-asn1-encoding
47+
, crypton-asn1-types
4848
, crypton-x509
4949
, crypton-x509-store
5050
, crypton-x509-validation
@@ -55,7 +55,7 @@ library
5555
, filepath
5656
, ip
5757
, text
58-
, hourglass
58+
, time-hourglass
5959
, tls
6060
, warp-tls
6161
, wide-word

lib/primitive/cardano-wallet-primitive.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ library
6161
, cardano-ledger-conway
6262
, cardano-ledger-core
6363
, cardano-ledger-dijkstra
64+
, cardano-ledger-read
6465
, cardano-ledger-mary
6566
, cardano-ledger-read
6667
, cardano-ledger-shelley

lib/wallet/src/Cardano/Wallet/Shelley/Transaction.hs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -256,20 +256,6 @@ import qualified Cardano.Api.Certificate as ApiCert
256256
import qualified Cardano.Api.Experimental.Certificate as ExpCert
257257
import qualified Cardano.Api.Shelley as Cardano
258258
import qualified Cardano.Balance.Tx.Eras as Write
259-
import qualified Cardano.Crypto as CC
260-
import qualified Cardano.Crypto.Hash.Class as Crypto
261-
import qualified Cardano.Crypto.Wallet as Crypto.HD
262-
import qualified Cardano.Ledger.Api as Ledger
263-
import qualified Cardano.Ledger.Keys.Bootstrap as SL
264-
import qualified Cardano.Wallet.Primitive.Ledger.Convert as Convert
265-
import qualified Cardano.Wallet.Primitive.Ledger.Shelley as Compatibility
266-
import qualified Cardano.Wallet.Primitive.Types.AssetId as AssetId
267-
import qualified Cardano.Wallet.Primitive.Types.TokenMap as TokenMap
268-
( CardanoApiEra
269-
, IsRecentEra (recentEra)
270-
, RecentEra (RecentEraBabbage, RecentEraConway)
271-
, shelleyBasedEraFromRecentEra
272-
)
273259
import qualified Cardano.Balance.Tx.Primitive as BT
274260
import qualified Cardano.Balance.Tx.Sign as Write
275261
( estimateMaxWitnessRequiredPerInput

0 commit comments

Comments
 (0)