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.
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:
-
Calling
yarn prepare:sepolia
(wheresepolia
can be replaced with any network that has a config theconfig/
dir) will build thesubgraph.yaml
file by injecting appropriate values intosubgraph.template.yaml
from the corresponding file in theconfig
dir. This should be done before deploying the subgraph for the network in question. -
Calling
graph codegen
generates .ts files in thegenerated
folder based on the contract ABIs inabis/
. In general, this only needs to be done if the ABIs are updated and should be the same across all networks. -
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 insrc/
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. -
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 callinggraph auth
with an appropriate auth key parameter for the subgraph in question.