Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exports data types for logging, events and configuration
Synopsis
- type ChainSyncHandle = Either (ChainSyncHandle Block) (ChainSyncHandle ChainSyncEvent)
- data PABServerConfig = PABServerConfig {
- pscNodeServerConfig :: NodeServerConfig
- pscPassphrase :: Maybe Text
- pscNodeMode :: NodeMode
- data NodeMode
- _MockNode :: Prism' NodeMode ()
- _AlonzoNode :: Prism' NodeMode ()
Effects
type ChainSyncHandle = Either (ChainSyncHandle Block) (ChainSyncHandle ChainSyncEvent) Source #
The types of handles varies based on the type of clients (mocked or real nodes) and we need a generic way of handling either type of response.
Config types
data PABServerConfig Source #
Node server configuration
PABServerConfig | |
|
Instances
Which node we're connecting to
MockNode | Connect to the PAB mock node. |
AlonzoNode | Connect to an Alonzo node |
NoChainSyncEvents | Do not connect to any node for chain sync events. Connect to Alonzo node for slot notifications. |
Instances
Eq NodeMode Source # | |
Show NodeMode Source # | |
Generic NodeMode Source # | |
FromJSON NodeMode Source # | |
Defined in Cardano.Node.Types parseJSON :: Value -> Parser NodeMode parseJSONList :: Value -> Parser [NodeMode] | |
ToJSON NodeMode Source # | |
Defined in Cardano.Node.Types toEncoding :: NodeMode -> Encoding toJSONList :: [NodeMode] -> Value toEncodingList :: [NodeMode] -> Encoding | |
type Rep NodeMode Source # | |
Defined in Cardano.Node.Types type Rep NodeMode = D1 ('MetaData "NodeMode" "Cardano.Node.Types" "plutus-pab-1.2.0.0-LtxAAjtTYeqGloVmBPlsYv" 'False) (C1 ('MetaCons "MockNode" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AlonzoNode" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NoChainSyncEvents" 'PrefixI 'False) (U1 :: Type -> Type))) |
_AlonzoNode :: Prism' NodeMode () Source #