Skip to content

Commit

Permalink
Merge pull request #147 from input-output-hk/jordan/expore-more-20230727
Browse files Browse the repository at this point in the history
Expose shelleyCertificateConstraints and conwayCertificateConstraints
  • Loading branch information
Jimbo4350 authored Jul 27, 2023
2 parents c0e6889 + 9275e64 commit 57fe7cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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

0 comments on commit 57fe7cf

Please sign in to comment.