Skip to content

Latest commit

 

History

History
96 lines (65 loc) · 1.83 KB

File metadata and controls

96 lines (65 loc) · 1.83 KB

Image description

snglsDAO

Pre Requirements

Use Node.js 10.16.0

nvm use 10.16.0

Alse you need python 2.7 intalled to prevent scrypt dependency compilation error

DAOstack Migration:

npm install --global @daostack/migration

Download

git clone https://github.com/SingularDTV/snglsDAO-smartcontracts.git

Install

cd snglsDAO-smartcontracts/dao-contracts
npm install
cd ../dao-web-app
npm install
cd ../token/airdrop
npm install
cd ../contracts
npm install

Run environment

Run the following command to spin up ganache (with the migrated contracts), the caching server and the alchemy server:

docker-compose up graph-node

Now, in a separate terminal run the following command to run web application:

npm run start-staging-rinkeby # rinkeby web version
npm run start-private # ganache (private net)web version

Access it on http://127.0.0.1:3000

Deploy DAO

Run migrations (in another tab)

cd ../dao-contracts
nvm use 8.10.0
npm run start

Testing

npm run test

Trouble shootings

Access errors on npm install

sudo chown -R $(whoami) ~/.npm
npm cache clean # or
npm cache verify # for npm@5 version and up

Deploy errors

Ensure that you use correct Node.js version in each window

✖ Transaction failed: Error: Returned error: VM Exception while processing transaction: revert often occurs if the contract is already deployed on the network, do not forget to terminate docker-compose (in dao-web-app terminal window) and run

    docker-compose down

before a new launch