Updated on 2026-08-14

This commit is contained in:
Tangem 2025-01-15 17:23:49 +07:00
parent 273ef2f977
commit dbdae771ad
9 changed files with 18 additions and 2 deletions

@ -1 +1 @@
Subproject commit 4098c0311e1bc9deec592bcf1f34f4f7ed2d94f9
Subproject commit e91a2992857afa5cefce05c2750daf175b783603

View file

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

View file

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

View file

@ -18,5 +18,9 @@
{
"name": "vanar-chain",
"version": "undefined"
},
{
"name": "bitrock",
"version": "undefined"
}
]

View file

@ -86,6 +86,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"clore-ai" -> R.drawable.img_clore_22
"fact0rn" -> R.drawable.img_fact0rn_22
"odyssey", "odyssey/test" -> R.drawable.img_odyssey_chain_22
"bitrock", "bitrock/test" -> R.drawable.ic_alert_24 // todo
else -> R.drawable.ic_alert_24
}
}
@ -170,6 +171,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"clore-ai" -> R.drawable.img_clore_22
"fact0rn" -> R.drawable.img_fact0rn_22
"odyssey", "odyssey/test" -> R.drawable.img_odyssey_chain_22
"bitrock", "bitrock/test" -> R.drawable.ic_alert_24 // todo
else -> R.drawable.ic_alert_24
}
}
@ -257,6 +259,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"clore-ai" -> R.drawable.ic_clore_22
"fact0rn" -> R.drawable.ic_fact0rn_22
"odyssey", "odyssey/test" -> R.drawable.ic_odyssey_chain_22
"bitrock", "bitrock/test" -> R.drawable.ic_alert_24 // todo
else -> R.drawable.ic_alert_24
}
}

View file

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

View file

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

View file

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

@ -150,6 +150,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"clore-ai" -> Blockchain.Clore
"dione" -> Blockchain.OdysseyChain
"dione/test" -> Blockchain.OdysseyChainTestnet
"bitrock" -> Blockchain.Bitrock
"bitrock/test" -> Blockchain.BitrockTestnet
else -> null
}
}
@ -297,6 +299,8 @@ fun Blockchain.toNetworkId(): String {
Blockchain.Clore -> "clore-ai"
Blockchain.OdysseyChain -> "dione"
Blockchain.OdysseyChainTestnet -> "dione/test"
Blockchain.Bitrock -> "bitrock"
Blockchain.BitrockTestnet -> "bitrock/test"
}
}
@ -393,6 +397,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.Canxium -> "canxium"
Blockchain.Clore -> "clore-ai"
Blockchain.OdysseyChain, Blockchain.OdysseyChainTestnet -> "dione"
Blockchain.Bitrock, Blockchain.BitrockTestnet -> "bitrock"
}
}