Updated on 2026-08-14
This commit is contained in:
parent
1906481ac6
commit
77de05d05d
11 changed files with 55 additions and 5 deletions
|
|
@ -159,4 +159,5 @@ internal val Blockchain.moonPaySupportedCurrency: MoonPaySupportedCurrency?
|
|||
KaspaTestnet -> null
|
||||
Pepecoin, PepecoinTestnet -> null
|
||||
Hyperliquid, HyperliquidTestnet -> null
|
||||
Quai, QuaiTestnet -> null
|
||||
}
|
||||
|
|
@ -52,11 +52,9 @@ fun TangemIconButton(
|
|||
modifier = modifier
|
||||
.size(24.dp)
|
||||
.clip(shape)
|
||||
.clickable(onClick = onClick)
|
||||
.background(background)
|
||||
.padding(innerPadding)
|
||||
.clickable(
|
||||
onClick = onClick,
|
||||
),
|
||||
.padding(innerPadding),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ fun getActiveIconRes(blockchainId: String): Int {
|
|||
"vanar-chain", "vanar-chain/test" -> R.drawable.img_vanar_22
|
||||
"pepecoin", "pepecoin/test" -> R.drawable.img_pepecoin_22
|
||||
"hyperliquid", "hyperliquid/test" -> R.drawable.img_hyperliquid_22
|
||||
"quai", "quai/test" -> R.drawable.img_quai_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -188,6 +189,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
|
|||
"vanar-chain", "vanar-chain/test" -> R.drawable.img_vanar_22
|
||||
"pepecoin-network", "pepecoin-network/test" -> R.drawable.img_pepecoin_22
|
||||
"hyperliquid", "hyperliquid/test" -> R.drawable.img_hyperliquid_22
|
||||
"quai", "quai/test" -> R.drawable.img_quai_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -284,6 +286,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
|
|||
"vanar-chain", "vanar-chain/test" -> R.drawable.ic_vanar_22
|
||||
"pepecoin", "pepecoin/test" -> R.drawable.ic_pepecoin_22
|
||||
"hyperliquid", "hyperliquid/test" -> R.drawable.ic_hyperliquid_22
|
||||
"quai", "quai/test" -> R.drawable.ic_quai_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
15
core/ui/src/main/res/drawable/ic_quai_22.xml
Normal file
15
core/ui/src/main/res/drawable/ic_quai_22.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18.857143dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="12"
|
||||
android:viewportHeight="14">
|
||||
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M6,0.493C3.014,0.493 0.594,2.914 0.594,5.899C0.594,8.885 3.014,11.306 6,11.306C6.529,11.306 7.04,11.228 7.523,11.086L6.467,9.255C5.162,9.437 3.817,8.832 3.117,7.62C2.197,6.026 2.743,3.987 4.338,3.066C5.932,2.146 7.971,2.692 8.892,4.286C9.591,5.498 9.443,6.966 8.632,8.005L9.693,9.844C10.746,8.857 11.406,7.456 11.406,5.899C11.406,2.914 8.986,0.493 6,0.493Z" />
|
||||
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M7.523,11.086L8.922,13.507L11.087,12.257L9.693,9.844C9.085,10.414 8.345,10.845 7.523,11.086Z" />
|
||||
|
||||
</vector>
|
||||
22
core/ui/src/main/res/drawable/img_quai_22.xml
Normal file
22
core/ui/src/main/res/drawable/img_quai_22.xml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
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="#E20101"/>
|
||||
<path
|
||||
android:pathData="M11,5.493C8.014,5.493 5.594,7.914 5.594,10.899C5.594,13.885 8.014,16.306 11,16.306C11.529,16.306 12.04,16.228 12.523,16.086L11.467,14.255C10.162,14.437 8.817,13.832 8.117,12.62C7.197,11.026 7.743,8.987 9.338,8.066C10.932,7.146 12.971,7.692 13.892,9.286C14.591,10.498 14.443,11.966 13.632,13.005L14.693,14.844C15.746,13.857 16.406,12.456 16.406,10.899C16.406,7.914 13.986,5.493 11,5.493Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<path
|
||||
android:pathData="M12.523,16.086L13.922,18.507L16.087,17.257L14.693,14.844C14.085,15.414 13.345,15.845 12.523,16.086Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</group>
|
||||
</vector>
|
||||
|
|
@ -325,6 +325,7 @@ class NetworkFactory @Inject constructor(
|
|||
Blockchain.ZkLinkNova, Blockchain.ZkLinkNovaTestnet,
|
||||
Blockchain.Pepecoin, Blockchain.PepecoinTestnet,
|
||||
Blockchain.Hyperliquid, Blockchain.HyperliquidTestnet,
|
||||
Blockchain.Quai, Blockchain.QuaiTestnet,
|
||||
-> Network.TransactionExtrasType.NONE
|
||||
// endregion
|
||||
}
|
||||
|
|
|
|||
|
|
@ -159,5 +159,6 @@ public val Blockchain.mercuryoNetwork: String?
|
|||
Blockchain.KaspaTestnet -> null
|
||||
Blockchain.Pepecoin, Blockchain.PepecoinTestnet -> null
|
||||
Blockchain.Hyperliquid, Blockchain.HyperliquidTestnet -> null
|
||||
Blockchain.Quai, Blockchain.QuaiTestnet -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -209,6 +209,8 @@ data object Wallet2CardConfig : CardConfig {
|
|||
Blockchain.PepecoinTestnet -> EllipticCurve.Secp256k1
|
||||
Blockchain.Hyperliquid -> EllipticCurve.Secp256k1
|
||||
Blockchain.HyperliquidTestnet -> EllipticCurve.Secp256k1
|
||||
Blockchain.Quai -> EllipticCurve.Secp256k1
|
||||
Blockchain.QuaiTestnet -> EllipticCurve.Secp256k1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -166,6 +166,8 @@ class Wallet2CardConfigTest {
|
|||
Blockchain.PepecoinTestnet to EllipticCurve.Secp256k1,
|
||||
Blockchain.Hyperliquid to EllipticCurve.Secp256k1,
|
||||
Blockchain.HyperliquidTestnet to EllipticCurve.Secp256k1,
|
||||
Blockchain.Quai to EllipticCurve.Secp256k1,
|
||||
Blockchain.QuaiTestnet to EllipticCurve.Secp256k1,
|
||||
)
|
||||
|
||||
@Test
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
# https://github.com/tangem/tangem-sdk-android/
|
||||
# https://github.com/tangem/vico
|
||||
|
||||
tangemBlockchainSdk = "develop-1248"
|
||||
tangemBlockchainSdk = "develop-1252"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "develop-564"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
|
|
@ -167,6 +167,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"pepecoin/test" -> Blockchain.PepecoinTestnet
|
||||
"hyperevm" -> Blockchain.Hyperliquid
|
||||
"hyperevm/test" -> Blockchain.HyperliquidTestnet
|
||||
"quai-network" -> Blockchain.Quai
|
||||
"quai-network/test" -> Blockchain.QuaiTestnet
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -331,6 +333,8 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.PepecoinTestnet -> "pepecoin/test"
|
||||
Blockchain.Hyperliquid -> "hyperevm"
|
||||
Blockchain.HyperliquidTestnet -> "hyperevm/test"
|
||||
Blockchain.Quai -> "quai-network"
|
||||
Blockchain.QuaiTestnet -> "quai-network/test"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -435,6 +439,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.ZkLinkNova, Blockchain.ZkLinkNovaTestnet -> "zklink-ethereum"
|
||||
Blockchain.Pepecoin, Blockchain.PepecoinTestnet -> "pepecoin-network"
|
||||
Blockchain.Hyperliquid, Blockchain.HyperliquidTestnet -> "hyperliquid"
|
||||
Blockchain.Quai, Blockchain.QuaiTestnet -> "quai"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue