Skip to content

Vary v2 campaign funding: real ERC1155 prices, cross-camp backers, retroactive reimbursement - #214

Merged
AdamSpitz merged 4 commits into
devfrom
feature/v2-campaign-local-validation
Oct 2, 2026
Merged

AdamSpitz merged 4 commits into
devfrom
feature/v2-campaign-local-validation

Conversation

@AdamSpitz

Copy link
Copy Markdown
Owner

Summary

  • Fund-project actions now carry real funding metadata (funding.kind: early/retroactive, tokenId, tokenCount, camp) matching the 0.01/0.10 ERC1155 receipt prices, with planner validation that receipt price equals amount and retroactive funding depends on earlier purchases.
  • V2 plan funds the abortion-common-ground bridge project from both camps (20 threshold purchases at 1/10 amounts, preceded by each backer's camp-natural belief), then 4 retroactive reimbursement donations after all purchases.
  • Campaign writer/derived checks/provisioning use campaignActionFundingCost(action) per action instead of a flat cost; set-belief writes go through direct setBelief/setBeliefsInBatch calls with deterministic gas; approvalConfirmations configurable (1 local, 3 remote).
  • Fixes: publisher wallet now gets gas for actorless publish writes; scripts/services.sh uses --no-deps on app-service recreate so hardhat-deploy isn't rerun; run publications now include project links, and the UI test-data project list no longer requires erc1155 and prefers real titles.
  • Canary gates drop the four needs-adam placeholders → readyForExecution (read-only verifier is still the pre-execution gate).

Testing

  • npm test --workspace fake-data-generation — 85 pass (new planner bridge-funding, provisioning publisher-gas, canary gate tests)
  • npx vitest run src/commonality/testData/testDataDocuments.test.ts (ui) — 6 pass
  • tsc --noEmit clean in fake-data-generation and ui
  • Documented local run + reconciliation notes in fake-data-generation/campaigns/medium-realistic-v2-*.md

…troactive reimbursement

- V2 fund-project actions buy varied receipt quantities at real prices;
  v1 legacy actions keep the fixed purchase unit
- Abortion common-ground bridge project: 20 prerequisite purchases across
  two left/right camp backers reach the 2 USDZZZ threshold; four later
  actions donate 1 USDZZZ total into the reimbursement waterfall
- Remote publisher wallets get explicit gas provisioning; belief writes
  carry explicit gas limits (25-user stage revert fix)
- Local run and remote stages 10/25/100 all mined and reconciled 1:1 with
  zero discrepancies; SDK-derived reimbursement check matched
- Canary preflight wording matches the 2026-09-28 readiness decision
- Step 14 checked off in TESTNET-SIMULATION-PLAN.md with run report

@AdamSpitz AdamSpitz left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review receipt.

Reviewed full diff vs dev: planner funding metadata + validation, per-action funding costs in writer/checks/provisioning, camp-backing and retroactive reimbursement flow, canary gate rewording (per 2026-09-28 readiness decision), services.sh --no-deps fix. fake-data-generation tests 85/85, UI testData tests 6/6, tsc clean both workspaces. No blocking findings.

Reviewed-with: pi
Reviewed-files: 18
Reviewed-commit: ce62e99

@AdamSpitz
AdamSpitz merged commit 0009a6b into dev Oct 2, 2026
7 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.

1 participant