Skip to content

Commit

Permalink
update subgraph endpoint with canary; update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsoffer committed Dec 17, 2019
1 parent 74bdbfd commit c687c15
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
This repo provides an api that schema stitches some useful fields not yet indexed on the Livepeer Subgraph. The following fields are provided:

- `pendingStake`, `tokenBalance`, `ethBalance` are added to the `Delegator` entity.
- A `Protocol` entity is added with fields `paused`, `inflation`, `inflationChange`, `totalTokenSupply`, `totalBondedToken`

# Getting Started

## Install deps
Expand All @@ -6,7 +11,14 @@
## Run Locally
`yarn dev`

## Deploy to Now
# Deployment instructions

## `Heroku` deployment instructions
1. Set your production endpoint url in `next.config.js`
2. Connect Heroku to the github repo.

## `Now` deployment instructions
1. Set your production endpoint url in `next.config.js`
2. Run `now`
3. Set an alias to your production endpoint. ie `now alias [generated_deployment_url] [production_endpoint]`

3 changes: 1 addition & 2 deletions lib/createSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import {
} from "graphql-tools";

const subgraphEndpoint =
"https://api.thegraph.com/subgraphs/name/livepeer/livepeer";
const isProd = process.env.NODE_ENV === "production";
"https://api.thegraph.com/subgraphs/name/livepeer/livepeer-canary";

export default async () => {
const subgraphServiceLink = new HttpLink({
Expand Down

0 comments on commit c687c15

Please sign in to comment.