Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-25 10:59:42 +04:00
parent ff31c97c91
commit 1212d85e91
12 changed files with 33 additions and 18 deletions

1
domain/common/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/build

View file

@ -0,0 +1,19 @@
plugins {
alias(deps.plugins.kotlin.jvm)
alias(deps.plugins.kotlin.serialization)
id("configuration")
}
dependencies {
api(deps.kotlin.coroutines)
api(deps.arrow.core)
api(deps.arrow.fx)
api(projects.domain.models)
implementation(deps.kotlin.serialization)
testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit)
testImplementation(deps.test.mockk)
testImplementation(deps.test.truth)
}

View file

@ -1,12 +1,7 @@
package com.tangem.domain.core.wallets
package com.tangem.domain.common.wallets
import arrow.core.Either
import com.tangem.domain.core.wallets.error.DeleteWalletError
import com.tangem.domain.core.wallets.error.LockWalletsError
import com.tangem.domain.core.wallets.error.SaveWalletError
import com.tangem.domain.core.wallets.error.SelectWalletError
import com.tangem.domain.core.wallets.error.SetLockError
import com.tangem.domain.core.wallets.error.UnlockWalletError
import com.tangem.domain.common.wallets.error.*
import com.tangem.domain.models.scan.ScanResponse
import com.tangem.domain.models.wallet.UserWallet
import com.tangem.domain.models.wallet.UserWalletId
@ -18,8 +13,8 @@ import kotlinx.coroutines.flow.StateFlow
*
* TODO tests [REDACTED_TASK_KEY]
*
* @see com.tangem.domain.models.wallet.UserWallet
* @see com.tangem.domain.models.wallet.UserWalletId
* @see UserWallet
* @see UserWalletId
*/
interface UserWalletsListRepository {

View file

@ -1,4 +1,4 @@
package com.tangem.domain.core.wallets.error
package com.tangem.domain.common.wallets.error
sealed interface DeleteWalletError {

View file

@ -1,4 +1,4 @@
package com.tangem.domain.core.wallets.error
package com.tangem.domain.common.wallets.error
interface LockWalletsError {

View file

@ -1,4 +1,4 @@
package com.tangem.domain.core.wallets.error
package com.tangem.domain.common.wallets.error
sealed interface SaveFirstColdWalletError {
data object CreateWalletError : SaveFirstColdWalletError

View file

@ -1,4 +1,4 @@
package com.tangem.domain.core.wallets.error
package com.tangem.domain.common.wallets.error
/**
[REDACTED_AUTHOR]

View file

@ -1,4 +1,4 @@
package com.tangem.domain.core.wallets.error
package com.tangem.domain.common.wallets.error
sealed interface SelectWalletError {

View file

@ -1,4 +1,4 @@
package com.tangem.domain.core.wallets.error
package com.tangem.domain.common.wallets.error
sealed interface SetLockError {

View file

@ -1,4 +1,4 @@
package com.tangem.domain.core.wallets.error
package com.tangem.domain.common.wallets.error
sealed interface UnlockWalletError {

View file

@ -5,10 +5,9 @@ plugins {
}
dependencies {
api(deps.kotlin.coroutines)
api(deps.arrow.core)
api(deps.arrow.fx)
api(projects.domain.models)
api(deps.kotlin.coroutines)
implementation(deps.kotlin.serialization)

View file

@ -300,6 +300,7 @@ include(":domain:legacy")
include(":domain:account")
include(":domain:account:status")
include(":domain:card")
include(":domain:common")
include(":domain:core")
include(":domain:demo")
include(":domain:demo:models")