plutus-pab-1.2.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 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.