Updated on 2026-08-14
This commit is contained in:
parent
7228c72553
commit
5b60d94e60
29 changed files with 1034 additions and 110 deletions
|
|
@ -9,6 +9,9 @@ import com.tangem.domain.wallets.models.UserWalletId
|
|||
*
|
||||
[REDACTED_AUTHOR]
|
||||
*/
|
||||
|
||||
typealias BackendId = String
|
||||
|
||||
class HasMissedDerivationsUseCase(
|
||||
private val derivationsRepository: DerivationsRepository,
|
||||
) {
|
||||
|
|
@ -16,7 +19,7 @@ class HasMissedDerivationsUseCase(
|
|||
/** Check if user [userWalletId] has missed derivations using map of [Network.ID] with extraDerivationPath */
|
||||
suspend operator fun invoke(
|
||||
userWalletId: UserWalletId,
|
||||
networksWithDerivationPath: Map<Network.ID, String?>,
|
||||
networksWithDerivationPath: Map<BackendId, String?>,
|
||||
): Boolean {
|
||||
return derivationsRepository.hasMissedDerivations(userWalletId, networksWithDerivationPath)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.tangem.domain.card.repository
|
|||
|
||||
import com.tangem.common.extensions.ByteArrayKey
|
||||
import com.tangem.crypto.hdWallet.DerivationPath
|
||||
import com.tangem.domain.card.BackendId
|
||||
import com.tangem.domain.tokens.model.CryptoCurrency
|
||||
import com.tangem.domain.tokens.model.Network
|
||||
import com.tangem.domain.wallets.models.UserWalletId
|
||||
|
|
@ -26,6 +27,6 @@ interface DerivationsRepository {
|
|||
/** Check if user [userWalletId] has missed derivations using map of [Network.ID] with extraDerivationPath */
|
||||
suspend fun hasMissedDerivations(
|
||||
userWalletId: UserWalletId,
|
||||
networksWithDerivationPath: Map<Network.ID, String?>,
|
||||
networksWithDerivationPath: Map<BackendId, String?>,
|
||||
): Boolean
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package com.tangem.domain.redux
|
||||
|
||||
import org.rekotlin.Action
|
||||
|
||||
sealed class OnboardingManageTokensAction : Action {
|
||||
data object CurrenciesSaved : OnboardingManageTokensAction()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue