File tree Expand file tree Collapse file tree 12 files changed +18
-49
lines changed
test/Test/Cardano/Ledger/Shelley Expand file tree Collapse file tree 12 files changed +18
-49
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ test-suite cardano-ledger-shelley-test
112112 hs-source-dirs : test
113113 other-modules :
114114 Paths_cardano_ledger_shelley_test
115- Test.Cardano.Ledger.Shelley.Examples
115+ Test.Cardano.Ledger.Shelley.Examples.Chain
116116 Test.Cardano.Ledger.Shelley.Examples.Combinators
117117 Test.Cardano.Ledger.Shelley.Examples.EmptyBlock
118118 Test.Cardano.Ledger.Shelley.Examples.GenesisDelegation
Original file line number Diff line number Diff line change 11{-# LANGUAGE TypeApplications #-}
22
3- module Test.Cardano.Ledger.Shelley.Examples (
3+ module Test.Cardano.Ledger.Shelley.Examples.Chain (
44 CHAINExample (.. ),
55 testCHAINExample ,
66) where
Original file line number Diff line number Diff line change 66{-# LANGUAGE TypeFamilies #-}
77{-# LANGUAGE TypeOperators #-}
88
9- -- |
10- -- Module : Test.Cardano.Ledger.Shelley.Examples.Combinators
11- -- Description : Chain State Combinators
12- --
13- -- A collection of combinators for manipulating Chain State.
9+ -- | A collection of combinators for manipulating Chain State.
1410-- The idea is to provide a clear way of describing the
1511-- changes to the chain state when a block is processed.
1612module Test.Cardano.Ledger.Shelley.Examples.Combinators (
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import Cardano.Protocol.TPraos.OCert (KESPeriod (..))
2020import Data.Default
2121import GHC.Stack (HasCallStack )
2222import Test.Cardano.Ledger.Shelley.ConcreteCryptoTypes (MockCrypto )
23- import Test.Cardano.Ledger.Shelley.Examples (CHAINExample (.. ))
23+ import Test.Cardano.Ledger.Shelley.Examples.Chain (CHAINExample (.. ))
2424import Test.Cardano.Ledger.Shelley.Examples.Combinators (
2525 evolveNonceUnfrozen ,
2626 newLab ,
Original file line number Diff line number Diff line change 55{-# LANGUAGE ScopedTypeVariables #-}
66{-# LANGUAGE TypeApplications #-}
77
8- -- |
9- -- Module : Test.Cardano.Ledger.Shelley.Examples.GenesisDelegation
10- -- Description : Genesis Delegation Example
11- --
12- -- Example demonstrating Genesis Delegation
8+ -- | Example demonstrating Genesis Delegation
139module Test.Cardano.Ledger.Shelley.Examples.GenesisDelegation (
1410 genesisDelegExample ,
1511) where
@@ -38,8 +34,8 @@ import qualified Data.Sequence.Strict as StrictSeq
3834import qualified Data.Set as Set
3935import Test.Cardano.Ledger.Core.KeyPair (KeyPair (.. ), mkWitnessesVKey )
4036import Test.Cardano.Ledger.Shelley.ConcreteCryptoTypes (MockCrypto )
41- import Test.Cardano.Ledger.Shelley.Examples (CHAINExample (.. ), testCHAINExample )
4237import qualified Test.Cardano.Ledger.Shelley.Examples.Cast as Cast
38+ import Test.Cardano.Ledger.Shelley.Examples.Chain (CHAINExample (.. ), testCHAINExample )
4339import qualified Test.Cardano.Ledger.Shelley.Examples.Combinators as C
4440import Test.Cardano.Ledger.Shelley.Examples.Federation (
4541 coreNodeKeysBySchedule ,
Original file line number Diff line number Diff line change 55{-# LANGUAGE ScopedTypeVariables #-}
66{-# LANGUAGE TypeApplications #-}
77
8- -- |
9- -- Module : Test.Cardano.Ledger.Shelley.Examples.Init
10- -- Description : Initial State for Shelley ledger examples
11- --
12- -- The initial state for Shelley Ledger Examples.
8+ -- | The initial state for Shelley Ledger Examples.
139module Test.Cardano.Ledger.Shelley.Examples.Init (
1410 ppEx ,
1511 initSt ,
Original file line number Diff line number Diff line change 55{-# LANGUAGE ScopedTypeVariables #-}
66{-# LANGUAGE TypeApplications #-}
77
8- -- |
9- -- Module : Test.Cardano.Ledger.Shelley.Examples.Mir
10- -- Description : MIR Example
11- --
12- -- Example demonstrating the Move Instantaneous Rewards mechanism
8+ -- | Example demonstrating the Move Instantaneous Rewards mechanism
139module Test.Cardano.Ledger.Shelley.Examples.Mir (
1410 mirExample ,
1511) where
@@ -47,8 +43,8 @@ import qualified Data.Sequence.Strict as StrictSeq
4743import qualified Data.Set as Set
4844import Test.Cardano.Ledger.Core.KeyPair (KeyPair (.. ), mkWitnessesVKey )
4945import Test.Cardano.Ledger.Shelley.ConcreteCryptoTypes (MockCrypto )
50- import Test.Cardano.Ledger.Shelley.Examples (CHAINExample (.. ), testCHAINExample )
5146import qualified Test.Cardano.Ledger.Shelley.Examples.Cast as Cast
47+ import Test.Cardano.Ledger.Shelley.Examples.Chain (CHAINExample (.. ), testCHAINExample )
5248import qualified Test.Cardano.Ledger.Shelley.Examples.Combinators as C
5349import Test.Cardano.Ledger.Shelley.Examples.Federation (
5450 coreNodeIssuerKeys ,
Original file line number Diff line number Diff line change 88{-# LANGUAGE ScopedTypeVariables #-}
99{-# LANGUAGE TypeApplications #-}
1010
11- -- |
12- -- Module : Test.Cardano.Ledger.Shelley.Examples.PoolLifetime
13- -- Description : Pool Lifetime Example
14- --
15- -- Example demonstrating the creation of a new stake pool,
11+ -- | Example demonstrating the creation of a new stake pool,
1612-- block production under Praos, rewards, and pool retirement.
1713module Test.Cardano.Ledger.Shelley.Examples.PoolLifetime (
1814 makePulser ,
@@ -92,8 +88,8 @@ import GHC.Exts (fromList)
9288import GHC.Stack (HasCallStack )
9389import Test.Cardano.Ledger.Core.KeyPair (mkWitnessesVKey )
9490import Test.Cardano.Ledger.Shelley.ConcreteCryptoTypes (MockCrypto )
95- import Test.Cardano.Ledger.Shelley.Examples (CHAINExample (.. ), testCHAINExample )
9691import qualified Test.Cardano.Ledger.Shelley.Examples.Cast as Cast
92+ import Test.Cardano.Ledger.Shelley.Examples.Chain (CHAINExample (.. ), testCHAINExample )
9793import qualified Test.Cardano.Ledger.Shelley.Examples.Combinators as C
9894import Test.Cardano.Ledger.Shelley.Examples.Federation (
9995 coreNodeIssuerKeys ,
Original file line number Diff line number Diff line change 55{-# LANGUAGE ScopedTypeVariables #-}
66{-# LANGUAGE TypeApplications #-}
77
8- -- |
9- -- Module : Test.Cardano.Ledger.Shelley.Examples.PoolReReg
10- -- Description : Pool Re-Registration
11- --
12- -- Example demonstrating the adoption of of pool parameters
8+ -- | Example demonstrating the adoption of of pool parameters
139-- when re-registratiing.
1410module Test.Cardano.Ledger.Shelley.Examples.PoolReReg (
1511 poolReRegExample ,
@@ -45,8 +41,8 @@ import Data.Word (Word64)
4541import GHC.Stack (HasCallStack )
4642import Test.Cardano.Ledger.Core.KeyPair (mkWitnessesVKey )
4743import Test.Cardano.Ledger.Shelley.ConcreteCryptoTypes (MockCrypto )
48- import Test.Cardano.Ledger.Shelley.Examples (CHAINExample (.. ), testCHAINExample )
4944import qualified Test.Cardano.Ledger.Shelley.Examples.Cast as Cast
45+ import Test.Cardano.Ledger.Shelley.Examples.Chain (CHAINExample (.. ), testCHAINExample )
5046import qualified Test.Cardano.Ledger.Shelley.Examples.Combinators as C
5147import Test.Cardano.Ledger.Shelley.Examples.Federation (coreNodeKeysBySchedule )
5248import Test.Cardano.Ledger.Shelley.Examples.Init (
Original file line number Diff line number Diff line change 99{-# LANGUAGE ScopedTypeVariables #-}
1010{-# LANGUAGE TypeApplications #-}
1111
12- -- |
13- -- Module : Test.Cardano.Ledger.Shelley.Examples.TwoPools
14- -- Description : Two Pools Example
15- --
16- -- Example demonstrating a particular delegation scenario involving
12+ -- | Example demonstrating a particular delegation scenario involving
1713-- two pools. Both pools select a reward account which is *not*
1814-- a pool owner, and which delegates to one of the pools.
1915module Test.Cardano.Ledger.Shelley.Examples.TwoPools (
@@ -99,8 +95,8 @@ import GHC.Stack (HasCallStack)
9995import Lens.Micro ((&) , (.~) , (^.) )
10096import Test.Cardano.Ledger.Core.KeyPair (mkWitnessesVKey )
10197import Test.Cardano.Ledger.Shelley.ConcreteCryptoTypes (MockCrypto )
102- import Test.Cardano.Ledger.Shelley.Examples (CHAINExample (.. ), testCHAINExample )
10398import qualified Test.Cardano.Ledger.Shelley.Examples.Cast as Cast
99+ import Test.Cardano.Ledger.Shelley.Examples.Chain (CHAINExample (.. ), testCHAINExample )
104100import qualified Test.Cardano.Ledger.Shelley.Examples.Combinators as C
105101import Test.Cardano.Ledger.Shelley.Examples.Federation (
106102 coreNodeKeysBySchedule ,
You can’t perform that action at this time.
0 commit comments