Updated on 2026-08-14

This commit is contained in:
Tangem 2025-01-22 10:09:30 +05:00
commit bb541e6a3f
10 changed files with 21 additions and 1 deletions

View file

@ -149,5 +149,6 @@ internal val Blockchain.mercuryoNetwork: String?
Blockchain.Clore -> null
Blockchain.OdysseyChain, Blockchain.OdysseyChainTestnet -> null
Blockchain.Bitrock, Blockchain.BitrockTestnet -> null
Blockchain.Sonic, Blockchain.SonicTestnet -> null
}
}

View file

@ -150,4 +150,5 @@ internal val Blockchain.moonPaySupportedCurrency: MoonPaySupportedCurrency?
VanarChainTestnet -> null
OdysseyChain, OdysseyChainTestnet -> null
Bitrock, BitrockTestnet -> null
Sonic, SonicTestnet -> null
}

View file

@ -26,5 +26,9 @@
{
"name": "odyssey",
"version": "undefined"
},
{
"name": "sonic",
"version": "undefined"
}
]

View file

@ -87,6 +87,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"fact0rn" -> R.drawable.img_fact0rn_22
"odyssey", "odyssey/test" -> R.drawable.img_odyssey_chain_22
"bitrock", "bitrock/test" -> R.drawable.img_bitrock_22
"sonic", "sonic/test" -> R.drawable.ic_alert_24 // todo Sonic [REDACTED_TASK_KEY]
else -> R.drawable.ic_alert_24
}
}
@ -172,6 +173,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"fact0rn" -> R.drawable.img_fact0rn_22
"odyssey", "odyssey/test" -> R.drawable.img_odyssey_chain_22
"bitrock", "bitrock/test" -> R.drawable.img_bitrock_22
"sonic", "sonic/test" -> R.drawable.ic_alert_24 // todo Sonic [REDACTED_TASK_KEY]
else -> R.drawable.ic_alert_24
}
}
@ -260,6 +262,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"fact0rn" -> R.drawable.ic_fact0rn_22
"odyssey", "odyssey/test" -> R.drawable.ic_odyssey_chain_22
"bitrock", "bitrock/test" -> R.drawable.ic_bitrock_22
"sonic", "sonic/test" -> R.drawable.ic_alert_24 // todo Sonic [REDACTED_TASK_KEY]
else -> R.drawable.ic_alert_24
}
}

View file

@ -294,6 +294,7 @@ private fun Blockchain.getSupportedTransactionExtras(): Network.TransactionExtra
Blockchain.VanarChainTestnet,
Blockchain.OdysseyChain, Blockchain.OdysseyChainTestnet,
Blockchain.Bitrock, Blockchain.BitrockTestnet,
Blockchain.Sonic, Blockchain.SonicTestnet,
-> Network.TransactionExtrasType.NONE
// endregion
}

View file

@ -194,6 +194,8 @@ data object Wallet2CardConfig : CardConfig {
Blockchain.OdysseyChainTestnet -> EllipticCurve.Secp256k1
Blockchain.Bitrock -> EllipticCurve.Secp256k1
Blockchain.BitrockTestnet -> EllipticCurve.Secp256k1
Blockchain.Sonic -> EllipticCurve.Secp256k1
Blockchain.SonicTestnet -> EllipticCurve.Secp256k1
}
}
}

View file

@ -151,6 +151,8 @@ class Wallet2CardConfigTest {
Blockchain.OdysseyChainTestnet to EllipticCurve.Secp256k1,
Blockchain.Bitrock to EllipticCurve.Secp256k1,
Blockchain.BitrockTestnet to EllipticCurve.Secp256k1,
Blockchain.Sonic to EllipticCurve.Secp256k1,
Blockchain.SonicTestnet to EllipticCurve.Secp256k1,
)
@Test

View file

@ -980,6 +980,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
VanarChainTestnet,
OdysseyChain, OdysseyChainTestnet,
Bitrock, BitrockTestnet,
Sonic, SonicTestnet,
-> Fee.Common(feeAmount)
// endregion
}

View file

@ -88,7 +88,7 @@ markdownComposeView = "0.5.4"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "develop-910"
tangemBlockchainSdk = "develop-911"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "develop-421"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^

View file

@ -152,6 +152,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"dione/test" -> Blockchain.OdysseyChainTestnet
"bitrock" -> Blockchain.Bitrock
"bitrock/test" -> Blockchain.BitrockTestnet
"sonic" -> Blockchain.Sonic
"sonic/test" -> Blockchain.SonicTestnet
else -> null
}
}
@ -301,6 +303,8 @@ fun Blockchain.toNetworkId(): String {
Blockchain.OdysseyChainTestnet -> "dione/test"
Blockchain.Bitrock -> "bitrock"
Blockchain.BitrockTestnet -> "bitrock/test"
Blockchain.Sonic -> "sonic"
Blockchain.SonicTestnet -> "sonic/test"
}
}
@ -398,6 +402,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.Clore -> "clore-ai"
Blockchain.OdysseyChain, Blockchain.OdysseyChainTestnet -> "dione"
Blockchain.Bitrock, Blockchain.BitrockTestnet -> "bitrock"
Blockchain.Sonic, Blockchain.SonicTestnet -> "sonic-3"
}
}