Skip to content

Commit f853558

Browse files
committed
Improve Cardano.Testnet with haddocks and reduce what is exported
1 parent ffb5cc8 commit f853558

File tree

2 files changed

+37
-53
lines changed

2 files changed

+37
-53
lines changed

cardano-testnet/app/cardano-testnet.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import Control.Monad
44
import Data.Function
55
import Data.Semigroup
66
import Options.Applicative
7-
import System.IO (IO)
87
import Parsers
8+
import System.IO (IO)
99

1010
main :: IO ()
1111
main = join $ customExecParser
+36-52
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,48 @@
1-
module Cardano.Testnet
2-
( Babbage.BabbageTestnetOptions(..)
3-
, Cardano.CardanoTestnetOptions(..)
4-
, Shelley.ShelleyTestnetOptions(..)
5-
, TestnetOptions(..)
6-
, TestnetNodeOptions(..)
7-
, babbageDefaultTestnetOptions
8-
, cardanoDefaultTestnetOptions
9-
, cardanoDefaultTestnetNodeOptions
10-
, shelleyDefaultTestnetOptions
11-
, testnet
1+
-- | This module provides a library interface for initiating a local testnet
2+
--
3+
module Cardano.Testnet (
4+
-- * Testnets
125

13-
, Conf(..)
14-
, ProjectBase(..)
15-
, YamlFilePath(..)
16-
, mkConf
17-
18-
, execCli
19-
, execCli'
20-
, execCli_
21-
, procNode
22-
, procChairman
23-
24-
, getRelevantLeaderSlots
6+
-- ** Start a testnet
7+
testnet,
258

26-
, assertByDeadlineMCustom
27-
, integration
28-
, isLinux
29-
, waitUntilEpoch
9+
-- ** Testnet options
10+
TestnetOptions(..),
11+
CardanoTestnetOptions(..),
12+
BabbageTestnetOptions(..),
13+
ShelleyTestnetOptions(..),
14+
TestnetNodeOptions(..),
15+
cardanoDefaultTestnetOptions,
16+
babbageDefaultTestnetOptions,
17+
shelleyDefaultTestnetOptions,
18+
cardanoDefaultTestnetNodeOptions,
3019

31-
, disabled
32-
, ignoreOnWindows
33-
, ignoreOnMacAndWindows
20+
-- * Configuration
21+
Conf(..),
22+
ProjectBase(..),
23+
YamlFilePath(..),
24+
mkConf,
3425

35-
, LeadershipSlot(..)
36-
, NodeLoggingFormat(..)
37-
, PaymentKeyPair(..)
38-
, StakingKeyPair(..)
39-
, TestnetRuntime(..)
40-
, NodeRuntime(..)
41-
, PoolNode(..)
42-
, PoolNodeKeys(..)
43-
, Delegator(..)
44-
, allNodes
45-
, bftSprockets
46-
, poolSprockets
47-
, poolNodeStdout
48-
, readNodeLoggingFormat
49-
, startNode
26+
-- * Processes
27+
procChairman,
28+
29+
-- * Utils
30+
integration,
31+
waitUntilEpoch,
32+
33+
-- * Runtime
34+
NodeRuntime(..),
35+
allNodes,
5036

5137
) where
5238

5339
import Testnet
54-
import Testnet.Babbage as Babbage
55-
import Testnet.Cardano as Cardano
40+
import Testnet.Babbage
41+
import Testnet.Cardano
42+
import Testnet.Conf hiding (base)
5643
import Testnet.Shelley as Shelley
5744
import Testnet.Utils (waitUntilEpoch)
58-
import Testnet.Conf hiding (base)
5945

60-
import Util.Assert
61-
import Util.Base (integration, isLinux)
62-
import Util.Ignore (disabled, ignoreOnWindows, ignoreOnMacAndWindows)
63-
import Util.Process (assertByDeadlineMCustom, execCli, execCli', execCli_, procChairman, procNode)
46+
import Util.Base (integration)
47+
import Util.Process (procChairman)
6448
import Util.Runtime

0 commit comments

Comments
 (0)