| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Plutus.PAB.LocalCluster.Run
Description
Start a local cluster of cardano nodes and PAB(s)
Synopsis
- data LogOutputs = LogOutputs {}
- withLocalClusterSetup :: (FilePath -> LogOutputs -> IO a) -> IO a
- runWith :: forall a. (Show a, Ord a, FromJSON a, ToJSON a, Pretty a, MimeUnrender JSON a, HasDefinitions a, ToSchema a) => BuiltinHandler a -> IO ()
- newtype ChainIndexPort = ChainIndexPort Int
- setupPABServices :: forall a. (Show a, Ord a, FromJSON a, ToJSON a, Pretty a, MimeUnrender JSON a, HasDefinitions a, ToSchema a) => BuiltinHandler a -> String -> Int -> FilePath -> RunningNode -> IO ()
- launchChainIndex :: FilePath -> RunningNode -> IO ChainIndexPort
- launchPAB :: forall a. (Show a, Ord a, FromJSON a, ToJSON a, Pretty a, MimeUnrender JSON a, HasDefinitions a, ToSchema a) => BuiltinHandler a -> Text -> FilePath -> BaseUrl -> RunningNode -> ChainIndexPort -> IO ()
- slotConfigOfNetworkParameters :: NetworkParameters -> SlotConfig
- restoreWallets :: String -> Int -> IO BaseUrl
- sleep :: Int -> IO ()
- data TestsLog
- = MsgBaseUrl Text Text Text
- | MsgSettingUpFaucet
- | MsgCluster ClusterLog
Documentation
data LogOutputs Source #
Constructors
| LogOutputs | |
withLocalClusterSetup :: (FilePath -> LogOutputs -> IO a) -> IO a Source #
runWith :: forall a. (Show a, Ord a, FromJSON a, ToJSON a, Pretty a, MimeUnrender JSON a, HasDefinitions a, ToSchema a) => BuiltinHandler a -> IO () Source #
newtype ChainIndexPort Source #
Constructors
| ChainIndexPort Int |
setupPABServices :: forall a. (Show a, Ord a, FromJSON a, ToJSON a, Pretty a, MimeUnrender JSON a, HasDefinitions a, ToSchema a) => BuiltinHandler a -> String -> Int -> FilePath -> RunningNode -> IO () Source #
launchChainIndex :: FilePath -> RunningNode -> IO ChainIndexPort Source #
Launch the chain index in a separate thread.
Arguments
| :: forall a. (Show a, Ord a, FromJSON a, ToJSON a, Pretty a, MimeUnrender JSON a, HasDefinitions a, ToSchema a) | |
| => BuiltinHandler a | |
| -> Text | Passphrase |
| -> FilePath | Temp directory |
| -> BaseUrl | wallet url |
| -> RunningNode | Socket path |
| -> ChainIndexPort | Port of the chain index |
| -> IO () |
Launch the PAB in a separate thread.
slotConfigOfNetworkParameters :: NetworkParameters -> SlotConfig Source #
Constructors
| MsgBaseUrl Text Text Text | |
| MsgSettingUpFaucet | |
| MsgCluster ClusterLog |
Instances
| Show TestsLog Source # | |
| ToText TestsLog Source # | |
Defined in Plutus.PAB.LocalCluster.Run | |
| HasPrivacyAnnotation TestsLog Source # | |
Defined in Plutus.PAB.LocalCluster.Run Methods getPrivacyAnnotation :: TestsLog -> PrivacyAnnotation | |
| HasSeverityAnnotation TestsLog Source # | |
Defined in Plutus.PAB.LocalCluster.Run Methods getSeverityAnnotation :: TestsLog -> Severity | |