Git Product home page Git Product logo

dontbelate-dao-contracts's Introduction

Gov

A DAO framework built with Open Zeppelin's Governor contract in combination with NFTs.

  • Gov.sol is the Governor contract
  • NFT.sol is the NFT contract (ERC-721)

Gov is maintained by the Web3 Hackers Collective.

The ultimate goal is to allow users to deploy their DAO contract and the interface that goes with it in one click.

Motivation

Provide a coordination tool that fits the needs of everyday people. Orgs, federations of orgs, activists, neighborhoods, stewards of the commons, collectives, and other communities are invited to deploy their own DAO.

Install

pnpm install

Test

pnpm test

Deploy

Create a .env on the model of .env.template:

cp .env.template .env

Add your own keys in your .env file.

  • Configure your DAO in the dao.config.ts file, the docs is here if you need
  • Edit the manifesto in storage/manifesto/manifesto.md
  • Replace the image (membership NFT image) in storage/metadata/image.png

Then deploy to Goerli:

pnpm deploy:goerli

or deploy to Arthera

pnpm deploy:arthera

or deploy to Optimism Goerli:

pnpm deploy:og

Then you can interact with your DAO using Tally.

To deploy to other networks, please read the deployment section in the docs.

To upload the membership NFT metadata, upload the manifesto, or submit a proposal using the CLI, please check this section of the docs.

Supported networks

Security

Here are the differences between the Governor/ERC-721 implementations suggested by Open Zeppelin and ours:

The following function is onlyGovernance, meaning it can only be triggered by a vote.

  • setManifesto() updates the CID.

The following functions are onlyOwner, and since the NFT contract ownership is transferred to the Gov contract, they can only be triggered by a vote.

  • safeMint() adds a new member.
  • govBurn() bans a member.
  • setMetadata() changes the tokenURI of a given NFT ID.

Versions

Support

You can contact me via Element, Telegram, Twitter, Discord, or LinkedIn.

dontbelate-dao-contracts's People

Contributors

julienbrg avatar

Watchers

 avatar  avatar

dontbelate-dao-contracts's Issues

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.