WalletBalanceUi

data class WalletBalanceUi(val nightTotal: String, val publicNight: String, val privateNight: String?, val statusLabel: String, val dust: String?, val dustRegistered: Boolean)

Display model for WalletBalanceCompact. Pre-formatted strings keep the component pure UI (no SDK types) so it previews and reuses freely.

NIGHT is one asset with two pools, both important: nightTotal is the headline (public + private); publicNight and privateNight are shown as an equal-weight split beneath it (private is null when there's none). DUST — a separate gas token — gets its own row.

Parameters

nightTotal

hero figure — formatted total NIGHT.

publicNight

formatted unshielded (public) NIGHT.

privateNight

formatted shielded (private) NIGHT, or null when there's none.

statusLabel

short status under the hero, e.g. "Synced" / "Syncing…".

dust

formatted (abbreviated) dust, or null while first-loading.

dustRegistered

true → ✓ on the dust row (only once a sync has settled, so it never contradicts an in-flight "Syncing dust…"); false → a Register affordance.

Constructors

Link copied to clipboard
constructor(nightTotal: String, publicNight: String, privateNight: String?, statusLabel: String, dust: String?, dustRegistered: Boolean)

Properties

Link copied to clipboard
val dust: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard