https://github.com/ltfschoen/dao
Decentralised Autonomous Organisation (DAO) for Ethereum
https://github.com/ltfschoen/dao
dao ethereum ganache-cli ico solidity
Last synced: 3 months ago
JSON representation
Decentralised Autonomous Organisation (DAO) for Ethereum
- Host: GitHub
- URL: https://github.com/ltfschoen/dao
- Owner: ltfschoen
- License: mit
- Created: 2018-02-12T21:22:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-13T21:42:58.000Z (over 8 years ago)
- Last Synced: 2025-07-14T09:08:47.177Z (12 months ago)
- Topics: dao, ethereum, ganache-cli, ico, solidity
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup
* Terminal Tab 1 - Install Truffle
```
npm install -g truffle
```
* Terminal Tab 2 - Install Test Framework with Ganache CLI (Ethereum TestRPC)
```
npm install -g ganache-cli
```
* Terminal Tab 2 - Start Ethereum Blockchain Protocol Node Simulation
```
ganache-cli \
--port="8500" \
--mnemonic "copy obey episode awake damp vacant protect hold wish primary travel shy" \
--verbose \
--networkId=3 \
--gasLimit=7984452 \
--gasPrice=2000000000;
```
* Terminal Tab 1 - Compile and Deploy the Contract
```
truffle migrate --network development
```
* Terminal Tab 1 - Run Sample Unit Tests on the Truffle Contract. Truffle Re-Deploys the Contracts
```
truffle test
```
# Debugging
* Debug the Solidity Smart Contract in Remix IDE and MIST
# Troubleshooting
* If you get error `Error: Congress contract constructor expected 3 arguments, received 0` then ensure sufficient arguments are passed to the construction function of the smart contract in **2_deploy_contracts.js**.
* Reference: https://github.com/trufflesuite/truffle/issues/446