Updated on 2026-08-14
This commit is contained in:
parent
42806a4d7c
commit
c6a5780867
5 changed files with 49 additions and 4 deletions
|
|
@ -748,6 +748,16 @@
|
|||
"networkId": "core/test"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "casper-network",
|
||||
"name": "Casper",
|
||||
"symbol": "CSPR",
|
||||
"networks": [
|
||||
{
|
||||
"networkId": "casper-network/test"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ fun getActiveIconRes(blockchainId: String): Int {
|
|||
"energy-web-chain", "energy-web-chain/test" -> R.drawable.img_energy_web_22
|
||||
"energy-web-x", "energy-web-x/test" -> R.drawable.img_energy_web_22
|
||||
"core", "core/test" -> R.drawable.img_core_22
|
||||
"casper-network", "casper-network/test" -> R.drawable.img_casper_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -159,6 +160,7 @@ fun getActiveIconResByNetworkId(networkId: String): Int {
|
|||
"energy-web-chain", "energy-web-chain/test" -> R.drawable.img_energy_web_22
|
||||
"energy-web-x", "energy-web-x/test" -> R.drawable.img_energy_web_22
|
||||
"core", "core/test" -> R.drawable.img_core_22
|
||||
"casper-network", "casper-network/test" -> R.drawable.img_casper_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -236,6 +238,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
|
|||
"energy-web-chain", "energy-web-chain/test" -> R.drawable.img_energy_web_22
|
||||
"energy-web-x", "energy-web-x/test" -> R.drawable.img_energy_web_22
|
||||
"core", "core/test" -> R.drawable.img_core_22
|
||||
"casper-network" -> R.drawable.img_casper_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -316,6 +319,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
|
|||
"energy-web-chain", "energy-web-chain/test" -> R.drawable.ic_energy_web_22
|
||||
"energy-web-x", "energy-web-x/test" -> R.drawable.ic_energy_web_22
|
||||
"core", "core/test" -> R.drawable.ic_core_22
|
||||
"casper-network", "casper-network/test" -> R.drawable.ic_casper_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -396,6 +400,7 @@ fun getGreyedOutIconResByNetworkId(networkId: String): Int {
|
|||
"energy-web-chain", "energy-web-chain/test" -> R.drawable.ic_energy_web_22
|
||||
"energy-web-x", "energy-web-x/test" -> R.drawable.ic_energy_web_22
|
||||
"core", "core/test" -> R.drawable.ic_core_22
|
||||
"casper-network", "casper-network/test" -> R.drawable.ic_casper_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
9
core/ui/src/main/res/drawable/ic_casper_22.xml
Normal file
9
core/ui/src/main/res/drawable/ic_casper_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:pathData="M7.746,13.948V8.129C7.746,7.991 7.797,7.854 7.901,7.763C7.983,7.69 8.081,7.653 8.195,7.653H15.5V5.4H15.396C14.708,5.4 14.149,5.961 14.149,6.652V6.673C14.149,7.015 13.886,7.314 13.546,7.323C13.205,7.332 12.91,7.051 12.91,6.702V6.643C12.91,5.957 12.355,5.401 11.672,5.401H7.789C7.351,5.401 6.958,5.5 6.611,5.697C6.264,5.895 5.992,6.168 5.795,6.515C5.599,6.863 5.5,7.257 5.5,7.696V14.354C5.5,14.794 5.599,15.188 5.795,15.535C5.993,15.883 6.264,16.156 6.611,16.354C6.958,16.552 7.351,16.65 7.789,16.65H15.498V14.397H8.22C8.082,14.397 7.946,14.346 7.855,14.242C7.782,14.159 7.745,14.061 7.745,13.946L7.746,13.948Z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
||||
19
core/ui/src/main/res/drawable/img_casper_22.xml
Normal file
19
core/ui/src/main/res/drawable/img_casper_22.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<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="#FF2D2E"/>
|
||||
<path
|
||||
android:pathData="M7.746,13.948V8.129C7.746,7.991 7.797,7.854 7.901,7.763C7.983,7.69 8.081,7.653 8.195,7.653H15.5V5.4H15.396C14.708,5.4 14.149,5.961 14.149,6.652V6.673C14.149,7.015 13.886,7.314 13.546,7.323C13.205,7.332 12.91,7.051 12.91,6.702V6.643C12.91,5.957 12.355,5.401 11.672,5.401H7.789C7.351,5.401 6.958,5.5 6.611,5.697C6.264,5.895 5.992,6.168 5.795,6.515C5.599,6.863 5.5,7.257 5.5,7.696V14.354C5.5,14.794 5.599,15.188 5.795,15.535C5.993,15.883 6.264,16.156 6.611,16.354C6.958,16.552 7.351,16.65 7.789,16.65H15.498V14.397H8.22C8.082,14.397 7.946,14.346 7.855,14.242C7.782,14.159 7.745,14.061 7.745,13.946L7.746,13.948Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</group>
|
||||
</vector>
|
||||
|
|
@ -136,6 +136,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"add_later_test" -> Blockchain.CasperTestnet
|
||||
"core" -> Blockchain.Core
|
||||
"core/test" -> Blockchain.CoreTestnet
|
||||
"casper-network" -> Blockchain.Casper
|
||||
"casper-network/test" -> Blockchain.CasperTestnet
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -269,8 +271,8 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.EnergyWebChainTestnet -> "energy-web-chain/test"
|
||||
Blockchain.EnergyWebX -> "energy-web-x"
|
||||
Blockchain.EnergyWebXTestnet -> "energy-web-x/test"
|
||||
Blockchain.Casper -> "add_later"
|
||||
Blockchain.CasperTestnet -> "add_later_test"
|
||||
Blockchain.Casper -> "casper-network"
|
||||
Blockchain.CasperTestnet -> "casper-network/test"
|
||||
Blockchain.Core -> "core"
|
||||
Blockchain.CoreTestnet -> "core/test"
|
||||
}
|
||||
|
|
@ -360,8 +362,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Sui, Blockchain.SuiTestnet -> "sui"
|
||||
Blockchain.EnergyWebChain, Blockchain.EnergyWebChainTestnet -> "energy-web-token"
|
||||
Blockchain.EnergyWebX, Blockchain.EnergyWebXTestnet -> "energy-web-token"
|
||||
Blockchain.Casper -> "add_later"
|
||||
Blockchain.CasperTestnet -> "add_later_test"
|
||||
Blockchain.Casper, Blockchain.CasperTestnet -> "casper-network"
|
||||
Blockchain.Core, Blockchain.CoreTestnet -> "coredaoorg"
|
||||
}
|
||||
}
|
||||
|
|
@ -386,6 +387,7 @@ fun Blockchain.amountToCreateAccount(token: Token? = null): BigDecimal? {
|
|||
Blockchain.Near, Blockchain.NearTestnet -> 0.00182.toBigDecimal()
|
||||
Blockchain.Aptos, Blockchain.AptosTestnet,
|
||||
Blockchain.Filecoin,
|
||||
Blockchain.Casper, Blockchain.CasperTestnet,
|
||||
-> BigDecimal.ZERO
|
||||
else -> null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue