Skip to content

Commit

Permalink
Merge pull request #667 from IntersectMBO/remove-transitive-deps-cons…
Browse files Browse the repository at this point in the history
…ensus-backport

Expose functions and types from `ouroboros-*` required by `cardano-cli`
  • Loading branch information
palas authored Oct 31, 2024
2 parents 0820248 + 5882afe commit 4619ac0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cardano-api/cardano-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ library internal
Cardano.Api.Query
Cardano.Api.Query.Expr
Cardano.Api.Query.Types
Cardano.Api.ReexposeConsensus
Cardano.Api.ReexposeLedger
Cardano.Api.ReexposeNetwork
Cardano.Api.Rewards
Expand Down Expand Up @@ -238,6 +239,7 @@ library
Cardano.Api.ChainSync.Client
Cardano.Api.ChainSync.ClientPipelined
Cardano.Api.Compatible
Cardano.Api.Consensus
Cardano.Api.Crypto.Ed25519Bip32
Cardano.Api.Experimental
Cardano.Api.Ledger
Expand Down
29 changes: 29 additions & 0 deletions cardano-api/internal/Cardano/Api/ReexposeConsensus.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module Cardano.Api.ReexposeConsensus
( ByronBlock
, ChainDepState
, GenTx (..)
, EraMismatch (..)
, PastHorizonException
, PraosProtocolSupportsNode
, PraosProtocolSupportsNodeCrypto
, ShelleyGenesisStaking (..)
, byronIdTx
, condense
, getOpCertCounters
, interpreterToEpochInfo
, unsafeExtendSafeZone
, txId
)
where

import Ouroboros.Consensus.Byron.Ledger (ByronBlock, GenTx (..), byronIdTx)
import Ouroboros.Consensus.Cardano.Block (EraMismatch (..))
import Ouroboros.Consensus.HardFork.History.EpochInfo (interpreterToEpochInfo)
import Ouroboros.Consensus.HardFork.History.Qry (PastHorizonException,
unsafeExtendSafeZone)
import Ouroboros.Consensus.Ledger.SupportsMempool (txId)
import Ouroboros.Consensus.Protocol.Abstract (ChainDepState)
import Ouroboros.Consensus.Protocol.Praos.Common (PraosProtocolSupportsNode,
PraosProtocolSupportsNodeCrypto, getOpCertCounters)
import Ouroboros.Consensus.Shelley.Node (ShelleyGenesisStaking (..))
import Ouroboros.Consensus.Util.Condense (condense)
4 changes: 3 additions & 1 deletion cardano-api/internal/Cardano/Api/ReexposeNetwork.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module Cardano.Api.ReexposeNetwork (Target (..)) where
module Cardano.Api.ReexposeNetwork (Target (..), Serialised (..), SubmitResult (..)) where

import Ouroboros.Network.Block (Serialised (..))
import Ouroboros.Network.Protocol.LocalStateQuery.Type (Target (..))
import Ouroboros.Network.Protocol.LocalTxSubmission.Type (SubmitResult (..))
6 changes: 6 additions & 0 deletions cardano-api/src/Cardano/Api/Consensus.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Cardano.Api.Consensus
( module Cardano.Api.ReexposeConsensus
)
where

import Cardano.Api.ReexposeConsensus

0 comments on commit 4619ac0

Please sign in to comment.