Skip to content

Feat/dispute and counter refactors - #695

Merged
JSE19 merged 7 commits into
JSE-ORG:mainfrom
nursetechie:feat/dispute-and-counter-refactors
Jul 28, 2026
Merged

Feat/dispute and counter refactors#695
JSE19 merged 7 commits into
JSE-ORG:mainfrom
nursetechie:feat/dispute-and-counter-refactors

Conversation

@nursetechie

Copy link
Copy Markdown
Contributor

Pull Request Checklist

Thank you for contributing! Please review the following checklist to ensure your PR is ready for review.
closes #643

Summary

  • Provide a clear and concise description of the changes.
  • Link to any related issues using Fixes #issue or Related to #issue.

Testing

Documentation

  • Updated README.md if changes affect users.
  • Updated docstrings/comments for new/modified functions.
  • Added examples or updated existing examples if applicable.

Code Quality

Breaking Changes

  • If this PR introduces breaking changes, describe them and provide migration steps.
  • Updated version in Cargo.toml if appropriate (following semver).

Additional Notes

  • Any other relevant information for reviewers.

Please ensure all checkboxes are checked before requesting a review.
closes #646

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@nursetechie Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

The upstream commit 2d22747 introduced several syntax errors in lib.rs
and events.rs that caused the CI build to fail:

- events.rs: emit_emergency_drain struct literal was missing closing
  fields (timestamp), braces, and parenthesis before the next
  #[contracttype] block

- lib.rs: duplicate const keyword before MAX_PLATFORM_FEE_BPS
- lib.rs: nested/duplicate if-check in validate_payees (total_bps check
  appeared twice with different operands)
- lib.rs: duplicate bps field in multiple Payee struct initializations
  (bps: BASIS_POINTS and bps: 10_000 both present)
- lib.rs: unclosed unwrap_or_else call in get_approved_resolvers
- lib.rs: duplicate get_ttl_extension call in create_escrow_with_fallback
- lib.rs: a large duplicate impl Escrow block (copy of instructions.rs,
  admin.rs, disputes.rs, queries.rs content) was pasted into lib.rs
  while the individual module files were still present, causing 694
  conflicting method definitions

The fix reconstructs lib.rs from the clean modular structure while
preserving all issue-specific additions (JSE-ORG#643-JSE-ORG#646): MAX_APPEALS,
ZERO_ADDRESS_STR, BASIS_POINTS, next_escrow_id, and
resolve_or_vote_internal. All missing test module declarations from
upstream are included.

All 387 tests pass.
@nursetechie
nursetechie force-pushed the feat/dispute-and-counter-refactors branch from 40eafdd to 5128c8a Compare July 28, 2026 00:28
@JSE19
JSE19 merged commit 49f1833 into JSE-ORG:main Jul 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants