Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-21 17:02:18 +04:00
parent 4b6a093ba9
commit f942073ff1
10 changed files with 20 additions and 27 deletions

View file

@ -24,25 +24,15 @@ dependencies {
// endregion
// region Project - Domain
implementation(projects.domain.core)
implementation(projects.domain.demo)
implementation(projects.domain.legacy)
implementation(projects.domain.models)
api(projects.domain.models)
implementation(projects.domain.networks)
implementation(projects.domain.tokens.models)
implementation(projects.domain.txhistory.models)
implementation(projects.domain.wallets)
implementation(projects.domain.wallets.models)
// endregion
// region Project - Libs
implementation(projects.libs.blockchainSdk)
// endregion
// region Tangem libraries
implementation(tangemDeps.blockchain)
// endregion
// region DI
implementation(deps.hilt.android)
kapt(deps.hilt.kapt)
@ -60,7 +50,8 @@ dependencies {
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk)
testImplementation(deps.test.truth)
testImplementation(projects.common.test)
testImplementation(tangemDeps.blockchain)
testImplementation(tangemDeps.card.core)
testImplementation(projects.common.test)
// endregion
}

View file

@ -5,9 +5,9 @@ import com.tangem.data.networks.store.NetworksStatusesStoreV2
import com.tangem.data.networks.store.storeStatus
import com.tangem.data.networks.utils.NetworkStatusFactory
import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.network.CryptoCurrencyAddress
import com.tangem.domain.models.network.Network
import com.tangem.domain.networks.repository.NetworksRepository
import com.tangem.domain.tokens.model.CryptoCurrencyAddress
import com.tangem.domain.walletmanager.WalletManagersFacade
import com.tangem.domain.wallets.models.UserWalletId
import com.tangem.utils.coroutines.CoroutineDispatcherProvider

View file

@ -7,8 +7,8 @@ import com.tangem.data.common.currency.CardCryptoCurrencyFactory
import com.tangem.data.networks.store.NetworksStatusesStoreV2
import com.tangem.data.networks.store.storeStatus
import com.tangem.data.networks.utils.NetworkStatusFactory
import com.tangem.domain.models.network.CryptoCurrencyAddress
import com.tangem.domain.models.network.NetworkStatus
import com.tangem.domain.tokens.model.CryptoCurrencyAddress
import com.tangem.domain.walletmanager.WalletManagersFacade
import com.tangem.domain.walletmanager.model.UpdateWalletManagerResult
import com.tangem.domain.wallets.models.UserWalletId

View file

@ -0,0 +1,11 @@
package com.tangem.domain.models.network
import com.tangem.domain.models.currency.CryptoCurrency
/**
* Crypto currency address
*
* @property cryptoCurrency crypto currency
* @property address default address
*/
data class CryptoCurrencyAddress(val cryptoCurrency: CryptoCurrency, val address: String)

View file

@ -6,6 +6,5 @@ plugins {
dependencies {
api(projects.domain.core)
api(projects.domain.models)
api(projects.domain.tokens.models)
api(projects.domain.wallets.models)
}

View file

@ -1,7 +1,7 @@
package com.tangem.domain.networks.repository
import com.tangem.domain.models.network.CryptoCurrencyAddress
import com.tangem.domain.models.network.Network
import com.tangem.domain.tokens.model.CryptoCurrencyAddress
import com.tangem.domain.wallets.models.UserWalletId
/**

View file

@ -1,8 +0,0 @@
package com.tangem.domain.tokens.model
import com.tangem.domain.models.currency.CryptoCurrency
data class CryptoCurrencyAddress(
val cryptoCurrency: CryptoCurrency,
val address: String,
)

View file

@ -1,8 +1,8 @@
package com.tangem.domain.tokens
import com.tangem.domain.models.network.CryptoCurrencyAddress
import com.tangem.domain.models.network.Network
import com.tangem.domain.networks.repository.NetworksRepository
import com.tangem.domain.tokens.model.CryptoCurrencyAddress
import com.tangem.domain.wallets.models.UserWalletId
class GetNetworkAddressesUseCase(

View file

@ -2,9 +2,9 @@ package com.tangem.domain.transaction.usecase
import arrow.core.left
import arrow.core.right
import com.tangem.domain.models.network.CryptoCurrencyAddress
import com.tangem.domain.models.network.Network
import com.tangem.domain.models.network.NetworkAddress
import com.tangem.domain.tokens.model.CryptoCurrencyAddress
import com.tangem.domain.transaction.WalletAddressServiceRepository
import com.tangem.domain.transaction.error.AddressValidation
import com.tangem.domain.transaction.error.AddressValidationResult

View file

@ -9,12 +9,12 @@ import com.tangem.core.decompose.model.Model
import com.tangem.core.decompose.model.ParamsContainer
import com.tangem.core.decompose.navigation.Router
import com.tangem.core.ui.extensions.resourceReference
import com.tangem.domain.models.network.CryptoCurrencyAddress
import com.tangem.domain.qrscanning.models.SourceType
import com.tangem.domain.qrscanning.usecases.ListenToQrScanningUseCase
import com.tangem.domain.qrscanning.usecases.ParseQrCodeUseCase
import com.tangem.domain.tokens.GetCryptoCurrencyUseCase
import com.tangem.domain.tokens.GetNetworkAddressesUseCase
import com.tangem.domain.tokens.model.CryptoCurrencyAddress
import com.tangem.domain.transaction.usecase.IsUtxoConsolidationAvailableUseCase
import com.tangem.domain.transaction.usecase.ValidateWalletAddressUseCase
import com.tangem.domain.transaction.usecase.ValidateWalletMemoUseCase