Skip to content

Commit

Permalink
Coarser imports of Cardano.Wallet.Read.Eras
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Aug 5, 2024
1 parent 7d41acc commit 0e6a163
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,9 @@ import Cardano.Wallet.Read
)
import Cardano.Wallet.Read.Eras
( K (..)
, applyEraFun
, (:*:) (..)
)
import Cardano.Wallet.Read.Eras.EraFun
( applyEraFun
)
import Cardano.Wallet.Transaction
( TokenMapWithScripts
, ValidityIntervalExplicit
Expand Down
6 changes: 2 additions & 4 deletions lib/read/lib/Cardano/Read/Ledger/Block/BHeader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ import Cardano.Wallet.Read.Eras
, Babbage
, Byron
, Conway
, Era (..)
, IsEra (..)
, Mary
, Shelley
)
import Cardano.Wallet.Read.Eras.KnownEras
( Era (..)
, IsEra (..)
)
import GHC.Generics
( Generic
)
Expand Down
7 changes: 2 additions & 5 deletions lib/read/lib/Cardano/Read/Ledger/Block/Block.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,13 @@ import Cardano.Wallet.Read.Eras
, Babbage
, Byron
, Conway
, Era (..)
, EraValue (..)
, IsEra
, IsEra (..)
, Mary
, Shelley
, eraValue
)
import Cardano.Wallet.Read.Eras.KnownEras
( Era (..)
, IsEra (..)
)
import Ouroboros.Consensus.Protocol.Praos
( Praos
)
Expand Down
7 changes: 2 additions & 5 deletions lib/read/lib/Cardano/Read/Ledger/Block/HeaderHash.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,11 @@ import Cardano.Wallet.Read.Eras
, Babbage
, Byron
, Conway
, IsEra
, Era (..)
, IsEra (..)
, Mary
, Shelley
)
import Cardano.Wallet.Read.Eras.KnownEras
( Era (..)
, IsEra (..)
)
import Cardano.Wallet.Read.Hash
( Blake2b_256
, Hash
Expand Down
2 changes: 1 addition & 1 deletion lib/read/lib/Cardano/Read/Ledger/Block/SlotNo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Prelude
import Cardano.Read.Ledger.Block.BHeader
( BHeader (..)
)
import Cardano.Wallet.Read.Eras.KnownEras
import Cardano.Wallet.Read.Eras
( Era (..)
, IsEra (..)
)
Expand Down
4 changes: 1 addition & 3 deletions lib/read/lib/Cardano/Read/Ledger/Block/Txs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ import Cardano.Read.Ledger.Block.Block
)
import Cardano.Wallet.Read.Eras
( Byron
)
import Cardano.Wallet.Read.Eras.KnownEras
( Era (..)
, Era (..)
, IsEra (..)
)
import Cardano.Wallet.Read.Tx
Expand Down
9 changes: 3 additions & 6 deletions lib/read/lib/Cardano/Read/Ledger/Tx/CBOR.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,16 @@ import Cardano.Ledger.Binary.Decoding
, shelleyProtVer
)
import Cardano.Wallet.Read.Eras
( EraValue
, IsEra
( Era (..)
, EraValue
, IsEra (..)
, K (..)
, applyEraFunValue
, extractEraValue
, sequenceEraValue
, unK
, (:.:) (..)
)
import Cardano.Wallet.Read.Eras.KnownEras
( Era (..)
, IsEra (..)
)
import Cardano.Wallet.Read.Tx
( Tx (..)
, TxT
Expand Down
6 changes: 2 additions & 4 deletions lib/read/lib/Cardano/Read/Ledger/Tx/Cardano.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ module Cardano.Read.Ledger.Tx.Cardano
import Prelude

import Cardano.Wallet.Read.Eras
( EraValue
, eraValue
)
import Cardano.Wallet.Read.Eras.KnownEras
( Allegra
, Alonzo
, Babbage
, Conway
, EraValue
, Mary
, Shelley
, eraValue
)
import Cardano.Wallet.Read.Tx
( Tx (..)
Expand Down
6 changes: 2 additions & 4 deletions lib/read/lib/Cardano/Read/Ledger/Tx/Witnesses.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ import Cardano.Wallet.Read.Eras
, Babbage
, Byron
, Conway
, Era (..)
, IsEra (..)
, Mary
, Shelley
)
import Cardano.Wallet.Read.Eras.KnownEras
( Era (..)
, IsEra (..)
)
import Cardano.Wallet.Read.Tx
( Tx (..)
)
Expand Down
6 changes: 2 additions & 4 deletions lib/unit/test/unit/Cardano/Wallet/DB/Arbitrary.hs
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,9 @@ import Cardano.Wallet.Primitive.Types.Tx.TxOut.Gen
import Cardano.Wallet.Primitive.Types.UTxO
( UTxO (..)
)
import Cardano.Wallet.Read.Eras.EraValue
import Cardano.Wallet.Read.Eras
( eraValueSerialize
)
import Cardano.Wallet.Read.Eras.KnownEras
( knownEraIndices
, knownEraIndices
)
import Cardano.Wallet.Unsafe
( someDummyMnemonic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ import Cardano.Wallet.Primitive.Ledger.Read.Tx.Features.Inputs
)
import Cardano.Wallet.Read.Eras
( EraValue
)
import Cardano.Wallet.Read.Eras.EraFun
( applyEraFun
, applyEraFun
)
import Control.Applicative
( (<|>)
Expand Down

0 comments on commit 0e6a163

Please sign in to comment.