Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-14 14:50:40 +04:00
parent aa03d39dc0
commit 49bd0090ff
18 changed files with 300 additions and 88 deletions

View file

@ -0,0 +1,21 @@
package com.tangem.domain.settings
import kotlinx.coroutines.flow.StateFlow
/**
* Manages the hot wallet creation restriction setting.
*
* When the restriction is enabled, users are forced to scan a physical Tangem card
* instead of being able to create a new software (hot) wallet.
*/
interface HotWalletRestrictionManager {
/** Observes the current restriction state as a [StateFlow]. */
fun isCreationEnabled(): StateFlow<Boolean>
/** Returns the latest cached restriction state synchronously. */
fun isCreationEnabledSync(): Boolean
/** Toggles the restriction state. No-op in production. */
suspend fun toggleCreationEnabled()
}