Skip to content

Commit 79d86b7

Browse files
PankraSergDenis LyazginarvifoxDeneathCre-eD
authored
release_2.0.4(57) (#526)
* asset list sort * relay chains only polkadot and kusama by id * override java var to v11 * asset list sort * relay chains only polkadot and kusama by id * asset list sort * fix tests * fix icon for asset * remove unused icons * 1455: Statemine/Statemint parachains support * FLW-1439 Add manually nodes switching for multi-assets, remove some old nodes logic * FLW-1486 opens the main screen after switching to a node * FLW-1485 fix settings UI * FLW-1439 #422 pull request fixes * FLW-1489 fixed settings details wrong flow * FLW-1489 fixed wrong icons in wallets list * 1453 Moonriver/Moonbeam parachains support * 1475 fix asset details chain badge * FLW-1490 fix wrong balance on settings screen * 1145: account export * 1145: account export 1492, 1493 various fixes fix password field obfuscaion true by default fix json export UI: buttons order fix soft keyboard overlap input fields mnemonic export finish * FLW-1498 accounts migration on new ethereum derivation path * FLW-1480 fix quick inputs calculation * 1483 fix partial Incomplete translation of the RU version of the app * 1474: fix When switching between wallets, assets list centered on the first asset from the previous wallet * FLW-1497 fix wrong fee in some cases on staking reward * 1145 export and 1439 change node: merge info popups * Change acala genesis hash in old logic * fix crash in options caused by parachain chainId change * fix metadata update error * Fix empty mnemonic bug * hide ethereum export json and seed options * updates_for_release * update json urls * release version up -> 2.0.1 (52) * gradle build updates (ide update) * sort account in wallet * FLW-1491 Replace account avatar stub on new avatar * 1476: subscan and polkascan rework * 1533: Update asset details screen, some UI/UX refinements * 1545: Network management and node switching * 1558: Setup fiddler for QA * FLW-1148 extract network badge to custom view * FLW-1148 add manage assets screen * 1556: new develop icons * 1556: subquery reward param fix; remove alerts for errors on balance details * 1451: Kintsugi/Interlay parachains support * 1533: Add "Copy address" * 1569 Fix chain wo nodes crash * 1588: Fix transfer on Kintsugi parachain * 1588: Fix transfer on Kintsugi parachain * FLW-1590 fix manage assets sorting * FLW-1512 fix import from seed and json for ethereum * FLW-1512 add export for eth-based accounts * FLW-1600 fix address sharing * 1555_Wallet_Export_various_flows (#465) * 1555 Wallet Export various flows * PR fixes: add isEthereum param to export options generation; add use case comment * fix export options logic * update publish library version; update build gradle version * FLW-1601 fix create/import string resources, add derivation path field for ethereum * 1483 update RU translations * FLW-1601 new create/import flow * FLW-1615 import/export bug fixes * 1602: import chain account * FLW-1609 add eth options for export * fix welcome strings * Fix export issues after merge conflicts * 1608 fix Can't hide some assets from the list * assets migration fix * 1571 validators suggested by algorithm * 1404 hide crowdloan from active when cap is nearer then minContribution * 1638_various_fixes (#478) * 1638 Add an extra account to a wallet. Hide "Name" field * 1614 Wallet/Account Export/Import UI bugs * 1593 fix Switch node. There is no text on button * 1565 fix There is no keyboard when the button "Create a new wallet" is pressed * FLW-1636 add derivation path validations * FLW-1636 add derivation path validation for import * Separate json export by eth/substrate * update chains url; version up -> 2.0.2 (53); gradle build tools up; * fix chain assets show in lists * Add export JSON to file * fix chain assets show in lists update * hotfix kusama update removed MaxNominators const * 1568 Confirm mnemonic screen no error alert * fix chain asset balance * fix backmerge * 1670 fix Continue button doesn't react while Staking * FLW-1657 add different fiat currencies * FLW-1667 fix advanced block for import * Add current selected currency indicator * 1655 skeletons * 1655 connection indicator * FLW-1690 fix currency symbol bug * 1689_1693_fixes (#507) * 1689 increase skeletons blinking duration to 3 seconds * 1693 change update handling logic for rates update * FLW-1694 fix arab symbol bug * Set up Google play publishing (#509) Signed-off-by: Dmitriy Creed <[email protected]> * 1689, 1695 skeleton issues * FLW-1697 add minimum stake alert * 1689, 1695 skeleton issues * fix 1705 staking alert logic * interlay parachain fix * feature/FLW-1688 systematic solution (#516) * 1688 reset background session * 1688 wip: minSupportedVersion chains.json * FLW-1688 complete drop inactive session in foreground, minSupportedVersion for chains, remote config * 1688 add foreground app lock * 1688 remove GetAppVersion dependencies * 1688 fix overlapping pin call on background/foreground * FLW-1688 move session drop to ViewModel Co-authored-by: Sergey Pankratov <[email protected]> Co-authored-by: Denis Lyazgin <[email protected]> * new types format; change json urls * FLW-1710 comment out sorting logic while update * 1704 fix staking crashes * 1706 hide ethereum chain when no account specified * 1688 min version check logic * 1688 fix chain min version check logic * version up -> 2.0.4 (56) * fix crash in staking: your validators Co-authored-by: Denis Lyazgin <[email protected]> Co-authored-by: arvifox <[email protected]> Co-authored-by: Deneath <[email protected]> Co-authored-by: Dmitriy Creed <[email protected]>
1 parent 6886a4b commit 79d86b7

File tree

2 files changed

+8
-8
lines changed
  • feature-staking-impl/src/main/java/jp/co/soramitsu/feature_staking_impl/data/network/blockhain/bindings

2 files changed

+8
-8
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ buildscript {
22
ext {
33
// App version
44
versionName = '2.0.4'
5-
versionCode = 56
5+
versionCode = 57
66

77
// SDK and tools
88
compileSdkVersion = 31

feature-staking-impl/src/main/java/jp/co/soramitsu/feature_staking_impl/data/network/blockhain/bindings/Data.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ sealed class Data {
3535
fun bindData(dynamicInstance: Any?): Data {
3636
requireType<DictEnum.Entry<Any?>>(dynamicInstance)
3737

38-
return when (dynamicInstance.name) {
39-
DataType.NONE -> Data.None
40-
DataType.RAW -> Data.Raw(dynamicInstance.value.cast())
41-
DataType.BLAKE_2B_256 -> Data.Hash(dynamicInstance.value.cast(), Data.Hash.Type.BLAKE_2B_256)
42-
DataType.SHA_256 -> Data.Hash(dynamicInstance.value.cast(), Data.Hash.Type.SHA_256)
43-
DataType.KECCAK_256 -> Data.Hash(dynamicInstance.value.cast(), Data.Hash.Type.KECCAK_256)
44-
DataType.SHA_3_256 -> Data.Hash(dynamicInstance.value.cast(), Data.Hash.Type.SHA_3_256)
38+
return when {
39+
dynamicInstance.name == DataType.NONE -> Data.None
40+
dynamicInstance.name.startsWith(DataType.RAW) -> Data.Raw(dynamicInstance.value.cast())
41+
dynamicInstance.name == DataType.BLAKE_2B_256 -> Data.Hash(dynamicInstance.value.cast(), Data.Hash.Type.BLAKE_2B_256)
42+
dynamicInstance.name == DataType.SHA_256 -> Data.Hash(dynamicInstance.value.cast(), Data.Hash.Type.SHA_256)
43+
dynamicInstance.name == DataType.KECCAK_256 -> Data.Hash(dynamicInstance.value.cast(), Data.Hash.Type.KECCAK_256)
44+
dynamicInstance.name == DataType.SHA_3_256 -> Data.Hash(dynamicInstance.value.cast(), Data.Hash.Type.SHA_3_256)
4545
else -> incompatible()
4646
}
4747
}

0 commit comments

Comments
 (0)