mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-06-21 22:41:11 +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",
|
"governance-v2",
|
||||||
"proxy",
|
"proxy",
|
||||||
"multisig",
|
"multisig",
|
||||||
"pushSupport"
|
"pushSupport",
|
||||||
|
"fullSyncByDefault"
|
||||||
],
|
],
|
||||||
"nodeSelectionStrategy": "roundRobin",
|
"nodeSelectionStrategy": "roundRobin",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
@@ -64,7 +65,8 @@
|
|||||||
"icon": "https://raw.githubusercontent.com/pezkuwichain/pezkuwi-wallet-utils/master/icons/chains/Pezkuwi.png",
|
"icon": "https://raw.githubusercontent.com/pezkuwichain/pezkuwi-wallet-utils/master/icons/chains/Pezkuwi.png",
|
||||||
"addressPrefix": 42,
|
"addressPrefix": 42,
|
||||||
"options": [
|
"options": [
|
||||||
"testnet"
|
"testnet",
|
||||||
|
"fullSyncByDefault"
|
||||||
],
|
],
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
@@ -100,7 +102,8 @@
|
|||||||
"swap-hub",
|
"swap-hub",
|
||||||
"assethub-fees",
|
"assethub-fees",
|
||||||
"proxy",
|
"proxy",
|
||||||
"multisig"
|
"multisig",
|
||||||
|
"fullSyncByDefault"
|
||||||
],
|
],
|
||||||
"nodeSelectionStrategy": "roundRobin",
|
"nodeSelectionStrategy": "roundRobin",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
@@ -177,7 +180,8 @@
|
|||||||
"addressPrefix": 42,
|
"addressPrefix": 42,
|
||||||
"options": [
|
"options": [
|
||||||
"proxy",
|
"proxy",
|
||||||
"multisig"
|
"multisig",
|
||||||
|
"fullSyncByDefault"
|
||||||
],
|
],
|
||||||
"nodeSelectionStrategy": "roundRobin",
|
"nodeSelectionStrategy": "roundRobin",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
|
|||||||
@@ -4,12 +4,18 @@ import io.novafoundation.nova.runtime.multiNetwork.chain.model.Chain
|
|||||||
|
|
||||||
val Chain.mainChainsFirstAscendingOrder
|
val Chain.mainChainsFirstAscendingOrder
|
||||||
get() = when (genesisHash) {
|
get() = when (genesisHash) {
|
||||||
|
// Pezkuwi ecosystem first
|
||||||
Chain.Geneses.PEZKUWI -> 0
|
Chain.Geneses.PEZKUWI -> 0
|
||||||
Chain.Geneses.PEZKUWI_ASSET_HUB -> 1
|
Chain.Geneses.PEZKUWI_ASSET_HUB -> 1
|
||||||
Chain.Geneses.PEZKUWI_PEOPLE -> 2
|
Chain.Geneses.PEZKUWI_PEOPLE -> 2
|
||||||
Chain.Geneses.POLKADOT_ASSET_HUB -> 3
|
// Then Polkadot ecosystem
|
||||||
Chain.Geneses.KUSAMA_ASSET_HUB -> 4
|
Chain.Geneses.POLKADOT -> 3
|
||||||
else -> 5
|
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
|
val Chain.testnetsLastAscendingOrder
|
||||||
|
|||||||
Reference in New Issue
Block a user