Skip to content

kleros/foresight

Repository files navigation

Foresight

Permissionless futarchy on Gnosis.

Layout

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

Quick start

Requires Node 20+ and Yarn 4 (corepack enable).

yarn install
yarn dev                 # web at http://localhost:3000

Optional 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-node

After 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.

Tests

yarn workspace @foresight/contracts test
yarn test:e2e
yarn format          # root files, then turbo per workspace
yarn format:check    # same, check only

License

MIT © Kleros

About

Permissionless futarchy

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors