Skip to content

Commit

Permalink
Remove upper bounds on most dependencies
Browse files Browse the repository at this point in the history
The cardano-api version we depend on has narrow bounds on cardano-ledger
and plutus-ledger-api versions (which in turn are always only with one
version of plutus-core and plutus-tx compatible).

Consequently, our code base might radically change on each cardano-api
bump, but there is likely no other combination of dependencies that
works than the one the cardano-api package is already constrained on.
  • Loading branch information
ch1bo authored and locallycompact committed May 19, 2024
1 parent 59ea869 commit b7ddbc3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 26 deletions.
10 changes: 6 additions & 4 deletions cardano-api-classy/cardano-api-classy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ library
Cardano.Api.Class.ToAlonzoScript
Cardano.Api.Classy

-- NOTE: We only use an upper bound on cardano-api and have the other
-- dependencies on cardano-ledger* follow.
build-depends:
, base >=4.16
, cardano-api >=8.42.0 && <8.43
, cardano-ledger-alonzo >=1.6 && <1.7
, cardano-ledger-conway >=1.12 && <1.13
, cardano-ledger-core >=1.10 && <1.11
, cardano-api ^>=8.44
, cardano-ledger-alonzo
, cardano-ledger-conway
, cardano-ledger-core
32 changes: 16 additions & 16 deletions hydra-cardano-api/hydra-cardano-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -75,30 +75,30 @@ library
Hydra.Cardano.Api.VerificationKey
Hydra.Cardano.Api.Witness

-- NOTE: We use very narrow bounds on cardano libraries as they tend to break
-- their interfaces often.
-- NOTE: We only use an upper bound on cardano-api and have the other
-- dependencies on cardano-ledger* and plutus-ledger-api follow.
build-depends:
, aeson >=2
, base >=4.16
, base16-bytestring
, bytestring
, cardano-api >=8.42.0 && <8.43
, cardano-api ^>=8.44
, cardano-api-classy
, cardano-binary >=1.7.0 && <1.8
, cardano-crypto-class >=2.1.1 && <2.2
, cardano-ledger-allegra >=1.3 && <1.4
, cardano-ledger-alonzo >=1.6 && <1.7
, cardano-ledger-api >=1.8 && <1.9
, cardano-ledger-babbage >=1.6 && <1.7
, cardano-ledger-binary >=1.3 && <1.4
, cardano-ledger-byron >=1.0.0 && <1.1
, cardano-ledger-conway >=1.12 && <1.13
, cardano-ledger-core >=1.10 && <1.11
, cardano-ledger-mary >=1.5 && <1.6
, cardano-ledger-shelley >=1.9 && <1.10
, cardano-binary
, cardano-crypto-class
, cardano-ledger-allegra
, cardano-ledger-alonzo
, cardano-ledger-api
, cardano-ledger-babbage
, cardano-ledger-binary
, cardano-ledger-byron
, cardano-ledger-conway
, cardano-ledger-core
, cardano-ledger-mary
, cardano-ledger-shelley
, containers
, lens
, plutus-ledger-api >=1.21 && <1.22
, plutus-ledger-api
, QuickCheck
, serialise
, text >=2
4 changes: 2 additions & 2 deletions hydra-node/hydra-node.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ library
, ouroboros-network-api >=0.1.0.0
, ouroboros-network-framework >=0.3.0.0
, ouroboros-network-protocols >=0.3.0.0
, plutus-core >=1.21 && <1.22
, plutus-ledger-api >=1.21 && <1.22
, plutus-core >=1.21
, plutus-ledger-api >=1.21
, prometheus
, QuickCheck
, quickcheck-instances
Expand Down
8 changes: 4 additions & 4 deletions hydra-plutus/hydra-plutus.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ library
, hydra-cardano-api
, hydra-plutus-extras
, hydra-prelude
, plutus-core >=1.21 && <1.22
, plutus-ledger-api >=1.21 && <1.22
, plutus-tx >=1.21 && <1.22
, plutus-tx-plugin >=1.21 && <1.22
, plutus-core >=1.21
, plutus-ledger-api >=1.21
, plutus-tx >=1.21
, plutus-tx-plugin >=1.21
, QuickCheck
, serialise
, template-haskell
Expand Down

0 comments on commit b7ddbc3

Please sign in to comment.