diff --git a/app/src/main/assets/testnet_tokens.json b/app/src/main/assets/testnet_tokens.json
index 84c055f105..e9e185e5f0 100644
--- a/app/src/main/assets/testnet_tokens.json
+++ b/app/src/main/assets/testnet_tokens.json
@@ -412,12 +412,22 @@
]
},
{
- "id" : "stellar",
- "symbol" : "XLM",
- "name" : "Stellar",
- "networks" : [
+ "id": "stellar",
+ "symbol": "XLM",
+ "name": "Stellar",
+ "networks": [
{
- "networkId" : "stellar/test"
+ "networkId": "stellar/test"
+ }
+ ]
+ },
+ {
+ "id": "ethereum-pow-iou",
+ "symbol": "ETHW",
+ "name": "Ethereum PoW",
+ "networks": [
+ {
+ "networkId": "ethereum-pow-iou/test"
}
]
}
diff --git a/app/src/main/java/com/tangem/tap/common/extensions/Blockchain.kt b/app/src/main/java/com/tangem/tap/common/extensions/Blockchain.kt
index e2490e7886..3b12f0ec88 100644
--- a/app/src/main/java/com/tangem/tap/common/extensions/Blockchain.kt
+++ b/app/src/main/java/com/tangem/tap/common/extensions/Blockchain.kt
@@ -28,6 +28,8 @@ fun Blockchain.getRoundIconRes(): Int {
Blockchain.Dogecoin -> R.drawable.ic_dogecoin_round
Blockchain.Tron, Blockchain.TronTestnet -> R.drawable.ic_tron_round
Blockchain.Gnosis -> R.drawable.ic_gnosis_round
+ Blockchain.EthereumPow, Blockchain.EthereumPowTestnet -> R.drawable.ic_ethereumpow_round
+ Blockchain.EthereumFair -> R.drawable.ic_ethereumfair_round
else -> R.drawable.ic_tangem_logo
}
}
@@ -55,6 +57,8 @@ fun Blockchain.getGreyedOutIconRes(): Int {
Blockchain.Dogecoin -> R.drawable.ic_dogecoin_no_color
Blockchain.Tron, Blockchain.TronTestnet -> R.drawable.ic_tron_no_color
Blockchain.Gnosis -> R.drawable.ic_gnosis_no_color
+ Blockchain.EthereumPow, Blockchain.EthereumPowTestnet -> R.drawable.ic_ethereumpow_no_color
+ Blockchain.EthereumFair -> R.drawable.ic_ethereumfair_no_color
else -> R.drawable.ic_tangem_logo
}
}
diff --git a/app/src/main/res/drawable/ic_ethereumfair_no_color.xml b/app/src/main/res/drawable/ic_ethereumfair_no_color.xml
new file mode 100644
index 0000000000..dd68efa83e
--- /dev/null
+++ b/app/src/main/res/drawable/ic_ethereumfair_no_color.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_ethereumfair_round.xml b/app/src/main/res/drawable/ic_ethereumfair_round.xml
new file mode 100644
index 0000000000..b8e6604a7a
--- /dev/null
+++ b/app/src/main/res/drawable/ic_ethereumfair_round.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_ethereumpow_no_color.xml b/app/src/main/res/drawable/ic_ethereumpow_no_color.xml
new file mode 100644
index 0000000000..aa369fd0ab
--- /dev/null
+++ b/app/src/main/res/drawable/ic_ethereumpow_no_color.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_ethereumpow_round.xml b/app/src/main/res/drawable/ic_ethereumpow_round.xml
new file mode 100644
index 0000000000..052ac58398
--- /dev/null
+++ b/app/src/main/res/drawable/ic_ethereumpow_round.xml
@@ -0,0 +1,166 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dependencies.gradle b/dependencies.gradle
index 0fdf41d259..18c09c7c2d 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -2,7 +2,7 @@ ext.versions = [
kotlin : '1.6.10',
build_gradle : '7.1.3',
tangem_card_sdk : 'develop-159',
- tangem_blockchain_sdk: 'AND-2102-develop-105-hotfix_xlm-109',
+ tangem_blockchain_sdk: 'AND-2140_develop_105_hotfix_eth_pow_fair-116',
// tangem_blockchain_sdk: '0.0.1',
]
diff --git a/domain/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt b/domain/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt
index 8708f1a0a8..3fd24aa445 100644
--- a/domain/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt
+++ b/domain/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt
@@ -38,6 +38,9 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"tron/test" -> Blockchain.TronTestnet
"xrp", "ripple" -> Blockchain.XRP
"xdai" -> Blockchain.Gnosis
+ "ethereum-pow-iou" -> Blockchain.EthereumPow
+ "ethereum-pow-iou/test" -> Blockchain.EthereumPowTestnet
+ "ethereumfair" -> Blockchain.EthereumFair
else -> null
}
}
@@ -80,6 +83,9 @@ fun Blockchain.toNetworkId(): String {
Blockchain.Tron -> "tron"
Blockchain.TronTestnet -> "tron/test"
Blockchain.Gnosis -> "xdai"
+ Blockchain.EthereumPow -> "ethereum-pow-iou"
+ Blockchain.EthereumPowTestnet -> "ethereum-pow-iou/test"
+ Blockchain.EthereumFair -> "ethereumfair"
}
}
@@ -105,6 +111,8 @@ fun Blockchain.toCoinId(): String {
Blockchain.Dogecoin -> "dogecoin"
Blockchain.Tron, Blockchain.TronTestnet -> "tron"
Blockchain.Gnosis -> "xdai"
+ Blockchain.EthereumPow, Blockchain.EthereumPowTestnet -> "ethereum-pow-iou"
+ Blockchain.EthereumFair -> "ethereumfair"
Blockchain.Unknown -> "unknown"
}
}
\ No newline at end of file