Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (15 loc) · 800 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 800 Bytes

dHEDGE V2 Polygon

Prerequisites

Setup

Install Dependencies

yarn

Deployment Dev/Prod

  1. Sign in to https://thegraph.com/hosted-service with your GitHub account
  2. Go to My Dashboard, select DHEDGE V2 Polygon Dev (if dev) or dHEDGE V2 Polygon (if prod) subgraph
  3. In the top right corner, copy your ACCESS TOKEN
  4. Run yarn graph auth --product hosted-service https://api.thegraph.com/deploy/ <your_access_token>
  5. After making necessary code changes, run yarn codegen
  6. Run yarn build-dev or yarn build-prod to check there are no compilation errors
  7. Finally, run yarn deploy-dev or yarn deploy-prod to start deploying latest changes