Skip to content

feat: implement resolution delay and dispute window before final payout #263

@greatest0fallt1me

Description

@greatest0fallt1me

Description:

Implement a configurable resolution delay (dispute window) after event end during which disputes can be raised; payouts occur only after the window closes or dispute is resolved.

Requirements and Context:

  • Must be secure, tested, and documented
  • Should allow admin to set dispute window duration per event (or global)
  • Should allow resolution to be proposed but not final until window ends (or dispute resolved)
  • Should allow users/admins to raise disputes during the window
  • Should trigger payout only when window closed and no unresolved dispute
  • Should emit events for dispute window and finalization
  • Must integrate with existing dispute and payout logic

Suggested Execution:

  1. Fork the repo and create a branch

    git checkout -b feature/resolution-delay-dispute-window
  2. Implement changes

    • Write contract: src/lib.rs (dispute window, finalize_after_window)
    • Update disputes and resolution modules
    • Update types, storage, events
    • Add documentation and NatSpec-style comments
  3. Test and commit

    • Run tests; cover window open/close, dispute during window, payout after
    • Include test output and security notes

Example Commit Message:

feat: implement resolution delay and dispute window before final payout

Guidelines:

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions