Updated on 2026-08-14
This commit is contained in:
parent
f4898a4475
commit
fd1e3bb447
6 changed files with 54 additions and 1 deletions
|
|
@ -81,6 +81,7 @@ fun getActiveIconRes(blockchainId: String): Int {
|
|||
"core", "core/test" -> R.drawable.img_core_22
|
||||
"casper", "casper/test" -> R.drawable.img_casper_22
|
||||
"xodex" -> R.drawable.img_xodex_22
|
||||
"canxium" -> R.drawable.img_canxium_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -160,6 +161,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
|
|||
"core", "core/test" -> R.drawable.img_core_22
|
||||
"casper-network" -> R.drawable.img_casper_22
|
||||
"xodex" -> R.drawable.img_xodex_22
|
||||
"canxium" -> R.drawable.img_canxium_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -242,6 +244,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
|
|||
"core", "core/test" -> R.drawable.ic_core_22
|
||||
"casper", "casper/test" -> R.drawable.ic_casper_22
|
||||
"xodex" -> R.drawable.ic_xodex_22
|
||||
"canxium" -> R.drawable.ic_canxium_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
12
core/ui/src/main/res/drawable/ic_canxium_22.xml
Normal file
12
core/ui/src/main/res/drawable/ic_canxium_22.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<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="M17,16.362L8.298,6.149H5.491L9.697,11.044L5,16.362H7.877L11.105,12.705L14.123,16.362H17Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path
|
||||
android:pathData="M13.211,10.276L16.86,6.149H14.003L11.807,8.667L13.211,10.276Z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
||||
34
core/ui/src/main/res/drawable/img_canxium_22.xml
Normal file
34
core/ui/src/main/res/drawable/img_canxium_22.xml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<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="#0E101D"/>
|
||||
<path
|
||||
android:pathData="M17,16.362L8.298,6.149H5.491L9.697,11.044L5,16.362H7.877L11.105,12.705L14.123,16.362H17Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<path
|
||||
android:pathData="M13.211,10.276L16.86,6.149H14.003L11.807,8.667L13.211,10.276Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="11.646"
|
||||
android:startY="9.084"
|
||||
android:endX="17.342"
|
||||
android:endY="6.552"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF7C37F5"/>
|
||||
<item android:offset="1" android:color="#FFBE41EB"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
</group>
|
||||
</vector>
|
||||
|
|
@ -1046,6 +1046,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
|||
Blockchain.Core,
|
||||
Blockchain.CoreTestnet,
|
||||
Blockchain.Xodex,
|
||||
Blockchain.Canxium,
|
||||
-> Fee.Common(feeAmount)
|
||||
// endregion
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ markdownComposeView = "0.5.4"
|
|||
# endregion Other libraries
|
||||
|
||||
# region Tangem
|
||||
tangemBlockchainSdk = "develop-844"
|
||||
tangemBlockchainSdk = "develop-845"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "develop-395"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"casper-network" -> Blockchain.Casper
|
||||
"casper-network/test" -> Blockchain.CasperTestnet
|
||||
"xodex" -> Blockchain.Xodex
|
||||
"canxium" -> Blockchain.Canxium
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -277,6 +278,7 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.Core -> "core"
|
||||
Blockchain.CoreTestnet -> "core/test"
|
||||
Blockchain.Xodex -> "xodex"
|
||||
Blockchain.Canxium -> "canxium"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -367,6 +369,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Casper, Blockchain.CasperTestnet -> "casper-network"
|
||||
Blockchain.Core, Blockchain.CoreTestnet -> "coredaoorg"
|
||||
Blockchain.Xodex -> "xodex"
|
||||
Blockchain.Canxium -> "canxium"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue