Giter Club home page Giter Club logo

lido-subgraph's Introduction

Lido Subgraph

Subgraph to index Lido contracts.

Live Deployments

The Graph Network

Explorer page with playground: https://thegraph.com/explorer/subgraph?id=HXfMc1jPHfFQoccWd7VMv66km75FoxVHDMvsJj5vG5vf

GraphQL API url (API key is needed): https://gateway.thegraph.com/api/[api-key]/subgraphs/id/HXfMc1jPHfFQoccWd7VMv66km75FoxVHDMvsJj5vG5vf

The Graph Hosted

Mainnet

Explorer page with playground: https://thegraph.com/legacy-explorer/subgraph/lidofinance/lido

GraphQL API url: https://api.thegraph.com/subgraphs/name/lidofinance/lido

Testnet (Goerli)

Explorer page with playground: https://thegraph.com/legacy-explorer/subgraph/lidofinance/lido-testnet

GraphQL API url: https://api.thegraph.com/subgraphs/name/lidofinance/lido-testnet

Contracts

  • Lido
  • Lido Oracle
  • Node Operator Registry
  • Voting
  • EasyTrack
  • Deposit Security Module

Developing

Install dependencies with yarn and run yarn codegen. Repeat yarn codegen after any schema changes or changes affecting generated files.

Testing

You can test any synced Lido deployment, simply fill an .env file and run:

yarn test

Deploying

Locally

First, set an .env file. You can check an example in .env.local.example.

Run create-local first if Subgraph does not exist yet. Run deploy-local to deploy the Subgraph.

The Graph Hosted

Pushes to master branch will automatically get the Subgraph deployed to The Graph.

Notes

  1. Addresses are stored as-is, without conversion to checksum addresses. Keep that in mind when filtering entities by address.
  2. Please note that it's now advised not to rely on this Subgraph's node operator keys for duplicate key checks. We've hit a technical limitation on withdrawal credentials changes when unused keys are cropped. We can't guarantee cropped keys will be deleted from this Subgraph correctly in the future.

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.