Permissionless futarchy on Gnosis.
| Path | Package | Purpose |
|---|---|---|
apps/web |
web |
Participant UI |
apps/devtools |
@foresight/devtools |
Local dev tools |
apps/subgraph/foresight |
foresight-subgraph |
Foresight indexer |
apps/graph-node |
@foresight/graph-node |
Docker graph-node stack |
packages/contracts |
@foresight/contracts |
SessionFactory — see packages/contracts/README.md |
Requires Node 20+ and Yarn 4 (corepack enable).
yarn install
yarn dev # web at http://localhost:3000Optional local indexer (separate terminals):
yarn local-node:contracts # terminal 1: compile + hardhat node
yarn graph-node:up # terminal 2: graph-node + ipfs + postgres
yarn deploy:subgraph # terminal 3: deploy indexer to local graph-nodeAfter contract changes while the node is still running: yarn local-node:deploy (redeploy + wagmi codegen).
See packages/contracts/README.md for deploy, artifact exports, and subgraph ABI sync.
yarn workspace @foresight/contracts test
yarn test:e2e
yarn format # root files, then turbo per workspace
yarn format:check # same, check onlyMIT © Kleros