Skip to content

Remove ProtocolParametersUpdate#1103

Draft
Jimbo4350 wants to merge 2 commits intomasterfrom
jordan/remove-ProtocolParametersUpdate
Draft

Remove ProtocolParametersUpdate#1103
Jimbo4350 wants to merge 2 commits intomasterfrom
jordan/remove-ProtocolParametersUpdate

Conversation

@Jimbo4350
Copy link
Copy Markdown
Contributor

@Jimbo4350 Jimbo4350 commented Feb 6, 2026

Changelog

- description: |
    Remove deprecated `ProtocolParametersUpdate` type and associated conversion functions
    (`toLedgerUpdate`, `toLedgerProposedPPUpdates`, `fromLedgerProposedPPUpdates`,
    `toLedgerPParamsUpdate`, `fromLedgerPParamsUpdate`).
    Remove `makeShelleyTransactionBody` and accompanying internal functions.
  type:
    - breaking
    - refactoring
  projects:
    - cardano-api

Context

Removes deprecated code that has been superseded by era-based protocol parameter updates. This cleans up ProtocolParameters.hs and Tx.Internal.Body significantly (~1000 lines removed).

How to trust this PR

Straightforward removal of deprecated, unused code. Build passes cleanly.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Self-reviewed the diff

@@ -0,0 +1,71 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE EmptyCase #-}

Check warning

Code scanning / HLint

Unused LANGUAGE pragma Warning generated

cardano-api/gen/Test/Gen/Cardano/Api/Internal/Shared.hs:2:1-26: Warning: Unused LANGUAGE pragma
  
Found:
  {-# LANGUAGE EmptyCase #-}
  
Perhaps you should remove it.
{-# LANGUAGE EmptyCase #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NamedFieldPuns #-}

Check warning

Code scanning / HLint

Unused LANGUAGE pragma Warning generated

cardano-api/gen/Test/Gen/Cardano/Api/Internal/Shared.hs:5:1-31: Warning: Unused LANGUAGE pragma
  
Found:
  {-# LANGUAGE NamedFieldPuns #-}
  
Perhaps you should remove it.
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}

Check warning

Code scanning / HLint

Unused LANGUAGE pragma Warning generated

cardano-api/gen/Test/Gen/Cardano/Api/Internal/Shared.hs:6:1-34: Warning: Unused LANGUAGE pragma
  
Found:
  {-# LANGUAGE OverloadedStrings #-}
  
Perhaps you should remove it.
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}

Check warning

Code scanning / HLint

Unused LANGUAGE pragma Warning generated

cardano-api/gen/Test/Gen/Cardano/Api/Internal/Shared.hs:8:1-32: Warning: Unused LANGUAGE pragma
  
Found:
  {-# LANGUAGE RecordWildCards #-}
  
Perhaps you should remove it.
  
Note: may require {-# LANGUAGE DisambiguateRecordFields #-} adding to the top of the file
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}

Check warning

Code scanning / HLint

Unused LANGUAGE pragma Warning generated

cardano-api/gen/Test/Gen/Cardano/Api/Internal/Shared.hs:10:1-30: Warning: Unused LANGUAGE pragma
  
Found:
  {-# LANGUAGE TupleSections #-}
  
Perhaps you should remove it.
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeApplications #-}

Check warning

Code scanning / HLint

Unused LANGUAGE pragma Warning generated

cardano-api/gen/Test/Gen/Cardano/Api/Internal/Shared.hs:11:1-33: Warning: Unused LANGUAGE pragma
  
Found:
  {-# LANGUAGE TypeApplications #-}
  
Perhaps you should remove it.
@Jimbo4350 Jimbo4350 force-pushed the jordan/remove-ProtocolParametersUpdate branch 2 times, most recently from 0d214de to 3686dc7 Compare February 12, 2026 12:15
@Jimbo4350 Jimbo4350 force-pushed the jordan/remove-ProtocolParametersUpdate branch from 3686dc7 to 0cb8e81 Compare March 12, 2026 14:41
@Jimbo4350
Copy link
Copy Markdown
Contributor Author

⚠️ Do not merge until node version 11 is released.

@Jimbo4350 Jimbo4350 force-pushed the jordan/remove-ProtocolParametersUpdate branch 3 times, most recently from dc4394a to 8056c64 Compare March 23, 2026 16:17
@Jimbo4350 Jimbo4350 force-pushed the jordan/remove-ProtocolParametersUpdate branch from 8056c64 to 48922cd Compare March 24, 2026 17:50
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.

1 participant