Skip to content

AlphabitTeam/lp-tracker-subql

 
 

Repository files navigation

Acala Subquery Starter

This starter project will get you started with everything you need to begin building a custom Subquery project for Acala/Karura. For more general information on Subquery check out their docs here.

Setup

Make sure you have the pre-requisite software installed by following the directions here.

Building/Starting the Project

  1. Clone this repo and install the dependencies by running yarn in the project directory
  2. Update the custom type definitions for Acala, Karura, and Mandala in the project.yaml by running yarn update-types
  3. Generate the schema types for use in your handlers by running yarn codegen
  4. Build the project by running yarn build
  5. Start the prooject by running docker-compose pull && docker-compose up

Query the project

Open your browser and head to http://localhost:3000.

Write the following query into the query editor and press play. If you see data pop up on the right side then you're all set up!

query {
  balanceTransferSummaries(first: 10) {
    nodes {
      id
      totalTransferIn
      avgTransferIn
      totalTransferOut
      avgTransferOut
    }
  }
}

About

Subquery Project For Tracking Karura LPs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.1%
  • JavaScript 8.9%