This repository contains the Solidity contracts and Hardhat setup for the Dictator DAO example.
Clone the repository and install the dependencies:
npm installor
yarn installTo compile the Solidity contracts run:
npx hardhat compileThis uses the Hardhat network configuration found in hardhat.config.js.
Execute the unit tests with:
npm testThis will run hardhat test which deploys contracts to a local Hardhat network and executes the test suite in the test/ folder.
npm run format– format contracts and JavaScript files using Prettiernpm run coverage– generate Solidity coverage reportnpm run flat– produce a flattened contract incontracts/DictatorDAOFlat.solnpm run ts– generate TypeScript typings for the compiled contracts
contracts/ Solidity source files
boring/ Helper libraries included in this repo
interfaces/ Interface definitions
libraries/ Additional libraries
scripts/ Optional scripts (none by default)
test/ Hardhat test suite
This project is licensed under the MIT License. See LICENSE for details.