Skip to content

Commit 4c1d498

Browse files
committed
Update exports
1 parent 4febe9a commit 4c1d498

File tree

8 files changed

+36
-17
lines changed

8 files changed

+36
-17
lines changed

cardano-api/gen/Test/Gen/Cardano/Api/Orphans.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
module Test.Gen.Cardano.Api.Orphans (obtainArbitraryConstraints) where
1717

18-
import Cardano.Api hiding (txIns)
18+
import Cardano.Api hiding (DijkstraEra, txIns)
1919
import Cardano.Api.Ledger qualified as L
2020

2121
import Cardano.Crypto.Hash.Class (hashWith)

cardano-api/src/Cardano/Api/Certificate/Internal.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module Cardano.Api.Certificate.Internal
6767
, fromShelleyStakePoolState
6868

6969
-- * Data family instances
70-
, AsType (..)
70+
, AsType (AsCertificate, AsTxId)
7171

7272
-- * Internal functions
7373
, filterUnRegCreds
@@ -82,7 +82,7 @@ import Cardano.Api.Certificate.Internal.StakePoolMetadata
8282
import Cardano.Api.Era
8383
import Cardano.Api.Error (Error (..))
8484
import Cardano.Api.Experimental.Tx.Internal.Certificate qualified as Exp
85-
import Cardano.Api.Governance.Internal.Action.VotingProcedure
85+
import Cardano.Api.Experimental.Tx.Internal.Certificate.Compatible (getTxCertWitness)
8686
import Cardano.Api.HasTypeProxy
8787
import Cardano.Api.Internal.Utils (noInlineMaybeToStrictMaybe)
8888
import Cardano.Api.Key.Internal
@@ -91,7 +91,6 @@ import Cardano.Api.Ledger.Internal.Reexport qualified as Ledger
9191
import Cardano.Api.Pretty (Doc)
9292
import Cardano.Api.Serialise.Cbor
9393
import Cardano.Api.Serialise.TextEnvelope.Internal
94-
import Cardano.Api.Value.Internal
9594

9695
import Cardano.Ledger.BaseTypes (strictMaybe)
9796
import Cardano.Ledger.Coin qualified as L

cardano-api/src/Cardano/Api/Era.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module Cardano.Api.Era
88
, AlonzoEra
99
, BabbageEra
1010
, ConwayEra
11+
, DijkstraEra
1112

1213
-- * Eons
1314
, module Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

cardano-api/src/Cardano/Api/Experimental.hs

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module Cardano.Api.Experimental
2121
, obtainCommonConstraints
2222
, hashTxBody
2323
, evaluateTransactionExecutionUnitsShelley
24-
, Certificate (..)
2524
, AnchorDataFromCertificateError (..)
2625
, getAnchorDataFromCertificate
2726
, mkTxCertificates
@@ -60,6 +59,29 @@ module Cardano.Api.Experimental
6059
, PlutusScriptDatum (..)
6160
, NoScriptDatum (..)
6261

62+
-- ** Certificate related
63+
, Certificate (..)
64+
65+
-- * Registering stake address and delegating
66+
, makeStakeAddressDelegationCertificate
67+
, makeStakeAddressRegistrationCertificate
68+
, makeStakeAddressUnregistrationCertificate
69+
70+
-- * Registering stake pools
71+
, makeStakePoolRegistrationCertificate
72+
, makeStakePoolRetirementCertificate
73+
74+
-- * Governance related certificates
75+
, makeCommitteeColdkeyResignationCertificate
76+
, makeCommitteeHotKeyAuthorizationCertificate
77+
, makeDrepRegistrationCertificate
78+
, makeDrepUnregistrationCertificate
79+
, makeDrepUpdateCertificate
80+
, makeStakeAddressAndDRepDelegationCertificate
81+
82+
-- * Data family instances
83+
, AsType (..)
84+
6385
-- ** Internal
6486
, getAnyWitnessRedeemerPointerMap
6587
, toPlutusScriptPurpose
@@ -78,7 +100,6 @@ import Cardano.Api.Experimental.Plutus.Internal.ScriptWitness
78100
import Cardano.Api.Experimental.Plutus.Internal.Shim.LegacyScripts
79101
import Cardano.Api.Experimental.Simple.Script
80102
import Cardano.Api.Experimental.Tx
81-
import Cardano.Api.Experimental.Tx.Internal.Certificate
82103
import Cardano.Api.Experimental.Tx.Internal.Compatible
83104
import Cardano.Api.Experimental.Tx.Internal.Fee
84105
import Cardano.Api.Tx.Internal.Fee (evaluateTransactionExecutionUnitsShelley)

cardano-api/src/Cardano/Api/Experimental/Certificate.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ module Cardano.Api.Experimental.Certificate
3131
, fromShelleyPoolParams
3232

3333
-- * Data family instances
34-
, AsType (..)
34+
, AsType (AsCertificate)
35+
36+
-- * DRep and Stake Pool Ids
3537
, Hash (..)
3638

3739
-- * Operational Certificates

cardano-api/src/Cardano/Api/Experimental/Era.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ type EraCommonConstraints era =
310310
, L.EraTxOut (LedgerEra era)
311311
, L.EraUTxO (LedgerEra era)
312312
, FromCBOR (ChainDepState (ConsensusProtocol era))
313-
, L.NativeScript (LedgerEra era) ~ L.Timelock (LedgerEra era)
313+
, -- , FromCBOR (L.TxCert (LedgerEra era))
314+
L.NativeScript (LedgerEra era) ~ L.Timelock (LedgerEra era)
314315
, PraosProtocolSupportsNode (ConsensusProtocol era)
315316
, ShelleyLedgerEra era ~ LedgerEra era
316317
, ToJSON (ChainDepState (ConsensusProtocol era))

cardano-api/src/Cardano/Api/Experimental/Tx/Internal/Certificate.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module Cardano.Api.Experimental.Tx.Internal.Certificate
1616
, makeStakeAddressDelegationCertificate
1717
, makeStakeAddressRegistrationCertificate
1818
, makeStakeAddressUnregistrationCertificate
19-
-- , PoolId
2019

2120
-- * Registering stake pools
2221
, makeStakePoolRegistrationCertificate

cardano-api/src/Cardano/Api/Experimental/Tx/Internal/Certificate/Type.hs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44
{-# LANGUAGE RankNTypes #-}
55
{-# LANGUAGE ScopedTypeVariables #-}
66
{-# LANGUAGE StandaloneDeriving #-}
7-
{-# LANGUAGE TypeApplications #-}
87
{-# LANGUAGE TypeFamilies #-}
9-
{-# LANGUAGE TypeOperators #-}
108
{-# LANGUAGE UndecidableInstances #-}
119

1210
module Cardano.Api.Experimental.Tx.Internal.Certificate.Type
1311
( Certificate (..)
12+
, AsType (AsCertificate)
1413
)
1514
where
1615

17-
import Cardano.Api.Era.Internal.Eon.ShelleyBasedEra
1816
import Cardano.Api.HasTypeProxy
1917
import Cardano.Api.Ledger qualified as L
2018
import Cardano.Api.Serialise.Cbor
@@ -35,8 +33,7 @@ deriving instance Ord (Certificate era)
3533

3634
instance
3735
( Typeable ledgerera
38-
, IsShelleyBasedEra era
39-
, ShelleyLedgerEra era ~ ledgerera
36+
, L.EraTxCert ledgerera
4037
)
4138
=> HasTextEnvelope (Certificate ledgerera)
4239
where
@@ -48,12 +45,11 @@ instance Typeable era => HasTypeProxy (Certificate era) where
4845

4946
instance
5047
( Typeable ledgerera
51-
, IsShelleyBasedEra era
52-
, ShelleyLedgerEra era ~ ledgerera
48+
, L.EraTxCert ledgerera
5349
)
5450
=> SerialiseAsCBOR (Certificate ledgerera)
5551
where
5652
serialiseToCBOR (Certificate cert) =
5753
CBOR.serialize' cert
5854
deserialiseFromCBOR _ bs =
59-
shelleyBasedEraConstraints (shelleyBasedEra @era) $ Certificate <$> CBOR.decodeFull' bs
55+
Certificate <$> CBOR.decodeFull' bs

0 commit comments

Comments
 (0)