Updated on 2026-08-14

This commit is contained in:
Tangem 2024-11-05 16:29:41 +04:00
parent c32507b283
commit bed70c4dc8
10 changed files with 120 additions and 21 deletions

View file

@ -14,6 +14,7 @@ dependencies {
implementation(projects.common)
implementation(projects.libs.auth)
implementation(projects.libs.blockchainSdk)
implementation(projects.domain.core)
implementation(projects.domain.demo)
implementation(projects.domain.models)
implementation(projects.domain.tokens.models)

View file

@ -1,8 +1,10 @@
package com.tangem.domain.exchange
import com.tangem.domain.core.lce.Lce
import com.tangem.domain.models.scan.ScanResponse
import com.tangem.domain.tokens.model.CryptoCurrency
import com.tangem.domain.wallets.models.UserWalletId
import kotlinx.coroutines.flow.Flow
/**
* Manager that holds info about available actions as Sell and Buy
@ -14,4 +16,8 @@ interface RampStateManager {
fun availableForSell(cryptoCurrency: CryptoCurrency): Boolean
suspend fun availableForSwap(userWalletId: UserWalletId, cryptoCurrency: CryptoCurrency): Boolean
fun getBuyInitializationStatus(): Flow<Lce<Throwable, Any>>
fun getSellInitializationStatus(): Flow<Lce<Throwable, Any>>
}