Repository navigation
feat: milestone escrow, revenue attribution, payout scheduler, and tax rules - #1594
Merged
github-actions[bot] merged 1 commit intoNov 23, 2026
Merged
Conversation
…ion, payout scheduler, and tax rules Resolves Smartdevs17#1342 Resolves Smartdevs17#1338 Resolves Smartdevs17#1336 Resolves Smartdevs17#1334 - contracts/src/milestone_escrow.rs: New module for milestone-based escrow with on-chain attestation proofs - backend/src/services/revenueAttribution.ts: Revenue attribution engine for campaigns and agent partners - backend/src/services/payoutScheduler.ts: Bulk payout scheduler with per-tranche approval gates - backend/src/services/taxRules/index.ts: Jurisdictional tax-rule engine with per-corridor rule modules
|
@auraroom is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@auraroom 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! 🚀 |
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.
What
Implemented four core payment platform features: milestone-based escrow with on-chain attestation proofs, revenue attribution engine, bulk payout scheduler with approval gates, and jurisdictional tax-rule engine.
Issues Resolved
Closes #1342
Closes #1338
Closes #1336
Closes #1334
Changes
#1342 - Build milestone escrow unlock with on-chain attestation proofs
Created contracts/src/milestone_escrow.rs with milestone struct, status tracking, and attestation verification. Milestones require on-chain attestation proofs before funds unlock. Integrated with main contract via create_milestone, submit_milestone_attestation, unlock_milestone, and get_milestone entry points.
#1338 - Build revenue attribution engine across campaigns and agent partners
Created backend/src/services/revenueAttribution.ts with campaign-based revenue tracking and partner attribution. Supports record revenue, get attribution by campaign or partner, allocate revenue by rules, and revenue metrics calculation.
#1336 - Implement bulk payout scheduler with per-tranche approval gate
Created backend/src/services/payoutScheduler.ts with batch and tranche management. Each tranche requires configurable approvals before execution. Integrates with job queue for scheduled execution and tracks approval history.
#1334 - Build jurisdictional tax-rule engine with per-corridor rule modules
Created backend/src/services/taxRules/index.ts with per-jurisdiction and per-corridor tax rule engine. Supports rule creation, deactivation, calculation with effective date ranges, and applicable rule lookup.