Repository navigation
feat(split): implement advanced dispute resolution (#1037) and automated compliance reporting (#1038) - #1062
Closed
huangji6693-max wants to merge 1 commit into
Conversation
…) and automated compliance reporting (Stellar-split#1038)
This was referenced Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements both Issue #1037 (Advanced Dispute Resolution with Arbitration) and Issue #1038 (Automated Compliance Reporting) in a single cohesive PR:
1. Advanced Dispute Resolution with Arbitration (
contracts/split/src/advanced_dispute.rs— #1037)select_panel): Maintains a weighted arbitrator pool (register_adv_arbitrator,get_adv_arbitrator_pool) and uses a persistent rotation cursor that automatically excludes bothclaimantandrespondentfrom serving on their own dispute panel.submit_dispute_evidence): Allows both disputing parties to attach up to 20 categorized evidence records (ContractAgreement,DeliveryProof,CommunicationLog,PaymentReceipt,AuditReport,Other) withBytesN<32>content hashes beforeevidence_deadline.cast_panel_vote): Tallies weighted panel votes acrossReleaseToRecipient,RefundToPayer, andSplitBps(bps)once panel quorum ((panel_size / 2) + 1) is reached.file_dispute_appeal,resolve_dispute_appeal): Enforces a post-ruling appeal timelock window and allows appellate resolution to uphold or override the initial panel ruling.enforce_dispute_decision): Executes token transfers for full releases, full refunds, or proportional basis-point splits directly from invoice escrow.docs/ISSUE_1037_ADVANCED_DISPUTE_RESOLUTION.md.2. Automated Compliance Reporting (
contracts/split/src/compliance_reporting.rs— #1038)register_compliance_template): SupportsAmlKycSummary,TaxWithholding,HighValueTransactions,DisputeAndRefundAudit, andFullRegulatoryDigestwith optional jurisdiction filters and custom high-value thresholds.record_compliance_data,generate_compliance_report): Aggregates transaction counts, total volume, fees, tax withheld, high-value counts/volume, AML-flagged counts/volume, disputed counts, and refunded counts over[period_start, period_end]with a canonical XDRSHA-256integrity_hash.schedule_compliance_report,run_scheduled_compliance_reports): Evaluates due schedules on-chain, automatically generates reports and default export artifacts, and advancesnext_run_at.export_compliance_report): Materializes verifiable export artifacts inJson,Csv,RegulatoryXml, andXdrDigestformats.docs/ISSUE_1038_COMPLIANCE_REPORTING.md.Verification
Closes #1037
Closes #1038