New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace staking reserves with locks #1604
Merged
Merged
Changes from 69 commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
c51db00
Replace (most) reserves with locks
notlesh fcc4be3
fmt
notlesh 72ee227
Merge branch 'master' into notlesh-staking-locks
notlesh 7730daf
Convert last remaining reserve -> balance
notlesh e9b5338
Adds simple test for locks in staking (WIP)
ebe64c8
Encapsulation of (most) delegator locking logic
notlesh 9f8aa56
Convert collator reserve -> lock
notlesh b4b0b8b
Remove SplitCandidateStateToDecreasePoV
notlesh 3903575
fmt
notlesh e715709
editorconfig
notlesh dcc5e53
wtf
notlesh a91b021
:construction:
notlesh a07d17f
Don't use free_balance with locks
notlesh 28f5a63
Very basic migration
notlesh 343cb09
Hook up migration
notlesh bc752d1
Fix try-runtime
notlesh bd0343f
Add logging to migration
notlesh 04ce29d
Typo
notlesh e504851
Update tests to reflect reserve -> lock
notlesh f78fc98
Better parameter name
notlesh 54cb304
fmt
notlesh 3f30c12
fmt (not just in parachain-staking)
notlesh 62b7c4a
Merge branch 'master' into notlesh-staking-locks
notlesh 6b65085
Throw error when additional_required_balance > total
notlesh 8dca170
Staking Locks: JIT migration (#1625)
notlesh 69dbe7d
Rename staking lock ids
notlesh ceebb6e
Remove staking locks on_runtime_upgrade migration
notlesh 1d311cb
Restore `reserved_balance()` checks
notlesh efe687b
fmt
notlesh fb542bf
use wrapper for incrementing balances
nbaztec 74de13e
remove comments
nbaztec b3a75b0
remove comments
nbaztec 0c79838
Add hotfix migrations and lots of related tests
075cac5
fmt
7274b51
Explicitly ignore error
notlesh f54837e
Fix lock names in ts tests
notlesh 80649ca
Merge original branch and fix tests
notlesh e591bca
Create regression test for bumping delegator
notlesh cc58d06
Hacky fix for migrating about-to-be-bumped delegator
notlesh b96f143
fmt
notlesh 5c4113e
Merge branch 'notlesh-staking-locks' into notlesh-nish-notlesh-stakin…
notlesh 637a41a
Merge branch 'master' into notlesh-staking-locks
notlesh 0ac493e
fmt
notlesh 280ccb5
Add some TODO notes
notlesh e005705
Implement crude weight fn
notlesh 40f9208
Add ts test for hotfix extrinsic fees
notlesh 387ec0f
fmt
notlesh 88a909f
Poke at locks/reserves when revoking last delegation
notlesh b3beea4
Remove TODO, we have test cases for this
notlesh 746243a
fmt
notlesh 46b2b64
Test that bumping because of top delegator insertion leaves no reserve
notlesh 3ed614d
Remove duplicate locks modification
notlesh 2915982
WIP: test that we can both vote while staked in ts test
notlesh ebbe653
Notlesh staking locks debug (#1651)
ea3732b
Merge branch 'master' into notlesh-staking-locks
6f1398b
Adds more testing
3a80a78
Increase timeout for big staking tests
8b5e9bb
Improve timeouts
7633690
More timeout
ad0d7fd
Update tests/tests/test-staking/test-staking-locks.ts
notlesh afce2d3
Update pallets/parachain-staking/src/types.rs
notlesh 0227fda
Update pallets/parachain-staking/src/types.rs
notlesh d2baeda
Use generic error instead of irrelevant one
notlesh 6c10b2c
Remove extra toString()
notlesh 53ad8a4
Update pallets/parachain-staking/src/types.rs
notlesh 5d6f934
Update pallets/parachain-staking/src/types.rs
notlesh 004ceaf
Use LockIdentifier type alias
notlesh ded490e
Use usable_balance to include locks in test
notlesh c98547f
fmt
notlesh 10abaee
Revent default_with_total
notlesh File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was needed for
try-runtime
I believe, although that doesn't currently build (I think we need moonbeam-foundation/nimbus#62)