Updated on 2026-08-14
This commit is contained in:
parent
6c16caedba
commit
3bbdbbb5a3
16 changed files with 286 additions and 73 deletions
|
|
@ -0,0 +1,15 @@
|
|||
package com.tangem.domain.nft
|
||||
|
||||
import com.tangem.domain.tokens.model.Network
|
||||
import com.tangem.domain.tokens.model.NetworkStatus
|
||||
import com.tangem.domain.tokens.repository.NetworksRepository
|
||||
import com.tangem.domain.wallets.models.UserWalletId
|
||||
|
||||
class GetNFTNetworkStatusUseCase(
|
||||
private val networksRepository: NetworksRepository,
|
||||
) {
|
||||
|
||||
suspend operator fun invoke(userWalletId: UserWalletId, network: Network): NetworkStatus? = networksRepository
|
||||
.getNetworkStatusesSync(userWalletId, setOf(network), false)
|
||||
.firstOrNull { it.network == network }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue