Updated on 2026-08-14
This commit is contained in:
parent
ff31c97c91
commit
1212d85e91
12 changed files with 33 additions and 18 deletions
1
domain/common/.gitignore
vendored
Normal file
1
domain/common/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/build
|
||||
19
domain/common/build.gradle.kts
Normal file
19
domain/common/build.gradle.kts
Normal 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)
|
||||
}
|
||||
|
|
@ -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 {
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.tangem.domain.core.wallets.error
|
||||
package com.tangem.domain.common.wallets.error
|
||||
|
||||
sealed interface DeleteWalletError {
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.tangem.domain.core.wallets.error
|
||||
package com.tangem.domain.common.wallets.error
|
||||
|
||||
interface LockWalletsError {
|
||||
|
||||
|
|
@ -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
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.tangem.domain.core.wallets.error
|
||||
package com.tangem.domain.common.wallets.error
|
||||
|
||||
/**
|
||||
[REDACTED_AUTHOR]
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.tangem.domain.core.wallets.error
|
||||
package com.tangem.domain.common.wallets.error
|
||||
|
||||
sealed interface SelectWalletError {
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.tangem.domain.core.wallets.error
|
||||
package com.tangem.domain.common.wallets.error
|
||||
|
||||
sealed interface SetLockError {
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.tangem.domain.core.wallets.error
|
||||
package com.tangem.domain.common.wallets.error
|
||||
|
||||
sealed interface UnlockWalletError {
|
||||
|
||||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue