4 Commits

Author SHA1 Message Date
4c1742c20b feat: add OperatorVault contract with caps, escalation and yield hooks
Owner/operator roles, USDC buckets, allowlist + per-tx + UTC daily caps,
TAX lock, owner approve/reject/expire escalations, USYC adapter hooks,
pause kill switch and DecisionAnchored on every mutation. 21 forge tests
including a reentrant-token CEI check, plus DeployOperator script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 15:02:00 +03:00
pextacy
71e89bdfd8 feat(lepton): attribution package (RFB 6.01) + creator-dashboard
Adds @settlekit/attribution — reuse-detection, weighted provenance lineage,
and HMAC-signed proofs-of-citation — wired live into the rsshub-citation-toll
sidecar (POST /attribution/{detect,proof,verify}) and persisted via
PgLineageStore/PgProofStore over new lepton_lineage_edges + lepton_citation_proofs
tables.

Adds apps/creator-dashboard — a Next.js earnings view in the Statement
greenbar-ledger design system, driven by real domain logic (createSource +
computeRoyaltyDistribution + detectReuse, not mocks). Statement / Sources /
Payouts / Reuse & proofs (interactive) / Wallet. next build green.

Also bundles in-progress settlement hardening: settlement-core idempotency
concurrency, api env validation, bundles + contracts/worker tweaks.

Verified: 943 vitest tests, 27 Foundry tests, next build all green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 01:19:22 +03:00
cb38b17f5a feat(lepton): live-wiring seams + Phase 4 on-chain contracts
Live-wiring (flip to production by config, no code change):
- settlementProviderFromEnv (local/Circle) wired into every sidecar startSidecar
- createFeedPoller fetches a live RSSHub JSON feed and ingests on an interval

On-chain contracts (Foundry, Solc 0.8.30, forge test green):
- RecursiveSplitDistributor.sol: settle a citation/remix lineage in one tx (RFB 6)
- LeptonStreamSettlement.sol: per-second stream w/ reserve, proof-of-flow
  pause/resume, settle, close+refund (RFB 4)
- AgentReputationBond.sol: ERC-8004-style USDC bond, release/slash (RFB 3)

All green: full typecheck, 885 JS tests, 25 Foundry tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 15:00:17 +03:00
3853551433 asad 2026-06-17 02:09:36 +03:00