From d0243ed9f50c4d78511b04650a03e714832f3fd0 Mon Sep 17 00:00:00 2001 From: Tangem Date: Wed, 29 Nov 2023 17:54:31 +0400 Subject: [PATCH] Updated on 2026-08-14 --- .../state/factory/TokenDetailsLoadedBalanceConverter.kt | 4 ++-- ...kt => TokenDetailsPendingTxToTransactionStateConverter.kt} | 4 +++- .../TokenDetailsTxHistoryTransactionStateConverter.kt | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) rename features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/{TokenDetailsTxHistoryToTransactionStateConverter.kt => TokenDetailsPendingTxToTransactionStateConverter.kt} (96%) diff --git a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/TokenDetailsLoadedBalanceConverter.kt b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/TokenDetailsLoadedBalanceConverter.kt index 0710f995f6..f34e750f13 100644 --- a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/TokenDetailsLoadedBalanceConverter.kt +++ b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/TokenDetailsLoadedBalanceConverter.kt @@ -13,7 +13,7 @@ import com.tangem.domain.tokens.model.CryptoCurrencyStatus import com.tangem.feature.tokendetails.presentation.tokendetails.state.TokenDetailsBalanceBlockState import com.tangem.feature.tokendetails.presentation.tokendetails.state.TokenDetailsState import com.tangem.feature.tokendetails.presentation.tokendetails.state.components.TokenDetailsNotification -import com.tangem.feature.tokendetails.presentation.tokendetails.state.factory.txhistory.TokenDetailsTxHistoryToTransactionStateConverter +import com.tangem.feature.tokendetails.presentation.tokendetails.state.factory.txhistory.TokenDetailsPendingTxToTransactionStateConverter import com.tangem.feature.tokendetails.presentation.tokendetails.viewmodels.TokenDetailsClickIntents import com.tangem.utils.converter.Converter import kotlinx.collections.immutable.persistentListOf @@ -29,7 +29,7 @@ internal class TokenDetailsLoadedBalanceConverter( ) : Converter, TokenDetailsState> { private val txHistoryItemConverter by lazy { - TokenDetailsTxHistoryToTransactionStateConverter(symbol, decimals, clickIntents) + TokenDetailsPendingTxToTransactionStateConverter(symbol, decimals, clickIntents) } override fun convert(value: Either): TokenDetailsState { diff --git a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/TokenDetailsTxHistoryToTransactionStateConverter.kt b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/TokenDetailsPendingTxToTransactionStateConverter.kt similarity index 96% rename from features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/TokenDetailsTxHistoryToTransactionStateConverter.kt rename to features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/TokenDetailsPendingTxToTransactionStateConverter.kt index 8ae9a9ac43..6ba156961c 100644 --- a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/TokenDetailsTxHistoryToTransactionStateConverter.kt +++ b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/TokenDetailsPendingTxToTransactionStateConverter.kt @@ -15,7 +15,9 @@ import com.tangem.utils.toFormattedCurrencyString import org.joda.time.DateTime import org.joda.time.DateTimeZone -internal class TokenDetailsTxHistoryToTransactionStateConverter( +// FIXME: Refactoring needed +/** Same as [TokenDetailsTxHistoryTransactionStateConverter] but with other timestamp format */ +internal class TokenDetailsPendingTxToTransactionStateConverter( private val symbol: String, private val decimals: Int, private val clickIntents: TokenDetailsClickIntents, diff --git a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/TokenDetailsTxHistoryTransactionStateConverter.kt b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/TokenDetailsTxHistoryTransactionStateConverter.kt index 3b19f5da71..22d68befc8 100644 --- a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/TokenDetailsTxHistoryTransactionStateConverter.kt +++ b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/txhistory/TokenDetailsTxHistoryTransactionStateConverter.kt @@ -13,6 +13,8 @@ import com.tangem.utils.converter.Converter import com.tangem.utils.toBriefAddressFormat import com.tangem.utils.toFormattedCurrencyString +// FIXME: Refactoring needed +/** Same as [TokenDetailsPendingTxToTransactionStateConverter] but with other timestamp format */ internal class TokenDetailsTxHistoryTransactionStateConverter( private val symbol: String, private val decimals: Int,