kleros-v2 icon indicating copy to clipboard operation
kleros-v2 copied to clipboard

feat(DisputeKit): add flushing feature

Open unknownunknown1 opened this issue 7 months ago • 6 comments

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 in DisputeKitSybilResistant.
  • 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.
  • 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.

unknownunknown1 avatar Jul 17 '24 09:07 unknownunknown1