Skip to content

Commit

Permalink
Update cardano-api to 10.0.0.0 (#224)
Browse files Browse the repository at this point in the history
* Update cardano-api to 10.0.0.0
  • Loading branch information
j-mueller authored Oct 30, 2024
1 parent b2260de commit 22db72c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci-linux.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: ci-linux
on:
push:
branches: [ "main" ]
tags: [ "*.*.*" ]
pull_request:

concurrency:
Expand Down
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
4 changes: 2 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 Down
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 @@ -59,7 +59,7 @@ library
build-depends:
convex-optics,

cardano-api == 9.4.0.0,
cardano-api == 10.0.0.0,
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 == 10.0.0.0,
cardano-ledger-core,
cardano-ledger-shelley,
containers,
Expand Down

0 comments on commit 22db72c

Please sign in to comment.