Skip to content

Sync DEFAULT_DISPUTE_TIMEOUT_SECS with expiry action default and admin-set timeouts - #341

Open
micmusjnr20 wants to merge 2 commits into
BlockDash-Studios:mainfrom
micmusjnr20:main
Open

Sync DEFAULT_DISPUTE_TIMEOUT_SECS with expiry action default and admin-set timeouts#341
micmusjnr20 wants to merge 2 commits into
BlockDash-Studios:mainfrom
micmusjnr20:main

Conversation

@micmusjnr20

Copy link
Copy Markdown

Summary

DEFAULT_DISPUTE_TIMEOUT_SECS (7 days) and DisputeExpiryAction::RefundOwner were declared as separate defaults in storage.rs but the relationship between them was undocumented, untested for the default path, and missing from the public API docs.

Changes

  • dispute.rs — Module docs now document the 7-day default timeout and clarify that admin-set timeouts only apply to disputes opened after the change.
  • test.rs — Added DEFAULT_DISPUTE_TIMEOUT_SECS import and test_default_dispute_timeout_used_when_not_explicitly_set test verifying the default timeout (7 days), default action (RefundOwner), and get_dispute_timeout() return value when no explicit value is set.
  • README.md — Added get_dispute_timeout() and get_dispute_expiry_action() to the Metadata API table with their defaults.

Files touched

  • app/contract/contracts/Folder/src/dispute.rs
  • app/contract/contracts/Folder/src/test.rs
  • app/contract/README.md

Verification

Rust toolchain not available in this environment; review the changes manually or run cargo test locally.

Closes #334

…n-set timeouts

- Update dispute.rs module docs to document 7-day default timeout
- Add test_default_dispute_timeout_used_when_not_explicitly_set
- Add get_dispute_timeout/get_dispute_expiry_action to README metadata table
Sync DEFAULT_DISPUTE_TIMEOUT_SECS with expiry action default and admin-set timeouts
@MaryammAli

Copy link
Copy Markdown
Contributor

@micmusjnr20
this is not the issue description, read the issue description and implement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

align default dispute timeout docs and on-chain configuration

2 participants