Build

The code

Two Solidity contracts and their libraries, a Next.js app, a Ponder indexer and a bot baseline, in one repository.

contract tests, all passing, on a Base Sepolia fork
44
lines of Solidity
≈ 4,000
lines of TypeScript in the app (≈ 15,300 without the UI kit)
≈ 17,900
action chains, one Watcher
2
src/Executor.sol · rules, budgets, the callback, pay(), owner actions
src/Watcher.sol · the reactive contract: mirror, subscriptions, react(), cron
src/Types.sol · triggers, actions, statuses, reasons
src/testnet · PriceMover, TestnetFunder, DemoMover
test · 100 tests in four files; 48 run the whole loop through Reactive's metered harness
script · deploys, Try's pools, live loops, proof.py

Read first: contracts/src/Watcher.sol (react), contracts/src/Executor.sol (execute), contracts/src/libraries/ActionBook.sol, contracts/test/Engine.t.sol, apps/web/src/features/position/position-screen.tsx, apps/web/src/features/proof/proof-sheet.tsx.

All 100 pass, 84 of them on a Base Sepolia fork. 48 run the whole loop through Reactive's metered harness (reactive-test-lib, FeeMode.Metered): a swap, the Watcher's react(), the callback and pay(), for every rule type except Compound and Rebalance, plus skips charged without debt, wait times on cron and a chained pair. The rest call the Executor or the Watcher directly: Compound and Rebalance through the callback proxy, a rule edited mid-flight, a revoked permission, a short float that never spends another user's budget, a v3 → v4 move, Try's funder, and a full pool under a reaction's gas.