Updated on 2026-08-14

This commit is contained in:
Tangem 2024-07-18 13:11:19 +04:00
parent 1aba736b1e
commit 87def6a0a5
4 changed files with 6 additions and 0 deletions

View file

@ -16,12 +16,14 @@ interface UserWalletsListManager {
val userWallets: Flow<List<UserWallet>>
/** [Flow] with selected [UserWallet] updates */
@Deprecated("You should provide the selected wallet via routing parameters due to the scalability of the features")
val selectedUserWallet: Flow<UserWallet>
/** [List] with all saved [UserWallet]s updates */
val userWalletsSync: List<UserWallet>
/** Selected [UserWallet] */
@Deprecated("You should provide the selected wallet via routing parameters due to the scalability of the features")
val selectedUserWalletSync: UserWallet?
/** Indicates that the [UserWalletsListManager] contains at least one saved [UserWallet] */

View file

@ -17,6 +17,7 @@ import com.tangem.domain.wallets.models.UserWallet
*/
class GetSelectedWalletSyncUseCase(private val userWalletsListManager: UserWalletsListManager) {
@Deprecated("You should provide the selected wallet via routing parameters due to the scalability of the features")
operator fun invoke(): Either<GetUserWalletError, UserWallet> {
return either {
ensureNotNull(

View file

@ -16,6 +16,7 @@ import kotlinx.coroutines.flow.Flow
*/
class GetSelectedWalletUseCase(private val userWalletsListManager: UserWalletsListManager) {
@Deprecated("You should provide the selected wallet via routing parameters due to the scalability of the features")
operator fun invoke(): Either<GetUserWalletError, Flow<UserWallet>> {
return either {
userWalletsListManager.selectedUserWallet