Giter Club home page Giter Club logo

dao-graph's Introduction

DAO Subgraph

Collection of Subgraphs to support the usage of the BarnBridge type of DAOs like the LeagueDAO one

Running Local Graph Node

Open the docker-compose.yml file and edit the ethereum node url you want to use.

Development

There are npm scripts for all the stages of subgraph development.

  1. Building the subgraph (code generation + creating the subgraph): npm build
  2. Deploying to the Local Graph Node: npm run deploy:local --config={config.json}
  3. Deploying to the Rinkeby Graph Node: npm run deploy:rinkeby --config={config.json} --ipfs_node_ip={ip} --graph_node_ip={ip}
  4. Deploying to the Mainnet Graph Node: npm run deploy:mainnet --config={config.json} --ipfs_node_ip={ip} --graph_node_ip={ip} Where {config.json} is the file name of the config you want to deploy. F.e if you want to deploy locally the mainnet config execute: npm run deploy:local --config=mainnet.json && ipfs_node_ip and graph_node_ip are the ips where your nodes are deployed on

Supported APIs

  • Overview Info
  • Get All Proposals
  • Get Proposal by ID
  • Get all Votes for a given Proposal ID
  • Get all Events for a given Proposal ID
  • Get all Voters
  • Get all Abrogation Proposals
  • Get Abrogation Proposal by ID
  • Get Abrogation Proposal Votes by ID

dao-graph's People

Contributors

hristiyang avatar

Forkers

jasonduffus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.