Code Monkey home page Code Monkey logo

subgraphs's Introduction

Enzyme Subgraphs

Introduction

This repository contains the various subgraphs that Enzyme Finance uses:

Installation

Before you can use the Enzyme subgraphs, make sure you have the latest versions of Node.js, pnpm installed.

Install project dependencies from the main directory:

pnpm install

Subgraph Contexts

Each subgraph can be used in different contexts, i.e. for different deployements and chains.

Default contexts are:

  • ethereum
  • polygon

Run code generators for a subgraph

In order to generate a subgraph.yaml file and AssemblyScript classes for a specific subgraph, go to the subgraph directory (in /subgraphs/name-of-subgraph) and run

pnpm codegen <context>

Build a subgraph

Code generation does not check your mapping code. If you want to check the mapping code before uploading it, run

pnpm build <context>

Deploy a subgraph

To deploy a subgraph to the default location, you need to be logged into the Graph CLI:

pnpm graph auth --studio

Once logged in, go to the subgraph directory (in /subgraphs/name-of-subgraph) and run

pnpm upload <context>

Deployed subgraphs

All subgraphs are deployed on the Graph network:

Ethereum

Polygon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.