feat: update splash logo, add missing string resources, add stakingBackingChainId
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 78 KiB |
@@ -2739,4 +2739,6 @@
|
||||
<string name="wallet_send_phishing_warning_title">Scam alert</string>
|
||||
<string name="wallet_transfer_details_title">Transfer details</string>
|
||||
<string name="yesterday">Yesterday</string>
|
||||
<string name="branch_io_link_host" translatable="false">pezkuwi-wallet.app.link</string>
|
||||
<string name="branch_io_link_host_alternate" translatable="false">pezkuwi-wallet-alternate.app.link</string>
|
||||
</resources>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package io.novafoundation.nova.feature_staking_impl.domain.nominationPools
|
||||
|
||||
import io.novafoundation.nova.runtime.multiNetwork.chain.model.Chain
|
||||
import io.novafoundation.nova.runtime.multiNetwork.chain.model.ChainId
|
||||
|
||||
/**
|
||||
* Finds the staking type that backs nomination pools.
|
||||
@@ -23,3 +24,17 @@ fun Chain.Asset.findStakingTypeBackingNominationPools(): Chain.Asset.StakingType
|
||||
fun Chain.Asset.hasLocalNominationPoolsBacking(): Boolean {
|
||||
return staking.any { it != Chain.Asset.StakingType.NOMINATION_POOLS }
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the chain ID where staking exposures (validators, eras) live.
|
||||
*
|
||||
* For nomination pools on a parachain (e.g. Asset Hub in Polkadot 2.0),
|
||||
* the staking ledger/exposures are on the parent relay chain.
|
||||
* For relay chains or chains with local staking, returns the chain's own ID.
|
||||
*/
|
||||
fun Chain.stakingBackingChainId(stakingType: Chain.Asset.StakingType): ChainId {
|
||||
if (stakingType == Chain.Asset.StakingType.NOMINATION_POOLS && parentId != null) {
|
||||
return parentId!!
|
||||
}
|
||||
return id
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
VERSION_CODE=159
|
||||
VERSION_CODE=163
|
||||