Updated on 2026-08-14

This commit is contained in:
Tangem 2024-10-30 22:55:21 +05:00
parent 0db08ff571
commit a48967b3ce
6 changed files with 50 additions and 1 deletions

View file

@ -80,6 +80,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"energy-web-x", "energy-web-x/test" -> R.drawable.img_energy_web_22
"core", "core/test" -> R.drawable.img_core_22
"casper-network", "casper-network/test" -> R.drawable.img_casper_22
"xodex" -> R.drawable.img_xodex_22
else -> R.drawable.ic_alert_24
}
}
@ -161,6 +162,7 @@ fun getActiveIconResByNetworkId(networkId: String): Int {
"energy-web-x", "energy-web-x/test" -> R.drawable.img_energy_web_22
"core", "core/test" -> R.drawable.img_core_22
"casper-network", "casper-network/test" -> R.drawable.img_casper_22
"xodex" -> R.drawable.img_xodex_22
else -> R.drawable.ic_alert_24
}
}
@ -239,6 +241,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"energy-web-x", "energy-web-x/test" -> R.drawable.img_energy_web_22
"core", "core/test" -> R.drawable.img_core_22
"casper-network" -> R.drawable.img_casper_22
"xodex" -> R.drawable.img_xodex_22
else -> R.drawable.ic_alert_24
}
}
@ -320,6 +323,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"energy-web-x", "energy-web-x/test" -> R.drawable.ic_energy_web_22
"core", "core/test" -> R.drawable.ic_core_22
"casper-network", "casper-network/test" -> R.drawable.ic_casper_22
"xodex" -> R.drawable.ic_xodex_22
else -> R.drawable.ic_alert_24
}
}
@ -401,6 +405,7 @@ fun getGreyedOutIconResByNetworkId(networkId: String): Int {
"energy-web-x", "energy-web-x/test" -> R.drawable.ic_energy_web_22
"core", "core/test" -> R.drawable.ic_core_22
"casper-network", "casper-network/test" -> R.drawable.ic_casper_22
"xodex" -> R.drawable.ic_xodex_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:pathData="M16.5,17V13.94L13.626,10.961L16.5,7.982V5H12.75L10.361,7.479L8.448,5.496H5.5V7.611L8.204,10.416H8.921L13.055,6.131H15.238L10.538,11L15.238,15.871H13.053L8.914,11.505H8.204L5.5,14.31V16.507H8.448L10.358,14.524H10.361L12.75,17H16.5Z"
android:fillColor="#000000"/>
</vector>

View file

@ -0,0 +1,31 @@
<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="#0B0C14"/>
<path
android:pathData="M16.5,17V13.94L13.626,10.961L16.5,7.982V5H12.75L10.361,7.479L8.448,5.496H5.5V7.611L8.204,10.416H8.921L13.055,6.131H15.238L10.538,11L15.238,15.871H13.053L8.914,11.505H8.204L5.5,14.31V16.507H8.448L10.358,14.524H10.361L12.75,17H16.5Z">
<aapt:attr name="android:fillColor">
<gradient
android:startX="4.677"
android:startY="6.97"
android:endX="17.964"
android:endY="14.372"
android:type="linear">
<item android:offset="0" android:color="#FF1F7CF7"/>
<item android:offset="0.998" android:color="#FF2DF5DD"/>
</gradient>
</aapt:attr>
</path>
</group>
</vector>

View file

@ -1045,6 +1045,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
Blockchain.CasperTestnet,
Blockchain.Core,
Blockchain.CoreTestnet,
Blockchain.Xodex,
-> Fee.Common(feeAmount)
// endregion
}

View file

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

View file

@ -138,6 +138,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"core/test" -> Blockchain.CoreTestnet
"casper-network" -> Blockchain.Casper
"casper-network/test" -> Blockchain.CasperTestnet
"xodex" -> Blockchain.Xodex
else -> null
}
}
@ -275,6 +276,7 @@ fun Blockchain.toNetworkId(): String {
Blockchain.CasperTestnet -> "casper-network/test"
Blockchain.Core -> "core"
Blockchain.CoreTestnet -> "core/test"
Blockchain.Xodex -> "xodex"
}
}
@ -364,6 +366,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.EnergyWebX, Blockchain.EnergyWebXTestnet -> "energy-web-token"
Blockchain.Casper, Blockchain.CasperTestnet -> "casper-network"
Blockchain.Core, Blockchain.CoreTestnet -> "coredaoorg"
Blockchain.Xodex -> "xodex"
}
}