Updated on 2026-08-14

This commit is contained in:
Tangem 2024-12-06 15:48:42 +07:00
parent ee3ca5315e
commit db7aa562c1
10 changed files with 43 additions and 1 deletions

View file

@ -143,5 +143,6 @@ internal val Blockchain.mercuryoNetwork: String?
Blockchain.Unknown -> null
Blockchain.Xodex -> null
Blockchain.Canxium -> null
Blockchain.Clore -> null
}
}

View file

@ -144,4 +144,5 @@ internal val Blockchain.moonPaySupportedCurrency: MoonPaySupportedCurrency?
Unknown -> null
Xodex -> null
Canxium -> null
Clore -> null
}

View file

@ -6,5 +6,9 @@
{
"name": "NEXA",
"version": "undefined"
},
{
"name": "clore-ai",
"version": "undefined"
}
]

View file

@ -83,6 +83,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"xodex" -> R.drawable.img_xodex_22
"canxium" -> R.drawable.img_canxium_22
"chiliz", "chiliz/test" -> R.drawable.img_chiliz_22
"clore-ai" -> R.drawable.img_clore_22
else -> R.drawable.ic_alert_24
}
}
@ -164,6 +165,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"xodex" -> R.drawable.img_xodex_22
"canxium" -> R.drawable.img_canxium_22
"chiliz", "chiliz/test" -> R.drawable.img_chiliz_22
"clore-ai" -> R.drawable.img_clore_22
else -> R.drawable.ic_alert_24
}
}
@ -248,6 +250,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"xodex" -> R.drawable.ic_xodex_22
"canxium" -> R.drawable.ic_canxium_22
"chiliz", "chiliz/test" -> R.drawable.ic_chiliz_22
"clore-ai" -> R.drawable.ic_clore_22
else -> R.drawable.ic_alert_24
}
}

View file

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="22dp"
android:height="22dp"
android:viewportWidth="22"
android:viewportHeight="22">
<path
android:fillColor="#000000"
android:pathData="M15.253,4.207C14.038,3.453 12.975,3.101 11.355,3C9.836,4.409 9.887,7.277 11.355,8.585C11.962,6.17 13.38,4.862 15.253,4.207ZM17.025,5.566C14.747,5.465 12.975,7.528 12.975,9.541C14.848,8.283 17.025,8.233 18.848,9.239C18.545,7.629 17.97,6.78 17.025,5.566ZM19,11.302C17.582,9.793 14.798,9.943 13.431,11.352C15.663,11.891 16.873,12.912 17.886,15.176C18.659,13.908 19,12.962 19,11.302ZM16.468,16.937C16.317,14.522 14.669,13.101 12.469,12.962C13.607,14.941 13.836,16.786 12.823,18.799C14.335,18.388 15.203,17.994 16.468,16.937ZM10.646,19C12.114,17.541 12.216,15.176 10.646,13.415C10.038,15.881 8.722,17.138 6.748,17.843C8.107,18.667 8.99,18.853 10.646,19ZM5.077,16.434C7.442,16.214 8.975,14.673 8.975,12.409C7.507,13.566 5.026,13.717 3.102,12.861C3.639,14.425 4.066,15.242 5.077,16.434ZM3.001,10.648C4.266,12.006 6.899,12.207 8.57,10.648C6.19,10.094 4.797,8.701 4.165,6.874C3.456,7.931 2.978,9.391 3.001,10.648ZM5.532,5.113C5.887,7.528 7.203,8.836 9.532,9.038C8.357,7.106 8.266,5.264 9.127,3.201C7.456,3.604 6.573,4.159 5.532,5.113Z" />
</vector>

View file

@ -0,0 +1,19 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="22dp"
android:height="22dp"
android:viewportWidth="22"
android:viewportHeight="22">
<group>
<clip-path
android:pathData="M11,0L11,0A11,11 0,0 1,22 11L22,11A11,11 0,0 1,11 22L11,22A11,11 0,0 1,0 11L0,11A11,11 0,0 1,11 0z"/>
<path
android:pathData="M11,0L11,0A11,11 0,0 1,22 11L22,11A11,11 0,0 1,11 22L11,22A11,11 0,0 1,0 11L0,11A11,11 0,0 1,11 0z"
android:fillColor="#ffffff"/>
<path
android:pathData="M0,0h22v22h-22z"
android:fillColor="#F73737"/>
<path
android:pathData="M15.253,4.207C14.038,3.453 12.975,3.101 11.355,3C9.836,4.409 9.887,7.277 11.355,8.585C11.962,6.17 13.38,4.862 15.253,4.207ZM17.025,5.566C14.747,5.465 12.975,7.528 12.975,9.541C14.848,8.283 17.025,8.233 18.848,9.239C18.545,7.629 17.97,6.78 17.025,5.566ZM19,11.302C17.582,9.793 14.798,9.943 13.431,11.352C15.663,11.891 16.873,12.912 17.886,15.176C18.659,13.908 19,12.962 19,11.302ZM16.468,16.937C16.317,14.522 14.669,13.101 12.469,12.962C13.607,14.941 13.836,16.786 12.823,18.799C14.335,18.388 15.203,17.994 16.468,16.937ZM10.646,19C12.114,17.541 12.216,15.176 10.646,13.415C10.038,15.881 8.722,17.138 6.748,17.843C8.107,18.667 8.99,18.853 10.646,19ZM5.077,16.434C7.442,16.214 8.975,14.673 8.975,12.409C7.507,13.566 5.026,13.717 3.102,12.861C3.639,14.425 4.066,15.242 5.077,16.434ZM3.001,10.648C4.266,12.006 6.899,12.207 8.57,10.648C6.19,10.094 4.797,8.701 4.165,6.874C3.456,7.931 2.978,9.391 3.001,10.648ZM5.532,5.113C5.887,7.528 7.203,8.836 9.532,9.038C8.357,7.106 8.266,5.264 9.127,3.201C7.456,3.604 6.573,4.159 5.532,5.113Z"
android:fillColor="#ffffff"/>
</group>
</vector>

View file

@ -218,6 +218,7 @@ private fun Blockchain.getSupportedTransactionExtras(): Network.TransactionExtra
Blockchain.TelosTestnet,
Blockchain.TONTestnet,
Blockchain.Ravencoin,
Blockchain.Clore,
Blockchain.RavencoinTestnet,
Blockchain.Cronos,
Blockchain.AlephZero,

View file

@ -1049,6 +1049,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
Canxium,
Chiliz,
ChilizTestnet,
Clore,
-> Fee.Common(feeAmount)
// endregion
}

View file

@ -88,7 +88,7 @@ markdownComposeView = "0.5.4"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "develop-876"
tangemBlockchainSdk = "develop-877"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "develop-410"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^

View file

@ -142,6 +142,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"chiliz/test" -> Blockchain.ChilizTestnet
"xodex" -> Blockchain.Xodex
"canxium" -> Blockchain.Canxium
"clore-ai" -> Blockchain.Clore
else -> null
}
}
@ -283,6 +284,7 @@ fun Blockchain.toNetworkId(): String {
Blockchain.ChilizTestnet -> "chiliz/test"
Blockchain.Xodex -> "xodex"
Blockchain.Canxium -> "canxium"
Blockchain.Clore -> "clore-ai"
}
}
@ -375,6 +377,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.Chiliz, Blockchain.ChilizTestnet -> "chiliz"
Blockchain.Xodex -> "xodex"
Blockchain.Canxium -> "canxium"
Blockchain.Clore -> "clore-ai"
}
}