diff --git a/app/src/main/assets/testnet_tokens.json b/app/src/main/assets/testnet_tokens.json
index a219959739..816e3b83c4 100644
--- a/app/src/main/assets/testnet_tokens.json
+++ b/app/src/main/assets/testnet_tokens.json
@@ -537,6 +537,16 @@
}
]
},
+ {
+ "id": "xdce-crowd-sale",
+ "name": "XinFin",
+ "symbol": "XDC",
+ "networks": [
+ {
+ "networkId": "xdc-network/test"
+ }
+ ]
+ },
{
"id": "aptos",
"name": "Aptos",
diff --git a/core/ui/src/main/java/com/tangem/core/ui/extensions/BlockchainIcons.kt b/core/ui/src/main/java/com/tangem/core/ui/extensions/BlockchainIcons.kt
index 8f29c32cd9..e70af67f56 100644
--- a/core/ui/src/main/java/com/tangem/core/ui/extensions/BlockchainIcons.kt
+++ b/core/ui/src/main/java/com/tangem/core/ui/extensions/BlockchainIcons.kt
@@ -46,6 +46,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"chia", "chia/test" -> R.drawable.img_chia_22
"NEAR", "NEAR/test" -> R.drawable.img_near_22
"decimal", "decimal/test" -> R.drawable.img_decimal_22
+ "xinfin", "xinfin/test" -> R.drawable.img_xdc_22
else -> R.drawable.ic_alert_24
}
}
@@ -93,6 +94,7 @@ fun getActiveIconResByNetworkId(networkId: String): Int {
"chia", "chia/test" -> R.drawable.img_chia_22
"near-protocol", "near-protocol/test" -> R.drawable.img_near_22
"decimal", "decimal/test" -> R.drawable.img_decimal_22
+ "xdc-network", "xdc-network/test" -> R.drawable.img_xdc_22
else -> R.drawable.ic_alert_24
}
}
@@ -137,6 +139,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"chia" -> R.drawable.img_chia_22
"near" -> R.drawable.img_near_22
"decimal" -> R.drawable.img_decimal_22
+ "xdce-crowd-sale" -> R.drawable.img_xdc_22
else -> R.drawable.ic_alert_24
}
}
@@ -184,6 +187,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"chia", "chia/test" -> R.drawable.ic_chia_22
"NEAR", "NEAR/test" -> R.drawable.ic_near_22
"decimal", "decimal/test" -> R.drawable.ic_decimal_22
+ "xdc-network", "xdc-network/test" -> R.drawable.ic_xinfin_22
else -> R.drawable.ic_alert_24
}
}
@@ -231,6 +235,7 @@ fun getGreyedOutIconResByNetworkId(networkId: String): Int {
"chia", "chia/test" -> R.drawable.ic_chia_22
"near-protocol", "near-protocol/test" -> R.drawable.ic_near_22
"decimal", "decimal/test" -> R.drawable.ic_decimal_22
+ "xdc-network", "xdc-network/test" -> R.drawable.ic_xinfin_22
else -> R.drawable.ic_alert_24
}
}
\ No newline at end of file
diff --git a/core/ui/src/main/res/drawable/ic_xinfin_22.xml b/core/ui/src/main/res/drawable/ic_xinfin_22.xml
new file mode 100644
index 0000000000..bd011a7a3e
--- /dev/null
+++ b/core/ui/src/main/res/drawable/ic_xinfin_22.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/core/ui/src/main/res/drawable/img_xdc_22.xml b/core/ui/src/main/res/drawable/img_xdc_22.xml
new file mode 100644
index 0000000000..a7720f1fad
--- /dev/null
+++ b/core/ui/src/main/res/drawable/img_xdc_22.xml
@@ -0,0 +1,5 @@
+
+
+
+
diff --git a/domain/legacy/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt b/domain/legacy/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt
index 0b1e668098..9fdc8f2327 100644
--- a/domain/legacy/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt
+++ b/domain/legacy/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt
@@ -74,6 +74,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"near-protocol/test" -> Blockchain.NearTestnet
"decimal" -> Blockchain.Decimal
"decimal/test" -> Blockchain.DecimalTestnet
+ "xdc-network" -> Blockchain.XinFin
+ "xdc-network/test" -> Blockchain.XinFinTestnet
"TODO" -> Blockchain.Vechain // TODO [REDACTED_TASK_KEY]
"TODO/test" -> Blockchain.VechainTestnet // TODO [REDACTED_TASK_KEY]
"aptos" -> Blockchain.Aptos
@@ -153,6 +155,8 @@ fun Blockchain.toNetworkId(): String {
Blockchain.NearTestnet -> "near-protocol/test"
Blockchain.Decimal -> "decimal"
Blockchain.DecimalTestnet -> "decimal/test"
+ Blockchain.XinFin -> "xdc-network"
+ Blockchain.XinFinTestnet -> "xdc-network/test"
Blockchain.Vechain -> "TODO" // TODO [REDACTED_TASK_KEY]
Blockchain.VechainTestnet -> "TODO/test" // TODO [REDACTED_TASK_KEY]
Blockchain.Aptos -> "aptos"
@@ -204,6 +208,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.Near -> "near"
Blockchain.NearTestnet -> "near/test"
Blockchain.Decimal, Blockchain.DecimalTestnet -> "decimal"
+ Blockchain.XinFin, Blockchain.XinFinTestnet -> "xdce-crowd-sale"
Blockchain.Vechain -> "TODO" // TODO [REDACTED_TASK_KEY]
Blockchain.VechainTestnet -> "TODO/test" // TODO [REDACTED_TASK_KEY]
Blockchain.Aptos -> "aptos"
diff --git a/gradle/dependencies.toml b/gradle/dependencies.toml
index b3c82519fe..f769f6732d 100644
--- a/gradle/dependencies.toml
+++ b/gradle/dependencies.toml
@@ -85,7 +85,7 @@ spr-client = "3.6.2"
# endregion Other libraries
# region Tangem
-tangemBlockchainSdk = "develop-447"
+tangemBlockchainSdk = "develop-450"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "develop-318"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^