Skip to content

Commit 0da6f8a

Browse files
committed
Fourmolize
1 parent ddbd238 commit 0da6f8a

File tree

27 files changed

+85
-80
lines changed

27 files changed

+85
-80
lines changed

cardano-chain-gen/src/Cardano/Mock/Forging/Interpreter.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ import qualified Cardano.Mock.Forging.Tx.Babbage as Babbage
4343
import qualified Cardano.Mock.Forging.Tx.Shelley as Shelley
4444
import Cardano.Mock.Forging.Types
4545
import Cardano.Prelude (bimap, throwIO)
46+
import Control.Concurrent.Class.MonadSTM.Strict (
47+
StrictTVar,
48+
atomically,
49+
modifyTVar,
50+
newTVarIO,
51+
readTVarIO,
52+
swapTVar,
53+
)
4654
import Control.Monad (forM, void, when)
4755
import Control.Monad.Except (runExcept)
4856
import Control.Tracer (Tracer)
@@ -113,14 +121,6 @@ import Ouroboros.Consensus.Shelley.Ledger (ShelleyBlock, Ticked, shelleyLedgerSt
113121
import qualified Ouroboros.Consensus.Shelley.Ledger.Mempool as Consensus
114122
import Ouroboros.Consensus.Shelley.Ledger.SupportsProtocol ()
115123
import qualified Ouroboros.Consensus.TypeFamilyWrappers as Consensus
116-
import Control.Concurrent.Class.MonadSTM.Strict (
117-
StrictTVar,
118-
atomically,
119-
newTVarIO,
120-
readTVarIO,
121-
modifyTVar,
122-
swapTVar,
123-
)
124124
import Ouroboros.Consensus.Util.IOLike (
125125
Exception,
126126
NoThunks,

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Alonzo.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import Cardano.Ledger.Shelley.TxBody (
5555
PoolParams (..),
5656
StakePoolRelay (..),
5757
)
58+
import Cardano.Ledger.Shelley.TxCert
5859
import Cardano.Ledger.TxIn (TxIn (..))
5960
import Cardano.Mock.Forging.Crypto
6061
import Cardano.Mock.Forging.Tx.Alonzo.ScriptsExamples
@@ -71,7 +72,6 @@ import Lens.Micro
7172
import Ouroboros.Consensus.Cardano.Block (LedgerState, StandardAlonzo)
7273
import Ouroboros.Consensus.Shelley.Eras (StandardCrypto)
7374
import Ouroboros.Consensus.Shelley.Ledger (ShelleyBlock)
74-
import Cardano.Ledger.Shelley.TxCert
7575

7676
type AlonzoUTxOIndex = UTxOIndex StandardAlonzo
7777

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Alonzo/Scenarios.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ module Cardano.Mock.Forging.Tx.Alonzo.Scenarios (
44

55
import Cardano.Ledger.Mary.Value
66
import Cardano.Ledger.Shelley.API
7+
import Cardano.Ledger.Shelley.TxCert
78
import Cardano.Mock.Forging.Interpreter
89
import qualified Cardano.Mock.Forging.Tx.Alonzo as Alonzo
910
import Cardano.Mock.Forging.Tx.Generic
1011
import Cardano.Mock.Forging.Types
1112
import Cardano.Prelude hiding (length, (.))
1213
import Data.List.Extra
13-
import Cardano.Ledger.Shelley.TxCert
1414

1515
delegateAndSendBlocks :: Int -> Interpreter -> IO [CardanoBlock]
1616
delegateAndSendBlocks n interpreter = do

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Babbage.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ import Cardano.Ledger.Shelley.TxBody (
7676
PoolParams (..),
7777
StakePoolRelay (..),
7878
)
79+
import Cardano.Ledger.Shelley.TxCert
7980
import Cardano.Ledger.Shelley.UTxO
8081
import Cardano.Ledger.TxIn (TxId, TxIn (..))
8182
import Cardano.Ledger.Val
@@ -96,7 +97,6 @@ import Lens.Micro
9697
import Ouroboros.Consensus.Cardano.Block (LedgerState)
9798
import Ouroboros.Consensus.Shelley.Eras (StandardBabbage, StandardCrypto)
9899
import Ouroboros.Consensus.Shelley.Ledger (ShelleyBlock)
99-
import Cardano.Ledger.Shelley.TxCert
100100

101101
type BabbageUTxOIndex = UTxOIndex StandardBabbage
102102

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Babbage/Scenarios.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ module Cardano.Mock.Forging.Tx.Babbage.Scenarios (
44

55
import Cardano.Ledger.Mary.Value
66
import Cardano.Ledger.Shelley.API
7+
import Cardano.Ledger.Shelley.TxCert
78
import Cardano.Mock.Forging.Interpreter
89
import qualified Cardano.Mock.Forging.Tx.Babbage as Babbage
910
import Cardano.Mock.Forging.Tx.Generic
1011
import Cardano.Mock.Forging.Types
1112
import Cardano.Prelude hiding (length, (.))
1213
import Data.List.Extra
13-
import Cardano.Ledger.Shelley.TxCert
1414

1515
delegateAndSendBlocks :: Int -> Interpreter -> IO [CardanoBlock]
1616
delegateAndSendBlocks n interpreter = do

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Generic.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import Cardano.Ledger.Hashes (ScriptHash (ScriptHash))
3636
import Cardano.Ledger.Keys
3737
import Cardano.Ledger.Shelley.LedgerState hiding (LedgerState)
3838
import Cardano.Ledger.Shelley.TxBody
39+
import Cardano.Ledger.Shelley.TxCert
3940
import Cardano.Ledger.Shelley.UTxO
4041
import Cardano.Ledger.TxIn (TxIn (..))
4142
import qualified Cardano.Ledger.UMap as UMap
@@ -52,7 +53,6 @@ import Ouroboros.Consensus.Cardano.Block (LedgerState)
5253
import Ouroboros.Consensus.Shelley.Eras (StandardCrypto)
5354
import Ouroboros.Consensus.Shelley.Ledger (ShelleyBlock)
5455
import qualified Ouroboros.Consensus.Shelley.Ledger.Ledger as Consensus
55-
import Cardano.Ledger.Shelley.TxCert
5656

5757
resolveAddress ::
5858
forall era p.

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Shelley.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import Cardano.Ledger.Credential
2222
import Cardano.Ledger.Shelley.Tx hiding (ShelleyTx)
2323
import qualified Cardano.Ledger.Shelley.Tx as ShelleyTx
2424
import Cardano.Ledger.Shelley.TxBody
25+
import Cardano.Ledger.Shelley.TxCert
2526
import Cardano.Mock.Forging.Tx.Generic
2627
import Cardano.Mock.Forging.Types
2728
import Cardano.Prelude
@@ -33,7 +34,6 @@ import Lens.Micro
3334
import Ouroboros.Consensus.Cardano.Block (LedgerState, StandardShelley)
3435
import Ouroboros.Consensus.Shelley.Eras (ShelleyEra, StandardCrypto)
3536
import Ouroboros.Consensus.Shelley.Ledger (ShelleyBlock)
36-
import Cardano.Ledger.Shelley.TxCert
3737

3838
type ShelleyUTxOIndex = UTxOIndex (ShelleyEra StandardCrypto)
3939

cardano-chain-gen/test/Test/Cardano/Db/Mock/Config.hs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{-# LANGUAGE OverloadedStrings #-}
2+
{-# LANGUAGE RecordWildCards #-}
23
{-# LANGUAGE ScopedTypeVariables #-}
34
{-# LANGUAGE TypeApplications #-}
4-
{-# LANGUAGE RecordWildCards #-}
55

66
module Test.Cardano.Db.Mock.Config (
77
Config (..),
88
DBSyncEnv (..),
9-
CommandLineArgs(..),
9+
CommandLineArgs (..),
1010
TxOutParam (..),
1111
initCommandLineArgs,
1212
babbageConfigDir,
@@ -70,14 +70,14 @@ import Data.Text (Text)
7070
import qualified Data.Text as Text
7171
import Database.Persist.Postgresql (createPostgresqlPool)
7272
import Database.Persist.Sql (SqlBackend)
73+
import Ouroboros.Consensus.Block.Forging
7374
import Ouroboros.Consensus.Config (TopLevelConfig)
7475
import qualified Ouroboros.Consensus.Node.ProtocolInfo as Consensus
7576
import Ouroboros.Consensus.Shelley.Eras (StandardCrypto)
7677
import Ouroboros.Consensus.Shelley.Node (ShelleyLeaderCredentials)
7778
import System.Directory (createDirectoryIfMissing, removePathForcibly)
7879
import System.FilePath.Posix ((</>))
7980
import System.IO.Silently (hSilence)
80-
import Ouroboros.Consensus.Block.Forging
8181

8282
data Config = Config
8383
{ topLevelConfig :: TopLevelConfig CardanoBlock
@@ -230,7 +230,7 @@ mkShelleyCredentials bulkFile = do
230230

231231
-- | staticDir can be shared by tests running in parallel. mutableDir not.
232232
mkSyncNodeParams :: FilePath -> FilePath -> CommandLineArgs -> IO SyncNodeParams
233-
mkSyncNodeParams staticDir mutableDir CommandLineArgs{..} = do
233+
mkSyncNodeParams staticDir mutableDir CommandLineArgs {..} = do
234234
pgconfig <- orDie Db.renderPGPassError $ newExceptT Db.readPGPassDefault
235235
pure $
236236
SyncNodeParams
@@ -261,22 +261,22 @@ mkSyncNodeParams staticDir mutableDir CommandLineArgs{..} = do
261261
initCommandLineArgs :: CommandLineArgs
262262
initCommandLineArgs =
263263
CommandLineArgs
264-
{ claHasConfigFile = True
265-
, claEpochDisabled = True
266-
, claHasCache = True
267-
, claShouldUseLedger = True
268-
, claSkipFix = True
269-
, claOnlyFix = False
270-
, claForceIndexes = False
271-
, claHasMultiAssets = True
272-
, claHasMetadata = True
273-
, claHasPlutusExtra = True
274-
, claHasOfflineData = True
275-
, claTurboMode = False
276-
, claFullMode = True
277-
, claMigrateConsumed = True
278-
, claPruneTxOut = True
279-
}
264+
{ claHasConfigFile = True
265+
, claEpochDisabled = True
266+
, claHasCache = True
267+
, claShouldUseLedger = True
268+
, claSkipFix = True
269+
, claOnlyFix = False
270+
, claForceIndexes = False
271+
, claHasMultiAssets = True
272+
, claHasMetadata = True
273+
, claHasPlutusExtra = True
274+
, claHasOfflineData = True
275+
, claTurboMode = False
276+
, claFullMode = True
277+
, claMigrateConsumed = True
278+
, claPruneTxOut = True
279+
}
280280

281281
emptyMetricsSetters :: MetricSetters
282282
emptyMetricsSetters =

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Alonzo/Reward.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ module Test.Cardano.Db.Mock.Unit.Alonzo.Reward (
1313

1414
import Cardano.Ledger.Coin (Coin (Coin), DeltaCoin (DeltaCoin))
1515
import Cardano.Ledger.Keys (KeyHash (KeyHash))
16-
import Cardano.Ledger.Shelley.TxCert
1716
import Cardano.Ledger.Shelley.TxBody (Withdrawals (Withdrawals))
17+
import Cardano.Ledger.Shelley.TxCert
1818
import Cardano.Mock.ChainSync.Server (IOManager, addBlock, rollback)
1919
import qualified Cardano.Mock.Forging.Tx.Alonzo as Alonzo
2020
import Cardano.Mock.Forging.Tx.Alonzo.Scenarios (delegateAndSendBlocks)

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Alonzo/Stake.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ module Test.Cardano.Db.Mock.Unit.Alonzo.Stake (
1717

1818
import qualified Cardano.Db as DB
1919
import Cardano.Ledger.BaseTypes (CertIx (CertIx), TxIx (TxIx))
20-
import Cardano.Ledger.Shelley.TxCert
2120
import Cardano.Ledger.Shelley.TxBody (Ptr (..))
21+
import Cardano.Ledger.Shelley.TxCert
2222
import Cardano.Mock.ChainSync.Server (IOManager, addBlock)
2323
import qualified Cardano.Mock.Forging.Tx.Alonzo as Alonzo
2424
import Cardano.Mock.Forging.Tx.Alonzo.Scenarios (delegateAndSendBlocks)

0 commit comments

Comments
 (0)