Updated on 2026-08-14

This commit is contained in:
Tangem 2025-01-22 15:13:34 +05:00
parent bb541e6a3f
commit e63b1eac67
11 changed files with 22 additions and 2 deletions

@ -1 +1 @@
Subproject commit 72d9d4b3c3f8e6604078798c4b5567327ed9b48a
Subproject commit 6f955d192f7edd876b9f096a30431adeb1594aeb

View file

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

View file

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

View file

@ -30,5 +30,9 @@
{
"name": "sonic",
"version": "undefined"
},
{
"name": "apechain",
"version": "undefined"
}
]

View file

@ -88,6 +88,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"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]
"apechain", "apechain/test" -> R.drawable.ic_alert_24 // todo ApeChain [REDACTED_TASK_KEY]
else -> R.drawable.ic_alert_24
}
}
@ -174,6 +175,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"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]
"apechain", "apechain/test" -> R.drawable.ic_alert_24 // todo ApeChain [REDACTED_TASK_KEY]
else -> R.drawable.ic_alert_24
}
}
@ -263,6 +265,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"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]
"apechain", "apechain/test" -> R.drawable.ic_alert_24 // todo ApeChain [REDACTED_TASK_KEY]
else -> R.drawable.ic_alert_24
}
}

View file

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

View file

@ -196,6 +196,8 @@ data object Wallet2CardConfig : CardConfig {
Blockchain.BitrockTestnet -> EllipticCurve.Secp256k1
Blockchain.Sonic -> EllipticCurve.Secp256k1
Blockchain.SonicTestnet -> EllipticCurve.Secp256k1
Blockchain.ApeChain -> EllipticCurve.Secp256k1
Blockchain.ApeChainTestnet -> EllipticCurve.Secp256k1
}
}
}

View file

@ -153,6 +153,8 @@ class Wallet2CardConfigTest {
Blockchain.BitrockTestnet to EllipticCurve.Secp256k1,
Blockchain.Sonic to EllipticCurve.Secp256k1,
Blockchain.SonicTestnet to EllipticCurve.Secp256k1,
Blockchain.ApeChain to EllipticCurve.Secp256k1,
Blockchain.ApeChainTestnet to EllipticCurve.Secp256k1,
)
@Test

View file

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

View file

@ -88,7 +88,7 @@ markdownComposeView = "0.5.4"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "develop-911"
tangemBlockchainSdk = "develop-913"
#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

@ -154,6 +154,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"bitrock/test" -> Blockchain.BitrockTestnet
"sonic" -> Blockchain.Sonic
"sonic/test" -> Blockchain.SonicTestnet
"apechain" -> Blockchain.ApeChain
"apechain/test" -> Blockchain.ApeChainTestnet
else -> null
}
}
@ -305,6 +307,8 @@ fun Blockchain.toNetworkId(): String {
Blockchain.BitrockTestnet -> "bitrock/test"
Blockchain.Sonic -> "sonic"
Blockchain.SonicTestnet -> "sonic/test"
Blockchain.ApeChain -> "apechain"
Blockchain.ApeChainTestnet -> "apechain/test"
}
}
@ -403,6 +407,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.OdysseyChain, Blockchain.OdysseyChainTestnet -> "dione"
Blockchain.Bitrock, Blockchain.BitrockTestnet -> "bitrock"
Blockchain.Sonic, Blockchain.SonicTestnet -> "sonic-3"
Blockchain.ApeChain, Blockchain.ApeChainTestnet -> "apecoin"
}
}