Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-05 10:16:43 +01:00
parent 6036c65b64
commit 80a13febdf
5 changed files with 33 additions and 33 deletions

View file

@ -44,6 +44,12 @@ internal class DefaultOnrampTransactionRepository(
}
}
override fun getAllTransactions(): Flow<List<OnrampTransaction>> {
return appPreferencesStore
.getObjectSet<OnrampTransactionDTO>(PreferencesKeys.ONRAMP_TRANSACTIONS_STATUSES_KEY)
.map { transactions -> transactions.map(transactionConverter::convert) }
}
override suspend fun getTransactionById(txId: String): OnrampTransaction? = withContext(dispatchers.io) {
val stored = appPreferencesStore.getObjectSetSync<OnrampTransactionDTO>(
PreferencesKeys.ONRAMP_TRANSACTIONS_STATUSES_KEY,