Updated on 2026-08-14

This commit is contained in:
Tangem 2021-06-18 11:55:59 +03:00
parent 2ac2337091
commit 1a0a53420c
2 changed files with 16 additions and 7 deletions

View file

@ -77,7 +77,7 @@ dependencies {
implementation 'com.google.android.play:core-ktx:1.8.1'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
implementation 'com.tangem:blockchain:develop-22'
implementation 'com.tangem:blockchain:develop-24'
implementation 'com.tangem:core:develop-36'
implementation 'com.tangem:sdk:develop-36'

View file

@ -100,9 +100,9 @@ class CurrenciesRepository(val context: Application) {
fun getBlockchains(cardFirmware: FirmwareVersion?): List<Blockchain> {
return if (cardFirmware == null || cardFirmware.major < 4) {
secp256k1Blochcains
secp256k1Blockchains
} else {
secp256k1Blochcains + ed25519Blockchains
secp256k1Blockchains + ed25519Blockchains
}
}
@ -115,10 +115,19 @@ class CurrenciesRepository(val context: Application) {
fun getFileNameForBlockchains(cardId: String): String =
"${FILE_NAME_PREFIX_BLOCKCHAINS}_$cardId"
private val secp256k1Blochcains = listOf(
Blockchain.Bitcoin, Blockchain.BitcoinCash, Blockchain.Binance, Blockchain.Litecoin,
Blockchain.XRP, Blockchain.Tezos,
Blockchain.Ethereum, Blockchain.RSK)
private val secp256k1Blockchains = listOf(
Blockchain.Bitcoin,
Blockchain.BitcoinCash,
Blockchain.Binance,
Blockchain.BSC,
Blockchain.Litecoin,
Blockchain.XRP,
Blockchain.Tezos,
Blockchain.Ethereum,
Blockchain.RSK,
Blockchain.Polygon,
Blockchain.Dogecoin,
)
private val ed25519Blockchains = listOf(Blockchain.CardanoShelley, Blockchain.Stellar)
}
}