FundDao: Hold & Manage Fund, The Miner of DaoToken. DaoToken: A ERC20 Token for Governor. Governor: The Owner of FundDao, Control the FundDao.
- create .env file with content:
MNEMONIC="your mnemonic"
- deploy mock usdc (option):
npx hardhat run scripts/00_deploy_mock_usdc.js --network mumbai
if deploy on local hardhat node , run start_hardhat.sh
first, then use --network dev
.
- deploy dao contracts:
npx hardhat run scripts/01_deploy_dao.js --network mumbai
- cd demo & npm install
- npm run serve
- Solidity Docs: https://learnblockchain.cn/docs/solidity/
- Ethers.js Docs: https://learnblockchain.cn/docs/ethers.js/
- Hardhat: