Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-05 14:01:26 +03:00
commit 9aacdb2ed3
695 changed files with 22022 additions and 5116 deletions

View file

@ -1,6 +1,7 @@
package com.tangem.domain.markets
import com.tangem.domain.markets.repositories.MarketsTokenRepository
import com.tangem.domain.models.account.DerivationIndex
import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.wallet.UserWalletId
@ -11,11 +12,13 @@ class GetTokenMarketCryptoCurrency(
userWalletId: UserWalletId,
tokenMarketParams: TokenMarketParams,
network: TokenMarketInfo.Network,
accountIndex: DerivationIndex,
): CryptoCurrency? {
return marketsTokenRepository.createCryptoCurrency(
userWalletId = userWalletId,
token = tokenMarketParams,
network = network,
accountIndex = accountIndex,
)
}
}

View file

@ -25,6 +25,7 @@ import kotlinx.coroutines.withContext
*
[REDACTED_AUTHOR]
*/
@Deprecated("Use SaveCryptoCurrenciesUseCase")
@Suppress("LongParameterList")
class SaveMarketTokensUseCase(
private val derivationsRepository: DerivationsRepository,

View file

@ -1,6 +1,7 @@
package com.tangem.domain.markets.repositories
import com.tangem.domain.markets.*
import com.tangem.domain.models.account.DerivationIndex
import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.wallet.UserWalletId
import kotlinx.coroutines.flow.Flow
@ -45,6 +46,7 @@ interface MarketsTokenRepository {
userWalletId: UserWalletId,
token: TokenMarketParams,
network: TokenMarketInfo.Network,
accountIndex: DerivationIndex? = null,
): CryptoCurrency?
/**