The DAOStack Client
- A library to work with the DAOstack ecosystem
- Convenience functions to interact with the DAOstack contracts: vote, stake and execute proposals
- A frontend client library for the DAOstack subgraph - search for daos, proposaals
In your nodejs project run
npm install --save @daostack/client
now you can do:
import Arc from '@daostack/client'
// create an Arc instance
const arc = new Arc({
graphqlHttpProvider,
graphqlWsProvider,
ipfsProvider,
web3Provider
})
// get a list of DAOs
await arc.initialize()
arc.daos()
Get all services running:
docker-compose up graph-node
This command will start all the services that are needed for a test environment: a graph-node instance, ganache, IPFS and postgresql.
To run the tests, run:
npm run test
After you are done, run:
docker-compose down
npm run build
: Generate bundles and typings, create docsnpm run lint
: Lints codenpm run test
: run all tests