Zoltar is a Bun + Solidity project for building and exploring prediction markets with forked universes. The repository is split into two main parts:
solidity/contains the contracts, tests, and generated contract artifactsui/contains the Preact frontend that reads from those contracts
- Bun 1.3+
- Foundry
anvilfor local chain work
Install dependencies, generate contract artifacts, vendor the UI dependencies, and build the frontend:
bun run setupInstall anvil if it is not already available:
bun run install:anvilStart a local chain with anvil, then run the setup step once and launch the UI:
- Start
anvil - Run
bun run setup - Run
bun run ui:serve
If you are iterating on the frontend and want rebuilds, use:
bun run ui:watchRun the UI in development mode:
bun run ui:serveWatch and rebuild the UI assets:
bun run ui:watchBuild the UI:
bun run ui:buildRegenerate contract bindings and UI vendor assets:
bun run generateCompile the Solidity contracts:
bun run compile-contractsRun the full test suite:
bun run testType-check the TypeScript code:
bun run tscFormat the codebase:
bun run formatRun linting:
bun run lintAuto-fix lint issues:
bun run lint:fixRun dead-code analysis:
bun run knipAuto-fix dead-code findings:
bun run knip:fixMeasure Solidity gas costs:
bun run gas-costsbun run setupis the quickest way to bootstrap a fresh checkout.bun run testruns the TypeScript check first, then executes the test suite.- The repo uses exact dependency versions for reproducible installs.