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

Expose functions and types from ouroboros-* required by cardano-cli #667

Merged
merged 5 commits into from
Oct 31, 2024
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
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
Loading