Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version cardano-api-8.10.2.0 #148

Merged
merged 2 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions cardano-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog for cardano-api

## 8.10.2.0

- Provide additional constraints in `shelleyBasedEraConstraints`. This will obsolete the following:
- `obtainEraCryptoConstraints`
- `obtainCryptoConstraints`
- `obtainEraPParamsConstraint`
- `obtainSafeToHashConstraint`
Also provide additional constraints in `conwayEraOnwardsConstraints` and `shelleyToBabbageEraConstraints`
(feature; compatible)
[PR 143](https://github.com/input-output-hk/cardano-api/pull/143)

- Expose `shelleyCertificateConstraints` and `conwayCertificateConstraints`
(feature; compatible)
[PR 147](https://github.com/input-output-hk/cardano-api/pull/147)

## 8.10.1.0

- Fix permissions of file written using handleFileForWritingWithOwnerPermissionImpl
Expand Down
2 changes: 1 addition & 1 deletion cardano-api/cardano-api.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.4

name: cardano-api
version: 8.10.1.0
version: 8.10.2.0
synopsis: The cardano api
description: The cardano api.
category: Cardano,
Expand Down
4 changes: 4 additions & 0 deletions cardano-api/internal/Cardano/Api/Certificate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ module Cardano.Api.Certificate (
AsType(..),

-- * Internal functions
shelleyCertificateConstraints,
conwayCertificateConstraints,
filterUnRegCreds,
selectStakeCredential,
) where
Expand Down Expand Up @@ -816,6 +818,7 @@ shelleyCertificateConstraints
-> (( Ledger.ShelleyEraTxCert (ShelleyLedgerEra era)
, EraCrypto (ShelleyLedgerEra era) ~ StandardCrypto
, Ledger.TxCert (ShelleyLedgerEra era) ~ Ledger.ShelleyTxCert (ShelleyLedgerEra era)
, IsShelleyBasedEra era
) => a)
-> a
shelleyCertificateConstraints = \case
Expand All @@ -830,6 +833,7 @@ conwayCertificateConstraints
-> (( Ledger.ConwayEraTxCert (ShelleyLedgerEra era)
, EraCrypto (ShelleyLedgerEra era) ~ StandardCrypto
, Ledger.TxCert (ShelleyLedgerEra era) ~ Ledger.ConwayTxCert (ShelleyLedgerEra era)
, IsShelleyBasedEra era
) => a)
-> a
conwayCertificateConstraints = \case
Expand Down
6 changes: 5 additions & 1 deletion cardano-api/src/Cardano/Api/Shelley.hs
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,18 @@ module Cardano.Api.Shelley
shelleyPayAddrToPlutusPubKHash,
toConsensusGenTx,
fromAlonzoCostModels,
--TODO: arrange not to export these
-- TODO: arrange not to export these
toShelleyNetwork,
obtainCryptoConstraints,
obtainEraConstraints,
obtainEraPParamsConstraint,
obtainEraCryptoConstraints,
fromShelleyPoolParams,

-- Era based
shelleyCertificateConstraints,
conwayCertificateConstraints,

) where

import Cardano.Api
Expand Down