Updated on 2026-08-14
This commit is contained in:
parent
27347a13e8
commit
6d3eb6de79
11 changed files with 332 additions and 67 deletions
|
|
@ -20,4 +20,7 @@ dependencies {
|
|||
|
||||
/** Core */
|
||||
implementation(projects.core.utils)
|
||||
|
||||
/** Libs */
|
||||
implementation(projects.libs.blockchainSdk)
|
||||
}
|
||||
|
|
@ -2,6 +2,8 @@ package com.tangem.lib.crypto
|
|||
|
||||
import com.tangem.blockchain.blockchains.xrp.XrpAddressService
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
import com.tangem.blockchainsdk.utils.fromNetworkId
|
||||
import com.tangem.blockchainsdk.utils.isSupportedInApp
|
||||
import com.tangem.lib.crypto.converter.XrpTaggedAddressConverter
|
||||
import com.tangem.lib.crypto.models.XrpTaggedAddress
|
||||
|
||||
|
|
@ -55,4 +57,8 @@ object BlockchainUtils {
|
|||
val blockchain = Blockchain.fromId(networkId)
|
||||
return blockchain == Blockchain.Binance || blockchain == Blockchain.BinanceTestnet
|
||||
}
|
||||
|
||||
fun isSupportedNetworkId(networkId: String): Boolean {
|
||||
return Blockchain.fromNetworkId(networkId)?.isSupportedInApp() ?: false
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue