Updated on 2026-08-14
This commit is contained in:
parent
fc92be4f76
commit
da84942643
11 changed files with 24 additions and 6 deletions
|
|
@ -12,6 +12,16 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id" : "kaspa",
|
||||||
|
"symbol" : "KAS",
|
||||||
|
"name" : "Kaspa",
|
||||||
|
"networks" : [
|
||||||
|
{
|
||||||
|
"networkId" : "kaspa/test"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id" : "Dai Stablecoin-DAI",
|
"id" : "Dai Stablecoin-DAI",
|
||||||
"symbol" : "DAI",
|
"symbol" : "DAI",
|
||||||
|
|
|
||||||
|
|
@ -151,5 +151,6 @@ internal val Blockchain.mercuryoNetwork: String?
|
||||||
Blockchain.Bitrock, Blockchain.BitrockTestnet -> null
|
Blockchain.Bitrock, Blockchain.BitrockTestnet -> null
|
||||||
Blockchain.Sonic, Blockchain.SonicTestnet -> null
|
Blockchain.Sonic, Blockchain.SonicTestnet -> null
|
||||||
Blockchain.ApeChain, Blockchain.ApeChainTestnet -> null
|
Blockchain.ApeChain, Blockchain.ApeChainTestnet -> null
|
||||||
|
Blockchain.KaspaTestnet -> null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -152,4 +152,5 @@ internal val Blockchain.moonPaySupportedCurrency: MoonPaySupportedCurrency?
|
||||||
Bitrock, BitrockTestnet -> null
|
Bitrock, BitrockTestnet -> null
|
||||||
Sonic, SonicTestnet -> null
|
Sonic, SonicTestnet -> null
|
||||||
ApeChain, ApeChainTestnet -> null
|
ApeChain, ApeChainTestnet -> null
|
||||||
|
KaspaTestnet -> null
|
||||||
}
|
}
|
||||||
|
|
@ -32,7 +32,7 @@ fun getActiveIconRes(blockchainId: String): Int {
|
||||||
"Kusama" -> R.drawable.img_kusama_22
|
"Kusama" -> R.drawable.img_kusama_22
|
||||||
"OPTIMISM", "OPTIMISM/test" -> R.drawable.img_optimism_22
|
"OPTIMISM", "OPTIMISM/test" -> R.drawable.img_optimism_22
|
||||||
"DASH" -> R.drawable.img_dash_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
|
"The-Open-Network", "The-Open-Network/test" -> R.drawable.img_ton_22
|
||||||
"KAVA", "KAVA/test" -> R.drawable.img_kava_22
|
"KAVA", "KAVA/test" -> R.drawable.img_kava_22
|
||||||
"ravencoin", "ravencoin/test" -> R.drawable.img_ravencoin_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
|
"ethereumfair", "dischain" -> R.drawable.img_dischain_22
|
||||||
"kusama" -> R.drawable.img_kusama_22
|
"kusama" -> R.drawable.img_kusama_22
|
||||||
"dash" -> R.drawable.img_dash_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
|
"ton" -> R.drawable.img_ton_22
|
||||||
"kava" -> R.drawable.img_kava_22
|
"kava" -> R.drawable.img_kava_22
|
||||||
"ravencoin" -> R.drawable.img_ravencoin_22
|
"ravencoin" -> R.drawable.img_ravencoin_22
|
||||||
|
|
@ -209,7 +209,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
|
||||||
"Kusama" -> R.drawable.ic_kusama_16
|
"Kusama" -> R.drawable.ic_kusama_16
|
||||||
"OPTIMISM", "OPTIMISM/test" -> R.drawable.ic_optimism_22
|
"OPTIMISM", "OPTIMISM/test" -> R.drawable.ic_optimism_22
|
||||||
"DASH" -> R.drawable.ic_dash_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
|
"The-Open-Network", "The-Open-Network/test" -> R.drawable.ic_ton_22
|
||||||
"KAVA", "KAVA/test" -> R.drawable.ic_kava_22
|
"KAVA", "KAVA/test" -> R.drawable.ic_kava_22
|
||||||
"ravencoin", "ravencoin/test" -> R.drawable.ic_ravencoin_22
|
"ravencoin", "ravencoin/test" -> R.drawable.ic_ravencoin_22
|
||||||
|
|
|
||||||
|
|
@ -214,6 +214,7 @@ private fun Blockchain.getSupportedTransactionExtras(): Network.TransactionExtra
|
||||||
Blockchain.EthereumPow,
|
Blockchain.EthereumPow,
|
||||||
Blockchain.EthereumPowTestnet,
|
Blockchain.EthereumPowTestnet,
|
||||||
Blockchain.Kaspa,
|
Blockchain.Kaspa,
|
||||||
|
Blockchain.KaspaTestnet,
|
||||||
Blockchain.Telos,
|
Blockchain.Telos,
|
||||||
Blockchain.TelosTestnet,
|
Blockchain.TelosTestnet,
|
||||||
Blockchain.TONTestnet,
|
Blockchain.TONTestnet,
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ internal class ManagedCryptoCurrencyFactory(
|
||||||
createSource(
|
createSource(
|
||||||
networkId = network.id,
|
networkId = network.id,
|
||||||
contractAddress = network.address,
|
contractAddress = network.address,
|
||||||
decimals = network.decimalCount ?: return@mapNotNull null,
|
decimals = network.decimalCount,
|
||||||
scanResponse = scanResponse,
|
scanResponse = scanResponse,
|
||||||
)
|
)
|
||||||
} ?: emptyList(),
|
} ?: emptyList(),
|
||||||
|
|
|
||||||
|
|
@ -198,6 +198,7 @@ data object Wallet2CardConfig : CardConfig {
|
||||||
Blockchain.SonicTestnet -> EllipticCurve.Secp256k1
|
Blockchain.SonicTestnet -> EllipticCurve.Secp256k1
|
||||||
Blockchain.ApeChain -> EllipticCurve.Secp256k1
|
Blockchain.ApeChain -> EllipticCurve.Secp256k1
|
||||||
Blockchain.ApeChainTestnet -> EllipticCurve.Secp256k1
|
Blockchain.ApeChainTestnet -> EllipticCurve.Secp256k1
|
||||||
|
Blockchain.KaspaTestnet -> EllipticCurve.Secp256k1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -155,6 +155,7 @@ class Wallet2CardConfigTest {
|
||||||
Blockchain.SonicTestnet to EllipticCurve.Secp256k1,
|
Blockchain.SonicTestnet to EllipticCurve.Secp256k1,
|
||||||
Blockchain.ApeChain to EllipticCurve.Secp256k1,
|
Blockchain.ApeChain to EllipticCurve.Secp256k1,
|
||||||
Blockchain.ApeChainTestnet to EllipticCurve.Secp256k1,
|
Blockchain.ApeChainTestnet to EllipticCurve.Secp256k1,
|
||||||
|
Blockchain.KaspaTestnet to EllipticCurve.Secp256k1,
|
||||||
)
|
)
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
||||||
|
|
@ -904,6 +904,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
||||||
EthereumPow,
|
EthereumPow,
|
||||||
EthereumPowTestnet,
|
EthereumPowTestnet,
|
||||||
Kaspa,
|
Kaspa,
|
||||||
|
KaspaTestnet,
|
||||||
Telos,
|
Telos,
|
||||||
TelosTestnet,
|
TelosTestnet,
|
||||||
TON,
|
TON,
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ markdownComposeView = "0.5.4"
|
||||||
# endregion Other libraries
|
# endregion Other libraries
|
||||||
|
|
||||||
# region Tangem
|
# region Tangem
|
||||||
tangemBlockchainSdk = "develop-940"
|
tangemBlockchainSdk = "develop-942"
|
||||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||||
tangemCardSdk = "develop-432"
|
tangemCardSdk = "develop-432"
|
||||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
||||||
"sonic/test" -> Blockchain.SonicTestnet
|
"sonic/test" -> Blockchain.SonicTestnet
|
||||||
"apechain" -> Blockchain.ApeChain
|
"apechain" -> Blockchain.ApeChain
|
||||||
"apechain/test" -> Blockchain.ApeChainTestnet
|
"apechain/test" -> Blockchain.ApeChainTestnet
|
||||||
|
"kaspa/test" -> Blockchain.KaspaTestnet
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -208,6 +209,7 @@ fun Blockchain.toNetworkId(): String {
|
||||||
Blockchain.OptimismTestnet -> "optimistic-ethereum/test"
|
Blockchain.OptimismTestnet -> "optimistic-ethereum/test"
|
||||||
Blockchain.Dash -> "dash"
|
Blockchain.Dash -> "dash"
|
||||||
Blockchain.Kaspa -> "kaspa"
|
Blockchain.Kaspa -> "kaspa"
|
||||||
|
Blockchain.KaspaTestnet -> "kaspa/test"
|
||||||
Blockchain.TON -> "the-open-network"
|
Blockchain.TON -> "the-open-network"
|
||||||
Blockchain.TONTestnet -> "the-open-network/test"
|
Blockchain.TONTestnet -> "the-open-network/test"
|
||||||
Blockchain.Kava -> "kava"
|
Blockchain.Kava -> "kava"
|
||||||
|
|
@ -344,7 +346,7 @@ fun Blockchain.toCoinId(): String {
|
||||||
Blockchain.Kusama -> "kusama"
|
Blockchain.Kusama -> "kusama"
|
||||||
Blockchain.Optimism, Blockchain.OptimismTestnet -> "optimistic-ethereum"
|
Blockchain.Optimism, Blockchain.OptimismTestnet -> "optimistic-ethereum"
|
||||||
Blockchain.Dash -> "dash"
|
Blockchain.Dash -> "dash"
|
||||||
Blockchain.Kaspa -> "kaspa"
|
Blockchain.Kaspa, Blockchain.KaspaTestnet -> "kaspa"
|
||||||
Blockchain.TON, Blockchain.TONTestnet -> "the-open-network"
|
Blockchain.TON, Blockchain.TONTestnet -> "the-open-network"
|
||||||
Blockchain.Kava, Blockchain.KavaTestnet -> "kava"
|
Blockchain.Kava, Blockchain.KavaTestnet -> "kava"
|
||||||
Blockchain.Ravencoin, Blockchain.RavencoinTestnet -> "ravencoin"
|
Blockchain.Ravencoin, Blockchain.RavencoinTestnet -> "ravencoin"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue