Updated on 2026-08-14

This commit is contained in:
Tangem 2025-01-14 12:48:18 +05:00
parent 8d02ac6406
commit 6111067060
10 changed files with 80 additions and 12 deletions

View file

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

View file

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

View file

@ -85,6 +85,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"chiliz", "chiliz/test" -> R.drawable.img_chiliz_22
"clore-ai" -> R.drawable.img_clore_22
"fact0rn" -> R.drawable.img_fact0rn_22
"odyssey", "odyssey/test" -> R.drawable.img_odyssey_chain_22
else -> R.drawable.ic_alert_24
}
}
@ -168,6 +169,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"chiliz", "chiliz/test" -> R.drawable.img_chiliz_22
"clore-ai" -> R.drawable.img_clore_22
"fact0rn" -> R.drawable.img_fact0rn_22
"odyssey", "odyssey/test" -> R.drawable.img_odyssey_chain_22
else -> R.drawable.ic_alert_24
}
}
@ -254,6 +256,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"chiliz", "chiliz/test" -> R.drawable.ic_chiliz_22
"clore-ai" -> R.drawable.ic_clore_22
"fact0rn" -> R.drawable.ic_fact0rn_22
"odyssey", "odyssey/test" -> R.drawable.ic_odyssey_chain_22
else -> R.drawable.ic_alert_24
}
}

View file

@ -3,15 +3,15 @@
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"/>
<group>
<path
android:pathData="M10.975,7.071C13.139,7.071 14.894,8.829 14.894,10.999C14.894,13.168 13.139,14.927 10.975,14.927C8.81,14.927 7.055,13.168 7.055,10.999C7.055,8.829 8.81,7.071 10.975,7.071ZM10.975,4.714C7.517,4.714 4.704,7.533 4.704,10.999C4.704,14.464 7.517,17.284 10.975,17.284C14.433,17.284 17.246,14.464 17.246,10.999C17.246,7.533 14.433,4.714 10.975,4.714Z"
android:strokeAlpha="0.2"
android:fillColor="#000000"/>
</group>
</group>
<path
android:pathData="M10.975,7.071C13.139,7.071 14.894,8.829 14.894,10.999C14.894,13.168 13.139,14.927 10.975,14.927C8.81,14.927 7.055,13.168 7.055,10.999C7.055,8.829 8.81,7.071 10.975,7.071ZM10.975,4.714C7.517,4.714 4.704,7.533 4.704,10.999C4.704,14.464 7.517,17.284 10.975,17.284C14.433,17.284 17.246,14.464 17.246,10.999C17.246,7.533 14.433,4.714 10.975,4.714Z"
android:strokeAlpha="0.8"
android:fillColor="#000000"
android:fillAlpha="0.8"/>
<path
android:pathData="M2.352,10.999C2.352,6.234 6.22,2.357 10.975,2.357C15.729,2.357 19.598,6.234 19.598,10.999C19.598,15.764 15.729,19.641 10.975,19.641C6.22,19.641 2.352,15.764 2.352,10.999ZM4.704,10.999C4.704,7.533 7.517,4.714 10.975,4.714C14.433,4.714 17.246,7.533 17.246,10.999C17.246,14.464 14.433,17.284 10.975,17.284C7.517,17.284 4.704,14.464 4.704,10.999Z"
android:strokeAlpha="0.5"
android:fillColor="#000000"
android:fillType="evenOdd"
android:fillAlpha="0.5"/>
</vector>

View file

@ -0,0 +1,16 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="22dp"
android:height="22dp"
android:viewportWidth="22"
android:viewportHeight="22">
<path
android:fillAlpha="0.2"
android:fillColor="#000000"
android:fillType="evenOdd"
android:pathData="M11.628,3H10.372C9.191,3.107 8.078,3.45 7.033,4.028C4.648,5.472 3.304,7.587 3,10.372V11.628C3.107,12.809 3.45,13.922 4.028,14.967C5.472,17.352 7.587,18.696 10.372,19H11.628C12.809,18.893 13.922,18.55 14.967,17.972C17.352,16.528 18.696,14.413 19,11.628V10.372C18.893,9.191 18.55,8.078 17.972,7.033C16.528,4.648 14.413,3.304 11.628,3ZM11,16C13.761,16 16,13.761 16,11C16,8.239 13.761,6 11,6C8.239,6 6,8.239 6,11C6,13.761 8.239,16 11,16Z"
android:strokeAlpha="0.2" />
<path
android:fillColor="#000000"
android:fillType="evenOdd"
android:pathData="M16.289,6.873C14.765,5.032 12.802,4.178 10.399,4.309C10.143,4.34 9.885,4.38 9.624,4.429C7.123,5.051 5.445,6.578 4.589,9.01C3.96,11.305 4.369,13.389 5.818,15.26C7.552,17.233 9.72,18.003 12.322,17.571C14.585,17.052 16.201,15.738 17.17,13.631C18.108,11.211 17.814,8.959 16.289,6.873ZM11,16C13.761,16 16,13.761 16,11C16,8.239 13.761,6 11,6C8.239,6 6,8.239 6,11C6,13.761 8.239,16 11,16Z" />
</vector>

View file

@ -0,0 +1,40 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
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="#211231"/>
<path
android:pathData="M10.372,3C10.791,3 11.209,3 11.628,3C14.413,3.304 16.528,4.648 17.972,7.033C18.55,8.078 18.893,9.191 19,10.372C19,10.791 19,11.209 19,11.628C18.696,14.413 17.352,16.528 14.967,17.972C13.922,18.55 12.809,18.893 11.628,19C11.209,19 10.791,19 10.372,19C7.587,18.696 5.472,17.352 4.028,14.967C3.45,13.922 3.107,12.809 3,11.628C3,11.209 3,10.791 3,10.372C3.304,7.587 4.648,5.472 7.033,4.028C8.078,3.45 9.191,3.107 10.372,3Z"
android:strokeAlpha="0.999"
android:fillColor="#301A5B"
android:fillType="evenOdd"
android:fillAlpha="0.999"/>
<path
android:pathData="M10.399,4.309C12.802,4.178 14.765,5.032 16.289,6.873C17.814,8.959 18.108,11.211 17.17,13.631C16.201,15.738 14.585,17.052 12.322,17.571C9.72,18.003 7.552,17.233 5.818,15.26C4.369,13.389 3.96,11.305 4.589,9.01C5.445,6.578 7.123,5.051 9.624,4.429C9.885,4.38 10.143,4.34 10.399,4.309Z"
android:fillColor="#562676"
android:fillType="evenOdd"/>
<path
android:pathData="M11,11m-5,0a5,5 0,1 1,10 0a5,5 0,1 1,-10 0">
<aapt:attr name="android:fillColor">
<gradient
android:centerX="11"
android:centerY="11"
android:gradientRadius="5"
android:type="radial">
<item android:offset="0" android:color="#FF08C2D1"/>
<item android:offset="1" android:color="#FF7A489E"/>
</gradient>
</aapt:attr>
</path>
</group>
</vector>

View file

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

View file

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

View file

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

View file

@ -148,6 +148,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"xodex" -> Blockchain.Xodex
"canxium" -> Blockchain.Canxium
"clore-ai" -> Blockchain.Clore
"dione" -> Blockchain.OdysseyChain
"dione/test" -> Blockchain.OdysseyChainTestnet
else -> null
}
}
@ -293,6 +295,8 @@ fun Blockchain.toNetworkId(): String {
Blockchain.Xodex -> "xodex"
Blockchain.Canxium -> "canxium"
Blockchain.Clore -> "clore-ai"
Blockchain.OdysseyChain -> "dione"
Blockchain.OdysseyChainTestnet -> "dione/test"
}
}
@ -388,6 +392,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.Xodex -> "xodex"
Blockchain.Canxium -> "canxium"
Blockchain.Clore -> "clore-ai"
Blockchain.OdysseyChain, Blockchain.OdysseyChainTestnet -> "dione"
}
}