Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-19 11:07:06 +04:00
parent c613890b9a
commit e96b780d21
10 changed files with 577 additions and 272 deletions

View file

@ -5,7 +5,7 @@ import com.tangem.domain.tokens.model.Network
import com.tangem.domain.wallets.models.UserWalletId
/**
* Fetcher of network status [Network] for wallet with [UserWalletId]
* Fetcher of network status [Network] for multi-currency wallet with [UserWalletId]
*
[REDACTED_AUTHOR]
*/

View file

@ -1,7 +1,6 @@
package com.tangem.domain.networks.single
import com.tangem.domain.core.flow.FlowFetcher
import com.tangem.domain.tokens.model.CryptoCurrency
import com.tangem.domain.tokens.model.Network
import com.tangem.domain.wallets.models.UserWalletId
@ -12,18 +11,11 @@ import com.tangem.domain.wallets.models.UserWalletId
*/
interface SingleNetworkStatusFetcher : FlowFetcher<SingleNetworkStatusFetcher.Params> {
/** Params */
sealed interface Params {
val userWalletId: UserWalletId
val network: Network
data class Simple(override val userWalletId: UserWalletId, override val network: Network) : Params
data class Prepared(
override val userWalletId: UserWalletId,
override val network: Network,
val addedNetworkCurrencies: Set<CryptoCurrency>,
) : Params
}
/**
* Params
*
* @property userWalletId user wallet id
* @property network network
*/
data class Params(val userWalletId: UserWalletId, val network: Network)
}