DaoSYS is a Foundry-first Solidity workspace with Diamond/Crane-style examples, deployment scripts, and small frontend tooling used by the examples.
contracts/: Solidity contracts and example building blocks.test/: Foundry tests.scripts/: Foundry scripts and helpers.example/: runnable tutorial examples (deploy + test + UI).lib/: supporting JS/TS packages used by examples (including a Next.js demo frontend andwagmi-declare).
- Foundry (
forge,anvil,cast) - Node.js (v18+ recommended)
From this folder:
npm installforge build
forge testThe canonical per-example walkthroughs live in example/README.md.
Terminal 1:
anvilTerminal 2:
cd example
./scripts/run-demo.shManual deploy (alternative):
cd example
forge script script/DeployGreeter.s.sol --rpc-url http://127.0.0.1:8545 --broadcastFrontend (Next.js demo):
cd example
./scripts/bundle-abis.sh
cd ../lib/daosys_frontend
npm install
npm run devDeploy:
cd example
forge script script/DeployPermissionedGreeter.s.sol --rpc-url http://127.0.0.1:8545 --broadcastTest:
cd example
forge test --match-path test/PermissionedGreeter.t.sol -vvvDeploy:
anvil
cd example
forge script script/DeployCounter.s.sol --rpc-url http://127.0.0.1:8545 --broadcastCounter UI (Vite, contractlist-driven):
cd example
bash scripts/start_counter_ui.shStop it:
cd example
bash scripts/stop_counter_ui.shOne-command verification (build + test + regenerate/validate contractlist + UI build):
cd example
bash scripts/phase4_smoke.shNotes:
- Counter UI docs (including wallet connection options) are in
example/counter_ui/README.md. - Example overview and deeper explanations are in
example/README.md.