Skip to content
forked from ehsomma/mydao

This project implements a basic voting DAO smart contract for research purposes to understand its inner workings. This is by no means a complete implementation. It also includes an ERC-20 contract to be used as a DAO governance token.

License

Notifications You must be signed in to change notification settings

musxos/dyna-dao

This branch is 1 commit ahead of ehsomma/mydao:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6d7a6d4 · Oct 26, 2022

History

27 Commits
Apr 1, 2022
Mar 26, 2022
Mar 29, 2022
Mar 24, 2022
Mar 24, 2022
Mar 26, 2022
Mar 24, 2022
Mar 24, 2022
Mar 24, 2022
Mar 26, 2022
Oct 26, 2022
Mar 25, 2022
Mar 28, 2022
Mar 27, 2022
Mar 25, 2022

Repository files navigation

DynaDAO

.github/workflows/ci.yml Coverage Status Solhint Slither GitHub Issues License

This project implements a basic voting DAO smart contract for research purposes to understand its inner workings. This is by no means a complete implementation. It also includes an ERC-20 contract to be used as a DAO governance token.

Technical features and used tools

  • Solidity
  • Truffle
  • Ganache-cli
  • Unit/Integration tests
  • Chai (expect)
  • truffle-assertions (revert assertions)
  • openzeppelin/test-helpers (time and block manipulation)
  • eth-gas-reporter
  • solidity-coverage (code coverage)
  • coveralls (code coverage report)
  • solhint (linter for Solidity)
  • slither (vulnerability analyzer)
  • Full contract documentation (NatSpec Format)
  • Solidity coding conventions

Main functions of the DAO

  • Deposit governance tokens to be able to create a proposal.
  • Create a proposal.
  • Vote a proposal (only one time an in a time period).
  • Withdraw the tokens.

NOTE: For more information see code comments in MyDAO.sol.

Reports

Solhint

solhint 'contracts/**/*.sol' -f table

Tests

truffle test

Code coverage

truffle run coverage

Gas

truffle test --reporter eth-gas-reporter

Slither

slither --exclude-dependencies .

About

This project implements a basic voting DAO smart contract for research purposes to understand its inner workings. This is by no means a complete implementation. It also includes an ERC-20 contract to be used as a DAO governance token.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%