-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cardano-testnet: add single entrypoint for starting Shelley Babbage a…
…nd Cardano testnets
- Loading branch information
1 parent
2634432
commit 2c4966b
Showing
17 changed files
with
261 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ library | |
Test.Base | ||
Test.Process | ||
Test.Runtime | ||
Testnet | ||
Testnet.Babbage | ||
Testnet.Byron | ||
Testnet.Cardano | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module Testnet | ||
( TestnetOptions(..) | ||
, Testnet.testnet | ||
) where | ||
|
||
import Data.Eq (Eq) | ||
import Text.Show (Show) | ||
|
||
import qualified Hedgehog.Extras.Test.Base as H | ||
|
||
import Testnet.Babbage | ||
import Testnet.Cardano | ||
import Testnet.Conf | ||
import Testnet.Shelley | ||
|
||
data TestnetOptions | ||
= ShelleyOnlyTestnetOptions ShelleyTestnetOptions | ||
| BabbageOnlyTestnetOptions BabbageTestnetOptions | ||
| CardanoOnlyTestnetOptions CardanoTestnetOptions | ||
deriving (Eq, Show) | ||
|
||
testnet :: TestnetOptions -> Conf -> H.Integration TestnetRuntime | ||
testnet options = case options of | ||
ShelleyOnlyTestnetOptions o -> shelleyTestnet o | ||
BabbageOnlyTestnetOptions o -> babbageTestnet o | ||
CardanoOnlyTestnetOptions o -> cardanoTestnet o | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.