Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Common runtime types for cardan-testnet
- Loading branch information
Showing
4 changed files
with
42 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module Test.Runtime | ||
( TestnetRuntime(..) | ||
, TestnetNode(..) | ||
, Wallet(..) | ||
) where | ||
|
||
import Data.Eq (Eq) | ||
import Data.Int (Int) | ||
import Data.String (String) | ||
import Hedgehog.Extras.Stock.IO.Network.Sprocket (Sprocket (..)) | ||
import System.IO (FilePath) | ||
import Text.Show (Show) | ||
|
||
import qualified System.IO as IO | ||
import qualified System.Process as IO | ||
|
||
data TestnetRuntime = TestnetRuntime | ||
{ configurationFile :: FilePath | ||
, testnetMagic :: Int | ||
, bftNodes :: [TestnetNode] | ||
, poolNodes :: [TestnetNode] | ||
, wallets :: [Wallet] | ||
} | ||
|
||
data TestnetNode = TestnetNode | ||
{ nodeName :: String | ||
, nodeSprocket :: Sprocket | ||
, nodeStdinHandle :: IO.Handle | ||
, nodeStdout :: FilePath | ||
, nodeStderr :: FilePath | ||
, nodeProcessHandle :: IO.ProcessHandle | ||
} | ||
|
||
data Wallet = Wallet | ||
{ paymentVKey :: FilePath | ||
, paymentSKey :: FilePath | ||
} deriving (Eq, Show) |
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