txStatusExplanation function

String txStatusExplanation(
  1. WalletLocalizations l10n,
  2. TxStatus s
)

Plain-language explanation of the status for the detail sheet.

Implementation

String txStatusExplanation(WalletLocalizations l10n, TxStatus s) => switch (s) {
  TxStatus_Queued() => l10n.walletTxExplainQueued,
  TxStatus_Pending() => l10n.walletTxExplainPending,
  TxStatus_Confirmed() => l10n.walletTxExplainConfirmed,
  TxStatus_Expired() => l10n.walletTxExplainExpired,
  TxStatus_Failed() => l10n.walletTxExplainFailed,
  // The unknown LABEL reads as Pending (see txStatusLabel), but the
  // explanatory sentence must not AFFIRM a broadcast the binding can't
  // verify — a neutral, honest unknown instead.
  TxStatus_Unknown() => l10n.walletTxExplainUnknown,
};