Skip to content

Commit 5ade7c0

Browse files
geo2aJimbo4350
authored andcommitted
Bump Hackage and CHaP index states
1 parent b4a8d91 commit 5ade7c0

4 files changed

Lines changed: 28 additions & 71 deletions

File tree

cabal.project

Lines changed: 7 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ repository cardano-haskell-packages
1313
-- See CONTRIBUTING for information about these, including some Nix commands
1414
-- you need to run if you change them
1515
index-state:
16-
, hackage.haskell.org 2025-12-02T22:23:29Z
17-
, cardano-haskell-packages 2026-01-30T03:40:53Z
16+
, hackage.haskell.org 2026-01-12T19:29:50Z
17+
, cardano-haskell-packages 2026-01-27T13:37:12Z
1818

1919
packages:
2020
cardano-cli
@@ -67,65 +67,12 @@ if impl (ghc >= 9.12)
6767
-- Do NOT add more source-repository-package stanzas here unless they are strictly
6868
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.
6969

70-
71-
72-
source-repository-package
73-
type: git
74-
location: https://github.com/IntersectMBO/cardano-ledger
75-
tag: 324efe565237061615ec10e7f47e08699cace660
76-
--sha256: sha256-Tu5TlPwJgVpEfTui+zbaUJIOMoexCwFTQ5M/n2DP2/I=
77-
subdir:
78-
eras/allegra/impl
79-
eras/alonzo/impl
80-
eras/alonzo/test-suite
81-
eras/babbage/impl
82-
eras/byron/chain/executable-spec
83-
eras/byron/crypto
84-
eras/byron/ledger/executable-spec
85-
eras/byron/ledger/impl
86-
eras/conway/impl
87-
eras/dijkstra/impl
88-
eras/mary/impl
89-
eras/shelley-ma/test-suite
90-
eras/shelley/impl
91-
eras/shelley/test-suite
92-
libs/cardano-data
93-
libs/cardano-ledger-api
94-
libs/cardano-ledger-binary
95-
libs/cardano-ledger-core
96-
libs/cardano-protocol-tpraos
97-
libs/non-integral
98-
libs/plutus-preprocessor
99-
libs/small-steps
100-
libs/vector-map
101-
102-
source-repository-package
103-
type: git
104-
location: https://github.com/IntersectMBO/ouroboros-consensus
105-
tag: 0106df607184099af6770d0f49557e8f8ae93de4
106-
--sha256: sha256-NpyTScEwSUz2zr1DtxUVJSGT2LaDBD8wtRj6NObBOuc=
107-
subdir:
108-
ouroboros-consensus
109-
ouroboros-consensus-cardano
110-
ouroboros-consensus-diffusion
111-
ouroboros-consensus-protocol
112-
strict-sop-core
113-
sop-extras
114-
115-
source-repository-package
116-
type: git
117-
location: https://github.com/IntersectMBO/ouroboros-network
118-
tag: 228bb2045784a9c180651dedeea9af9396140f47
119-
--sha256: sha256-q/93M6+TtnqWiguOiwuUSJljA7nrICOsu+5SLl6jiCc=
120-
subdir:
121-
ouroboros-network
122-
cardano-diffusion
123-
network-mux
124-
12570
source-repository-package
12671
type: git
12772
location: https://github.com/IntersectMBO/cardano-api
128-
tag: 88149e968d0536ac2110abe32a69f221d4b1ea8c
129-
--sha256: sha256-/0oaPmSjsN0H3O/bCLSpimIzT7+Kloof1LBcDOahu5Y=
73+
tag: 7f0d7a8e22f5fe921e80f75ce868554f898c1d07
74+
--sha256: sha256-8Lq88OX0+P+yTo2OX3oYgw3LHFSASASsnd/OoC4wMvo=
13075
subdir:
131-
cardano-api
76+
cardano-api
77+
78+
allow-older: plutus-ledger-api, plutus-core

cardano-cli/src/Cardano/CLI/EraBased/Transaction/Run.hs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,12 +1046,12 @@ runTxBuild
10461046
)
10471047
& onLeft (left . TxCmdQueryConvenienceError . AcqFailure)
10481048
& onLeft (left . TxCmdQueryConvenienceError)
1049-
1049+
let ledgerPParams = fromShelleyLedgerPParamsShim Exp.useEra $ unLedgerProtocolParameters pparams
10501050
txBodyContent <-
10511051
hoistEither $
10521052
constructTxBodyContent
10531053
mScriptValidity
1054-
(Just $ fromShelleyLedgerPParamsShim Exp.useEra $ unLedgerProtocolParameters pparams)
1054+
(Just ledgerPParams)
10551055
inputsAndMaybeScriptWits
10561056
readOnlyRefIns
10571057
txinsc
@@ -1081,7 +1081,14 @@ runTxBuild
10811081
cAddr <-
10821082
pure (anyAddressInEra era changeAddr)
10831083
& onLeft (error $ "runTxBuild: Byron address used: " <> show changeAddr) -- should this throw instead?
1084-
r@(unsignedTx, _) <-
1084+
let unbalancedTx = Exp.makeUnsignedTx (Exp.useEra @era) txBodyContent
1085+
1086+
unsignedTx :: Exp.UnsignedTx (Exp.LedgerEra era) <-
1087+
firstExceptT TxCmdRecursiveTxFeeError $
1088+
hoistEither $
1089+
obtainCommonConstraints (Exp.useEra @era) $
1090+
Exp.calcMinFeeRecursive unbalancedTx ledgerUTxO ledgerPParams 0
1091+
(_, updatedTxBodyContent) <-
10851092
firstExceptT (TxCmdBalanceTxBody . AnyTxBodyErrorAutoBalance)
10861093
. hoistEither
10871094
$ Exp.makeTransactionBodyAutoBalance
@@ -1102,7 +1109,7 @@ runTxBuild
11021109
Exp.extractAllIndexedPlutusScriptWitnesses Exp.useEra txBodyContent
11031110
scriptWitnessesAfterBalance <-
11041111
hoistEither . first TxCmdCBORDecodeError $
1105-
Exp.extractAllIndexedPlutusScriptWitnesses Exp.useEra (snd r)
1112+
Exp.extractAllIndexedPlutusScriptWitnesses Exp.useEra updatedTxBodyContent
11061113
when
11071114
( length scriptWitnessesBeforeBalance
11081115
/= length scriptWitnessesAfterBalance
@@ -1113,7 +1120,7 @@ runTxBuild
11131120
liftIO . putStrLn . docToString $
11141121
"Estimated transaction fee:" <+> pretty (Exp.getUnsignedTxFee unsignedTx)
11151122

1116-
return r
1123+
return (unsignedTx, updatedTxBodyContent)
11171124

11181125
-- ----------------------------------------------------------------------------
11191126
-- Transaction body validation and conversion

cardano-cli/src/Cardano/CLI/Type/Error/TxCmdError.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ data TxCmdError
7979
| TxCmdUtxoJsonError String
8080
| forall era. TxCmdDeprecatedEra (Exp.DeprecatedEra era)
8181
| TxCmdGenesisDataError GenesisDataError
82+
| TxCmdRecursiveTxFeeError Exp.RecursiveFeeCalculationError
8283

8384
instance Show TxCmdError where
8485
show = show . renderTxCmdError
@@ -198,6 +199,8 @@ renderTxCmdError = \case
198199
]
199200
TxCmdDatumDecodingError err ->
200201
"Error decoding datum: " <> pshow err
202+
TxCmdRecursiveTxFeeError err ->
203+
"Error during recursive fee calculation: " <> prettyError err
201204

202205
prettyPolicyIdList :: [PolicyId] -> Doc ann
203206
prettyPolicyIdList =

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)