Giter Club home page Giter Club logo

example-dao's Introduction

ExampleDAO

A working example of how a contract Box.sol could be 100% controlled by a DAO. In this example:

⚒️ Built with Foundry

This project is built with Foundry a portable and modular toolkit for Ethereum application development, which is required to build and deploy the project.

📂 Summary of contracts

Box.sol

  • A simple storage contract that holds a single unsigned integer.

  • This contract will be 100% controlled by the DAO.

GovToken.sol

  • An ERC20 token for voting in the DAO.

MyGovernor.sol

  • A governor contract that allows token holders to vote on proposals.

Timelock.sol

  • A timelock controller contract that allows certain actions to be delayed for a specific period of time.

🏗️ Getting started

Install project dependencies

make install

Build the project

make build

🧪 Running tests

The project includes a suite of unit tests to test various aspects of the contracts' functionality including:

➡️ updating the voting power

➡️ granting and revoking roles

➡️ updating the Box contract without governance

➡️ updating the Box contract with governance

To run the tests

make test

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.