| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.TUI.Drawing.FundsTab
Synopsis
- drawFundsTab :: CardanoClient -> Client Tx IO -> RootState -> Widget Name
- drawWalletColumn :: Text -> AddressInEra -> Maybe (Map TxIn (TxOut CtxUTxO)) -> UTCTime -> Widget Name
- drawFuelColumn :: NetworkId -> Maybe (VerificationKey PaymentKey) -> Maybe (Map TxIn (TxOut CtxUTxO)) -> UTCTime -> Widget Name
- drawFocusPanel :: NetworkId -> VerificationKey PaymentKey -> UTCTime -> Connection -> Widget Name
- drawFocusPanelOpen :: NetworkId -> VerificationKey PaymentKey -> UTxO -> UTxO -> [PendingIncrement] -> UTCTime -> OpenScreen -> Widget Name
- drawFocusPanelClosed :: NetworkId -> VerificationKey PaymentKey -> UTxO -> [PendingIncrement] -> UTCTime -> ClosedState -> Widget Name
- drawFocusPanelFanout :: NetworkId -> VerificationKey PaymentKey -> UTxO -> [PendingIncrement] -> UTCTime -> Widget Name
- drawFocusPanelFanningOut :: NetworkId -> VerificationKey PaymentKey -> FanoutProgressMode -> UTxO -> [PendingIncrement] -> UTCTime -> Widget Name
- drawFocusPanelFinal :: NetworkId -> VerificationKey PaymentKey -> UTxO -> [PendingIncrement] -> UTCTime -> Widget Name
- drawPendingCommits :: AddressInEra -> [PendingIncrement] -> UTCTime -> [Widget Name]
- drawRemainingDepositDeadline :: UTCTime -> UTCTime -> Widget Name
- drawPendingIncrement :: AddressInEra -> [PendingIncrement] -> UTCTime -> Widget Name
- drawRecoverFormWithDetail :: AddressInEra -> Form TxId e Name -> [PendingIncrement] -> UTCTime -> Widget Name
- drawRecoverDetail :: AddressInEra -> TxId -> [PendingIncrement] -> UTCTime -> Widget Name
Documentation
drawFundsTab :: CardanoClient -> Client Tx IO -> RootState -> Widget Name Source #
Render the Funds tab: the L2 head state (utxo, pending commits/decommits, active modal flow if any) above the L1 wallet refresh panel.
drawWalletColumn :: Text -> AddressInEra -> Maybe (Map TxIn (TxOut CtxUTxO)) -> UTCTime -> Widget Name Source #
Render one L1 wallet column under the given header: a spinner while the L1 query is in flight, otherwise the UTxO listing (or a placeholder when empty).
drawFuelColumn :: NetworkId -> Maybe (VerificationKey PaymentKey) -> Maybe (Map TxIn (TxOut CtxUTxO)) -> UTCTime -> Widget Name Source #
Render the Fuel column: the node's internal-wallet UTxO usable to pay for
layer 1 protocol transactions. Display-only; never used to commit. Shows a
hint when no fuel key was configured (no --fuel-key).
drawFocusPanel :: NetworkId -> VerificationKey PaymentKey -> UTCTime -> Connection -> Widget Name Source #
The focus panel shows the active head state in detail. Used by both the Funds tab (L2 section) and the Modal tab.
drawFocusPanelOpen :: NetworkId -> VerificationKey PaymentKey -> UTxO -> UTxO -> [PendingIncrement] -> UTCTime -> OpenScreen -> Widget Name Source #
Focus panel for an Open head: dispatches to home view or the active modal-form view.
drawFocusPanelClosed :: NetworkId -> VerificationKey PaymentKey -> UTxO -> [PendingIncrement] -> UTCTime -> ClosedState -> Widget Name Source #
Focus panel for a Closed head: contestation countdown, active UTxO, pending commits.
drawFocusPanelFanout :: NetworkId -> VerificationKey PaymentKey -> UTxO -> [PendingIncrement] -> UTCTime -> Widget Name Source #
Focus panel when fanout is possible.
drawFocusPanelFanningOut :: NetworkId -> VerificationKey PaymentKey -> FanoutProgressMode -> UTxO -> [PendingIncrement] -> UTCTime -> Widget Name Source #
Focus panel while a selective partial fanout is in progress: shows what is still to be fanned out.
drawFocusPanelFinal :: NetworkId -> VerificationKey PaymentKey -> UTxO -> [PendingIncrement] -> UTCTime -> Widget Name Source #
Focus panel for a finalised head.
drawPendingCommits :: AddressInEra -> [PendingIncrement] -> UTCTime -> [Widget Name] Source #
Shared "Pending commits" tail for the Funds tab's focus-panel
variants (Closed, FanoutPossible, Final). Returns a list of widgets to be
spliced into a surrounding vBox.
drawRemainingDepositDeadline :: UTCTime -> UTCTime -> Widget Name Source #
Render the remaining time before a deposit becomes recoverable, or a "ready to recover" hint once the deadline has passed.
drawPendingIncrement :: AddressInEra -> [PendingIncrement] -> UTCTime -> Widget Name Source #
Render the list of pending deposit/increment entries with their status, UTxO outputs, and remaining deadline.
drawRecoverFormWithDetail :: AddressInEra -> Form TxId e Name -> [PendingIncrement] -> UTCTime -> Widget Name Source #
Render the recover modal: a radio list of pending deposit ids on top, and a detail panel for the currently-focused deposit (status, deadline, UTxO outputs) below. Keeps one selection per deposit instead of one per output.
drawRecoverDetail :: AddressInEra -> TxId -> [PendingIncrement] -> UTCTime -> Widget Name Source #
Detail panel for one pending deposit: full TxId, current status, remaining time to the deposit deadline, and the per-output UTxO listing.