Updated on 2026-08-14
This commit is contained in:
commit
99bd128251
8 changed files with 70 additions and 1 deletions
|
|
@ -698,6 +698,16 @@
|
|||
"networkId": "blast/test"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "cyberconnect",
|
||||
"name": "Cyber",
|
||||
"symbol": "ETH",
|
||||
"networks": [
|
||||
{
|
||||
"networkId": "cyber/test"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ fun getActiveIconRes(blockchainId: String): Int {
|
|||
"bittensor" -> R.drawable.img_bittensor_22
|
||||
"blast", "blast/test" -> R.drawable.img_blast_22
|
||||
"filecoin" -> R.drawable.img_filecoin_22
|
||||
"cyber", "cyber/test" -> R.drawable.img_cyber_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -145,6 +146,7 @@ fun getActiveIconResByNetworkId(networkId: String): Int {
|
|||
"bittensor" -> R.drawable.img_bittensor_22
|
||||
"blast", "blast/test" -> R.drawable.img_blast_22
|
||||
"filecoin" -> R.drawable.img_filecoin_22
|
||||
"cyber", "cyber/test" -> R.drawable.img_cyber_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -215,6 +217,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
|
|||
"bittensor" -> R.drawable.img_bittensor_22
|
||||
"blast", "blast/test" -> R.drawable.img_blast_22
|
||||
"filecoin" -> R.drawable.img_filecoin_22
|
||||
"cyber", "cyber/test" -> R.drawable.img_cyber_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -288,6 +291,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
|
|||
"bittensor" -> R.drawable.ic_bittensor_22
|
||||
"blast", "blast/test" -> R.drawable.ic_blast_22
|
||||
"filecoin" -> R.drawable.ic_filecoin_22
|
||||
"cyber", "cyber/test" -> R.drawable.ic_cyber_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -361,6 +365,7 @@ fun getGreyedOutIconResByNetworkId(networkId: String): Int {
|
|||
"bittensor" -> R.drawable.ic_bittensor_22
|
||||
"blast", "blast/test" -> R.drawable.ic_blast_22
|
||||
"filecoin" -> R.drawable.ic_filecoin_22
|
||||
"cyber", "cyber/test" -> R.drawable.ic_cyber_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
17
core/ui/src/main/res/drawable/ic_cyber_22.xml
Normal file
17
core/ui/src/main/res/drawable/ic_cyber_22.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<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"/>
|
||||
|
||||
<group>
|
||||
<path
|
||||
android:pathData="M10.975,7.071C13.139,7.071 14.894,8.829 14.894,10.999C14.894,13.168 13.139,14.927 10.975,14.927C8.81,14.927 7.055,13.168 7.055,10.999C7.055,8.829 8.81,7.071 10.975,7.071ZM10.975,4.714C7.517,4.714 4.704,7.533 4.704,10.999C4.704,14.464 7.517,17.284 10.975,17.284C14.433,17.284 17.246,14.464 17.246,10.999C17.246,7.533 14.433,4.714 10.975,4.714Z"
|
||||
android:strokeAlpha="0.2"
|
||||
android:fillColor="#000000"/>
|
||||
</group>
|
||||
</group>
|
||||
</vector>
|
||||
26
core/ui/src/main/res/drawable/img_cyber_22.xml
Normal file
26
core/ui/src/main/res/drawable/img_cyber_22.xml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<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"/>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0,0h22v22h-22z"/>
|
||||
<path
|
||||
android:pathData="M10.975,7.071C13.139,7.071 14.894,8.829 14.894,10.999C14.894,13.168 13.139,14.927 10.975,14.927C8.81,14.927 7.055,13.168 7.055,10.999C7.055,8.829 8.81,7.071 10.975,7.071ZM10.975,0C9.496,0 8.059,0.292 6.7,0.867C5.392,1.421 4.219,2.214 3.214,3.221C2.209,4.229 1.418,5.404 0.865,6.715C0.291,8.075 0,9.517 0,10.999C0,12.481 0.291,13.921 0.865,15.282C1.418,16.593 2.209,17.769 3.214,18.776C4.219,19.784 5.392,20.576 6.7,21.13C8.058,21.706 9.496,21.997 10.975,21.997C12.453,21.997 13.891,21.706 15.249,21.13C16.557,20.576 17.73,19.784 18.735,18.776C19.741,17.769 20.531,16.593 21.084,15.282C21.658,13.922 21.949,12.481 21.949,10.999C21.949,9.517 21.658,8.076 21.084,6.715C20.531,5.404 19.741,4.229 18.735,3.221C17.73,2.214 16.557,1.421 15.249,0.867C13.892,0.292 12.453,0 10.975,0Z"
|
||||
android:fillColor="#B7F7B0"/>
|
||||
<path
|
||||
android:pathData="M10.975,7.071C13.139,7.071 14.894,8.829 14.894,10.999C14.894,13.168 13.139,14.927 10.975,14.927C8.81,14.927 7.055,13.168 7.055,10.999C7.055,8.829 8.81,7.071 10.975,7.071ZM10.975,2.357C6.22,2.357 2.352,6.234 2.352,10.999C2.352,15.764 6.22,19.641 10.975,19.641C15.729,19.641 19.598,15.764 19.598,10.999C19.598,6.234 15.729,2.357 10.975,2.357Z"
|
||||
android:fillColor="#07DC10"/>
|
||||
<path
|
||||
android:pathData="M10.975,7.071C13.139,7.071 14.894,8.829 14.894,10.999C14.894,13.168 13.139,14.927 10.975,14.927C8.81,14.927 7.055,13.168 7.055,10.999C7.055,8.829 8.81,7.071 10.975,7.071ZM10.975,4.714C7.517,4.714 4.704,7.533 4.704,10.999C4.704,14.464 7.517,17.284 10.975,17.284C14.433,17.284 17.246,14.464 17.246,10.999C17.246,7.533 14.433,4.714 10.975,4.714Z"
|
||||
android:fillColor="#0C9B00"/>
|
||||
</group>
|
||||
</group>
|
||||
</vector>
|
||||
|
|
@ -56,6 +56,8 @@ internal class QuotesUnsupportedCurrenciesIdAdapter {
|
|||
"polygon-zkevm-ethereum" to "ethereum",
|
||||
"aurora-ethereum" to "ethereum",
|
||||
"base-ethereum" to "ethereum",
|
||||
"cyberconnect" to "ethereum",
|
||||
"blast" to "ethereum",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -106,6 +106,7 @@ class ResponseCryptoCurrenciesFactory {
|
|||
Blockchain.Telos,
|
||||
Blockchain.Cronos,
|
||||
Blockchain.TON,
|
||||
Blockchain.Cyber,
|
||||
-> this.fullName
|
||||
else -> responseToken.name
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ internal class SetInitialDataStateTransformer(
|
|||
override fun transform(prevState: StakingUiState): StakingUiState {
|
||||
return prevState.copy(
|
||||
title = TextReference.Res(
|
||||
R.string.staking_initial_info_title,
|
||||
R.string.staking_title_stake,
|
||||
wrappedList(cryptoCurrencyStatusProvider().currency.name),
|
||||
),
|
||||
clickIntents = clickIntents,
|
||||
|
|
|
|||
|
|
@ -121,6 +121,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"filecoin" -> Blockchain.Filecoin
|
||||
"blast" -> Blockchain.Blast
|
||||
"blast/test" -> Blockchain.BlastTestnet
|
||||
"cyber" -> Blockchain.Cyber
|
||||
"cyber/test" -> Blockchain.CyberTestnet
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -243,9 +245,14 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.Filecoin -> "filecoin"
|
||||
Blockchain.Blast -> "blast"
|
||||
Blockchain.BlastTestnet -> "blast/test"
|
||||
Blockchain.Cyber -> "cyber"
|
||||
Blockchain.CyberTestnet -> "cyber/test"
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CoinId is id from tangem backend response coin "id" field
|
||||
*/
|
||||
@Suppress("ComplexMethod", "LongMethod")
|
||||
fun Blockchain.toCoinId(): String {
|
||||
return when (this) {
|
||||
|
|
@ -321,6 +328,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Bittensor -> "bittensor"
|
||||
Blockchain.Filecoin -> "filecoin"
|
||||
Blockchain.Blast, Blockchain.BlastTestnet -> "blast"
|
||||
Blockchain.Cyber, Blockchain.CyberTestnet -> "cyberconnect"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue