https://github.com/devalpha18/simple-dao
simple proof of concept DAO smart contract
https://github.com/devalpha18/simple-dao
dao solidity
Last synced: 10 months ago
JSON representation
simple proof of concept DAO smart contract
- Host: GitHub
- URL: https://github.com/devalpha18/simple-dao
- Owner: devalpha18
- Created: 2023-01-03T09:51:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-04T00:08:27.000Z (about 3 years ago)
- Last Synced: 2025-02-03T12:14:32.958Z (12 months ago)
- Topics: dao, solidity
- Language: Solidity
- Homepage:
- Size: 1.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#### Simple DAO solidity smart contract
A smart contract that functions as a simple decentralized autonomous organization. This is in development (*i.e.* not extensively tested for deploying on the Ethereum mainnet). It has been tested using [Remix](https://remix.ethereum.org).
----
## Basic schema of what the DAO does.
#### Basic instructions to run:
1) Open [Remix](https://remix.ethereum.org) and deploy the vending machine solidity contract first and then the simpleDAO contract. You can import this repo into the Remix IDE directly or simply copy and paste the code.
2) Since solidity is a statically typed programming language you must compile it before deploying the smart contract.
3) Copy and paste the address of the vending machine into the simpleDAO constructor.
4) Specify how long members will be allowed to vote (seconds)
5) Add in name of proposals: ["buy_cupcakes", "no_cupcakes"]
6) Only the chairperson can give the right to vote in the DAO to other addresses.
7) If the majority of the DAO members who voted selected "buy_cupcakes", then the DAO
will send 1 ether to the digital vending machine and in return the DAO will recieve one cupcake.
----
This code is essentially a conglomeration of functions of a few solidity code examples from the documentation that I liked.