Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.82 KB

README.md

File metadata and controls

67 lines (45 loc) · 1.82 KB

gnosis-signalling

Use gnosis prediction market to signal social project performance. This project was developed with the help of an ECO grant provided by Gnosis. To test a working current implementation of the Android application, please contact [email protected].

To develop

# install dependencies
yarn install

# compile smart contracts
truffle compile

# run ganache
ganache-cli --gasLimit 10000000 --host 0.0.0.0 --mnemonic "spoon uncle park ritual alarm journey matter water apart warrior weird soap"

# deploy MarketMakerFactory contract
truffle migrate --network local

############ IMPORTANT ############

### get address of signallingOrchestrator contract from deployment output and replace it in src/store/gnosis/contracts.js

### get address of SimpleMonitoringService from deployment output and replace it in notification-service/contracts.js and src/store/gnosis/contracts.js

###################################

# serve with hot reload at localhost:8080
yarn dev

# Note, that without notification service you will not be able to add monitoring requests in the web app
# To run monitoring and notification service in a separate terminal tab:
node notification-service/monitoring-service-provider.js

# To run eth and collateral token faucet
node faucet/server.js

Tests

truffle test --network local

To update app on GH pages

yarn build
cp -r public/ docs/

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.