Updated on 2026-08-14
This commit is contained in:
commit
b95c030fb4
11 changed files with 26 additions and 4 deletions
|
|
@ -163,5 +163,6 @@ internal val Blockchain.moonPaySupportedCurrency: MoonPaySupportedCurrency?
|
|||
Linea, LineaTestnet -> null
|
||||
ArbitrumNova -> null
|
||||
Plasma, PlasmaTestnet -> null
|
||||
SeiEvm, SeiEvmTestnet -> null
|
||||
Monad, MonadTestnet -> null
|
||||
}
|
||||
|
|
@ -225,6 +225,8 @@ private fun iconSetOf(blockchain: Blockchain): IconSet? = when (blockchain) {
|
|||
-> IconSet(active = R.drawable.img_scroll_22, greyedOut = R.drawable.ic_scroll_22)
|
||||
Blockchain.Sei,
|
||||
Blockchain.SeiTestnet,
|
||||
Blockchain.SeiEvm,
|
||||
Blockchain.SeiEvmTestnet,
|
||||
-> IconSet(active = R.drawable.img_sei_22, greyedOut = R.drawable.ic_sei_22)
|
||||
Blockchain.Shibarium,
|
||||
Blockchain.ShibariumTestnet,
|
||||
|
|
|
|||
|
|
@ -106,7 +106,9 @@ internal class BlockchainIconsTest {
|
|||
Blockchain.Radiant -> R.drawable.img_radiant_22
|
||||
Blockchain.Ravencoin, Blockchain.RavencoinTestnet -> R.drawable.img_ravencoin_22
|
||||
Blockchain.Scroll, Blockchain.ScrollTestnet -> R.drawable.img_scroll_22
|
||||
Blockchain.Sei, Blockchain.SeiTestnet -> R.drawable.img_sei_22
|
||||
Blockchain.Sei, Blockchain.SeiTestnet,
|
||||
Blockchain.SeiEvm, Blockchain.SeiEvmTestnet,
|
||||
-> R.drawable.img_sei_22
|
||||
Blockchain.Shibarium, Blockchain.ShibariumTestnet -> R.drawable.img_shibarium_22
|
||||
Blockchain.Solana, Blockchain.SolanaTestnet -> R.drawable.img_solana_22
|
||||
Blockchain.Sonic, Blockchain.SonicTestnet -> R.drawable.img_sonic_22
|
||||
|
|
@ -226,7 +228,9 @@ internal class BlockchainIconsTest {
|
|||
Blockchain.Radiant -> R.drawable.ic_radiant_22
|
||||
Blockchain.Ravencoin, Blockchain.RavencoinTestnet -> R.drawable.ic_ravencoin_22
|
||||
Blockchain.Scroll, Blockchain.ScrollTestnet -> R.drawable.ic_scroll_22
|
||||
Blockchain.Sei, Blockchain.SeiTestnet -> R.drawable.ic_sei_22
|
||||
Blockchain.Sei, Blockchain.SeiTestnet,
|
||||
Blockchain.SeiEvm, Blockchain.SeiEvmTestnet,
|
||||
-> R.drawable.ic_sei_22
|
||||
Blockchain.Shibarium, Blockchain.ShibariumTestnet -> R.drawable.ic_shibarium_22
|
||||
Blockchain.Solana, Blockchain.SolanaTestnet -> R.drawable.ic_solana_16
|
||||
Blockchain.Sonic, Blockchain.SonicTestnet -> R.drawable.ic_sonic_22
|
||||
|
|
|
|||
|
|
@ -375,6 +375,7 @@ class NetworkFactory @Inject constructor(
|
|||
Blockchain.Linea, Blockchain.LineaTestnet,
|
||||
Blockchain.ArbitrumNova,
|
||||
Blockchain.Plasma, Blockchain.PlasmaTestnet,
|
||||
Blockchain.SeiEvm, Blockchain.SeiEvmTestnet,
|
||||
Blockchain.Monad, Blockchain.MonadTestnet,
|
||||
-> Network.TransactionExtrasType.NONE
|
||||
// endregion
|
||||
|
|
|
|||
|
|
@ -163,6 +163,7 @@ public val Blockchain.mercuryoNetwork: String?
|
|||
Blockchain.Linea, Blockchain.LineaTestnet -> null
|
||||
Blockchain.ArbitrumNova -> null
|
||||
Blockchain.Plasma, Blockchain.PlasmaTestnet -> null
|
||||
Blockchain.SeiEvm, Blockchain.SeiEvmTestnet -> null
|
||||
Blockchain.Monad, Blockchain.MonadTestnet -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -65,7 +65,9 @@ fun CardDTO.supportedBlockchains(
|
|||
*/
|
||||
private fun CardDTO.isBlockchainUnsupported(blockchain: Blockchain): Boolean {
|
||||
return when (blockchain) {
|
||||
Blockchain.Quai, Blockchain.QuaiTestnet -> {
|
||||
Blockchain.Quai, Blockchain.QuaiTestnet,
|
||||
Blockchain.SeiEvm, Blockchain.SeiEvmTestnet,
|
||||
-> {
|
||||
firmwareVersion <= FirmwareVersion.HDWalletAvailable
|
||||
}
|
||||
else -> false
|
||||
|
|
|
|||
|
|
@ -217,6 +217,8 @@ data object Wallet2CardConfig : CardConfig {
|
|||
Blockchain.ArbitrumNova -> EllipticCurve.Secp256k1
|
||||
Blockchain.Plasma -> EllipticCurve.Secp256k1
|
||||
Blockchain.PlasmaTestnet -> EllipticCurve.Secp256k1
|
||||
Blockchain.SeiEvm -> EllipticCurve.Secp256k1
|
||||
Blockchain.SeiEvmTestnet -> EllipticCurve.Secp256k1
|
||||
Blockchain.Monad -> EllipticCurve.Secp256k1
|
||||
Blockchain.MonadTestnet -> EllipticCurve.Secp256k1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -173,6 +173,8 @@ class Wallet2CardConfigTest {
|
|||
Blockchain.ArbitrumNova to EllipticCurve.Secp256k1,
|
||||
Blockchain.Plasma to EllipticCurve.Secp256k1,
|
||||
Blockchain.PlasmaTestnet to EllipticCurve.Secp256k1,
|
||||
Blockchain.SeiEvm to EllipticCurve.Secp256k1,
|
||||
Blockchain.SeiEvmTestnet to EllipticCurve.Secp256k1,
|
||||
Blockchain.Monad to EllipticCurve.Secp256k1,
|
||||
Blockchain.MonadTestnet to EllipticCurve.Secp256k1,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
# https://github.com/tangem/tangem-sdk-android/
|
||||
# https://github.com/tangem/vico
|
||||
|
||||
tangemBlockchainSdk = "releases-5.38-1551"
|
||||
tangemBlockchainSdk = "releases-5.38-1560"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "releases-5.38-615"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
|
|
@ -174,6 +174,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"arbitrum-nova" -> Blockchain.ArbitrumNova
|
||||
"plasma" -> Blockchain.Plasma
|
||||
"plasma/test" -> Blockchain.PlasmaTestnet
|
||||
"sei-v2" -> Blockchain.SeiEvm
|
||||
"sei-v2/test" -> Blockchain.SeiEvmTestnet
|
||||
"monad" -> Blockchain.Monad
|
||||
"monad/test" -> Blockchain.MonadTestnet
|
||||
else -> null
|
||||
|
|
@ -347,6 +349,8 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.ArbitrumNova -> "arbitrum-nova"
|
||||
Blockchain.Plasma -> "plasma"
|
||||
Blockchain.PlasmaTestnet -> "plasma/test"
|
||||
Blockchain.SeiEvm -> "sei-v2"
|
||||
Blockchain.SeiEvmTestnet -> "sei-v2/test"
|
||||
Blockchain.Monad -> "monad"
|
||||
Blockchain.MonadTestnet -> "monad/test"
|
||||
}
|
||||
|
|
@ -457,6 +461,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Linea, Blockchain.LineaTestnet -> "linea-ethereum"
|
||||
Blockchain.ArbitrumNova -> "arbitrum-nova-ethereum"
|
||||
Blockchain.Plasma, Blockchain.PlasmaTestnet -> "plasma"
|
||||
Blockchain.SeiEvm, Blockchain.SeiEvmTestnet -> "sei-v2"
|
||||
Blockchain.Monad, Blockchain.MonadTestnet -> "monad"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -177,6 +177,7 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
|
|||
Blockchain.ArbitrumNova,
|
||||
Blockchain.Quai,
|
||||
Blockchain.Plasma,
|
||||
Blockchain.SeiEvm,
|
||||
Blockchain.Monad,
|
||||
-> true
|
||||
Blockchain.Nexa, // unsupported network
|
||||
|
|
@ -253,6 +254,7 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
|
|||
Blockchain.QuaiTestnet,
|
||||
Blockchain.LineaTestnet,
|
||||
Blockchain.PlasmaTestnet,
|
||||
Blockchain.SeiEvmTestnet,
|
||||
Blockchain.MonadTestnet,
|
||||
-> false
|
||||
// endregion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue