Skip to content

DannyDesert/client

 
 

Repository files navigation

DAOstack Client

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

Build Status

Usage

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()

Developing

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

Commands

  • npm run build: Generate bundles and typings, create docs
  • npm run lint: Lints code
  • npm run test: run all tests

About

DAOstack JavaScript Client

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.5%
  • Shell 2.5%