Updated on 2026-08-14

This commit is contained in:
Tangem 2023-11-01 15:38:14 +04:00
parent 761f896656
commit 4491bb0bb9
6 changed files with 66 additions and 5 deletions

View file

@ -511,8 +511,7 @@
"id": "aleph-zero",
"symbol": "AZERO",
"name": "Aleph Zero",
"networks":
[
"networks": [
{
"networkId": "aleph-zero/test"
}
@ -522,12 +521,21 @@
"id": "near",
"symbol": "NEAR",
"name": "NEAR",
"networks":
[
"networks": [
{
"networkId": "near-protocol/test"
}
]
},
{
"id": "decimal",
"name": "Decimal",
"symbol": "tDEL",
"networks": [
{
"networkId": "decimal/test"
}
]
}
]
}

View file

@ -45,6 +45,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"aleph-zero", "aleph-zero/test" -> R.drawable.img_azero_22
"octaspace", "octaspace/test" -> R.drawable.img_octaspace_22
"chia", "chia/test" -> R.drawable.img_chia_22
"decimal", "decimal/testnet" -> R.drawable.img_decimal_22
else -> R.drawable.ic_alert_24
}
}
@ -88,6 +89,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"octaspace" -> R.drawable.img_octaspace_22
"chia" -> R.drawable.img_chia_22
"near" -> R.drawable.img_near_22
"decimal" -> R.drawable.img_decimal_22
else -> R.drawable.ic_alert_24
}
}
@ -133,6 +135,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"aleph-zero", "aleph-zero/test" -> R.drawable.ic_azero_22
"octaspace", "octaspace/test" -> R.drawable.ic_octaspace_22
"chia", "chia/test" -> R.drawable.ic_chia_22
"decimal", "decimal/test" -> R.drawable.ic_decimal_22
else -> R.drawable.ic_alert_24
}
}

View file

@ -0,0 +1,10 @@
<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="#000"
android:fillType="evenOdd"
android:pathData="M6.5,5H15.5V17H6.5V14.474H12.882V7.526H6.5V5ZM6.5,9.737H10.755V12.263H6.5V9.737Z" />
</vector>

View 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">
<aapt:attr name="android:fillColor">
<gradient
android:endX="22"
android:endY="13.2"
android:startX="0"
android:startY="8.91"
android:type="linear">
<item
android:color="#FF00E095"
android:offset="0" />
<item
android:color="#FF4579F5"
android:offset="0.474" />
<item
android:color="#FF9C42F5"
android:offset="0.993" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#ffffff"
android:fillType="evenOdd"
android:pathData="M6.5,5H15.5V17H6.5V14.474H12.882V7.526H6.5V5ZM6.5,9.737H10.755V12.263H6.5V9.737Z" />
</group>
</vector>

View file

@ -72,6 +72,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"chia/test" -> Blockchain.ChiaTestnet
"near-protocol" -> Blockchain.Near
"near-protocol/test" -> Blockchain.NearTestnet
"decimal" -> Blockchain.Decimal
"decimal/test" -> Blockchain.DecimalTestnet
else -> null
}
}
@ -145,6 +147,8 @@ fun Blockchain.toNetworkId(): String {
Blockchain.ChiaTestnet -> "chia/test"
Blockchain.Near -> "near-protocol"
Blockchain.NearTestnet -> "near-protocol/test"
Blockchain.Decimal -> "decimal"
Blockchain.DecimalTestnet -> "decimal/test"
}
}
@ -191,6 +195,8 @@ fun Blockchain.toCoinId(): String {
Blockchain.Chia, Blockchain.ChiaTestnet -> "chia"
Blockchain.Near -> "near"
Blockchain.NearTestnet -> "near/test"
Blockchain.Decimal -> "decimal"
Blockchain.DecimalTestnet -> "decimal/test"
Blockchain.Unknown -> "unknown"
}
}

View file

@ -82,7 +82,7 @@ spr-client = "3.6.2"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "develop-375"
tangemBlockchainSdk = "develop-377"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "develop-310"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds