GithubHelp home page GithubHelp logo

ziutop / glide-subgraph Goto Github PK

View Code? Open in Web Editor NEW

This project forked from glide-finance/glide-subgraph

0.0 0.0 0.0 238 KB

Glide subgraph (blocks, tokens, pairs)

License: GNU General Public License v3.0

Shell 0.27% TypeScript 99.73%

glide-subgraph's Introduction

Glide Finance Subgraph

TheGraph exposes a GraphQL endpoint to query the events and entities within the Elastos Smart Chain and Glide Finance ecosystem.

Currently, there are multiple subgraphs, but additional subgraphs can be added to this repository, following the current architecture.

Subgraphs

  1. [Blocks]: Tracks all blocks on the Elastos Smart Chain (ESC).

  2. [Exchange]: Tracks all Glide Exchange data with price, volume, liquidity, ...

  3. [Glide-Staking]: Tracks all manual and auto Glide stake deposits and withdraws

  4. [Pairs]: Tracks all Glide Pairs and Tokens.

  5. [SmartChef]: Tracks all Glide SmartChef (a.k.a. Sugar Pools) with tokens and rewards.

  6. [Timelock]): Tracks all Glide Timelock queued, executed, and cancelled transactions.

Dependencies

  • Graph CLI
    • Required to generate and build local GraphQL dependencies.
yarn global add @graphprotocol/graph-cli

Deployment

For any of the subgraph: blocks as [subgraph]

  1. Run the cd subgraphs/[subgraph] command to move to the subgraph directory.

  2. Run the yarn codegen command to prepare the TypeScript sources for the GraphQL (generated/*).

  3. Run the yarn build command to build the subgraph, and check compilation errors before deploying.

  4. Run graph auth --product hosted-service '<ACCESS_TOKEN>'

  5. Deploy via yarn deploy.

glide-subgraph's People

Contributors

0xvikingweb3 avatar racollette avatar

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.