Skip to content

Bump cardano-addresses 4.0.2, align with cardano-node 10.5.3 ledger API#5082

Merged
paolino merged 83 commits into
masterfrom
bump-cardano-addresses
Feb 6, 2026
Merged

Bump cardano-addresses 4.0.2, align with cardano-node 10.5.3 ledger API#5082
paolino merged 83 commits into
masterfrom
bump-cardano-addresses

Conversation

@paolino

@paolino paolino commented Dec 16, 2025

Copy link
Copy Markdown
Collaborator

Summary

  • Bump cardano-addresses to 4.0.2 (Hackage release, abandoning fork maintenance)
  • Update for cardano-ledger-core 1.17+ API changes (removed crypto parametrization)
  • Align dependencies with cardano-node 10.5.3 / cardano-cli 10.11.0.0
  • Inline cardano-wallet-read from external cardano-wallet-agda repo

Changes

Dependency updates:

  • cardano-addresses 4.0.2
  • cardano-ledger-core 1.17+ (types no longer parameterized by StandardCrypto)
  • cardano-api with new TxMintValue, deserialisation APIs
  • openapi3 fork with anyOf validation fix

Code migrations:

  • Remove StandardCrypto from Addr, TxId, TxIn, KeyHash, ScriptHash, Credential
  • Replace deprecated era aliases (StandardShelley → ShelleyEra, etc.)
  • Update imports: SafeHash → Hashes, Crypto → Protocol.Crypto
  • Use unsafeNonZero for SecurityParam (now NonZero Word64)

Test fixes:

  • Use valid UPLC script in genPlutusScript (cardano-api now validates)
  • Add ScriptValueGeneral schema for decoded transaction scripts
  • Update metadata error message expectations

Test plan

  • Unit tests pass
  • Local cluster tests pass
  • Integration tests pass

@paweljakubas paweljakubas changed the title Bump cardano-addresses to version 4.0.0 Bump cardano-addresses to version 4.0.2 Dec 30, 2025
@paweljakubas paweljakubas force-pushed the bump-cardano-addresses branch 3 times, most recently from ad86a37 to 173f569 Compare January 8, 2026 10:29
paolino and others added 23 commits February 4, 2026 17:05
update sha

restrict more precisely other cabals

update indices in cabal.project

point to master in cardano-addresses

update sha

cleanup
restrain more
Move the cardano-wallet-read package from an external source-repository-package
dependency to a local lib/ package for easier dependency management.
- Update index-state to 2026-02-02
- Constrain bytesmith < 0.3.14 (0.3.14.0 has text-2.x API incompatibility)
- Align ledger/consensus/network package versions with freeze file
- Add allow-newer for io-classes version conflicts
- Disable hoogle in nix shell (bytesmith dependency issue)
network 3.2.8.0 (released Aug 2025) added IP_DONTFRAG/IP_MTU_DISCOVER
socket options that wine doesn't support, causing WSAENOPROTOOPT errors
during Windows cross-compilation when iserv-proxy uses these options.

Pin hackage.nix to a version from before that release (Feb 2025).
Override haskell.nix's iserv-proxy input to use the version with
network < 3.2.8.0 constraint. Network 3.2.8.0 introduced socket options
(IP_DONTFRAG/IP_MTU_DISCOVER) that wine doesn't support, causing
Template Haskell compilation to fail with:
  iserv-proxy-interpreter.exe: Network.Socket.setSockOpt: failed
  (Bad protocol option (WSAENOPROTOOPT))
The haskell.nix patch for crypton-x509-system doesn't apply to version
1.8.0 due to cabal file reformatting. Clear the outdated patch and apply
the Crypt32->crypt32 fix via postPatch instead.
- Build commands for Windows targets
- iserv-proxy architecture explanation with ASCII diagram
- network library version compatibility table
- Windows-specific build fixes in nix/haskell.nix
- Troubleshooting commands for debugging Windows builds
- Migrate all Linux and macOS unit test steps from
  `nix develop --command cabal test` to `nix run .#unit-*`
- Add flake.nix exports for cardano-balance-tx and
  cardano-wallet-blackbox-benchmarks test targets
- Packages with golden files (application-tls, balance-tx, primitive)
  cd into their package directory before running
- Remove -M flag from Windows unit tests (see #5107)
- Mark flaky SMASH_01 integration test as pending (see #5108)
Disable Windows Checks group pending #5107 (OOM) and #5110 (TLS).
Use curl.exe on Windows in Mithril download to bypass crypton-x509-system
not reading the Local Machine certificate store.
@paolino paolino added this pull request to the merge queue Feb 6, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 6, 2026
@paolino paolino merged commit 69b6c08 into master Feb 6, 2026
50 checks passed
@paolino paolino deleted the bump-cardano-addresses branch February 6, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file Node Node bumps

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants