Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dorgtech/arc.js

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dorgtech/arc.js

[![Build Status](https://travis-ci.com/daostack/arc.js.svg?token=aXt9zApRNkfx8zDMypWx&branch=master)](https://travis-ci.com/daostack/arc.js)

  • 2.0.0-experimental.36
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Build Status

DAOstack arc.js

The DAOStack arc.js is a nodejs library to work with the DAOstack ecosystem

  • Convenience functions to interact with the DAOstack contracts: create proposals, and vote and stake on them
  • A arc.js library for the DAOstack subgraph - search for daos, proposals

Usage

In your nodejs project run

npm install --save @daostack/arc.js

now you can do:

import { Arc } from '@daostack/arc.js'

// 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

FAQs

Package last updated on 22 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc