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

EnsoBuild/strategy-builder-subgraph-v1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b9fd787 · Apr 6, 2023

History

78 Commits
Aug 30, 2022
Apr 8, 2022
May 26, 2022
Sep 2, 2022
Sep 2, 2022
Jan 13, 2022
Mar 23, 2022
Apr 5, 2022
Apr 5, 2022
Feb 17, 2022
Feb 24, 2022
Jun 20, 2022
Apr 6, 2023
Mar 14, 2022
Apr 4, 2023
May 3, 2022
May 26, 2022
May 26, 2022
Aug 26, 2022
Sep 2, 2022
Jan 13, 2022
Feb 17, 2022

Repository files navigation

Enso V1 Subgraph

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

⚠️ Deprecated Codebase ⚠️

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.

Setup and deploy on ✨ EnsoNet ✨

❗️ 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

Fast iteration

  1. export env variables: export $(grep -v '^#' .env | xargs)
  2. run prepare command: yarn prepare ensonet
  3. run build & compile command: yarn build:graph
  4. run deploy command: yarn deploy:local

Setup and deploy on kovan

  1. Authenticate

    graph auth <TOKEN>
  2. Prepare manifest and mappings with kovan addresses

    yarn prepare kovan
  3. Build subgraph

    yarn build:graph
  4. Deploy subgraph

    yarn deploy:kovan

Get Subgraph Logs

 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages