Updated on 2026-08-14
This commit is contained in:
parent
7457d4de1a
commit
4a3ca5b489
10 changed files with 40 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 7ae8d8956605c444a46a5b15cfa0a11cb595ca9f
|
||||
Subproject commit 0a2434d93d67bec1804e3e827b3795a62f961d90
|
||||
|
|
@ -100,6 +100,8 @@ internal class ConfigManagerImpl @Inject constructor() : ConfigManager {
|
|||
chiaFireAcademyApiKey = configValues.chiaFireAcademyApiKey,
|
||||
chiaTangemApiKey = configValues.chiaTangemApiKey,
|
||||
polygonScanApiKey = configValues.polygonScanApiKey,
|
||||
bittensorDwellirApiKey = configValues.bittensorDwellirApiKey,
|
||||
bittensorOnfinalityApiKey = configValues.bittensorOnfinalityKey,
|
||||
),
|
||||
amplitudeApiKey = configValues.amplitudeApiKey,
|
||||
sprinklr = configValues.sprinklr,
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@ class ConfigValueModel(
|
|||
val express: ExpressModel?,
|
||||
val polygonScanApiKey: String?,
|
||||
val stakeKitApiKey: String?,
|
||||
@Json(name = "bittensorDwellirKey") val bittensorDwellirApiKey: String?,
|
||||
@Json(name = "bittensorOnfinalityKey") val bittensorOnfinalityKey: String?,
|
||||
)
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ fun getActiveIconRes(blockchainId: String): Int {
|
|||
"base" -> R.drawable.img_base_22
|
||||
"joystream" -> R.drawable.img_joystream_22
|
||||
"koinos", "koinos/test" -> R.drawable.img_koinos_22
|
||||
"bittensor" -> R.drawable.img_bittensor_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -139,6 +140,7 @@ fun getActiveIconResByNetworkId(networkId: String): Int {
|
|||
"base" -> R.drawable.img_base_22
|
||||
"joystream" -> R.drawable.img_joystream_22
|
||||
"koinos", "koinos/test" -> R.drawable.img_koinos_22
|
||||
"bittensor" -> R.drawable.img_bittensor_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -205,6 +207,8 @@ fun getActiveIconResByCoinId(coinId: String): Int {
|
|||
"radiant" -> R.drawable.img_radiant_22
|
||||
"base" -> R.drawable.img_base_22
|
||||
"joystream" -> R.drawable.img_joystream_22
|
||||
"koinos", "koinos/test" -> R.drawable.img_koinos_22
|
||||
"bittensor" -> R.drawable.img_bittensor_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -275,6 +279,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
|
|||
"base", "base/test" -> R.drawable.ic_base_22
|
||||
"joystream" -> R.drawable.ic_joystream_22
|
||||
"koinos", "koinos/test" -> R.drawable.ic_koinos_22
|
||||
"bittensor" -> R.drawable.ic_bittensor_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -345,6 +350,7 @@ fun getGreyedOutIconResByNetworkId(networkId: String): Int {
|
|||
"base", "base/test" -> R.drawable.ic_base_22
|
||||
"joystream" -> R.drawable.ic_joystream_22
|
||||
"koinos", "koinos/test" -> R.drawable.ic_koinos_22
|
||||
"bittensor" -> R.drawable.ic_bittensor_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
9
core/ui/src/main/res/drawable/ic_bittensor_22.xml
Normal file
9
core/ui/src/main/res/drawable/ic_bittensor_22.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<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="#000000"
|
||||
android:pathData="M5.4,7.076C5.4,5.934 6.338,5 7.432,5H16.6C16.6,6.142 15.714,7.076 14.568,7.076H9.993C11.239,7.081 12.224,8.065 12.224,9.308V14.187C12.224,15.641 12.328,16.419 13.631,16.523C13.214,16.886 12.641,17.042 12.12,16.99H12.016C10.87,16.99 9.984,16.056 9.984,14.914V7.076H5.4Z" />
|
||||
</vector>
|
||||
12
core/ui/src/main/res/drawable/img_bittensor_22.xml
Normal file
12
core/ui/src/main/res/drawable/img_bittensor_22.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<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="#292929"
|
||||
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:fillColor="#ffffff"
|
||||
android:pathData="M5.4,7.076C5.4,5.934 6.338,5 7.432,5H16.6C16.6,6.142 15.714,7.076 14.568,7.076H9.993C11.239,7.081 12.224,8.065 12.224,9.308V14.187C12.224,15.641 12.328,16.419 13.631,16.523C13.214,16.886 12.641,17.042 12.12,16.99H12.016C10.87,16.99 9.984,16.056 9.984,14.914V7.076H5.4Z" />
|
||||
</vector>
|
||||
|
|
@ -87,7 +87,7 @@ markdown = "0.7.2"
|
|||
# endregion Other libraries
|
||||
|
||||
# region Tangem
|
||||
tangemBlockchainSdk = "develop-651"
|
||||
tangemBlockchainSdk = "develop-652"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "develop-356"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@ internal object BlockchainProviderTypesConverter :
|
|||
"solana" -> ProviderType.Solana.Official
|
||||
"ton" -> ProviderType.Ton.TonCentral
|
||||
"tron" -> ProviderType.Tron.TronGrid
|
||||
"dwellirBittensor" -> ProviderType.Bittensor.Dwellir
|
||||
"onfinalityBittensor" -> ProviderType.Bittensor.Onfinality
|
||||
else -> {
|
||||
Timber.e("$blockchain private provider ($name) is not supported")
|
||||
null
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@ internal object BlockchainSDKConfigConverter : Converter<ConfigValueModel, Block
|
|||
chiaFireAcademyApiKey = value.chiaFireAcademyApiKey,
|
||||
chiaTangemApiKey = value.chiaTangemApiKey,
|
||||
polygonScanApiKey = value.polygonScanApiKey,
|
||||
bittensorDwellirApiKey = value.bittensorDwellirApiKey,
|
||||
bittensorOnfinalityApiKey = value.bittensorOnfinalityKey,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"koinos" -> Blockchain.Koinos
|
||||
"koinos/test" -> Blockchain.KoinosTestnet
|
||||
"joystream" -> Blockchain.Joystream
|
||||
"bittensor" -> Blockchain.Bittensor
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -235,6 +236,7 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.Koinos -> "koinos"
|
||||
Blockchain.KoinosTestnet -> "koinos/test"
|
||||
Blockchain.Joystream -> "joystream"
|
||||
Blockchain.Bittensor -> "bittensor"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -310,6 +312,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Base, Blockchain.BaseTestnet -> "base-ethereum"
|
||||
Blockchain.Koinos, Blockchain.KoinosTestnet -> "koinos"
|
||||
Blockchain.Joystream -> "joystream"
|
||||
Blockchain.Bittensor -> "bittensor"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue