hydra-tui-0.19.0: TUI for managing a Hydra node
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.TUI.Drawing

Synopsis

Documentation

draw :: CardanoClient -> Client Tx IO -> RootState -> [Widget Name] Source #

Main draw function

drawScreenShortLog :: CardanoClient -> Client Tx IO -> RootState -> [Widget Name] Source #

drawFocusPanelOpen :: NetworkId -> VerificationKey PaymentKey -> UTxO -> UTxO -> OpenScreen -> Widget Name Source #

drawFocusPanelFinal :: NetworkId -> VerificationKey PaymentKey -> UTxO -> Widget Name Source #

highlightOwnAddress :: AddressInEra -> AddressInEra -> Widget n Source #

drawFocusPanel :: NetworkId -> VerificationKey PaymentKey -> UTCTime -> Connection -> Widget Name Source #

drawRemainingParties :: IdentifiedState -> [Party] -> Widget n Source #

drawPartiesWithOwnHighlighted :: Party -> [Party] -> Widget n Source #

drawParties :: (Party -> Widget n) -> [Party] -> Widget n Source #

drawHeadParticipants :: IdentifiedState -> [Party] -> Widget n Source #

drawIfConnected :: (Connection -> Widget n) -> ConnectedState -> Widget n Source #

drawIfActive :: (ActiveLink -> Widget n) -> HeadState -> Widget n Source #

drawHeadId :: HeadId -> Widget n Source #

drawMyAddress :: AddressInEra -> Widget n Source #

drawAddress :: AddressInEra -> Widget n Source #

drawParty :: AttrName -> Party -> Widget n Source #

drawPeers :: [NodeId] -> Widget n Source #

renderTime :: (Ord t, Num t, FormatTime t) => t -> String Source #

drawUTxO :: (AddressInEra -> Widget n) -> UTxO -> Widget n Source #