-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: op consumer chain slashing (#92)
## Summary This PR implements slashing for op stack consumer chain. It updates the cw contract as follows: - allow FPs to equivocate by submitting mutiple signatures for a block - add new state to index voted block hashes and equivocation evidences - add new handlers to slash finality providers and send notifying message to Babylon, similar to the Cosmos consumer chain implementation It also updates and add a new test case. We need to add additional integration tests to check the e2e flow with Babylon node. ## Test plan ```bash # build the contract cargo build cargo optimize # test it cargo test cargo integration ```
- Loading branch information
Showing
16 changed files
with
285 additions
and
76 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.