Skip to content

feat: implement swap escrow with arbitration (#467)#610

Merged
fejilaup-cloud merged 1 commit into
AtomicIP:mainfrom
iheomadev:feature/467-swap-escrow-arbitration
Jun 1, 2026
Merged

feat: implement swap escrow with arbitration (#467)#610
fejilaup-cloud merged 1 commit into
AtomicIP:mainfrom
iheomadev:feature/467-swap-escrow-arbitration

Conversation

@iheomadev
Copy link
Copy Markdown
Contributor

  • Add SwapArbitrator(u64) and DisputeEvidence(u64) to DataKey enum
  • Add arbitrator: Option field to SwapRecord
  • Add ArbitratorAlreadySet, NotArbitrator, NoArbitratorSet error codes
  • Implement set_arbitrator: admin assigns arbitrator to disputed swap
  • Implement arbitrate_dispute: arbitrator resolves dispute (refund or complete)
  • Implement submit_dispute_evidence: buyer/seller submit evidence hashes
  • Implement get_dispute_evidence: query all evidence for a swap
  • Fix arbitrate_swap to use SwapArbitrator DataKey for verification
  • Enable arbitration_tests and escrow_tests modules
  • Fix initiate_swap call signatures in test files to match 10-param API

closes #467

- Add SwapArbitrator(u64) and DisputeEvidence(u64) to DataKey enum
- Add arbitrator: Option<Address> field to SwapRecord
- Add ArbitratorAlreadySet, NotArbitrator, NoArbitratorSet error codes
- Implement set_arbitrator: admin assigns arbitrator to disputed swap
- Implement arbitrate_dispute: arbitrator resolves dispute (refund or complete)
- Implement submit_dispute_evidence: buyer/seller submit evidence hashes
- Implement get_dispute_evidence: query all evidence for a swap
- Fix arbitrate_swap to use SwapArbitrator DataKey for verification
- Enable arbitration_tests and escrow_tests modules
- Fix initiate_swap call signatures in test files to match 10-param API
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@iheomadev 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

@fejilaup-cloud fejilaup-cloud merged commit 877ae55 into AtomicIP:main Jun 1, 2026
0 of 8 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

Development

Successfully merging this pull request may close these issues.

Implement Swap Escrow with Arbitration

2 participants