Giter Club home page Giter Club logo

subgraph's Introduction

Drips Subgraph Repository

Code for building and deploying the subgraph (a graphQL database instance built on The Graph) for ๐Ÿ’ฆ drips.network.

Drips is an ๐Ÿ’Ž Ethereum protocol for creating continuous funding streams (Drips) and splitting funding streams among multiple recipients. With Drips there are no ๐Ÿ’ธ commissions, predatory ๐Ÿ‘” middle-men, or ๐Ÿฆ banks involved.

Drips is a part of the Radicle ecosystem of projects. See the Drips docs for more details about the Drips protocol and how to use it.

How To Use This Repository

Most end users and developers building on Drips will not have a reason to clone or fork this repository. For details on how to access the public subgraph endpoints maintained by the Drips team, please see here.

However, for contributors to the Drips protocol, the following commands may be helpful if you wish to make changes to this repository:

  1. Calling yarn prepare:sepolia (where sepolia can be replaced with any network that has a config the config/ dir) will build the subgraph.yaml file by injecting appropriate values into subgraph.template.yaml from the corresponding file in the config dir. This should be done before deploying the subgraph for the network in question.

  2. Calling graph codegen generates .ts files in the generated folder based on the contract ABIs in abis/. In general, this only needs to be done if the ABIs are updated and should be the same across all networks.

  3. Calling graph build compiles .wasm files (and collects related files) that will be sent to the server(s) that will host and serve the subgraph instance. This will process the code in src/ and is useful if you want to check that the code is free of simple compile errors, or if you want to actually push a new subgraph deployment.

  4. Calling yarn deploy:sepolia will deploy to the subgraph instance specified in package.json. Most contributors will not need to call this, unless they have set up their own test instance, as calling this requires first calling graph auth with an appropriate auth key parameter for the subgraph in question.

subgraph's People

Contributors

jtourkos avatar gh0stwheel avatar efstajas avatar

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.