plutus-pab-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

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

newtype TxSendHandle Source #

Constructors

TxSendHandle 

Fields

queueTx :: TxSendHandle -> Tx -> 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 -> LocalTxSubmissionClient Tx String IO () Source #

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