| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Cardano.Protocol.Socket.Mock.Client
Description
This mock client has been used to test the PAB while we had no real node available.
   Since now we do, this will be phased out and eventually removed in favor of the
   Client module which connects to a real cardano node.
Synopsis
- newtype TxSendHandle = TxSendHandle {
- tshQueue :: TQueue (Tx BabbageEra)
 
 - queueTx :: TxSendHandle -> Tx BabbageEra -> IO ()
 - getCurrentSlot :: ChainSyncHandle Block -> IO Slot
 - runChainSync' :: FilePath -> SlotConfig -> IO (ChainSyncHandle Block)
 - runChainSync :: FilePath -> SlotConfig -> (Block -> Slot -> IO ()) -> IO (ChainSyncHandle Block)
 - chainSyncClient :: forall block. SlotConfig -> (block -> Slot -> IO ()) -> ChainSyncClient block (Point block) Tip IO ()
 - runTxSender :: FilePath -> NetworkId -> IO TxSendHandle
 
Documentation
newtype TxSendHandle Source #
Constructors
| TxSendHandle | |
Fields 
  | |
queueTx :: TxSendHandle -> Tx BabbageEra -> IO () Source #
Queue a transaction to be sent to the server.
getCurrentSlot :: ChainSyncHandle Block -> IO Slot Source #
runChainSync' :: FilePath -> SlotConfig -> IO (ChainSyncHandle Block) Source #
Run the chain sync protocol to get access to the current slot number.
runChainSync :: FilePath -> SlotConfig -> (Block -> Slot -> IO ()) -> IO (ChainSyncHandle Block) Source #
chainSyncClient :: forall block. SlotConfig -> (block -> Slot -> IO ()) -> ChainSyncClient block (Point block) Tip IO () Source #
The client updates the application state when the protocol state changes.
runTxSender :: FilePath -> NetworkId -> IO TxSendHandle Source #