plutus-contract-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

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

Instances details
Eq NodeClientEvent Source # 
Instance details

Defined in Wallet.Emulator.NodeClient

Show NodeClientEvent Source # 
Instance details

Defined in Wallet.Emulator.NodeClient

Generic NodeClientEvent Source # 
Instance details

Defined in Wallet.Emulator.NodeClient

Associated Types

type Rep NodeClientEvent :: Type -> Type Source #

FromJSON NodeClientEvent Source # 
Instance details

Defined in Wallet.Emulator.NodeClient

Methods

parseJSON :: Value -> Parser NodeClientEvent

parseJSONList :: Value -> Parser [NodeClientEvent]

ToJSON NodeClientEvent Source # 
Instance details

Defined in Wallet.Emulator.NodeClient

Methods

toJSON :: NodeClientEvent -> Value

toEncoding :: NodeClientEvent -> Encoding

toJSONList :: [NodeClientEvent] -> Value

toEncodingList :: [NodeClientEvent] -> Encoding

Pretty NodeClientEvent Source # 
Instance details

Defined in Wallet.Emulator.NodeClient

Methods

pretty :: NodeClientEvent -> Doc ann

prettyList :: [NodeClientEvent] -> Doc ann

type Rep NodeClientEvent Source # 
Instance details

Defined in Wallet.Emulator.NodeClient

type Rep NodeClientEvent = D1 ('MetaData "NodeClientEvent" "Wallet.Emulator.NodeClient" "plutus-contract-1.2.0.0-FH8LC9wh7UV4Nmv68NHXrC" 'False) (C1 ('MetaCons "TxSubmit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Lovelace)))

_TxSubmit :: Iso' NodeClientEvent (TxId, Lovelace) Source #

clientIndex :: Lens' NodeClientState AddressMap Source #

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 #