Skip to content

Commit

Permalink
Remove transitive dependencies to ouroboros-consensus
Browse files Browse the repository at this point in the history
  • Loading branch information
palas committed Nov 14, 2024
1 parent 78f56c5 commit 8329525
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion cardano-cli/cardano-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ library
network,
network-uri,
optparse-applicative-fork,
ouroboros-consensus ^>=0.21,
parsec,
prettyprinter,
prettyprinter-ansi-terminal,
Expand Down
3 changes: 1 addition & 2 deletions cardano-cli/src/Cardano/CLI/Byron/UpdateProposal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ import Cardano.Api
import Cardano.Api.Byron (AsType (AsByronUpdateProposal), ByronProtocolParametersUpdate,
ByronUpdateProposal, makeByronUpdateProposal, toByronLedgerUpdateProposal)
import qualified Cardano.Api.Byron as Byron
import Cardano.Api.Consensus (condense, txId)

import Cardano.CLI.Byron.Genesis (ByronGenesisError)
import Cardano.CLI.Byron.Key (ByronKeyFailure, readByronSigningKey)
import Cardano.CLI.Byron.Tx (ByronTxError, nodeSubmitTx)
import Cardano.CLI.Helpers (HelpersError, ensureNewFileLBS, renderHelpersError)
import Cardano.CLI.Types.Common
import Ouroboros.Consensus.Ledger.SupportsMempool (txId)
import Ouroboros.Consensus.Util.Condense (condense)

import Control.Exception (Exception (..))
import Control.Tracer (stdoutTracer, traceWith)
Expand Down
3 changes: 1 addition & 2 deletions cardano-cli/src/Cardano/CLI/Byron/Vote.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module Cardano.CLI.Byron.Vote
where

import Cardano.Api.Byron
import Cardano.Api.Consensus (condense, txId)

import qualified Cardano.Binary as Binary
import Cardano.CLI.Byron.Genesis (ByronGenesisError)
Expand All @@ -21,8 +22,6 @@ import Cardano.CLI.Byron.UpdateProposal (ByronUpdateProposalError,
readByronUpdateProposal)
import Cardano.CLI.Helpers (HelpersError, ensureNewFileLBS)
import Cardano.CLI.Types.Common
import Ouroboros.Consensus.Ledger.SupportsMempool (txId)
import Ouroboros.Consensus.Util.Condense (condense)

import Control.Tracer (stdoutTracer, traceWith)
import Data.Bifunctor (first)
Expand Down
3 changes: 1 addition & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ import qualified Cardano.CLI.Types.Output as O
import Cardano.Crypto.Hash (hashToBytesAsHex)
import qualified Cardano.Crypto.Hash.Blake2b as Blake2b
import Cardano.Slotting.EpochInfo (EpochInfo (..), epochInfoSlotToUTCTime, hoistEpochInfo)
import Ouroboros.Consensus.BlockchainTime.WallClock.Types (RelativeTime (..),
toRelativeTime)
import Cardano.Slotting.Time (RelativeTime (..), toRelativeTime)

import Control.Monad (forM, forM_, join)
import Data.Aeson as Aeson
Expand Down
5 changes: 2 additions & 3 deletions cardano-cli/src/Cardano/CLI/Types/Errors/QueryCmdError.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ module Cardano.CLI.Types.Errors.QueryCmdError
where

import Cardano.Api hiding (QueryInShelleyBasedEra (..))
import Cardano.Api.Consensus as Consensus (EraMismatch (..))
import Cardano.Api.Consensus as Consensus (EraMismatch (..), PastHorizonException)
import Cardano.Api.Shelley hiding (QueryInShelleyBasedEra (..))

import Cardano.Binary (DecoderError)
import Cardano.CLI.Helpers (HelpersError (..), renderHelpersError)
import Cardano.CLI.Types.Errors.GenesisCmdError
import Cardano.CLI.Types.Errors.QueryCmdLocalStateQueryError
import qualified Ouroboros.Consensus.HardFork.History.Qry as Qry

import qualified Data.ByteString.Lazy.Char8 as LBS
import Data.Text.Lazy.Builder (toLazyText)
Expand All @@ -39,7 +38,7 @@ data QueryCmdError
| QueryCmdAcquireFailure !AcquiringFailure
| QueryCmdByronEra
| QueryCmdEraMismatch !EraMismatch
| QueryCmdPastHorizon !Qry.PastHorizonException
| QueryCmdPastHorizon !Consensus.PastHorizonException
| QueryCmdSystemStartUnavailable
| QueryCmdGenesisReadError !GenesisCmdError
| QueryCmdLeaderShipError !LeadershipError
Expand Down

0 comments on commit 8329525

Please sign in to comment.