mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-22 04:27:58 +00:00
feat: Add fullSyncByDefault to Pezkuwi chains and fix chain sorting
- Added fullSyncByDefault option to all Pezkuwi chains (mainnet, Asset Hub, People, Zagros) to enable automatic balance sync - Fixed chain sorting to include Polkadot and Kusama relay chains - Pezkuwi ecosystem now correctly appears first in network lists
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
"governance-v2",
|
||||
"proxy",
|
||||
"multisig",
|
||||
"pushSupport"
|
||||
"pushSupport",
|
||||
"fullSyncByDefault"
|
||||
],
|
||||
"nodeSelectionStrategy": "roundRobin",
|
||||
"nodes": [
|
||||
@@ -64,7 +65,8 @@
|
||||
"icon": "https://raw.githubusercontent.com/pezkuwichain/pezkuwi-wallet-utils/master/icons/chains/Pezkuwi.png",
|
||||
"addressPrefix": 42,
|
||||
"options": [
|
||||
"testnet"
|
||||
"testnet",
|
||||
"fullSyncByDefault"
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
@@ -100,7 +102,8 @@
|
||||
"swap-hub",
|
||||
"assethub-fees",
|
||||
"proxy",
|
||||
"multisig"
|
||||
"multisig",
|
||||
"fullSyncByDefault"
|
||||
],
|
||||
"nodeSelectionStrategy": "roundRobin",
|
||||
"nodes": [
|
||||
@@ -177,7 +180,8 @@
|
||||
"addressPrefix": 42,
|
||||
"options": [
|
||||
"proxy",
|
||||
"multisig"
|
||||
"multisig",
|
||||
"fullSyncByDefault"
|
||||
],
|
||||
"nodeSelectionStrategy": "roundRobin",
|
||||
"nodes": [
|
||||
|
||||
@@ -4,12 +4,18 @@ import io.novafoundation.nova.runtime.multiNetwork.chain.model.Chain
|
||||
|
||||
val Chain.mainChainsFirstAscendingOrder
|
||||
get() = when (genesisHash) {
|
||||
// Pezkuwi ecosystem first
|
||||
Chain.Geneses.PEZKUWI -> 0
|
||||
Chain.Geneses.PEZKUWI_ASSET_HUB -> 1
|
||||
Chain.Geneses.PEZKUWI_PEOPLE -> 2
|
||||
Chain.Geneses.POLKADOT_ASSET_HUB -> 3
|
||||
Chain.Geneses.KUSAMA_ASSET_HUB -> 4
|
||||
else -> 5
|
||||
// Then Polkadot ecosystem
|
||||
Chain.Geneses.POLKADOT -> 3
|
||||
Chain.Geneses.POLKADOT_ASSET_HUB -> 4
|
||||
// Then Kusama ecosystem
|
||||
Chain.Geneses.KUSAMA -> 5
|
||||
Chain.Geneses.KUSAMA_ASSET_HUB -> 6
|
||||
// Everything else
|
||||
else -> 7
|
||||
}
|
||||
|
||||
val Chain.testnetsLastAscendingOrder
|
||||
|
||||
Reference in New Issue
Block a user