Skip to content

Feat/issues 23 26 - #31

Merged
sweetsoul21 merged 5 commits into
aidline-org:mainfrom
adetomiwa21:feat/issues-23-26
Oct 8, 2026
Merged

sweetsoul21 merged 5 commits into
aidline-org:mainfrom
adetomiwa21:feat/issues-23-26

Conversation

@adetomiwa21

Copy link
Copy Markdown

This PR implements four core enhancements to the aidline campaign and escrow workflows, focusing on emergency fast-tracking, cost observability, test reliability, and milestone-level due dates.

🚀 Features & Changes
Emergency Fast Track (Issue #23)
Added the emergency_fast_track capability exclusively for Emergency campaigns, allowing verified release of up to 20% of the campaign goal before milestone 0 approval.
Escrow math is safely enforced so the initial advance acts as a downpayment on milestone 0 without double-spending.
Resource Cost Observability (Issue #24)
Documented resource costs (CPU & Memory) within docs/ARCHITECTURE.md.
Added the test_measure_resource_costs harness into test.rs to allow maintainers to seamlessly regenerate cost data using Soroban's budget tracking.
Exact Event Assertions (Issue #25)
Enhanced test.rs to assert explicit, exact topics and data structures for all critical contract events (CampaignCreated, Donated, EmergencyAdvanceReleased, MilestoneReleased, CampaignCancelled, Refunded, and VerifierUpdated).
Per-Milestone Due Dates & Partial Refunds (Issue #26)
Introduced the ability to specify custom due dates per milestone (create_campaign_with_due_dates), safely stored in the MilestoneDueDates persistent data key without breaking existing campaigns.
Updated the refund mechanism to support idempotent, partial refunds for overdue milestones while keeping the campaign active. Refund math perfectly tracks the reduction in raised and released values, keeping proportional shares intact for remaining donors.
🔗 Linked Issues

Closes #23
Closes #24
Closes #25
Closes #26

@adetomiwa21 adetomiwa21 closed this Oct 8, 2026
@adetomiwa21
adetomiwa21 deleted the feat/issues-23-26 branch October 8, 2026 01:41
@adetomiwa21
adetomiwa21 restored the feat/issues-23-26 branch October 8, 2026 01:46
@adetomiwa21 adetomiwa21 reopened this Oct 8, 2026
@sweetsoul21
sweetsoul21 merged commit 1fc16c6 into aidline-org:main Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants