Skip to content

Conversation

@valentunn
Copy link
Contributor

@valentunn valentunn commented May 14, 2021

Staking is here

ArtemNurtdinov and others added 30 commits February 9, 2021 20:57
* collect fishing addresses and check entered address (WIP)

* added phishing warning on send screen

* sync resources with lokalise

* refactored

* returned auto formatted imports

* some refactoring

* created PhishingWarningUi.kt

* fix merge

* refactoring

* fixed dispatchers

* refactoring

* refactoring

* updated resources
* Metadata parsing flow

* Move cache info to database

* Subscribe to runtime changes instead of single shot update

* Use Updaters mechanism for subscription

* Fix merge conflicts

* Refactoring

* Add prepopulated runtime caches

* Revert experimental changes

* Refactoring

* Code style

* Tests refactoring
* moved create account screen dependencies to account module

* moved network chooser view from advanced block view

* refactoring

* refactoring

* refactoring

* added information about network on export json screens

* updated resources
* added cancel cases for phishing warning dialog

* refactoring

* pr fix
* Staking modules skeleton

* Remove redundant code
* Event handling

* Refactoring

* Refactoring
* moved create account screen dependencies to account module

* moved network chooser view from advanced block view

* refactoring

* refactoring

* refactoring

* added information about network on export json screens

* updated resources

* show account name on ChooseRecipient screen.

* refactoring, show account name on wallet screen

* refactoring

* refactoring

* show account name on wallet screen

* refactoring

* refactoring namings

* refactoring

* refactoring

* refactoring

* refactoring

* refactoring

* fix ktlint

* refactoring

* fix merge conflicts

* fix ktlint

* refactoring

* refactoring
* handle runtime version decrement, prefetch runtime from cache

* Code style

* Revert experimental changes
* fixed account name for remote transactions

* fix ktlint
* Add storage table

* Increment db version
* show account name on account chooser bottom sheet

* show account name on account chooser bottom sheet
* Compound subscription integration

* Refactoring

* Code style

* Remove duplicated code

* Fix integration tests
* Compound subscription integration

* Refactoring

* Code style

* Remove duplicated code

* Fix integration tests

* Extrinsic builder
* Compound subscription integration

* Refactoring

* Code style

* Remove duplicated code

* Fix integration tests

* Extrinsic builder

* Active era updater

* Elected nominators updater

* [Fix] Wrong runtime version used in storage cache

* Sync elected nominators only if no cache found

* Remove debug logs

* Code style

* Sync validator prefs

* Code style

* Fix database migration inconsistencies

* Rename updater

* Exposure bindings

* ValidatorPrefs bindings
* Compound subscription integration

* Refactoring

* Code style

* Remove duplicated code

* Fix integration tests

* Extrinsic builder

* Active era updater

* Elected nominators updater

* [Fix] Wrong runtime version used in storage cache

* Sync elected nominators only if no cache found

* Remove debug logs

* Code style

* Sync validator prefs

* Code style

* Fix database migration inconsistencies

* Rename updater

* Exposure bindings

* ValidatorPrefs bindings

* Total Insurance updater

* Current era updater

* Code style

* Total issuance bindings

* Code style

* Rewards calculation

Co-authored-by: ArtemNeFRiT <artem.nefrit@gmail.com>
* Refactoring

* Validator recommendator

* Recommended validators screen

* Refactoring

* Move recommendation limit to recommendation settings

* Staking strings

* runtime strings

* Refactoring
* refactoring

* fix ktlint

* remove wallet deps from common module
…arnings_view

# Conflicts:
#	common/src/main/java/jp/co/soramitsu/common/data/network/runtime/calls/SubstrateCalls.kt
FrogTravel and others added 22 commits May 7, 2021 16:03
* Generalize validator retrieval

* Current validators screen

* Fixes

* Subscribe to active era to update validator list

* Move validation cell down in bottom sheet

* Undo commenting fee validation

* Code style

* Hide validators manage action for validator accounts

* Remove unused browsable implementation in current validators

* Refactoring

* Code style
* Update validator details to display status

* Remove address field from identity and hide identity section title if no identity found

* Code style
… into feature/set_controller_layout

� Conflicts:
�	common/src/main/res/values/strings.xml
�	feature-staking-impl/src/main/java/jp/co/soramitsu/feature_staking_impl/data/repository/StakingRepositoryImpl.kt
* Update types

* Update runtime

* Update cache entries versions
* Migrate active node from prefs to db

* Add missed files

* Change default nodes

* Code style

* Fix node edit screen
* Change current validators

* Code style

* Remove unused code

* isWaiting corner case

* Return to current validators after validators change

* Fix current validator list height

* Fix displayed amount on confirm staking for stash-only accounts

* Code style

* Feature/limit clusters (#264)

* Limit recommended validators from clusters

* Do not fetch parent identities twice

* Code style

* Use postprocessed validator list when no limit given

* Ignore no identity validators instead of throwing error

* Fix PR comments

* Reduce max cluster size to 2
* Fix - two active nodes after migration if not default node was active

* Fix copy-paste typo in node name
* New number formatters

* Apply new formatter

* Code style
* Basic APY and APR on staking main fragment

* Basic average and maximum APY with mock for maximum

* APY and APR UI changes in start staking screen

* Codestyle

* Issues fix

* Codestyle
* Confirmation screen

* Bug with null name crash fixed

* Different approach for account name

* Codestyle

* Issues fix

* External info bug fix on confirmation screen
Wrong condition for button activation fix

* Button fix

* Confirmation screen

* Bug with null name crash fixed

* Different approach for account name

* Codestyle

* Issues fix

* External info bug fix on confirmation screen
Wrong condition for button activation fix

* Button fix

* Issues fix
* Fill stories with content

* Rewards title rename
# Conflicts:
#	feature-wallet-impl/src/main/java/jp/co/soramitsu/feature_wallet_impl/data/network/blockchain/WssSubstrateSource.kt
#	feature-wallet-impl/src/main/java/jp/co/soramitsu/feature_wallet_impl/data/network/blockchain/struct/account/AccountInfo.kt
#	feature-wallet-impl/src/main/java/jp/co/soramitsu/feature_wallet_impl/data/network/blockchain/struct/account/AccountInfoFactory.kt
#	feature-wallet-impl/src/main/java/jp/co/soramitsu/feature_wallet_impl/data/network/blockchain/struct/extrinsic/TransferExtrinsicFactory.kt
#	feature-wallet-impl/src/main/java/jp/co/soramitsu/feature_wallet_impl/data/network/blockchain/updaters/TripleRefCountUpdater.kt
#	feature-wallet-impl/src/main/java/jp/co/soramitsu/feature_wallet_impl/di/WalletFeatureModule.kt
Copy link
Contributor

@antonkhvorov antonkhvorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Staking lets go 🎉

@antonkhvorov antonkhvorov self-requested a review May 14, 2021 15:34
Copy link
Contributor

@antonkhvorov antonkhvorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RC PR, not merging

@valentunn
Copy link
Contributor Author

RC is Published, ready to merge

Copy link
Contributor

@antonkhvorov antonkhvorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉🎉🎉

@valentunn valentunn merged commit d4bf6f8 into master May 17, 2021
@valentunn valentunn deleted the rc/1.7.0 branch May 17, 2021 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants