Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- offlineHeadId :: NodeId -> HeadId
- offlineHeadSeed :: NodeId -> HeadSeed
- newtype InitialUTxOParseException = InitialUTxOParseException String
- loadGenesisFile :: Maybe FilePath -> IO (GenesisParameters ShelleyEra)
- withOfflineChain :: NodeId -> OfflineChainConfig -> Party -> ChainStateHistory Tx -> ChainComponent Tx IO a
- tickForever :: GenesisParameters ShelleyEra -> (ChainEvent Tx -> IO ()) -> IO ()
Documentation
offlineHeadId :: NodeId -> HeadId Source #
Derived HeadId
of offline head.
offlineHeadSeed :: NodeId -> HeadSeed Source #
Derived HeadSeed
of offline head.
newtype InitialUTxOParseException Source #
Instances
loadGenesisFile :: Maybe FilePath -> IO (GenesisParameters ShelleyEra) Source #
Load the given genesis file or use defaults specific to the offline mode.
Throws: InitialUTxOParseException
if the initial UTXO file could not be parsed.
:: NodeId | |
-> OfflineChainConfig | |
-> Party | |
-> ChainStateHistory Tx | Last known chain state as loaded from persistence. |
-> ChainComponent Tx IO a |
tickForever :: GenesisParameters ShelleyEra -> (ChainEvent Tx -> IO ()) -> IO () Source #