-
Notifications
You must be signed in to change notification settings - Fork 9
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
F/slashing #126
Merged
Merged
F/slashing #126
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
94b97de
Fix stub impl messages in passing
maurolacy fef8045
Add cross slashing spec
maurolacy 7b55125
Cross slashing event routing
maurolacy 1a82b8c
Add IBC handler on the Provider
maurolacy 55ab0a3
Add routing of users to the vault for collateral slashing
maurolacy f7e90a2
Add stakes reverse map
maurolacy 8183839
Use reverse map to get list of users
maurolacy 7997166
Tombstone validator check, tombstone validator
maurolacy 2d40932
Initial slashing impl
maurolacy 9ed6760
Propagate slash: adjust liens
maurolacy 62fe8d2
Propagate slash: recompute max lien for the user
maurolacy 25a01fc
Propagate slash: adjust user's total slashable amount
maurolacy d8da794
Fix: implement slashing vs native unbonding vs slashing propagation
maurolacy 016e365
Add account details query
maurolacy dc1cc53
Add simple slashing test (scenario 1)
maurolacy f1faa98
Add handle slashing test method
maurolacy 7b589fa
Fix: user vs validator
maurolacy b4a142d
Fix test: route vault process slashing msg
maurolacy 0ecd3b4
Call slashing through external-taking test impl
maurolacy 3ccd9b8
Rename to cross slash for simplicity
maurolacy 791a365
Fix: reduce user's lien
maurolacy 5fe6496
Add liens after slashing check
maurolacy 94d1662
Add scenario doc reference
maurolacy 28f24e1
cargo fmt
maurolacy f33627e
Add no free collateral slashing test (scenario 2)
maurolacy 48c6d62
Fix: Save slashed lien before slashing propagation
maurolacy 9fd7c9a
Adjust scenario 2 slashing test
maurolacy 22a6f3c
Add some free collateral slashing test (scenario 3)
maurolacy 21fe609
Refactor slashing tests to use helpers
maurolacy ea9e087
Add slashing propagation slashing test (scenario 4)
maurolacy 0c48ccc
Make slashing percentage configurable
maurolacy de61454
Add (failing) (modified) scenario 5
maurolacy aa7e3e7
Fix: don't always slash native stake
maurolacy 6785cf1
Fix: (failing) scenario 5 native stake after slashing
maurolacy 4e5912b
Add slashing propagation for total slashable invariance breaking
maurolacy 14f6ae8
Fix: Add rounding down
maurolacy c94b627
Add TODO / remove FIXME
maurolacy efed295
Add no native staking slashing test
maurolacy caf5b11
Add ensure_authorized helper
maurolacy c345ff5
Fix rebase error
maurolacy 093be5d
Revert "Add cross slashing spec"
maurolacy fc5e812
Revert "Cross slashing event routing"
maurolacy dea63cc
Revert "Add IBC handler on the Provider"
maurolacy 95b01c1
Fix typo
maurolacy 81f6b58
Add TODO
maurolacy 4e1dc25
Handle slashing as part of validator tombstoning
maurolacy d0a2b33
Adapt external-staking test methods
maurolacy 15e8f44
Adapt vault slashing tests
maurolacy d468260
Fix: slash messages routing
maurolacy 744a17d
Add remove validator at height check
maurolacy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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
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
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.
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.
I'm probably missing something, but should user slashing not get triggered when a validator itself is slashed?
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.
There's no specific slashing event. As mentioned, slashing is part of validator tombstone, because of double signing; or of validator jailing, because of being offline.