Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daostack/arc.js
DAOstack JavaScript Client
https://github.com/daostack/arc.js
frontend javascript npm typescript web
Last synced: 3 months ago
JSON representation
DAOstack JavaScript Client
- Host: GitHub
- URL: https://github.com/daostack/arc.js
- Owner: daostack
- License: gpl-3.0
- Created: 2018-11-11T16:32:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T22:26:25.000Z (almost 2 years ago)
- Last Synced: 2024-07-13T10:45:42.003Z (4 months ago)
- Topics: frontend, javascript, npm, typescript, web
- Language: TypeScript
- Homepage: https://daostack.github.io/arc.js/
- Size: 8.98 MB
- Stars: 14
- Watchers: 8
- Forks: 17
- Open Issues: 54
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
- DeFi-Developer-Road-Map - ArcJS - Library that facilitates javascript application access to the DAOstack Arc ethereum smart contracts. (Roadmap)
README
***DEVELOPMENT OF THIS PACKAGE HAS MOVED TO: https://github.com/daostack/alchemy-monorepo/tree/dev/packages/arc.js***
[![Build Status](https://travis-ci.com/daostack/client.svg?token=aXt9zApRNkfx8zDMypWx&branch=master)](https://travis-ci.com/daostack/client)
# DAOstack Client
The DAOStack Client is a nodejs library to work with the DAOstack ecosystem
* Convenience functions to interact with the [DAOstack contracts](https://github.com/daostack/arc): create proposals, and vote and stake on them
* A client library for the [DAOstack subgraph](https://github.com/daostack/subgraph) - search for daos, proposals## 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: "https://subgraph.daostack.io/subgraphs/name/v23",
graphqlWsProvider: "wss://ws.subgraph.daostack.io/subgraphs/name/v23",
web3Provider: `wss://mainnet.infura.io/ws/v3/${YOUR_TOKEN_HERE}`,
ipfsProvider: {
"host": "subgraph.daostack.io",
"port": "443",
"protocol": "https",
"api-path": "/ipfs/api/v0/"
}
})// get a list of DAOs
arc.daos().subscribe(
(daos) => console.log(`Here are your DAOS: ${daos}`)
)
```## More information
* [overview](./documentation/overview.md)
* [development](./documentation/development.md)
* [small demo](./documentation/demo.js)
* [Generated documentation](./docs/globals.md)