GithubHelp home page GithubHelp logo

zondax / giant-squid-explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from subsquid-labs/giant-squid-explorer

0.0 1.0 0.0 110 KB

License: GNU General Public License v3.0

Shell 2.24% JavaScript 23.84% TypeScript 63.73% Dockerfile 2.93% Earthly 7.26%

giant-squid-explorer's Introduction

Giant Squid Explorer

Supported chains

  • acala
  • astar
  • bifrost
  • calamari
  • efinity
  • gmordie
  • hydradx
  • interlay
  • karura
  • khala
  • kusama
  • moonbeam
  • moonriver
  • phala
  • polkadot
  • rococo
  • shibuya
  • shiden
  • statemine
  • statemint
  • subsocial

You can run this squid with other networks, including the networks without an ArrowSquid Subsquid Network dataset. To do so, inspect the files in ./src/config/chains and ./manifests folders and make equivalent files for your network:

  • In the chain config file, use a Subsquid alias as chainName if a dataset is available. Keep in mind that without a Subsquid Network dataset your squid will get all of its data from RPC. That generally means slow sync and high RPC endpoint requirements.
  • Use the spec when writing the squid manifest. If you're going to deploy to Subsquid Cloud, request appropriate resources in the scale section. Consider using the RPC proxy service if your RPC requirements are high.

Usage

Prerequisites

  • NodeJS v16 or newer
  • Git
  • Squid CLI
  • Docker (for local runs and self-hosting)

Begin by retrieving the repo and installing the dependencies:

git clone https://github.com/subsquid-labs/giant-squid-explorer
cd giant-squid-explorer
npm ci

Running locally

sqd build
sqd up
sqd migration:apply
sqd run . -m manifests/<your_network_name>.yaml

GraphiQL playground will be available at http://localhost:4350/graphql.

Deploying to Subsquid Cloud

  1. Create an account at Subsquid Cloud
  2. Make sure you understand our pricing
  3. Deploy your squid with
    sqd deploy . -m manifests/<your_network_name>.yaml
    If you get a
    Squid "gs-explorer-<your_network_name>" belongs to other project. Please choose another project for your squid
    
    error, change the squid name at manifests/<your_network_name>.yaml and retry.
  4. Once the deployment is complete you'll be able to get an endpoint URL in the Subsquid Cloud app

Self-hosting

See this page.

Troubleshooting

Custom migration with GIN indexes for args fields

module.exports = class Data1672344080480 {
  name = 'Data1672344080480'

  async up(db) {
    await db.query(
      `CREATE INDEX "event_args_str_gin" ON "event" USING GIN ("args_str") `
    )
    await db.query(
      `CREATE INDEX "call_args_str_gin" ON "call" USING GIN ("args_str") `
    )
  }

  async down(db) {
    await db.query(`DROP INDEX "public"."event_args_str_gin"`)
    await db.query(`DROP INDEX "public"."call_args_str_gin"`)
  }
}

giant-squid-explorer's People

Contributors

ma-shulgin avatar abernatskiy avatar belopash avatar emmanuelm41 avatar mckrava avatar

Watchers

 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.