Giter Club home page Giter Club logo

delegativedemocracy's Introduction

Delegative Democracy DAO

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.

Delegative Democracy DAO

Overview

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.

Prerequisites

  • 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)

Installation

  1. Clone the Repository
    git clone https://github.com/Winter9998/delegativeDemocracy.git
    cd delegativeDemocracy
    
yarn install
# or
npm install

Environment Setup

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.

Compilation

Compile the smart contracts with Hardhat:

npx hardhat compile

Testing

Run the tests to ensure the contracts are functioning as expected:

npx hardhat deploy
npx hardhat test

Deployment

Deploy the contracts to the Sepolia testnet:


npx hardhat run scripts/[scriptName].ts --network sepolia

Contract Verification

After deployment, verify the contract on Etherscan:

npx hardhat verify --network sepolia [Deployed Contract Address]

Interacting with the DAO

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.

License

Apache License 2.0

delegativedemocracy's People

Contributors

xyz899 avatar

Watchers

 avatar

delegativedemocracy's Issues

problem with packages

the config is havig issues within the package.json and base conflit with some default dependencies that is asked by hardhat. hardhat-deploy and hardhat-deploy-ethers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.