From 3e82ae467eb0ce249d2c81a9562b473d565bf07a Mon Sep 17 00:00:00 2001 From: John Ky Date: Fri, 10 Nov 2023 21:08:12 +1100 Subject: [PATCH] New version cardano-api-8.31.0.0 --- cardano-api/CHANGELOG.md | 59 +++++++++++++++++++++++++++++++++++ cardano-api/cardano-api.cabal | 2 +- 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/cardano-api/CHANGELOG.md b/cardano-api/CHANGELOG.md index 3d4e9941bc..26be4300c9 100644 --- a/cardano-api/CHANGELOG.md +++ b/cardano-api/CHANGELOG.md @@ -1,5 +1,64 @@ # Changelog for cardano-api +## 8.31.0.0 + +- Use ledger presentation of multi-asset values directly. Lens to make this uniform over `ShelleyBasedEra`. + + Delete `ByronToAllegraEra`. + + New module `Cardano.Api.Ledger.Lens`. + + Modify `TxOutValue` to have `TxOutValueByron` and `TxOutValueShelleyBased` instead of `TxOutAdaOnly` and `TxOutValue` respectively. `TxOutValueShelleyBased` now directly uses the ledger type instead of the `Value` type. + + These functions have changed to either `L.Value (ShelleyLedgerEra era)` instead of `Value` or eons or both: + - `genValue` + - `genValueDefault` + - `genValueForMinting` + (breaking) + [PR 360](https://github.com/input-output-hk/cardano-api/pull/360) + +- Replace `IsCardanoEra` and `IsShelleyBasedEra` contraints in GADT constructors with `Typeable` + (breaking, improvement) + [PR 354](https://github.com/input-output-hk/cardano-api/pull/354) + +- Modify foldBlocks to recurse on ledger events instead of mapping over them. This allows finer grained control over when `foldBlocks` is stopped. + (optimisation) + [PR 353](https://github.com/input-output-hk/cardano-api/pull/353) + +- --protocol-(minor|major)-version cannot be changed via create-protocol-parameters-update command in conway + (breaking) + [PR 358](https://github.com/input-output-hk/cardano-api/pull/358) + +- Modify foldBlocks to allow the fold to terminate from the accumulator via the FoldStatus type. + + Modify foldBlocks to accumulate the chain tip rather than only immutable + blocks (blocks that are k blocks away from the tip). + + Add debug mode to foldBlocks which forces it to error with information + about ledger states, client and server tip, number of requests in flight + and the current IORef state. + (feature, breaking) + [PR 350](https://github.com/input-output-hk/cardano-api/pull/350) + +- Delete types: + - ByronAndAllegraEraOnwards + - ByronToMaryEra + - MaryEraOnly + + Delete functions: + - allegraEraOnwardsToByronAndAllegraOnwardsEra + - byronAndAllegraEraOnwardsConstraints + - byronAndAllegraEraOnwardsToCardanoEra + - byronToMaryEraConstraints + - byronToMaryEraToCardanoEra + - caseByronToMaryOrAlonzoEraOnwards + - caseMaryEraOnlyOrAlonzoEraOnwards + - maryEraOnlyConstraints + - maryEraOnlyToCardanoEra + - maryEraOnlyToShelleyBasedEra + (breaking, improvement) + [PR 355](https://github.com/input-output-hk/cardano-api/pull/355) + ## 8.30.0.0 - Remove uses of `coerceKeyRole`, use asWitness when key role conversion is required diff --git a/cardano-api/cardano-api.cabal b/cardano-api/cardano-api.cabal index e58c98a5a3..46cd9286a4 100644 --- a/cardano-api/cardano-api.cabal +++ b/cardano-api/cardano-api.cabal @@ -1,7 +1,7 @@ cabal-version: 3.4 name: cardano-api -version: 8.30.0.0 +version: 8.31.0.0 synopsis: The cardano api description: The cardano api. category: Cardano,