Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-02 18:48:42 +04:00
parent a540a98d01
commit 47d119c2da
6 changed files with 69 additions and 1 deletions

View file

@ -2,6 +2,7 @@ package com.tangem.data.common.account
import com.tangem.datasource.api.tangemTech.models.account.GetWalletAccountsResponse
import com.tangem.domain.models.wallet.UserWalletId
import kotlinx.coroutines.flow.Flow
/**
* Component for fetching wallet accounts
@ -14,6 +15,9 @@ interface WalletAccountsFetcher {
@Throws
suspend fun fetch(userWalletId: UserWalletId): GetWalletAccountsResponse
/** Get wallet accounts by [userWalletId] */
fun get(userWalletId: UserWalletId): Flow<GetWalletAccountsResponse>
/** Get saved wallet accounts by [userWalletId] */
suspend fun getSaved(userWalletId: UserWalletId): GetWalletAccountsResponse?
}