Skip to content

Commit 8486b89

Browse files
authored
[ADP-3420] Bump to node 9.1.1 constraints (#4763)
- bump runtime node dependency to 9.1.1 - bump ouroboros-consensus dependency to 0.18 - accommodate code and golden tests for the bump ADP-3420
2 parents 5acbae8 + ef74562 commit 8486b89

File tree

9 files changed

+50
-48
lines changed

9 files changed

+50
-48
lines changed

cabal.project

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ index-state: 2024-08-08T00:00:00Z
5454

5555
index-state:
5656
, hackage.haskell.org 2024-08-08T00:00:00Z
57-
, cardano-haskell-packages 2024-06-29T00:00:00Z
57+
, cardano-haskell-packages 2024-09-01T03:50:08Z
5858

5959
packages:
6060
lib/address-derivation-discovery
@@ -157,8 +157,8 @@ source-repository-package
157157
source-repository-package
158158
type: git
159159
location: https://github.com/cardano-foundation/cardano-wallet-agda
160-
tag: 525eb93be15a8c1ea6198e472f401ea0f9a985cd
161-
--sha256: 1mw98kdqhafdq89ry3yxwd1xwjd7g69fs5pd1p2np8sdrpxh3n8g
160+
tag: 552c184523a815931b96f55292a54aab8aa8bde3
161+
--sha256: 1a241r0xd2102kvyanlpb5xyrn22i3f9vzx9667l5xik9qgrjzxv
162162
subdir:
163163
lib/customer-deposit-wallet-pure
164164
lib/cardano-wallet-read
@@ -186,7 +186,8 @@ constraints:
186186
-- Cardano Node dependencies:
187187
, io-classes >= 1.4
188188
, io-classes -asserts
189-
, ouroboros-consensus-cardano ^>= 0.17
189+
190+
, ouroboros-consensus-cardano ^>= 0.18
190191
, ouroboros-network ^>= 0.16.1
191192
, ouroboros-network-protocols ^>= 0.9
192193

flake.lock

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

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
flake = false;
143143
};
144144
customConfig.url = "github:input-output-hk/empty-flake";
145-
cardano-node-runtime.url = "github:IntersectMBO/cardano-node?ref=9.1.0";
145+
cardano-node-runtime.url = "github:IntersectMBO/cardano-node?ref=9.1.1";
146146
};
147147

148148
outputs = { self, nixpkgs, nixpkgs-unstable, hostNixpkgs, flake-utils,

lib/balance-tx/lib/internal/Internal/Cardano/Write/Tx.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,10 @@ instance IsRecentEra ConwayEra where
410410
cardanoEraFromRecentEra
411411
:: RecentEra era
412412
-> CardanoApi.CardanoEra (CardanoApiEra era)
413-
cardanoEraFromRecentEra =
414-
CardanoApi.shelleyBasedToCardanoEra
415-
. shelleyBasedEraFromRecentEra
413+
cardanoEraFromRecentEra era = case shelleyBasedEraFromRecentEra era of
414+
CardanoApi.ShelleyBasedEraBabbage -> CardanoApi.toCardanoEra CardanoApi.BabbageEra
415+
CardanoApi.ShelleyBasedEraConway -> CardanoApi.toCardanoEra CardanoApi.ConwayEra
416+
_ -> error "we are expecting only Babbage and Conway"
416417

417418
shelleyBasedEraFromRecentEra
418419
:: RecentEra era

lib/balance-tx/test/data/balanceTx/pingPong_2/golden

Lines changed: 20 additions & 20 deletions
Large diffs are not rendered by default.

lib/cardano-api-extra/lib/Cardano/Api/Gen.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ genScriptWitnessSpend langEra =
10121012
(PlutusScriptLanguage ver) ->
10131013
PlutusScriptWitness langEra ver
10141014
<$> genPlutusScriptOrReferenceInput ver
1015-
<*> (ScriptDatumForTxIn <$> genHashableScriptData)
1015+
<*> (ScriptDatumForTxIn . Just <$> genHashableScriptData)
10161016
<*> genHashableScriptData
10171017
<*> genExecutionUnits
10181018

@@ -1604,7 +1604,7 @@ genTxCertificates era = withEraWitness era $ \sbe ->
16041604
[ pure TxCertificatesNone
16051605
, TxCertificates sbe
16061606
<$> scale (`div` 3) (listOf (genTxCertificate era))
1607-
<*> ( (BuildTxWith . Map.fromList)
1607+
<*> ( BuildTxWith
16081608
<$> scale
16091609
(`div` 3)
16101610
( listOf
@@ -1780,7 +1780,7 @@ genTxBodyContent era = withEraWitness era $ \sbe -> do
17801780
txValidityUpperBound <- genTxValidityUpperBound era
17811781
txProposalProcedures <- genMaybeFeaturedInEra genProposals era
17821782
txVotingProcedures <- genMaybeFeaturedInEra genVotingProcedures era
1783-
txCurrentTreasuryValue <- genMaybeFeaturedInEra (const genCoin) era
1783+
txCurrentTreasuryValue <- genMaybeFeaturedInEra (const (pure <$> genCoin)) era
17841784
txTreasuryDonation <- genMaybeFeaturedInEra (const genCoin) era
17851785

17861786
let

lib/customer-deposit-wallet/src/Cardano/Wallet/Deposit/Pure/Balance.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ spendTxD tx !u =
9898
where
9999
inputsToExclude =
100100
case Tx.getScriptValidity tx of
101-
Tx.IsValid True -> Tx.getInputs tx
102-
Tx.IsValid False -> Tx.getCollateralInputs tx
101+
Tx.IsValidC True -> Tx.getInputs tx
102+
Tx.IsValidC False -> Tx.getCollateralInputs tx
103103

104104
{-----------------------------------------------------------------------------
105105
Helpers

lib/secrets/cardano-wallet-secrets.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ test-suite test
6767
, bytestring
6868
, cardano-wallet-secrets
6969
, cardano-wallet-test-utils
70-
, hspec >= 2.8.2
70+
, hspec
7171
, memory
7272
, text
7373
, text-class

lib/wallet/src/Cardano/Wallet/Shelley/Transaction.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,8 @@ mkUnsignedTx
892892
, Cardano.txCertificates = case stakingScriptM of
893893
Nothing ->
894894
let
895-
witMap = Map.empty
896-
ctx = Cardano.BuildTxWith witMap
895+
witPair = []
896+
ctx = Cardano.BuildTxWith witPair
897897
in
898898
Cardano.TxCertificates shelleyEra certs ctx
899899
Just stakingScript ->
@@ -907,8 +907,8 @@ mkUnsignedTx
907907
Cardano.ScriptWitness
908908
Cardano.ScriptWitnessForStakeAddr
909909
(toScriptWitness stakingScript)
910-
witMap = Map.fromList [(buildKey, buildVal)]
911-
ctx = Cardano.BuildTxWith witMap
910+
witPair = [(buildKey, buildVal)]
911+
ctx = Cardano.BuildTxWith witPair
912912
in
913913
Cardano.TxCertificates shelleyEra certs ctx
914914

0 commit comments

Comments
 (0)