Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-17 14:39:32 +04:00
parent 6b75b48f1e
commit 8e6eca1b4c
23 changed files with 327 additions and 216 deletions

View file

@ -0,0 +1,15 @@
package com.tangem.domain.common.wallets
import com.tangem.domain.models.wallet.UserWallet
/**
* Handler invoked when a user wallet becomes the active one.
*
* Side effects (analytics tracking context, Tangem SDK display config, access code request policy, etc.)
* follow switch-latest semantics: if a new selection arrives while a previous one is still being processed,
* the in-flight job is cancelled and only the latest selection is applied.
*/
interface UserWalletSelectedHandler {
suspend operator fun invoke(userWallet: UserWallet)
}