This README provides a comprehensive guide for users to set up, compile, test, deploy, and verify your Delegative Democracy DAO project. Be sure to replace placeholders with your specific project details and add any additional information relevant to your DAO.
This project is a Delegative Democracy DAO implemented using Hardhat, TypeScript, and deployed on the Sepolia test network. It allows participants to delegate their voting power in a democratic manner.
- Node.js
- Yarn or npm
- An Ethereum wallet with Sepolia testnet ETH
- An Infura or Alchemy account for Sepolia RPC URL
- An Etherscan account for API access (for contract verification)
- Clone the Repository
git clone https://github.com/Winter9998/delegativeDemocracy.git cd delegativeDemocracy
yarn install
# or
npm install
Create a .env file in the root directory and add the following:
SEPOLIA_RPC_URL='https://sepolia.infura.io/v3/your_infura_project_id'
PRIVATE_KEY='your_wallet_private_key'
ETHERSCAN_API_KEY='your_etherscan_api_key'
Replace the placeholders with your actual Sepolia RPC URL, private key, and Etherscan API key.
npx hardhat compile
npx hardhat deploy
npx hardhat test
npx hardhat run scripts/[scriptName].ts --network sepolia
npx hardhat verify --network sepolia [Deployed Contract Address]
You can interact with the DAO using Hardhat or by integrating it into a frontend application. Contributing
Contributions are welcome! Please open an issue or submit a pull request with your proposed changes.
Apache License 2.0