kleros-v2
kleros-v2 copied to clipboard
feat(DisputeKit): add flushing feature
PR-Codex overview
The focus of this PR is to enhance the arbitration system by allowing unstaking of ineligible jurors and adding functionality to set stakes for dispute kits.
Detailed summary
- Introduces
setStakeBySortitionModuleOrDK
to handle stakes for dispute kits. - Adds
flush
function to unstake ineligible jurors inDisputeKitSybilResistant
. - Maps dispute kit addresses to indices in
KlerosCoreBase
. - Updates stake setting functions to include dispute kit checks.
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}
Summary by CodeRabbit
-
New Features
- Introduced a new
flush
function in the DisputeKitSybilResistant contract to automatically un-stake jurors who are ineligible for drawing.
- Introduced a new
-
Enhancements
- Implemented a
disputeKitIDs
mapping in KlerosCoreBase to improve management and access of dispute kits. - Renamed the method for setting stakes to reflect its expanded functionality, now accommodating both sortition modules and dispute kits.
- Implemented a