plutus-pab-1.2.0.0
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

Documentation

queueTx :: TxSendHandle -> Tx BabbageEra -> IO () Source #

Queue a transaction to be sent to the server.

runChainSync' :: FilePath -> SlotConfig -> IO ( ChainSyncHandle Block) Source #

Run the chain sync protocol to get access to the current slot number.

chainSyncClient :: SlotConfig -> (Block -> Slot -> IO ()) -> ChainSyncClient Block ( Point Block) Tip IO () Source #

The client updates the application state when the protocol state changes.

txSubmissionClient :: TQueue ( Tx BabbageEra ) -> LocalTxSubmissionClient ( Tx BabbageEra ) String IO () Source #

The client updates the application state when the protocol state changes.