Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 :: SlotConfig -> (Block -> Slot -> IO ()) -> ChainSyncClient Block ( Point Block) Tip IO ()
- runTxSender :: FilePath -> IO TxSendHandle
- txSubmissionClient :: TQueue ( Tx BabbageEra ) -> LocalTxSubmissionClient ( Tx BabbageEra ) String IO ()
Documentation
newtype TxSendHandle Source #
TxSendHandle | |
|
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 :: SlotConfig -> (Block -> Slot -> IO ()) -> ChainSyncClient Block ( Point Block) Tip IO () Source #
The client updates the application state when the protocol state changes.
runTxSender :: FilePath -> IO TxSendHandle Source #
txSubmissionClient :: TQueue ( Tx BabbageEra ) -> LocalTxSubmissionClient ( Tx BabbageEra ) String IO () Source #
The client updates the application state when the protocol state changes.