From 530d443849680746879821a2bb39b9d2930e1ff2 Mon Sep 17 00:00:00 2001 From: Mateusz Galazyn Date: Thu, 4 Apr 2024 15:36:23 +0200 Subject: [PATCH 1/2] Release cardano-api-8.44.0.0 --- cardano-api/CHANGELOG.md | 20 +++++++++++++++++++- cardano-api/cardano-api.cabal | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/cardano-api/CHANGELOG.md b/cardano-api/CHANGELOG.md index c5d4fbb7e9..6f3be55e2e 100644 --- a/cardano-api/CHANGELOG.md +++ b/cardano-api/CHANGELOG.md @@ -1,6 +1,24 @@ # Changelog for cardano-api -# 8.43.0.0 +## 8.44.0.0 + +- - Add `getReferenceInputsSizeForTxIds` function. + - Bump `cardano-ledger` and `ouroboros-consensus` bounds. In particular, the Conway genesis parameter `ucppMinFeeRefScriptCostPerByte` needs to be set to the correct value after benchmarking. + - Add an extra parameter to `evaluateTransactionFee`, the reference script size, which the Ledger requires to estimate the minimum fee of a transaction. + (feature, breaking) + [PR 496](https://github.com/IntersectMBO/cardano-api/pull/496) + +- In `Cardano.API.LedgerState`: + - Use type aliases and patterns from ouroboros-consensus instead of re-defining them. + - Import entities from the right modules. + (improvement) + [PR 503](https://github.com/IntersectMBO/cardano-api/pull/503) + +- Replace unsafeMergeVotingProcedures by mergeVotingProcedures, that handles incompatible votes and return an error + (breaking, bugfix) + [PR 498](https://github.com/IntersectMBO/cardano-api/pull/498) + +## 8.43.0.0 - Undeprecate `evaluateTransactionFee` (compatible) diff --git a/cardano-api/cardano-api.cabal b/cardano-api/cardano-api.cabal index 818310dc13..2c7ec54e00 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.43.0.0 +version: 8.44.0.0 synopsis: The cardano API description: The cardano API. category: Cardano, From f4314f71643270d9c2fbb15aac20be27081cf115 Mon Sep 17 00:00:00 2001 From: Mateusz Galazyn Date: Thu, 4 Apr 2024 16:41:01 +0200 Subject: [PATCH 2/2] Recover changes lost in squashing --- .../internal/Cardano/Api/LedgerEvents/Rule/TICK/NEWEPOCH.hs | 2 +- cardano-api/internal/Cardano/Api/Tx/Body.hs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cardano-api/internal/Cardano/Api/LedgerEvents/Rule/TICK/NEWEPOCH.hs b/cardano-api/internal/Cardano/Api/LedgerEvents/Rule/TICK/NEWEPOCH.hs index 301ae1953b..b8c8fcf085 100644 --- a/cardano-api/internal/Cardano/Api/LedgerEvents/Rule/TICK/NEWEPOCH.hs +++ b/cardano-api/internal/Cardano/Api/LedgerEvents/Rule/TICK/NEWEPOCH.hs @@ -96,6 +96,6 @@ handleConwayNEWEPOCHEvents conwayNewEpochEvent = (convertRetiredPoolsMap refundPools) (convertRetiredPoolsMap unclaimedPools) Conway.SnapEvent _ -> Nothing - Conway.GovInfoEvent {} -> Nothing -- FIXME: Confirm if we need a new event here + Conway.GovInfoEvent {} -> Nothing Conway.TotalAdaPotsEvent _ -> Nothing diff --git a/cardano-api/internal/Cardano/Api/Tx/Body.hs b/cardano-api/internal/Cardano/Api/Tx/Body.hs index c067e9efb6..b395f25f0f 100644 --- a/cardano-api/internal/Cardano/Api/Tx/Body.hs +++ b/cardano-api/internal/Cardano/Api/Tx/Body.hs @@ -3060,9 +3060,9 @@ genesisUTxOPseudoTxIn nw (GenesisUTxOKeyHash kh) = (Shelley.KeyHashObj kh) Shelley.StakeRefNull --- | Calculate the reference inputs size for provided set of transaction IDs and UTXOs. +-- | Calculate the reference inputs size in bytes for provided set of transaction IDs and UTXOs. getReferenceInputsSizeForTxIds - :: forall era ledgerera. ShelleyLedgerEra era ~ ledgerera + :: ShelleyLedgerEra era ~ ledgerera => BabbageEraOnwards era -> Ledger.UTxO ledgerera -> Set TxIn