Skip to content

Commit

Permalink
Update cardano-api to 10.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Oct 17, 2024
1 parent 55f90b0 commit 9e5305d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The `main` branch uses the following versions of its major dependencies:
|Name|Version|
|--|--|
|`cardano-node`|[9.2.1](https://github.com/IntersectMBO/cardano-node/releases/tag/9.2.1)|
|`cardano-api`|[9.4.0.0](https://chap.intersectmbo.org/package/cardano-api-9.3.0.0/)|
|`cardano-api`|[10.0.0.0](https://chap.intersectmbo.org/package/cardano-api-10.0.0.0/)|
|`ghc`|9.6.6|
|`cabal`|3.10.3.0|

Expand Down
7 changes: 5 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ repository cardano-haskell-packages

with-compiler: ghc-9.6.6
index-state:
, hackage.haskell.org 2024-10-11T15:49:11Z
, cardano-haskell-packages 2024-10-11T15:49:11Z
, hackage.haskell.org 2024-10-16T12:44:42Z
, cardano-haskell-packages 2024-10-16T12:44:42Z

multi-repl: true

Expand All @@ -28,3 +28,6 @@ packages:
src/node-client
src/optics
src/wallet

constraints:
cardano-api == 10.0.0.0
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/base/convex-base.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ library
build-depends:
convex-optics,

cardano-api == 9.4.0.0,
cardano-api,
cardano-ledger-core,
cardano-crypto-wrapper,

Expand Down
1 change: 1 addition & 0 deletions src/mockchain/lib/Convex/MockChain.hs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ initialStateFor params@NodeParams{npNetworkId} utxos = C.shelleyBasedEraConstrai
, ledgerIx = minBound
, ledgerPp = Defaults.pParams params
, ledgerAccount = AccountState (Coin 0) (Coin 0)
, ledgerMempool = False
}
, mcsPoolState = LedgerState
{ lsUTxOState = smartUTxOState (Defaults.pParams params) utxo (Coin 0) (Coin 0) def (Coin 0)
Expand Down
1 change: 0 additions & 1 deletion src/mockchain/lib/Convex/MockChain/Defaults.hs
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ globals :: C.IsShelleyBasedEra era => NodeParams era -> Globals
globals params@NodeParams { npSlotLength } = mkShelleyGlobals
(genesisDefaultsFromParams params)
(fixedEpochInfo epochSize npSlotLength)
(C.Ledger.pvMajor $ view L.ppProtocolVersionL protocolParameters)

protVer :: L.EraPParams (C.ShelleyLedgerEra era) => NodeParams era -> ProtVer
protVer = view L.ppProtocolVersionL . C.unLedgerProtocolParameters . npProtocolParameters
Expand Down
2 changes: 1 addition & 1 deletion src/optics/convex-optics.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ library
hs-source-dirs: lib
build-depends:
base >= 4.14 && < 4.20,
cardano-api == 9.4.0.0,
cardano-api,
cardano-ledger-core,
cardano-ledger-shelley,
containers,
Expand Down

0 comments on commit 9e5305d

Please sign in to comment.