Skip to content

Latest commit

 

History

History

subgraph

LeapDAO Bounty payout subgraph

Indexes payouts made both through BountyPayout contract and through PaymentSplitter.

Quick start

Follow the guide here to set yourself up for local development

Initial setup (once)

yarn global add @graphprotocol/graph-cli
graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>

Deploy

yarn buildAndDeploy

Development

Regenerate typings once you've changed the graph schema:

yarn codegen

GraphQL based API

Query URL: https://api.thegraph.com/subgraphs/name/leapdao/leapdao-bounties

Playground URL: https://thegraph.com/explorer/subgraph/leapdao/leapdao-bounties/

Example requests

Payouts per address:

{
  payee(id:"0x51bab87c42d384d1cd3056d52d97c84ddaa65fe4") {
    id
    payouts {
      id
      amount
      timestamp
    }
  }
}