Current Kovan Subgraph: https://thegraph.com/explorer/subgraph/ensofinance/enso-v1
Current remote ✨ EnsoNet ✨ Subgraph: http://subgraph.dev.enso.finance/subgraphs/name/ensofinance/enso-v1
This codebase has been deprecated. Use this code at your own risk, and Enso does not take any responsibility for vulnerabilities or any impact thereafter from learning/utilizing this codebase.
❗️ Link your github ssh key to ~/.ssh/ensonet
(or use the service account's key) ❗️
- local ✨ EnsoNet ✨ ->
MODE=dev
- remote ✨ EnsoNet ✨ ->
MODE=prod
✅ yarn start
✅
- export env variables:
export $(grep -v '^#' .env | xargs)
- run prepare command:
yarn prepare ensonet
- run build & compile command:
yarn build:graph
- run deploy command:
yarn deploy:local
-
Authenticate
graph auth <TOKEN>
-
Prepare manifest and mappings with kovan addresses
yarn prepare kovan
-
Build subgraph
yarn build:graph
-
Deploy subgraph
yarn deploy:kovan
curl --location --request POST 'https://thegraph.com/hosted-service/subgraph/graphql' --data-raw '{"query":"{indexingStatusForCurrentVersion(subgraphName: \"ensofinance/enso-v1\") { subgraph fatalError { message } nonFatalErrors {message } } }"}' | jq