Updated on 2026-08-14

This commit is contained in:
Tangem 2025-02-06 18:53:34 +05:00
parent fc92be4f76
commit da84942643
11 changed files with 24 additions and 6 deletions

View file

@ -12,6 +12,16 @@
}
]
},
{
"id" : "kaspa",
"symbol" : "KAS",
"name" : "Kaspa",
"networks" : [
{
"networkId" : "kaspa/test"
}
]
},
{
"id" : "Dai Stablecoin-DAI",
"symbol" : "DAI",

View file

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

View file

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

View file

@ -32,7 +32,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"Kusama" -> R.drawable.img_kusama_22
"OPTIMISM", "OPTIMISM/test" -> R.drawable.img_optimism_22
"DASH" -> R.drawable.img_dash_22
"KAS" -> R.drawable.img_kaspa_22
"KAS", "KAS/test" -> R.drawable.img_kaspa_22
"The-Open-Network", "The-Open-Network/test" -> R.drawable.img_ton_22
"KAVA", "KAVA/test" -> R.drawable.img_kava_22
"ravencoin", "ravencoin/test" -> R.drawable.img_ravencoin_22
@ -122,7 +122,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"ethereumfair", "dischain" -> R.drawable.img_dischain_22
"kusama" -> R.drawable.img_kusama_22
"dash" -> R.drawable.img_dash_22
"kaspa" -> R.drawable.img_kaspa_22
"kaspa", "kaspa/test" -> R.drawable.img_kaspa_22
"ton" -> R.drawable.img_ton_22
"kava" -> R.drawable.img_kava_22
"ravencoin" -> R.drawable.img_ravencoin_22
@ -209,7 +209,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"Kusama" -> R.drawable.ic_kusama_16
"OPTIMISM", "OPTIMISM/test" -> R.drawable.ic_optimism_22
"DASH" -> R.drawable.ic_dash_22
"KAS" -> R.drawable.ic_kaspa_22
"KAS", "KAS/test" -> R.drawable.ic_kaspa_22
"The-Open-Network", "The-Open-Network/test" -> R.drawable.ic_ton_22
"KAVA", "KAVA/test" -> R.drawable.ic_kava_22
"ravencoin", "ravencoin/test" -> R.drawable.ic_ravencoin_22

View file

@ -214,6 +214,7 @@ private fun Blockchain.getSupportedTransactionExtras(): Network.TransactionExtra
Blockchain.EthereumPow,
Blockchain.EthereumPowTestnet,
Blockchain.Kaspa,
Blockchain.KaspaTestnet,
Blockchain.Telos,
Blockchain.TelosTestnet,
Blockchain.TONTestnet,

View file

@ -66,7 +66,7 @@ internal class ManagedCryptoCurrencyFactory(
createSource(
networkId = network.id,
contractAddress = network.address,
decimals = network.decimalCount ?: return@mapNotNull null,
decimals = network.decimalCount,
scanResponse = scanResponse,
)
} ?: emptyList(),

View file

@ -198,6 +198,7 @@ data object Wallet2CardConfig : CardConfig {
Blockchain.SonicTestnet -> EllipticCurve.Secp256k1
Blockchain.ApeChain -> EllipticCurve.Secp256k1
Blockchain.ApeChainTestnet -> EllipticCurve.Secp256k1
Blockchain.KaspaTestnet -> EllipticCurve.Secp256k1
}
}
}

View file

@ -155,6 +155,7 @@ class Wallet2CardConfigTest {
Blockchain.SonicTestnet to EllipticCurve.Secp256k1,
Blockchain.ApeChain to EllipticCurve.Secp256k1,
Blockchain.ApeChainTestnet to EllipticCurve.Secp256k1,
Blockchain.KaspaTestnet to EllipticCurve.Secp256k1,
)
@Test

View file

@ -904,6 +904,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
EthereumPow,
EthereumPowTestnet,
Kaspa,
KaspaTestnet,
Telos,
TelosTestnet,
TON,

View file

@ -89,7 +89,7 @@ markdownComposeView = "0.5.4"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "develop-940"
tangemBlockchainSdk = "develop-942"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "develop-432"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^

View file

@ -156,6 +156,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"sonic/test" -> Blockchain.SonicTestnet
"apechain" -> Blockchain.ApeChain
"apechain/test" -> Blockchain.ApeChainTestnet
"kaspa/test" -> Blockchain.KaspaTestnet
else -> null
}
}
@ -208,6 +209,7 @@ fun Blockchain.toNetworkId(): String {
Blockchain.OptimismTestnet -> "optimistic-ethereum/test"
Blockchain.Dash -> "dash"
Blockchain.Kaspa -> "kaspa"
Blockchain.KaspaTestnet -> "kaspa/test"
Blockchain.TON -> "the-open-network"
Blockchain.TONTestnet -> "the-open-network/test"
Blockchain.Kava -> "kava"
@ -344,7 +346,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.Kusama -> "kusama"
Blockchain.Optimism, Blockchain.OptimismTestnet -> "optimistic-ethereum"
Blockchain.Dash -> "dash"
Blockchain.Kaspa -> "kaspa"
Blockchain.Kaspa, Blockchain.KaspaTestnet -> "kaspa"
Blockchain.TON, Blockchain.TONTestnet -> "the-open-network"
Blockchain.Kava, Blockchain.KavaTestnet -> "kava"
Blockchain.Ravencoin, Blockchain.RavencoinTestnet -> "ravencoin"