Skip to content

refactor: remove duplicate Block.Gen modules, consume from cardano-ledger-read#5206

Merged
paolino merged 1 commit into
masterfrom
refactor/remove-block-gen-duplicates
Feb 24, 2026
Merged

refactor: remove duplicate Block.Gen modules, consume from cardano-ledger-read#5206
paolino merged 1 commit into
masterfrom
refactor/remove-block-gen-duplicates

Conversation

@paolino
Copy link
Copy Markdown
Collaborator

@paolino paolino commented Feb 23, 2026

Closes #5205

Summary

  • Remove 5 duplicate Cardano.Wallet.Read.Block.Gen.* modules (Gen, BlockParameters, Shelley, Babbage, Byron) now provided by cardano-ledger-read
  • Update Build.hs to import mkBlockEra and BlockParameters from the library, define txsL locally
  • Bump cardano-ledger-read s-r-p to include Gen modules
  • Remove 7 unused build-depends from cardano-wallet-read.cabal

Net: -642 lines, 5 modules deleted

Test plan

  • cabal build lib:cardano-wallet-read -O0 — clean, no warnings
  • cabal test cardano-wallet-read:test:test — 24 tests pass
  • cabal build cardano-wallet-benchmarks:bench:read-blocks — benchmark builds
  • CI green

…dger-read

Remove 5 modules (Gen, BlockParameters, Shelley, Babbage, Byron) that
are now provided by cardano-ledger-read. Build.hs stays as wallet-specific
DSL, importing mkBlockEra and BlockParameters from the library.

Also bumps cardano-ledger-read s-r-p to include Gen modules and removes
unused build-depends (cardano-crypto-praos, cardano-protocol-tpraos,
deepseq, ouroboros-consensus, ouroboros-consensus-cardano,
ouroboros-consensus-protocol, ouroboros-network-api).

Closes #5205
@paolino paolino self-assigned this Feb 23, 2026
@paolino paolino merged commit aa8a424 into master Feb 24, 2026
108 of 109 checks passed
@paolino paolino deleted the refactor/remove-block-gen-duplicates branch February 24, 2026 11:08
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
## Summary
- Remove 35 inline `Cardano.Read.Ledger.*` source files and 5
`Block.Gen.*` modules
- Consume from `cardano-ledger-read` library (node-10.6.2 branch, commit
`0ce0e7a`)
- Mirrors the same refactoring done on master (PRs #5204, #5206)
- Build.hs retains local `txsL` lens definition

## Test plan
- [x] `cardano-wallet-read` library compiles (34 modules)
- [x] All 24 `cardano-wallet-read` tests pass
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 24, 2026
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).
paolino added a commit that referenced this pull request Feb 25, 2026
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).
paolino added a commit that referenced this pull request Mar 16, 2026
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove duplicate Block.Gen code, consume from cardano-ledger-read

1 participant