Updated on 2026-08-14

This commit is contained in:
Tangem 2024-05-30 14:40:34 +05:00
parent 7457d4de1a
commit 4a3ca5b489
10 changed files with 40 additions and 2 deletions

View file

@ -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,

View file

@ -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)

View file

@ -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
}
}

View 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>

View 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>