| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Wallet.Emulator.NodeClient
Documentation
data NodeClientEvent Source #
Constructors
| TxSubmit TxId Lovelace | A transaction has been added to the pool of pending transactions. The value is the fee of the transaction. |
Instances
_TxSubmit :: Iso' NodeClientEvent (TxId, Lovelace) Source #
data NodeClientState Source #
Constructors
| NodeClientState | |
Fields
| |
Instances
| Eq NodeClientState Source # | |
Defined in Wallet.Emulator.NodeClient Methods (==) :: NodeClientState -> NodeClientState -> Bool Source # (/=) :: NodeClientState -> NodeClientState -> Bool Source # | |
| Show NodeClientState Source # | |
Defined in Wallet.Emulator.NodeClient | |
clientSlot :: Lens' NodeClientState Slot Source #
clientIndex :: Lens' NodeClientState AddressMap Source #
data ChainClientNotification Source #
Constructors
| BlockValidated Block | |
| SlotChanged Slot |
Instances
| Eq ChainClientNotification Source # | |
Defined in Wallet.Emulator.NodeClient Methods (==) :: ChainClientNotification -> ChainClientNotification -> Bool Source # (/=) :: ChainClientNotification -> ChainClientNotification -> Bool Source # | |
| Show ChainClientNotification Source # | |
Defined in Wallet.Emulator.NodeClient | |
data NodeClientControlEffect r where Source #
Constructors
| ClientNotify :: ChainClientNotification -> NodeClientControlEffect () |
clientNotify :: forall effs. Member NodeClientControlEffect effs => ChainClientNotification -> Eff effs () Source #
type NodeClientEffs = '[ChainEffect, State NodeClientState, LogMsg NodeClientEvent] Source #
handleNodeControl :: Members NodeClientEffs effs => Eff (NodeClientControlEffect ': effs) ~> Eff effs Source #
handleNodeClient :: Members NodeClientEffs effs => Eff (NodeClientEffect ': effs) ~> Eff effs Source #