Skip to content

Commit 400ed8d

Browse files
committed
Copied changes from #4600
1 parent ddb8704 commit 400ed8d

File tree

6 files changed

+92
-87
lines changed

6 files changed

+92
-87
lines changed

cabal.project

Lines changed: 86 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ repository cardano-haskell-packages
1212

1313
-- See CONTRIBUTING for information about these, including some Nix commands
1414
-- you need to run if you change them
15-
index-state: 2022-07-01T00:00:00Z
16-
index-state: cardano-haskell-packages 2022-10-20T00:00:00Z
15+
index-state: 2022-09-27T00:00:00Z
16+
index-state: cardano-haskell-packages 2022-10-31T20:00:00Z
1717

1818
packages:
1919
cardano-api
@@ -81,30 +81,32 @@ constraints:
8181
-- that dependency
8282
, network >= 3.1.1.0
8383
, HSOpenSSL >= 0.11.7.2
84-
85-
-- CONSTRAINTS FOR UPSTREAM CARDANO PACKAGES
86-
-- These should all be constraints in upstream packages, but are currently missing.
87-
-- We should a) fix these upstream and b) revise the constraints on the released
88-
-- version in CHaP. Unfortunately revisions in CHaP don't work yet, revisit this
89-
-- when we fix it.
90-
91-
-- cardano-prelude: newer protolude changes some signatures in a breaking way, fixed
92-
-- in newer cardano-prelude which we can't use yet
93-
, protolude < 0.3.1
94-
-- cardano-crypto-wrapper: broken by cardano-prelude-0.1.0.1 which moves HeapWords out
95-
, cardano-prelude < 0.1.0.1
96-
-- cardano-ledger-byron: broken by cardano-binary-1.5.0.1 which includes some functions
97-
-- that used to be in cardano-prelude
98-
, cardano-binary < 1.5.0.1
99-
-- ledger: cardano-crypto-class-2.0.0.1 is missing some instances needed by the ledger
100-
, cardano-crypto-class < 2.0.0.1
101-
-- cardano-crypto-tests: we required cardano-crypto-class-2.0.0.0 above, which is broken with
102-
-- newer cardano-crypto-tests
103-
, cardano-crypto-tests < 2.0.0.1
104-
-- plutus-core 1.0.0.1 has the fixed SECP primitives which relies on the newer cardano-crypto-class
105-
, plutus-core < 1.0.0.1
106-
-- plutus-core: needs a constraint here, fixed on plutus master but not in the released version
10784
, algebraic-graphs < 0.7
85+
, protolude >= 0.3.2
86+
87+
-- TODO: these should be set in cabal files, but avoiding setting them in lower dependencies for initial CHaP release
88+
, cardano-prelude == 0.1.0.1
89+
, base-deriving-via == 0.1.0.0
90+
, cardano-binary == 1.5.0
91+
, cardano-binary-test == 1.3.0
92+
, cardano-crypto-class == 2.0.0.1
93+
, cardano-crypto-praos == 2.0.0.0.1
94+
, cardano-crypto-tests == 2.0.0.0.1
95+
, cardano-slotting == 0.1.0.0
96+
, measures == 0.1.0.0
97+
, orphans-deriving-via == 0.1.0.0
98+
, strict-containers == 0.1.0.0
99+
, plutus-core == 1.0.0.1
100+
, plutus-ledger-api == 1.0.0.1
101+
, plutus-tx == 1.0.0.0
102+
, plutus-tx-plugin == 1.0.0.0
103+
, prettyprinter-configurable == 0.1.0.0
104+
, plutus-ghc-stub == 8.6.5
105+
, word-array == 0.1.0.0
106+
, word-array == 0.1.0.0
107+
, io-classes == 0.2.0.0
108+
, typed-protocols == 0.1.0.0
109+
, typed-protocols-examples == 0.1.0.0
108110

109111
package snap-server
110112
flags: +openssl
@@ -113,7 +115,9 @@ package comonad
113115
flags: -test-doctests
114116

115117
allow-newer:
116-
*:aeson,
118+
ekg:aeson,
119+
ekg-json:aeson,
120+
threepenny-gui:aeson,
117121
monoidal-containers:aeson,
118122
size-based:template-haskell,
119123
snap-server:attoparsec,
@@ -128,58 +132,61 @@ source-repository-package
128132
tag: 4ec92ded05ccf59ba4a874be4b404ac1b6d666b6
129133
--sha256: 00fvvaf4ir4hskq4a6gggbh2wmdvy8j8kn6s4m1p1vlh8m8mq514
130134

135+
-- This is https://github.com/input-output-hk/cardano-ledger/pull/3080
136+
-- which is release/1.1.x + heapword split compatibility.
131137
source-repository-package
132-
type: git
133-
location: https://github.com/input-output-hk/ouroboros-network
134-
tag: 9128bfcc044fc882decb0cf112545abf9bc2d615
135-
--sha256: 0hdh7xdrvxw943r6qr0xr4kwszindh5mnsn1lww6qdnxnmn7wcsc
136-
subdir:
137-
monoidal-synchronisation
138-
network-mux
139-
ouroboros-consensus
140-
ouroboros-consensus-byron
141-
ouroboros-consensus-cardano
142-
ouroboros-consensus-protocol
143-
ouroboros-consensus-shelley
144-
ouroboros-network
145-
ouroboros-network-framework
146-
ouroboros-network-testing
147-
138+
type: git
139+
location: https://github.com/input-output-hk/cardano-ledger
140+
tag: cb29b038a5e8ae5a91f3e6fbc34b474c27cc1d87
141+
--sha256: 0gxb9xghsacr0qaljhq3qzvmb2f1wwmly89prwqy4fdm9mvqiq95
142+
subdir:
143+
eras/alonzo/impl
144+
eras/alonzo/test-suite
145+
eras/babbage/impl
146+
eras/babbage/test-suite
147+
eras/byron/chain/executable-spec
148+
eras/byron/crypto
149+
eras/byron/crypto/test
150+
eras/byron/ledger/executable-spec
151+
eras/byron/ledger/impl
152+
eras/byron/ledger/impl/test
153+
eras/conway/impl
154+
eras/shelley/impl
155+
eras/shelley/test-suite
156+
eras/shelley-ma/impl
157+
eras/shelley-ma/test-suite
158+
libs/cardano-ledger-core
159+
libs/cardano-ledger-pretty
160+
libs/cardano-protocol-tpraos
161+
libs/cardano-data
162+
libs/vector-map
163+
libs/set-algebra
164+
libs/small-steps
165+
libs/small-steps-test
166+
libs/non-integral
167+
168+
-- 774f3e445e4cadf78d38a2b9d20b620d3b576835 is c764553561bed8978d2c6753d1608dc65449617a+44
169+
-- a38f898a3740925ccaa0617fa870ca7054a485a6 is 774f3e445e4cadf78d38a2b9d20b620d3b576835+1 (strict-containers -> cardano-strict-containers)
170+
-- And has the adjustments for the ledger refactor
148171
source-repository-package
149-
type: git
150-
location: https://github.com/input-output-hk/cardano-ledger
151-
tag: 49613f11e034485c8377945c86c0465726c0860c
152-
--sha256: 0i9x66yqkrvx2w79dy6lzlya82yxc8567rgjj828vc2d46d6nvx6
153-
subdir:
154-
eras/alonzo/impl
155-
eras/alonzo/test-suite
156-
eras/babbage/impl
157-
eras/babbage/test-suite
158-
eras/byron/chain/executable-spec
159-
eras/byron/crypto
160-
eras/byron/crypto/test
161-
eras/byron/ledger/executable-spec
162-
eras/byron/ledger/impl
163-
eras/byron/ledger/impl/test
164-
eras/shelley/impl
165-
eras/shelley/test-suite
166-
eras/shelley-ma/impl
167-
eras/shelley-ma/test-suite
168-
libs/cardano-ledger-core
169-
libs/cardano-ledger-pretty
170-
libs/cardano-protocol-tpraos
171-
libs/cardano-data
172-
libs/vector-map
173-
libs/set-algebra
174-
libs/small-steps
175-
libs/small-steps-test
176-
libs/non-integral
177-
178-
source-repository-package
179-
type: git
180-
location: https://github.com/input-output-hk/cardano-prelude
181-
tag: 533aec85c1ca05c7d171da44b89341fb736ecfe5
182-
--sha256: 0z2y3wzppc12bpn9bl48776ms3nszw8j58xfsdxf97nzjgrmd62g
183-
subdir:
184-
cardano-prelude
185-
cardano-prelude-test
172+
type: git
173+
location: https://github.com/input-output-hk/ouroboros-network
174+
tag: a38f898a3740925ccaa0617fa870ca7054a485a6
175+
--sha256: 0hdh7xdrvxw943r6qr0xr4kwszindh5mnsn1lww6qdnxnmn7wcsc
176+
subdir:
177+
monoidal-synchronisation
178+
network-mux
179+
ouroboros-consensus
180+
ouroboros-consensus-byron
181+
ouroboros-consensus-cardano
182+
ouroboros-consensus-protocol
183+
ouroboros-consensus-shelley
184+
ouroboros-network
185+
ouroboros-network-framework
186+
ouroboros-network-testing
187+
188+
-- Notes:
189+
-- ledger 1.1.x + heapword split
190+
-- => protolude > 0.3.2
191+
-- => cardano-prelude > 1.0.0.0
192+
-- => cardano-crypto-class == 2.0.0.1

cardano-api/cardano-api.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ library
156156
, cardano-ledger-shelley
157157
, small-steps
158158
, stm
159-
, strict-containers
159+
, cardano-strict-containers
160160
, text
161161
, time
162162
, transformers

cardano-api/src/Cardano/Api/Script.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ import Numeric.Natural (Natural)
128128
import Data.Aeson (Value (..), object, (.:), (.=))
129129
import qualified Data.Aeson as Aeson
130130
import qualified Data.Aeson.Types as Aeson
131-
import qualified Data.Sequence.Strict as Seq
132131
import Data.Vector (Vector)
133132
import qualified Data.Vector as Vector
134133

@@ -168,6 +167,7 @@ import Cardano.Api.SerialiseTextEnvelope
168167
import Cardano.Api.SerialiseUsing
169168
import Cardano.Api.TxIn
170169
import Cardano.Api.Utils (failEitherWith)
170+
import qualified Data.Sequence.Strict as Seq
171171

172172
-- ----------------------------------------------------------------------------
173173
-- Types for script language and version

cardano-cli/cardano-cli.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ library
140140
, cardano-ledger-shelley
141141
, set-algebra
142142
, split
143-
, strict-containers
143+
, cardano-strict-containers
144144
, text
145145
, time
146146
, transformers

cardano-node/src/Cardano/Node/Run.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,8 @@ mkP2PArguments NodeConfiguration {
621621
, P2P.daReadLocalRootPeers
622622
, P2P.daReadPublicRootPeers
623623
, P2P.daReadUseLedgerAfter
624-
, P2P.daProtocolIdleTimeout = ncProtocolIdleTimeout
625-
, P2P.daTimeWaitTimeout = ncTimeWaitTimeout
626-
, P2P.daDeadlineChurnInterval = 3300
627-
, P2P.daBulkChurnInterval = 300
624+
, P2P.daProtocolIdleTimeout = ncProtocolIdleTimeout
625+
, P2P.daTimeWaitTimeout = ncTimeWaitTimeout
628626
}
629627
where
630628
daPeerSelectionTargets = PeerSelectionTargets {

cardano-node/src/Cardano/Tracing/OrphanInstances/Common.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ instance FromJSON TracingVerbosity where
8383
<> "Encountered: " <> show invalid
8484

8585
instance FromJSON PortNumber where
86-
parseJSON (Number portNum) = case readMaybe . show @Integer $ coefficient portNum of
86+
parseJSON (Number portNum) = case readMaybe . show @Integer @Text $ coefficient portNum of
8787
Just port -> pure port
8888
Nothing -> fail $ show portNum <> " is not a valid port number."
8989
parseJSON invalid = fail $ "Parsing of port number failed due to type mismatch. "

0 commit comments

Comments
 (0)