Updated on 2026-08-14
This commit is contained in:
parent
49cd9db8da
commit
5ba7c63987
14 changed files with 50 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit a7b32c766817076c6346156390c135a3dae1b6ce
|
||||
Subproject commit f983c6defd0b2240eb6f134aefe30f7e93696795
|
||||
|
|
@ -166,4 +166,5 @@ internal val Blockchain.moonPaySupportedCurrency: MoonPaySupportedCurrency?
|
|||
Adi, AdiTestnet -> null
|
||||
SeiEvm, SeiEvmTestnet -> null
|
||||
Monad, MonadTestnet -> null
|
||||
Gonka -> null
|
||||
}
|
||||
|
|
@ -137,6 +137,8 @@ private fun iconSetOf(blockchain: Blockchain): IconSet? = when (blockchain) {
|
|||
-> IconSet(active = R.drawable.img_flare_22, greyedOut = R.drawable.ic_flare_22)
|
||||
Blockchain.Gnosis,
|
||||
-> IconSet(active = R.drawable.img_gnosis_22, greyedOut = R.drawable.ic_gnosis_22)
|
||||
Blockchain.Gonka,
|
||||
-> IconSet(active = R.drawable.img_gonka_22, greyedOut = R.drawable.ic_gonka_22)
|
||||
Blockchain.Hedera,
|
||||
Blockchain.HederaTestnet,
|
||||
-> IconSet(active = R.drawable.img_hedera_22, greyedOut = R.drawable.ic_hedera_22)
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ internal class BlockchainIconsTest {
|
|||
Blockchain.Filecoin -> R.drawable.img_filecoin_22
|
||||
Blockchain.Flare, Blockchain.FlareTestnet -> R.drawable.img_flare_22
|
||||
Blockchain.Gnosis -> R.drawable.img_gnosis_22
|
||||
Blockchain.Gonka -> R.drawable.img_gonka_22
|
||||
Blockchain.Hedera, Blockchain.HederaTestnet -> R.drawable.img_hedera_22
|
||||
Blockchain.Hyperliquid, Blockchain.HyperliquidTestnet -> R.drawable.img_hyperliquid_22
|
||||
Blockchain.InternetComputer -> R.drawable.img_icp_22
|
||||
|
|
@ -198,6 +199,7 @@ internal class BlockchainIconsTest {
|
|||
Blockchain.Filecoin -> R.drawable.ic_filecoin_22
|
||||
Blockchain.Flare, Blockchain.FlareTestnet -> R.drawable.ic_flare_22
|
||||
Blockchain.Gnosis -> R.drawable.ic_gnosis_22
|
||||
Blockchain.Gonka -> R.drawable.ic_gonka_22
|
||||
Blockchain.Hedera, Blockchain.HederaTestnet -> R.drawable.ic_hedera_22
|
||||
Blockchain.Hyperliquid, Blockchain.HyperliquidTestnet -> R.drawable.ic_hyperliquid_22
|
||||
Blockchain.InternetComputer -> R.drawable.ic_icp_22
|
||||
|
|
|
|||
21
core/ui/src/main/res/drawable/ic_gonka_22.xml
Normal file
21
core/ui/src/main/res/drawable/ic_gonka_22.xml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="44"
|
||||
android:viewportHeight="44">
|
||||
<path
|
||||
android:pathData="M22.0779,0.0009C22.2017,6.0786 22.4682,12.1564 22.8218,18.234C23.2874,26.2385 26.7009,34.2436 29.0827,42.2481C29.1354,42.4251 29.185,42.6029 29.2367,42.7799C26.9701,43.5691 24.5355,44 22,44C19.4649,44 17.0305,43.5698 14.7642,42.7808C14.816,42.6034 14.8663,42.4255 14.9191,42.2481C17.3009,34.2436 20.7144,26.2385 21.18,18.234C21.5336,12.1564 21.7992,6.0786 21.923,0.0009C21.9487,0.0008 21.9743,0 22,0C22.026,0 22.0519,0.0008 22.0779,0.0009Z"
|
||||
android:fillColor="#000000" />
|
||||
<path
|
||||
android:pathData="M20.7262,21.2364C19.4639,28.1647 15.6505,35.0935 12.8718,42.0216C12.0526,41.6475 11.2603,41.2248 10.4987,40.7568C14.3095,34.2502 19.1923,27.7431 20.7262,21.2364Z"
|
||||
android:fillColor="#000000" />
|
||||
<path
|
||||
android:pathData="M23.2747,21.2364C24.8085,27.7426 29.6898,34.2498 33.5004,40.7559C32.739,41.2237 31.9472,41.6467 31.1282,42.0208C28.3495,35.093 24.5369,28.1642 23.2747,21.2364Z"
|
||||
android:fillColor="#000000" />
|
||||
<path
|
||||
android:pathData="M20.6062,0.0448C20.5973,6.1451 20.5901,12.2455 20.5641,18.3459C20.5354,25.059 13.5075,31.7743 7.4363,38.4875C2.8764,34.4566 0,28.5647 0,22C0,10.3179 9.1054,0.7638 20.6062,0.0448Z"
|
||||
android:fillColor="#000000" />
|
||||
<path
|
||||
android:pathData="M23.3938,0.0448C34.8946,0.7638 44,10.3179 44,22C44,28.5649 41.123,34.4565 36.5628,38.4875C30.4919,31.7747 23.4655,25.0585 23.4368,18.3459C23.4108,12.2455 23.4027,6.1451 23.3938,0.0448Z"
|
||||
android:fillColor="#000000" />
|
||||
</vector>
|
||||
13
core/ui/src/main/res/drawable/img_gonka_22.xml
Normal file
13
core/ui/src/main/res/drawable/img_gonka_22.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="44"
|
||||
android:viewportHeight="44">
|
||||
<path
|
||||
android:pathData="M22,0C34.15,0 44,9.85 44,22C44,34.15 34.15,44 22,44C9.85,44 0,34.15 0,22C0,9.85 9.85,0 22,0Z"
|
||||
android:fillColor="#242424" />
|
||||
<path
|
||||
android:pathData="M22,0C34.15,0 44,9.85 44,22C44,34.15 34.15,44 22,44C9.85,44 0,34.15 0,22C0,9.85 9.85,0 22,0ZM22.0779,0.0009C22.2017,6.0786 22.4682,12.1564 22.8218,18.234C23.2874,26.2385 26.7009,34.2436 29.0827,42.2481C29.1354,42.4251 29.185,42.6029 29.2367,42.7799C26.9701,43.5691 24.5355,44 22,44C19.4649,44 17.0305,43.5698 14.7642,42.7808C14.816,42.6034 14.8663,42.4255 14.9191,42.2481C17.3009,34.2436 20.7144,26.2385 21.18,18.234C21.5336,12.1564 21.7992,6.0786 21.923,0.0009C21.9487,0.0008 21.9743,0 22,0C22.026,0 22.0519,0.0008 22.0779,0.0009ZM20.7262,21.2364C19.4639,28.1647 15.6505,35.0935 12.8718,42.0216C12.0526,41.6475 11.2603,41.2248 10.4987,40.7568C14.3095,34.2502 19.1923,27.7431 20.7262,21.2364ZM23.2747,21.2364C24.8085,27.7426 29.6898,34.2498 33.5004,40.7559C32.739,41.2237 31.9472,41.6467 31.1282,42.0208C28.3495,35.093 24.5369,28.1642 23.2747,21.2364ZM20.6062,0.0448C20.5973,6.1451 20.5901,12.2455 20.5641,18.3459C20.5354,25.059 13.5075,31.7743 7.4363,38.4875C2.8764,34.4566 0,28.5647 0,22C0,10.3179 9.1054,0.7638 20.6062,0.0448ZM23.3938,0.0448C34.8946,0.7638 44,10.3179 44,22C44,28.5649 41.123,34.4565 36.5628,38.4875C30.4919,31.7747 23.4655,25.0585 23.4368,18.3459C23.4108,12.2455 23.4027,6.1451 23.3938,0.0448Z"
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="evenOdd" />
|
||||
</vector>
|
||||
|
|
@ -224,6 +224,7 @@ class NetworkFactory @Inject constructor(
|
|||
Blockchain.Binance,
|
||||
Blockchain.TON,
|
||||
Blockchain.Cosmos,
|
||||
Blockchain.Gonka,
|
||||
Blockchain.TerraV1,
|
||||
Blockchain.TerraV2,
|
||||
Blockchain.Stellar,
|
||||
|
|
|
|||
|
|
@ -166,5 +166,6 @@ public val Blockchain.mercuryoNetwork: String?
|
|||
Blockchain.Adi, Blockchain.AdiTestnet -> null
|
||||
Blockchain.SeiEvm, Blockchain.SeiEvmTestnet -> null
|
||||
Blockchain.Monad, Blockchain.MonadTestnet -> null
|
||||
Blockchain.Gonka -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -346,6 +346,7 @@ internal class DefaultTransactionRepository(
|
|||
Blockchain.Binance -> BinanceTransactionExtras(memo)
|
||||
Blockchain.XRP -> memo.toLongOrNull()?.let { XrpTransactionBuilder.XrpTransactionExtras(it) }
|
||||
Blockchain.Cosmos,
|
||||
Blockchain.Gonka,
|
||||
Blockchain.Sei,
|
||||
Blockchain.TerraV1,
|
||||
Blockchain.TerraV2,
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ data object Wallet2CardConfig : CardConfig {
|
|||
Blockchain.BitcoinCashTestnet -> EllipticCurve.Secp256k1
|
||||
Blockchain.Cardano -> EllipticCurve.Ed25519
|
||||
Blockchain.Cosmos -> EllipticCurve.Secp256k1
|
||||
Blockchain.Gonka -> EllipticCurve.Secp256k1
|
||||
Blockchain.CosmosTestnet -> EllipticCurve.Secp256k1
|
||||
Blockchain.Dogecoin -> EllipticCurve.Secp256k1
|
||||
Blockchain.Ducatus -> EllipticCurve.Secp256k1
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ class Wallet2CardConfigTest {
|
|||
Blockchain.BitcoinCashTestnet to EllipticCurve.Secp256k1,
|
||||
Blockchain.Cardano to EllipticCurve.Ed25519,
|
||||
Blockchain.Cosmos to EllipticCurve.Secp256k1,
|
||||
Blockchain.Gonka to EllipticCurve.Secp256k1,
|
||||
Blockchain.CosmosTestnet to EllipticCurve.Secp256k1,
|
||||
Blockchain.Dogecoin to EllipticCurve.Secp256k1,
|
||||
Blockchain.Ducatus to EllipticCurve.Secp256k1,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
# https://github.com/tangem/tangem-sdk-android/
|
||||
# https://github.com/tangem/vico
|
||||
|
||||
tangemBlockchainSdk = "releases-6.0-1594"
|
||||
tangemBlockchainSdk = "releases-6.0-1599"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "releases-6.0-626"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"ravencoin" -> Blockchain.Ravencoin
|
||||
"ravencoin/test" -> Blockchain.RavencoinTestnet
|
||||
"cosmos" -> Blockchain.Cosmos
|
||||
"gonka" -> Blockchain.Gonka
|
||||
"cosmos/test" -> Blockchain.CosmosTestnet
|
||||
"terra" -> Blockchain.TerraV1
|
||||
"terra-2" -> Blockchain.TerraV2
|
||||
|
|
@ -242,6 +243,7 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.Ravencoin -> "ravencoin"
|
||||
Blockchain.RavencoinTestnet -> "ravencoin/test"
|
||||
Blockchain.Cosmos -> "cosmos"
|
||||
Blockchain.Gonka -> "gonka"
|
||||
Blockchain.CosmosTestnet -> "cosmos/test"
|
||||
Blockchain.TerraV1 -> "terra"
|
||||
Blockchain.TerraV2 -> "terra-2"
|
||||
|
|
@ -398,6 +400,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Kava, Blockchain.KavaTestnet -> "kava"
|
||||
Blockchain.Ravencoin, Blockchain.RavencoinTestnet -> "ravencoin"
|
||||
Blockchain.Cosmos, Blockchain.CosmosTestnet -> "cosmos"
|
||||
Blockchain.Gonka -> "gonka"
|
||||
Blockchain.TerraV1 -> "terra-luna"
|
||||
Blockchain.TerraV2 -> "terra-luna-2"
|
||||
Blockchain.Cronos -> "crypto-com-chain"
|
||||
|
|
|
|||
|
|
@ -180,6 +180,7 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
|
|||
Blockchain.Adi,
|
||||
Blockchain.SeiEvm,
|
||||
Blockchain.Monad,
|
||||
Blockchain.Gonka,
|
||||
-> true
|
||||
Blockchain.Nexa, // unsupported network
|
||||
Blockchain.Chia,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue