WalletStatus

sealed class WalletStatus

UI state for WalletStatusPanel / WalletPanelViewModel.

The panel walks a host's wallet through "no wallet yet → loading → funded/registered → maybe error". Each variant maps 1:1 to what the pill + sheet render. See WalletPanelViewModel for the transitions.

Inheritors

Types

Link copied to clipboard
data class Error(val message: String) : WalletStatus

SDK couldn't build or balance couldn't be read.

Link copied to clipboard
data class Loading(val stage: String) : WalletStatus

Building MidnightSdk and reading the first balance. stage feeds the sheet's status line.

Link copied to clipboard
data object None : WalletStatus

No SDK built yet — first launch, or after a reset.

Link copied to clipboard
data class Ready(val address: String, val shieldedAddress: String, val balance: WalletBalance, val busy: String? = null, val message: String? = null) : WalletStatus

SDK ready, latest balance known.

Link copied to clipboard

No sigil forged yet — wallet bootstrap can't proceed because the BIP-39 seed is derived from the passkey PRF. The host should render a "forge your sigil to continue" affordance and pump the user to com.midnight.kuira.dapp.sigil.SigilStatusPanel; once the forge completes the next refreshBalance call will succeed.