Repository navigation
Experimental api propagation 2025-05-23 - #1200
Merged
Merged
Conversation
Jimbo4350
requested review from
carbolymer,
disassembler,
kevinhammond,
newhoggy and
palas
as code owners
May 26, 2025 18:03
Jimbo4350
force-pushed
the
jordan/experimental-api-propagation-20250523
branch
from
May 26, 2025 19:37
e88d2c4 to
90b0999
Compare
carbolymer
reviewed
May 27, 2025
Comment on lines
+149
to
+151
| case Exp.sbeToEra $ convert cEraOnwards of | ||
| Left deprecatedEra -> throwCliError deprecatedEra | ||
| Right e -> do |
Contributor
There was a problem hiding this comment.
Suggested change
| case Exp.sbeToEra $ convert cEraOnwards of | |
| Left deprecatedEra -> throwCliError deprecatedEra | |
| Right e -> do | |
| e <- fromEitherCli . Exp.sbeToEra $ convert cEraOnwards of |
carbolymer
reviewed
May 27, 2025
Comment on lines
+225
to
+228
| sbe <- maybeToList $ forEraMaybeEon era | ||
| case Exp.sbeToEra sbe of | ||
| Left{} -> [] | ||
| Right e -> |
Contributor
There was a problem hiding this comment.
This is redundant, isn't it? Era is an Eon already.
Suggested change
| sbe <- maybeToList $ forEraMaybeEon era | |
| case Exp.sbeToEra sbe of | |
| Left{} -> [] | |
| Right e -> | |
| e <- maybeToList $ forEraMaybeEon era |
carbolymer
reviewed
May 27, 2025
| instance Error Text where | ||
| prettyError = pretty | ||
|
|
||
| instance Error (Exp.DeprecatedEra era) where |
Contributor
There was a problem hiding this comment.
Needs to be upstreamed to cardano-api.
carbolymer
reviewed
May 27, 2025
Jimbo4350
force-pushed
the
jordan/experimental-api-propagation-20250523
branch
from
May 27, 2025 13:22
90b0999 to
974fe88
Compare
Comment on lines
+150
to
+151
| ( \p -> | ||
| fromEitherIOCli @ProposalError $ Exp.obtainCommonConstraints era (readProposal p) |
Check notice
Code scanning / hlint
Avoid lambda
`GovernanceActionUpdateCommitteeCmdArgs` `GovernanceActionCreateConstitutionCmdArgs` `GovernanceActionInfoCmdArgs` `GovernanceActionCreateNoConfidenceCmdArgs` `UpdateProtocolParametersConwayOnwards` on `Era era` instead of `ShelleyBasedEra era`
instead of `ShelleyBasedEra era`
of `ShelleyBasedEra era`
`ShelleyBasedEra era`
Jimbo4350
force-pushed
the
jordan/experimental-api-propagation-20250523
branch
from
May 27, 2025 13:54
93e361e to
f2d72f5
Compare
Jimbo4350
force-pushed
the
jordan/experimental-api-propagation-20250523
branch
from
May 27, 2025 14:31
f2d72f5 to
08286ac
Compare
carbolymer
approved these changes
May 27, 2025
3 tasks done
Jimbo4350
added a commit
that referenced
this pull request
May 14, 2026
Adapt to cardano-api PR #1209, which removes the legacy 'TxOut CtxTx era' from the Compatible and Experimental APIs: * 'createCompatibleTx' now takes '[Exp.TxOut (ShelleyLedgerEra era)]' plus a new 'Map L.DataHash (L.Data ...)' argument carrying any supplemental datum bodies. The legacy 'TxOut CtxTx era' bundled supplemental datums inside outputs; 'Exp.TxOut' only carries the datum hash, so callers thread the full datum bodies in explicitly. * The bridge helpers 'fromLegacyTxOut', 'legacyDatumToDatum', 'supplementalDatumFromLegacy', 'toLedgerDatum', and the 'DatumDecodingError' type are deleted from 'Cardano.Api.Experimental.Tx'. Migration: * 'mkTxOut' and 'toTxOutInAnyEra' now return '(Exp.TxOut (ShelleyLedgerEra era), Map DataHash (L.Data ...))' directly, building the legacy 'TxOut CtxTx era' internally only as a stepping stone for 'toShelleyTxOutAny'. * 'createCompatibleTx' call site in 'Compatible/Transaction/Run.hs' folds the per-output supplemental datums via 'Map.unions' and passes them as the new argument. * 'toTxOutInEra' and 'toTxOutInShelleyBasedEra' in 'EraBased/Transaction/Run.hs' delegate directly to 'mkTxOut' (the deleted 'fromLegacyTxOut' is gone). * 'TxCmdDatumDecodingError' is removed since the underlying 'Exp.DatumDecodingError' is gone and the new conversion is total. Temporary 'cabal.project' additions (to be removed once #1209 is merged and the next cardano-api is published to CHaP): * 'source-repository-package' pointing at the PR branch so CI can build against the unpublished API. * Per-package '-Wwarn=deprecations -Wwarn=unused-imports' for cardano-cli. The PR branch is several commits ahead of cardano-api-11.1.0.0 and surfaces unrelated TxBody/TxBodyContent deprecations (cardano-api PR #1200) plus a redundant 'Cardano.Ledger.Core' import in 'Cardano.CLI.Read' that became visible after upstream re-exports widened. Both are separate cleanups out of scope for this PR.
This was referenced May 18, 2026
Jimbo4350
added a commit
that referenced
this pull request
May 19, 2026
Adapt to cardano-api PR #1209, which removes the legacy 'TxOut CtxTx era' from the Compatible and Experimental APIs: * 'createCompatibleTx' now takes '[Exp.TxOut (ShelleyLedgerEra era)]' plus a new 'Map L.DataHash (L.Data ...)' argument carrying any supplemental datum bodies. The legacy 'TxOut CtxTx era' bundled supplemental datums inside outputs; 'Exp.TxOut' only carries the datum hash, so callers thread the full datum bodies in explicitly. * The bridge helpers 'fromLegacyTxOut', 'legacyDatumToDatum', 'supplementalDatumFromLegacy', 'toLedgerDatum', and the 'DatumDecodingError' type are deleted from 'Cardano.Api.Experimental.Tx'. Migration: * 'mkTxOut' and 'toTxOutInAnyEra' now return '(Exp.TxOut (ShelleyLedgerEra era), Map DataHash (L.Data ...))' directly, building the legacy 'TxOut CtxTx era' internally only as a stepping stone for 'toShelleyTxOutAny'. * 'createCompatibleTx' call site in 'Compatible/Transaction/Run.hs' folds the per-output supplemental datums via 'Map.unions' and passes them as the new argument. * 'toTxOutInEra' and 'toTxOutInShelleyBasedEra' in 'EraBased/Transaction/Run.hs' delegate directly to 'mkTxOut' (the deleted 'fromLegacyTxOut' is gone). * 'TxCmdDatumDecodingError' is removed since the underlying 'Exp.DatumDecodingError' is gone and the new conversion is total. Temporary 'cabal.project' additions (to be removed once #1209 is merged and the next cardano-api is published to CHaP): * 'source-repository-package' pointing at the PR branch so CI can build against the unpublished API. * Per-package '-Wwarn=deprecations -Wwarn=unused-imports' for cardano-cli. The PR branch is several commits ahead of cardano-api-11.1.0.0 and surfaces unrelated TxBody/TxBodyContent deprecations (cardano-api PR #1200) plus a redundant 'Cardano.Ledger.Core' import in 'Cardano.CLI.Read' that became visible after upstream re-exports widened. Both are separate cleanups out of scope for this PR.
Jimbo4350
added a commit
that referenced
this pull request
May 19, 2026
cardano-api 11.2.0.0 is published to CHaP. Bump the cardano-haskell-packages index-state past the publish (2026-05-18T18:23:40Z), bump the cardano-cli cabal dep from ^>=11.1 to ^>=11.2, and bump the CHaP flake input accordingly. 11.2.0.0 introduces breaking changes that subsequent commits in this PR migrate cardano-cli to: legacy TxOut removed (cardano-api #1209), legacy Certificate type removed (#1210), and TxBody/TxBodyContent deprecated (#1200).
Jimbo4350
added a commit
that referenced
this pull request
May 19, 2026
`TxBodyFile` was a `File (TxBody ())` whose phantom payload was only ever used as a file-tag for option/parser plumbing; the bytes on disk do not depend on it. Replace `TxBody ()` with a fresh empty `TxBodyTag` data type so the alias no longer references the deprecated `TxBody` from cardano-api PR #1200. No on-disk format change. No call-site change beyond the alias itself.
Jimbo4350
added a commit
that referenced
this pull request
May 21, 2026
cardano-api 11.2.0.0 is published to CHaP. Bump the cardano-haskell-packages index-state past the publish (2026-05-18T18:23:40Z), bump the cardano-cli cabal dep from ^>=11.1 to ^>=11.2, and bump the CHaP flake input accordingly. 11.2.0.0 introduces breaking changes that subsequent commits in this PR migrate cardano-cli to: legacy TxOut removed (cardano-api #1209), legacy Certificate type removed (#1210), and TxBody/TxBodyContent deprecated (#1200).
Jimbo4350
added a commit
that referenced
this pull request
May 21, 2026
`TxBodyFile` was a `File (TxBody ())` whose phantom payload was only ever used as a file-tag for option/parser plumbing; the bytes on disk do not depend on it. Replace `TxBody ()` with a fresh empty `TxBodyTag` data type so the alias no longer references the deprecated `TxBody` from cardano-api PR #1200. No on-disk format change. No call-site change beyond the alias itself.
SuganyaAK
pushed a commit
to SuganyaAK/cardano-cli
that referenced
this pull request
Nov 10, 2026
cardano-api 11.2.0.0 is published to CHaP. Bump the cardano-haskell-packages index-state past the publish (2026-05-18T18:23:40Z), bump the cardano-cli cabal dep from ^>=11.1 to ^>=11.2, and bump the CHaP flake input accordingly. 11.2.0.0 introduces breaking changes that subsequent commits in this PR migrate cardano-cli to: legacy TxOut removed (cardano-api IntersectMBO#1209), legacy Certificate type removed (IntersectMBO#1210), and TxBody/TxBodyContent deprecated (IntersectMBO#1200).
SuganyaAK
pushed a commit
to SuganyaAK/cardano-cli
that referenced
this pull request
Nov 10, 2026
`TxBodyFile` was a `File (TxBody ())` whose phantom payload was only ever used as a file-tag for option/parser plumbing; the bytes on disk do not depend on it. Replace `TxBody ()` with a fresh empty `TxBodyTag` data type so the alias no longer references the deprecated `TxBody` from cardano-api PR IntersectMBO#1200. No on-disk format change. No call-site change beyond the alias itself.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog
Context
Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist