hydra-tui
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.TUI.Model

Synopsis

Documentation

data TUIEvent tx Source #

TUI-local event wrapper so we can inject async results alongside Hydra node events.

Constructors

NodeEvent (HydraEvent tx) 
UTxOQueryResult (Map TxIn (TxOut CtxUTxO)) 
L1UTxORefresh (Map TxIn (TxOut CtxUTxO)) 
FuelUTxORefresh (Map TxIn (TxOut CtxUTxO)) 
TxBuildError Text 

data RootState Source #

Constructors

RootState 

Fields

data ConnectedState Source #

Connection to the hydra node.

Constructors

Disconnected 
Connected 

data NetworkState Source #

Connectivity of the hydra node to the hydra network.

data ChainSyncedStatus Source #

Synchronization status of the hydra node to the cardano chain.

Constructors

InSync 
CatchingUp 

type UTxOCheckboxForm e n = Form (Map TxIn (TxOut CtxUTxO, Bool)) e n Source #

type UTxORadioFieldForm e n = Form (TxIn, TxOut CtxUTxO) e n Source #

type TxIdRadioFieldForm e n = Form TxId e n Source #

data HeadState Source #

Constructors

Idle 
Active 

data ActiveLink Source #

Constructors

ActiveLink 

data ActiveHeadState Source #

Constructors

Open 
Closed 
FanoutPossible 
FanningOut

A selective partial fanout is in progress (on-chain FanoutProgress): some UTxO has been distributed and $sel:fanoutRemaining:Open is still in the head. Only further partial fanouts are accepted (no full Fanout). $sel:fanoutMode:Open (reported by the node) says whether it keeps draining on its own or awaits the next selection, driving what the UI offers.

Fields

Final 

type Name = Text Source #

data ActiveTab Source #

Instances

Instances details
Eq ActiveTab Source # 
Instance details

Defined in Hydra.TUI.Model

enteringRecipientAddressFormL :: Traversal' OpenScreen (Form AddressInEra (HydraEvent Tx) Name) Source #

l1UTxOL :: Lens' RootState (Maybe (Map TxIn (TxOut CtxUTxO))) Source #

fuelVkL :: Lens' RootState (Maybe (VerificationKey PaymentKey)) Source #

fuelUTxOL :: Lens' RootState (Maybe (Map TxIn (TxOut CtxUTxO))) Source #

peersL :: Lens' Connection [(Host, PeerStatus)] Source #

utxoL :: Lens' ActiveLink UTxO Source #

newActiveLink :: [Party] -> HeadId -> ActiveLink Source #